# Crypto markets

`GET https://firm.wealthnow.io/api/crypto/{ticker}`

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

Live crypto quote from the market-data feed (real-time entitlement): last-trade price, change and volume over the last 24 hours (rolling, from one-minute bars; null with rolling_24h_reason when those cannot be read), the since-00:00-UTC change/volume as change_pct_utc_day / volume_utc_day, volumes in the base asset (volume_unit), day + prev-day OHLC, optional last-7 daily bars, honest as_of. as_of, price_age_seconds and is_stale label the last trade. is_stale is true when it is more than 15 minutes old (the same window as /api/v3/fundamentals/price_snapshot?asset_class=crypto) or the time is missing. The price is still returned. PRIMARY tool for 'what is BTC at?'. Accepts BTC/BTCUSD/X:BTCUSD plus a vs currency (e.g. EUR); unknown symbols return a structured 404.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `ticker` | path | string | yes |  |
| `vs` | query | string | no | Quote currency (e.g. EUR, BTC) Default `USD`. |
| `series` | query | boolean | no | Include last-7 daily bars. Default `true`. |
| `asset_class` | query | string | no | Optional: this tool serves crypto only, so crypto is the one value. One of `crypto`. |

## Example request

```bash
curl -H "Authorization: Bearer $WEALTHNOW_API_KEY" \
  "https://firm.wealthnow.io/api/crypto/BTC?series=false"
```

## Example response

Live response to GET /api/crypto/BTC?series=false, 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:17.284033+00:00",
  "ticker": "BTC",
  "pair": "X:BTCUSD",
  "vs": "USD",
  "quote": {
    "price": 87125,
    "as_of_ts": "2026-09-23T05:00:00+00:00",
    "change_pct_24h": 1.075372354711037,
    "change_24h": 926.9499999999971,
    "change_basis": "vs_prev_utc_day_close",
    "volume_24h": 2006.02328534,
    "volume_basis": "utc_day",
    "market_cap": null
  },
  "day": {
    "open": 86201.35,
    "high": 87379.7,
    "low": 86108,
    "close": 87159.93,
    "volume": 2006.02328534,
    "vwap": 86697.8829
  },
  "prev_day": {
    "open": 86594.94,
    "high": 86752,
    "low": 85059.28,
    "close": 86198.05,
    "volume": 16565.86870454,
    "vwap": 86060.7417
  },
  "last_trade": {
    "price": 87125,
    "size": 3e-8,
    "exchange": 1,
    "ts": "2026-09-23T05:00:17.057000+00:00"
  },
  "source": "vendor:market-data",
  "as_of": "2026-09-23T05:00:00+00:00"
}
```

## 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 | `not_found` | No such resource. Not billed. |
| 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. |
