summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanglewood <85772166+deeleeramone@users.noreply.github.com>2024-02-20 06:41:26 -0800
committerGitHub <noreply@github.com>2024-02-20 14:41:26 +0000
commitfe3fa6af8e5cb9dcf9ddb1730453d2ac7fb3bebc (patch)
tree1866f448d641bb04b54e5e7bf7d10b7093f279fe
parent7d84690316824f1e905d1dbb52252a6cb9dff3b3 (diff)
[Enhancement]: Add TMX data provider extension. (#5913)
* dev install * add TMX provider extension * normalize ytm and coupopn_rate values * black * codespell * ruff * black again * pylint * ftw * undo what Pylint thinks is best * more black * renovate insider_trading standard model * fix tests * typo * tests * empty string * pylint unused argument * nans for some reason * black * static files * static files with openbb-tmx installed this time * yfinance TypeError..? * NA -> N/A * update for version bump * list exchange-calendars as tmx dependency * eod chains date -> eod_date * new line * not that file * more black * one more black * fix weird merge thing * ruff * index constituents params * insider trading * fixing things * black * black AGAIN * news integration params * the other missing param * ruff * historical dividends field update * add json_schema_extra * gainers * symbols -> symbol * company news symbol * unit test param * review items * wrangle a rogue field * index router example * company news thing - symbols -> symbol * field name map --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt> Co-authored-by: James Maslek <jmaslek11@gmail.com>
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/bond_prices.py11
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/bond_reference.py3
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/index_constituents.py21
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/index_snapshots.py4
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/insider_trading.py4
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/treasury_prices.py70
-rw-r--r--openbb_platform/dev_install.py1
-rw-r--r--openbb_platform/extensions/derivatives/integration/test_derivatives_api.py8
-rw-r--r--openbb_platform/extensions/derivatives/integration/test_derivatives_python.py8
-rw-r--r--openbb_platform/extensions/equity/integration/test_equity_api.py38
-rw-r--r--openbb_platform/extensions/equity/integration/test_equity_python.py36
-rw-r--r--openbb_platform/extensions/etf/integration/test_etf_api.py25
-rw-r--r--openbb_platform/extensions/etf/integration/test_etf_python.py25
-rw-r--r--openbb_platform/extensions/fixedincome/integration/test_fixedincome_api.py52
-rw-r--r--openbb_platform/extensions/fixedincome/integration/test_fixedincome_python.py51
-rw-r--r--openbb_platform/extensions/fixedincome/openbb_fixedincome/corporate/corporate_router.py11
-rw-r--r--openbb_platform/extensions/index/integration/test_index_api.py28
-rw-r--r--openbb_platform/extensions/index/integration/test_index_python.py30
-rw-r--r--openbb_platform/extensions/index/openbb_index/index_router.py17
-rw-r--r--openbb_platform/extensions/news/integration/test_news_api.py8
-rw-r--r--openbb_platform/extensions/news/integration/test_news_python.py8
-rw-r--r--openbb_platform/openbb/package/module_map.json1
-rw-r--r--openbb_platform/poetry.lock888
-rw-r--r--openbb_platform/providers/cboe/openbb_cboe/models/index_constituents.py4
-rw-r--r--openbb_platform/providers/cboe/tests/test_cboe_fetchers.py2
-rw-r--r--openbb_platform/providers/fmp/openbb_fmp/models/index_constituents.py4
-rw-r--r--openbb_platform/providers/government_us/openbb_government_us/models/treasury_auctions.py5
-rw-r--r--openbb_platform/providers/government_us/openbb_government_us/models/treasury_prices.py11
-rw-r--r--openbb_platform/providers/tmx/README.md52
-rw-r--r--openbb_platform/providers/tmx/__init__.py0
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/__init__.py69
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/__init__.py0
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/available_indices.py131
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/bond_prices.py189
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/calendar_earnings.py142
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/company_filings.py169
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/company_news.py123
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/equity_historical.py239
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/equity_profile.py164
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/equity_quote.py360
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/equity_search.py71
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/etf_countries.py109
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/etf_holdings.py142
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/etf_info.py233
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/etf_search.py266
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/etf_sectors.py85
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/gainers.py145
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/historical_dividends.py108
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/index_constituents.py93
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/index_sectors.py90
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/index_snapshots.py283
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/insider_trading.py168
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/options_chains.py105
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/price_target_consensus.py160
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/models/treasury_prices.py156
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/py.typed0
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/utils/__init__.py0
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/utils/gql.py513
-rw-r--r--openbb_platform/providers/tmx/openbb_tmx/utils/helpers.py1075
-rw-r--r--openbb_platform/providers/tmx/poetry.lock1549
-rw-r--r--openbb_platform/providers/tmx/pyproject.toml22
-rw-r--r--openbb_platform/providers/tmx/tests/__init__.py1
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_available_indices_fetcher.yaml1973
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_bond_prices_fetcher.yaml56418
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_calendar_earnings_fetcher.yaml1279
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_company_filings_fetcher.yaml795
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_company_news_fetcher.yaml73
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_equity_historical_fetcher.yaml1104
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_equity_profile_fetcher.yaml147
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_equity_quote_fetcher.yaml75
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_equity_search_fetcher.yaml1312
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_etf_countries_fetcher.yaml24247
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_etf_holdings_fetcher.yaml24249
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_etf_info_fetcher.yaml24249
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_etf_search_fetcher.yaml24249
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_etf_sectors_fetcher.yaml24249
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_gainers_fetcher.yaml109
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_historical_dividends_fetcher.yaml105
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_index_constituents_fetcher.yaml1977
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_index_sectors_fetcher.yaml1973
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_index_snapshots_fetcher.yaml2101
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_insider_trading_fetcher.yaml70
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_options_chains_fetcher.yaml1282
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_price_target_consensus_fetcher.yaml57
-rw-r--r--openbb_platform/providers/tmx/tests/record/http/test_tmx_fetchers/test_tmx_treasury_prices_fetcher.yaml56454
-rw-r--r--openbb_platform/providers/tmx/tests/test_tmx_fetchers.py256
-rw-r--r--openbb_platform/providers/yfinance/openbb_yfinance/models/balance_sheet.py2
-rw-r--r--openbb_platform/providers/yfinance/openbb_yfinance/models/cash_flow.py2
</