Skip to main content

Unofficial TMX data provider extension for the OpenBB Platform - Public Canadian markets data for Python and Fast API.

Project description

OpenBB TMX Provider

This extension integrates the TMX data provider into the OpenBB Platform.

Installation

To install the extension:

pip install openbb-tmx

Documentation available here.

Additional information

openbb-tmx is an unofficial, community, data provider extension for the OpenBB Platform.

Install with pip install openbb-tmx, or from the local directory, pip install -e .

Command Coverage

  • .derivatives.options.chains
    • Historical EOD chains data available from 2009.
  • .equity.calendar.earnings
  • .equity.estimates.consensus
  • .equity.discovery.gainers
    • Includes a 'category' parameter for the type of 'best performer'.
  • .equity.fundamental.dividends
  • .equity.fundamental.filings
  • .equity.ownership.insider_trading
    • Does not use the Standard Model because the data returned are total shares traded over the previous 3,6,and 12 months.
  • .equity.price.quote
  • .equity.price.historical
    • Daily, weekly, monthly, and intraday - with valid intervals being any X number of minutes.
    • Weekly and monthly intervals are for the period beginning.
    • Historical intraday data begins April 14, 2022.
    • Split-adjusted, split and dividend adjusted, as well as unadjusted prices are available only for daily intervals. Other intervals are split-adjusted.
  • .equity.search
  • .equity.profile
  • .etf.search
  • .etf.info
  • .etf.sectors
  • .etf.countries
  • .etf.holdings
    • Top 10 holdings only.
  • .fixedincome.corporate.bond_prices
  • .fixedincome.government.treasury_prices
  • .index.constituents
    • Full constituents with weights and notional values.
  • .index.snapshots
    • Regions of: ["ca", "us"]
  • .index.available
    • Includes URLs to methedology and factsheet documents.
  • .index.sectors
  • .news.company

Symbology

No exchange suffix is required to handle Canadian listings. The extension accepts .TO and .TSX as well as no suffix. Additionally, a composite ticker symbol can be entered. For example, AAPL trades as a Canadian Depositary Receipt, under the symbol AAPL:AQN, on the NEO Exchange. The US listing is also found as AAPL:US. Some US and select European data is available from some functions, like quote and historical.

Indices all begin with ^.

Caching

This extension uses aiohttp-client-cache with a SQL backend to cache symbol directories, ETF, and index data. It can be bypassed with the parameter, use_cache=False. ETF and index data is gathered from a single JSON file which is updated daily by the exchange. The HTTP request is cached for one day.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openbb_tmx-1.5.1.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openbb_tmx-1.5.1-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

Details for the file openbb_tmx-1.5.1.tar.gz.

File metadata

  • Download URL: openbb_tmx-1.5.1.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.13.11 Darwin/25.3.0

File hashes

Hashes for openbb_tmx-1.5.1.tar.gz
Algorithm Hash digest
SHA256 21b218ebca55668f88b37d18e9926df8988e9f953c1a6b203ac7ad3866e046bf
MD5 2888b50825d7ba52bcc4118e770dad8a
BLAKE2b-256 af75fc6163aed67c4afb6afdb190624dacdcab3887bef08586b082ef65fa1117

See more details on using hashes here.

File details

Details for the file openbb_tmx-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: openbb_tmx-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 60.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.13.11 Darwin/25.3.0

File hashes

Hashes for openbb_tmx-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26b23855f84f37f39c3d8420e6b874c80ba406d39226d9527d1c17537a6e25d2
MD5 bdcdb0df9e688b25e6679074e6e80087
BLAKE2b-256 196dea2cc68f610c6014d2ada82870a87c4c2c8962d3e4d3c54b435cace667f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page