Skip to main content

Trading Agent provider for OpenBB

Point-in-time, as-first-reported company fundamentals from official regulator filings — inside the OpenBB Platform.

Market Source Coverage
United States SEC EDGAR (XBRL) ~7,000 filers, annual + quarterly, FY2014→
Japan FSA EDINET (Public Data License 1.0) 4,955 filers of an annual securities report, listed and unlisted
Taiwan Taiwan Stock Exchange OpenAPI every listed company
Korea FSS OpenDART 2,239 listed companies
France INPI Registre national des entreprises 1,484,946 companies, annual accounts 2017→
Belgium NBB Central Balance Sheet Office 673,826 companies, statutory accounts, incl. private companies
Denmark Danish Business Authority 548,878 companies, published annual reports
New Zealand Charities Register (Charities Services) 27,100 registered charities, FY2008→

Every value is keyed by the official filing date it became public on, and queries accept an as_of knowledge date — so a backtest at date T sees only what was public at T. No restatement look-ahead.

Install

pip install openbb-tradingagent
openbb-build   # regenerate the static assets so the provider appears

Use

The provider attaches to OpenBB's existing fundamentals commands:

from openbb import obb

# No key needed — the demo tier covers every company's most recent fiscal year.
obb.equity.fundamental.latest_attributes(
    symbol="2330.TW", tag="revenue,net_income", provider="tradingagent"
)

# Point-in-time: what did AAPL's reported revenue history look like on 2022-01-01?
obb.equity.fundamental.historical_attributes(
    symbol="AAPL", tag="revenue", provider="tradingagent", as_of="2022-01-01"
)

Set a key for the full universe:

obb.user.credentials.tradingagent_api_key = "ta_live_…"

or in ~/.openbb_platform/user_settings.json:

{ "credentials": { "tradingagent_api_key": "ta_live_…" } }

Without a key the provider falls back to the public demo key: every company at its most recent reported fiscal year, all fields, no signup; about 60 named companies keep full history as a worked sample. Paid plans unlock full history, the as_of query and bulk files — your code does not change.

The as_of parameter

This is the reason the provider exists. Most fundamentals APIs serve today's restated figures against historical dates, which quietly leaks future information into a backtest. Here, as_of filters to filed <= as_of:

# FY2021 as it was actually reported, not as later amended
obb.equity.fundamental.latest_attributes(
    symbol="AAPL", tag="revenue", provider="tradingagent", as_of="2022-01-01"
)

Fields

historical_attributes returns, per row: date (period end), symbol, tag, value, unit, fiscal_year, fiscal_period, filed, form, market, issuer_id.

Available tags include revenue, net_income, assets, liabilities, equity, cash, gross_profit, operating_income, long_term_debt, rnd_expense, eps_diluted, shares_diluted, plus derived ratios net_margin, gross_margin, operating_margin, roe, roa, debt_to_equity, asset_turnover.

Data notes

  • Taiwan income-statement figures are cumulative year-to-date (Taiwan reporting convention): Q2 is the H1 total, Q4 the full year. Difference adjacent quarters for single-quarter flows. Balance-sheet items are point-in-time as usual.
  • Values are as filed. Filers make mistakes; we do not silently correct them.

Sources and licences

  • US — SEC EDGAR, public domain.
  • Taiwan — Taiwan Stock Exchange, under the Open Government Data License 1.0. The attribution is embedded in every API response and must be preserved.
  • Korea — FSS OpenDART. Public data; the FSS confirmed in writing that no separate approval agreement is required for commercial use.
  • Japan — Financial Services Agency, EDINET, under the EDINET terms of use applying the Public Data License 1.0. Source attribution is required; it is embedded in every API response and must be preserved.
  • France — INPI, Registre national des entreprises, under its reuse licence. Attribution with the last-update date is required.
  • Belgium — National Bank of Belgium, Central Balance Sheet Office. Statutory solo accounts, not group consolidation.
  • Denmark — Danish Business Authority (Erhvervsstyrelsen), published annual reports.
  • New Zealand — Charities Services, Department of Internal Affairs, Charities Register, CC BY 3.0 NZ. Registered charities rather than listed issuers: NZ company financials are not published as open data.

Factual historical data only — not investment advice, not a recommendation.

Full API documentation: https://www.tradingagentapp.com/developers Pricing and licences: https://www.tradingagentapp.com/fundamentals

MIT licensed. Operated by WU Capital Limited, Auckland, New Zealand.

Metadata

Release files for openbb-tradingagent 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openbb-tradingagent 1.0.1
File Size Uploaded Provenance Actions
openbb_tradingagent-1.0.1.tar.gz 6.7 kB Without provenance Details for openbb_tradingagent-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openbb-tradingagent 1.0.1
File Interpreter ABI Platform Actions
openbb_tradingagent-1.0.1-py3-none-any.whl Python 3 none any Details for openbb_tradingagent-1.0.1-py3-none-any.whl

Total release size: 17.0 kB

Release files / openbb_tradingagent-1.0.1.tar.gz

Download URL openbb_tradingagent-1.0.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
218fbd6ca4c94e4f279c8f673c5f6b450e8c7bcdce85528feb9e173402a536b3
BLAKE2b-256 checksum
How to use checksums
e8f8c11d6fd6287a2a81bb3734b4850e77ffbcbf1799f67c226706612b516d3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / openbb_tradingagent-1.0.1-py3-none-any.whl

Download URL openbb_tradingagent-1.0.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c892bc4e0372d0f3103d1049b75840989c275a2b11360a3cc866f7332edba8d4
BLAKE2b-256 checksum
How to use checksums
edc6c5eaa2cff109a8223ea957a4d9bd9f979cde40e4a9feffd8eae67ea51863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for openbb-tradingagent 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page