TradingView financial statements
Fiscal-period financials of a listed company, annual or quarterly, newest period first: income statement (revenue, gross profit, operating income, EBITDA, net income, EPS basic and diluted, R&D), balance sheet (assets, current assets, cash, goodwill, liabilities, debt, net debt, equity) and cash flow (operating, investing, financing, free cash flow, capital expenditures), plus key ratios (margins, ROE, ROA, ROIC, current and quick ratio, debt to equity). Revenue, gross profit, EBITDA, net income, EPS, total assets, total debt and free cash flow carry up to 20 annual or 32 quarterly periods; the other lines and the ratios cover the latest period. Stocks only: funds, indices, crypto and forex have no statements.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
symbolrequired | string | EXCHANGE:TICKER, e.g. NASDAQ:AAPL. Example: NASDAQ:AAPL |
period | annual | quarterly | Fiscal periods (default annual). |
statement | all | income_statement | balance_sheet | cash_flow | ratios | Which part to return (default all). |
periods | integer | How many periods to return (default 8, max 32). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/tradingview/v1/financials?symbol=NASDAQ%3AAAPL" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/tradingview/v1/financials",
params={"symbol": "NASDAQ:AAPL"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/tradingview/v1/financials");
url.searchParams.set("symbol", "NASDAQ:AAPL");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).