# Migrating to the 2026-11 API

> The November 2026 renames — ticker, dataset, mbo, prefixed routes — and exactly what to change in your client.

Source: https://getmarkethistory.com/docs/migrating-2026-11

On 2026-11-07 the API settled on one name per concept. Every old spelling now fails with a `400`
whose message names the new one, so nothing silently answers for a default. Most clients change a
few query parameters and nothing else.

## What to change

| Where                                      | Before                                            | Now                                                            |
| ------------------------------------------ | ------------------------------------------------- | -------------------------------------------------------------- |
| Instrument parameter (every route)         | `symbol=`, `symbols=`                             | `ticker=`, `tickers=`                                          |
| Dataset parameter (every route)            | `source=`, `sources=`                             | `dataset=`, `datasets=`                                        |
| `/v1/sources` response                     | `sources`, `l3`                                   | `datasets`, `mbo`                                              |
| `/v1/stats` response                       | `sources[].source`, `l3`, `totals.sources`        | `datasets[].dataset`, `mbo`, `totals.datasets`                 |
| `/v1/stats` book rows (`mbo`, `l2`)        | `source`, `path: "/v1/mbo/…"`                     | no `source` (it equalled `dataset`), `path: "/query/v1/mbo/…"` |
| `/v1/timeframes` response                  | `source`                                          | `dataset`                                                      |
| Multi-dataset bars rows                    | `source` column                                   | `dataset` column                                               |
| Discovery `route`, `instrument`, `symbols` | `/v1/…` (you added the prefix)                    | `/query/v1/…` (billed) or `/api/v1/…` (free), as is            |
| `/v1/symbols?limit=0`                      | no rows, only `count`                             | the maximum, like every route; use `count_only=1`              |
| `/v1/search?limit=0`                       | `400`                                             | the maximum (500)                                              |
| `/v1/corporate-actions`                    | every row at once, `limit` ignored                | pages of `limit` (default 10,000) with `cursor`                |
| Unknown parameter (a typo, `stat=`)        | ignored, `200`                                    | `400` `unknown_parameter`                                      |
| Path form plus a series in the query       | `/v1/bars/stocks/us/AAPL/1h?tf=1m` added a series | `400` `unknown_parameter`                                      |
| MCP tool arguments                         | `market`, `symbol`                                | `dataset`, `ticker`                                            |
| Python client                              | 0.11.x: `source=`, `symbol=`, `sources()`         | 0.12.1: `dataset=`, `ticker=`, `datasets()`                    |

Unchanged: the paths, the `{asset}/{region}` ids, the bars columns (a row still names its
instrument in `symbol`), the short aliases `tf`, `fmt`, `from`/`to`, `begin`/`until`, `day` and
`column`, the cursor tokens, billing and every header.

## The errors you will see

An old name is a `renamed_parameter`; anything else the endpoint does not read is an
`unknown_parameter`. Both are `400`, before any data is read, so they cost nothing:

```json
{ "error": "use ticker=, not symbol=", "code": "renamed_parameter", "request_id": "…" }
{ "error": "/v1/bars does not read stat=; accepted: dataset, datasets, ticker, …", "code": "unknown_parameter", "request_id": "…" }
```

A cache-busting `_=` is accepted everywhere. See [Errors](https://getmarkethistory.com/docs/errors) for the full list.

## Examples

Funding rates:

```diff
- curl "https://getmarkethistory.com/query/v1/funding?symbol=BTCUSDT&source=crypto/perps&start=2024-01-01" \
+ curl "https://getmarkethistory.com/query/v1/funding?ticker=BTCUSDT&dataset=crypto/perps&start=2024-01-01" \
    -H "Authorization: Bearer $MARKET_HISTORY_KEY"
```

The ticker index of a dataset, and only its count:

```diff
- curl "https://getmarkethistory.com/api/v1/symbols?source=options/us&timeframe=1m&prefix=SPY2&limit=0"
+ curl "https://getmarkethistory.com/api/v1/symbols?dataset=options/us&timeframe=1m&prefix=SPY2&count_only=1"
```

Following a discovery route — use it as is, no prefix to add:

```diff
  route = requests.get("https://getmarkethistory.com/api/v1/stocks/us/AAPL").json()["mbo"]["route"]
- url = "https://getmarkethistory.com/query" + route
+ url = "https://getmarkethistory.com" + route
```

Corporate actions now page like every data route: read `X-Next-Cursor` (or the JSON envelope's
`next_cursor`) and send it back as `cursor` until it is absent.

Python, after `pip install` of the [0.12.3 wheel](https://getmarkethistory.com/docs/quickstart#4-into-pandas):

```diff
- mh.bars(source="stocks/us", ticker="AAPL", timeframe="1h")
- mh.funding(symbol="BTCUSDT", start="2024-01-01")
- mh.sources()
+ mh.bars(dataset="stocks/us", ticker="AAPL", timeframe="1h")
+ mh.funding(ticker="BTCUSDT", start="2024-01-01")
+ mh.datasets()
```

Positional calls (`mh.bars("stocks/us", "AAPL", "1h")`) work unchanged.
