# Financial history

`GET https://firm.wealthnow.io/api/v3/fundamentals/historical/{ticker}`

- Plan: Free and up
- Price: 1 credit per call (failed requests are free)
- MCP tool: `fundamentals_historical`
- Source: https://app.wealthnow.io/docs/reference/fundamentals-historical

Multi-decade historical financial statements for one ticker from SEC EDGAR: income, balance, and cash-flow, filterable by statement_type and start_year/end_year, annual by default with include_quarterly opt-in. Years are FISCAL years; with no end_year the range runs to next calendar year, so the latest fiscal year is included (NVDA's FY2027 ends in January 2027). Call this when the user asks how fundamentals have trended over many years, not just the latest print.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `ticker` | path | string | yes |  |
| `statement_type` | query | string | no | Which statements: income, balance (balance sheet), cashflow, or all three. One of `income`, `balance`, `cashflow`, `all`. Default `all`. |
| `start_year` | query | integer | no | Range 1990 to 2100. |
| `end_year` | query | integer | no | Range 1990 to 2100. |
| `include_quarterly` | query | boolean | no | True adds fiscal-quarter statements to the annual ones (default: annual only). Default `false`. |

## Example request

```bash
curl -H "Authorization: Bearer $WEALTHNOW_API_KEY" \
  "https://firm.wealthnow.io/api/v3/fundamentals/historical/AAPL"
```

## Example response

Live response to GET /api/v3/fundamentals/historical/AAPL?statement_type=income&start_year=2024, captured 2026-09-23 with a Free key; arrays trimmed to 2 items and long text shortened.

```json
{
  "ok": true,
  "timestamp": "2026-09-23T05:00:03.446049+00:00",
  "ticker": "AAPL",
  "statement_type": "income",
  "data": {
    "ticker": "AAPL",
    "company_name": "Apple Inc.",
    "cik": "0000320193",
    "start_year": 2024,
    "end_year": 2026,
    "income_statements": [
      {
        "fiscal_year": 2025,
        "fiscal_period": "FY",
        "end_date": "2025-09-27",
        "revenue": 416161000000,
        "cost_of_revenue": 220960000000,
        "gross_profit": 195201000000,
        "operating_expenses": 62151000000,
        "operating_income": 133050000000,
        "interest_expense": null,
        "income_before_tax": 132729000000,
        "income_tax_expense": 20719000000,
        "net_income": 112010000000,
        "eps_basic": 7.49,
        "eps_diluted": 7.46,
        "shares_outstanding": 14948500000
      },
      {
        "fiscal_year": 2024,
        "fiscal_period": "FY",
        "end_date": "2024-09-28",
        "revenue": 391035000000,
        "cost_of_revenue": 210352000000,
        "gross_profit": 180683000000,
        "operating_expenses": 57467000000,
        "operating_income": 123216000000,
        "interest_expense": null,
        "income_before_tax": 123485000000,
        "income_tax_expense": 29749000000,
        "net_income": 93736000000,
        "eps_basic": 6.11,
        "eps_diluted": 6.08,
        "shares_outstanding": 15343783000
      }
    ]
  }
}
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `invalid_ticker` | The request is malformed, for example a ticker that is not a symbol: `invalid_ticker`, refused before any credit is reserved, with `param` naming the parameter. Not billed. |
| 401 | `unauthorized` | Missing or invalid API key. |
| 402 | `plan_required` | Your plan does not include this tool, you are out of credits, or your workspace's spend cap paused its keys. `plan_required` names the plan that unlocks the tool; `usage_exceeded` means the credit balance is spent; `spend_cap_reached` means the key is paused until the cap resets or is raised: `detail` names the cap and the reset, `cap_usd` and `resets_at` (ISO 8601) carry them, and `doc_url` links pricing and credits. Not billed. |
| 403 | `scope_denied` | This API key is limited to some products and this tool is not one of them. `product` names the tool's product and `scopes` the key's products. An upgrade does not change it: use a key whose scopes include the product, or change this key's scopes. Not billed. |
| 404 | `unknown_ticker` | No data source lists this ticker, active or delisted: the market-data listing and the security master both say it does not exist. `param` names the parameter. Not billed. Best-effort: it is answered only when the route itself found nothing, and after 20 lookups of new symbols per API key per minute the route's own answer stands. |
| 422 | `validation` | A parameter is missing, out of range or the wrong type; `param` names it. Not billed. |
| 429 | `rate_limited` | Your plan's rate limit is spent for this window. Retry after `Retry-After` seconds. Not billed. |
| 503 | `paid_data_unavailable` | The data could not be served completely right now; retry later. Not billed. |
| 504 | `request_timeout` | The request ran past the server's time budget; retry. Not billed. |
