# Price chart

`GET https://firm.wealthnow.io/api/v3/intel/chart/{ticker}`

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

Candlestick chart with optional RSI/MACD/Bollinger overlays. Returns a base64 PNG in a standard image envelope plus an OHLCV summary block (interval minute|hour|day|week|month, default day; 120 bars). Minute and hour charts include today's session, extended hours too (last_bar_session); day charts end at the last completed session. A forming bar is flagged (last_bar_is_partial) and current_price_basis says whether the price is a completed bar's close or the latest trade. SMA 20/50/200 and ATR 14 (Wilder) use the full fetched history; week52_high/low span 52 weeks of daily sessions (week52_window), not the bars drawn. rsi_14, macd, macd_signal, macd_hist and bb_position (the close against the Bollinger 20/2 bands: above_upper, upper_half, lower_half or below_lower) are read at the last completed bar (indicators_as_of) over the whole fetched history (indicators_bars_used); a reading the history is too short for is null and indicators_omitted says why. An unknown symbol is a 404 unknown_ticker. Call this when the user asks to see a chart; powers chart-emitting skills (TA Master, Trading Plan, Apex Equity Intel).

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `ticker` | path | string | yes |  |
| `interval` | query | string | no | minute\|hour\|day\|week\|month. One of `minute`, `hour`, `day`, `week`, `month`. Default `day`. |
| `bars` | query | integer | no | Default `120`. Range 20 to 500. |
| `indicators` | query | string | no | Comma-separated subset of {rsi,macd,bb}. Default `rsi,macd,bb`. |

## Example request

```bash
curl -H "Authorization: Bearer $WEALTHNOW_API_KEY" \
  "https://firm.wealthnow.io/api/v3/intel/chart/AAPL?interval=day&bars=120&indicators=rsi,macd"
```

## Example response

Live response to GET /api/v3/intel/chart/AAPL, 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:12.393055+00:00",
  "ticker": "AAPL",
  "interval": "day",
  "indicators": [
    "rsi",
    "macd"
  ],
  "bars_count": 120,
  "chart": {
    "format": "png",
    "media_type": "image/png",
    "data_b64": "iVBORw0KGgoAAAANSUhEUgAA…"
  },
  "data": {
    "first_bar_time": "2026-04-01T04:00:00Z",
    "last_bar_time": "2026-09-22T04:00:00Z",
    "data_freshness": "2026-09-22T04:00:00Z",
    "current_price": 339.75,
    "last_close": 339.75,
    "period_high": 345.34,
    "period_low": 245.7,
    "period_change_pct": 32.9069,
    "sma_20": 325.592,
    "sma_50": 321.0642,
    "sma_200": null,
    "atr_14": 7.141193,
    "recent_resistance": 339.64,
    "recent_support": 308.21,
    "week52_high": null,
    "week52_low": null,
    "pct_above_sma_50": 5.82,
    "pct_above_sma_200": null,
    "atr_multiple_below_recent_high": -0.0154
  },
  "render_envelope": {
    "title": "AAPL",
    "subtitle": "6M Daily",
    "price": "$339.75",
    "change": "+84.12",
    "changePercent": "+32.9%",
    "period": "6M",
    "indicators": [
      {
        "label": "SMA 20",
        "value": "$325.59",
        "color": "#6366f1"
      },
      {
        "label": "SMA 50",
        "value": "$321.06",
        "color": "#8b5cf6"
      }
    ],
    "chartType": "line",
    "xKey": "date",
    "data": [
      {
        "date": "Apr 1",
        "Close": 255.63
      },
      {
        "date": "Apr 8",
        "Close": 258.9
      }
    ],
    "lines": [
      {
        "dataKey": "Close",
        "name": "Close",
        "color": "#22c55e"
      },
      {
        "dataKey": "SMA20",
        "name": "SMA 20",
        "color": "#6366f1",
        "dashed": true
      }
    ]
  }
}
```

## 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. |
