Company fundamentals by filing date

v0.4.4
io.github.Wei-LienWU/pit-fundamentals Checked 17 hours ago Published 23 days ago

Company financials from official filings, each figure keyed to its filing date.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_latest_fundamentals Latest fundamentals for a company

The most recent reported value of each metric for one ticker, each with its period (fy, fp), period end, filing date and form. Use it for a company's current figures, or with as_of for what had been filed by a given day; call search_companies first if you have a name rather than a ticker. Inputs: ticker (e.g. AAPL, 2330.TW, 005930.KS, 0403091220.BE, 775670417.FR, CC21860.NZC, and 10238429.EE, 5560356163.SE, 47239255.SK, 40003032949.LV where get_coverage lists them, and 96002925948.AU for Australia's tax figures); metric (comma-separated; a name we do not hold is left out); as_of (only filings…

ParameterTypeDescription
ticker *stringTicker symbol, e.g. AAPL or 2330.TW
as_ofstringFiling-date cut-off, YYYY-MM-DD (e.g. 2022-01-01). Defaults to today.
metricstringComma-separated metrics, e.g. revenue,net_income. Omit for all.

get_fundamentals_history Reported history for a company

The stored figures for one ticker, one row per metric and period, each with its period (fy, fp), period end, filing date and form. Use it for trends and for what was on file at a past date. Inputs: ticker, metric (comma-separated), from (earliest period end), as_of (only filings dated on or before that day). On a free key, a company outside the full-history sample answers with its most recent reported fiscal year only: full_history false and history_depth say so, and older filings exist. Long histories are capped at 250 rows, keeping the most recent rows of EVERY metric (per_metric says how ma…

ParameterTypeDescription
ticker *stringTicker symbol, e.g. AAPL or 2330.TW
as_ofstringFiling-date cut-off, YYYY-MM-DD: only filings dated on or before that day
fromstringEarliest period end to include, YYYY-MM-DD
metricstringComma-separated metrics, e.g. revenue,net_income

search_companies Find a ticker by company name

Look up the ticker for a company name or partial symbol — 'Apple', 'TSMC', '2330', 'samsung', 'LVMH'. Use this first when the user names a company rather than a ticker, and check the market of the hit: a local subsidiary or a namesake in another country can share the name. Pass market (US, JP, TW, KR, FR, BE, DK, NZC) to search one market only. Results with market NZC are New Zealand registered charities, not listed companies.

ParameterTypeDescription
query *stringCompany name or partial ticker
marketstringOnly this market: US, JP, TW, KR, FR, BE, DK or NZC

get_coverage What data is available

Markets covered, ticker counts, history depth per market, the free-tier ticker list, the metric vocabulary, the source attributions that must travel with the data, and the licence the data is supplied under (with an evaluation key, its terms and end date).

get_data_dictionary What each detailed line item means, per market

The data dictionary of the detailed line items: for every metric, its definition, which filed line each market reads it from (or why a market has none), and the measured share of that market's company-periods that carry it; the figures we calculate from them, with their formulas; and the rules that apply to all of them (dating, signs, annual-only cash-flow lines, small employers). Use it before comparing a line item across markets, or to learn what a line-item code means. Codes: trade_receivables, trade_and_other_receivables, inventories, trade_payables, trade_and_other_payables, ppe, noncurre…