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→ |
| Taiwan | Taiwan Stock Exchange OpenAPI | every listed company |
| Korea | FSS OpenDART | loading (full market) |
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 25 flagship tickers at full fidelity.
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: 25 flagship
tickers (US, Taiwan, Korea), full history, all fields, no signup. Paid plans
unlock every ticker — 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.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openbb_tradingagent-1.0.0.tar.gz.
File metadata
- Download URL: openbb_tradingagent-1.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f04ed6313906a1bbb0584df9f7b42f1e0c25ccdbd13c3e366726e1161155a6c6
|
|
| MD5 |
43220305c5b3de05e50360344d99b838
|
|
| BLAKE2b-256 |
1763a0451297a458494889ca8d93b452f773048695014c44d7db76e5feb58df8
|
File details
Details for the file openbb_tradingagent-1.0.0-py3-none-any.whl.
File metadata
- Download URL: openbb_tradingagent-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf9ab38fa4a634ecf697ce3db0efaff525d49c4ea1fff1a6225ac63dc23b73b9
|
|
| MD5 |
25f2da3ca6299a0fe7cbba7f5f8a2037
|
|
| BLAKE2b-256 |
0656f43b23111616471f06907e10ed9001b08a36268aea4696a04476d1deb227
|