> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshoot missing history and history limits

> Why a 0xArchive history request returns fewer rows or misses older data: plan history windows, first served dates, Lighter finalization, and coverage starts.

Find out why a history request came back shorter than the window you asked for, and get the rows you need. Four things decide how far back and how far forward a request reaches: your plan's history window, the first served time of the data type, the symbol's own coverage start, and, for Lighter trades, the finalization boundary.

## Symptoms

* The response holds fewer rows than the window should, or none.
* The oldest row is later than your `start`, or the newest row is earlier than your `end`.
* The request fails with `403` `historical_depth_exceeded` or `historical_range_exceeded`, or `400` `range_before_coverage`.
* A Free request that reaches today fails with `403` `forbidden` and `reason: "today_needs_build"`.

## Match the response to the cause

| What you see | Cause and fix |
| - | - |
| `403` `historical_depth_exceeded` | The window reaches further back than your plan's history window. Free serves the most recent rolling 30 days. Move the window forward, or use Build or above for the full retained archive |
| `403` `historical_range_exceeded` | The span from `start` to `end` is longer than your plan allows in one request. Free allows at most 30 days. Split the range into smaller windows |
| `400` `range_before_coverage` | The whole range ends before the data type's first served time. Move the window to `available_from` in [capabilities](https://docs.0xarchive.io/capabilities.md) or later |
| Empty `data` with `meta.coverage_from` | The window ends before this symbol's coverage starts. Start at `meta.coverage_from` |
| `meta.clamped_to` earlier than your `end` | Lighter trade history stops at `meta.finalized_through`. Read newer rows from the `/recent` route (Build and above, or Free in an account's first 30 days) |
| `403` `forbidden` with `reason: "today_needs_build"` | After an account's first 30 days, Free serves through yesterday (UTC). The body's `data_ends_on` is the last day served: end the window at `data_ends_on`T23:59:59.999Z, or use Build. A request with no `end`, and the `/recent` routes, read today |

## Plan history windows

Free serves the most recent rolling 30 days, and one request or replay spans at most 30 days. Build, Pro, Scale and Enterprise keep the full retained archive, so the first served date of each dataset sets how far back a request reaches.

From November 23, 2026, after an account's first 30 days, Free data runs through yesterday (UTC): today's data and live WebSocket streams need Build. An account in its first 30 days keeps today's data until its 30th day. Free keeps its 30-day history, its 30-day span and every route, and replays of past days stay on Free. [Free tier](https://docs.0xarchive.io/free-tier.md) and [Rate limits](https://docs.0xarchive.io/rate-limits.md) list every plan's limits.

## First served dates

Every venue and data type has a first served time. `GET /v1/capabilities` returns it as `available_from`, with `page_limit` and the accepted `intervals`. The route is public and needs no key:

```bash theme={"theme":"github-dark"}
curl -sS "https://api.0xarchive.io/v1/capabilities" \
  | jq '.data[] | select(.venue == "hyperliquid" and .datatype == "candles") | {available_from, page_limit, intervals, notes}'
```

```json theme={"theme":"github-dark"}
{
  "available_from": "2025-03-22T12:00:00.000Z",
  "page_limit": 10000,
  "intervals": ["1m", "5m", "15m", "30m", "1h", "4h", "1d", "1w"],
  "notes": "Older rows exist but are not served; available_from is a policy floor."
}
```

A range that ends before that floor fails with `range_before_coverage`, and the message names the floor. A range that straddles it is served from that point:

```json theme={"theme":"github-dark"}
{
  "code": 400,
  "error": "Hyperliquid candle data is only available from 2025-03-22 12:00 UTC onward, and the requested range ends before then. A range that starts earlier and ends after it is served from that date. Candles before 2025-03-22 12:00 UTC are derived from incomplete fill history and are not served.",
  "error_code": "range_before_coverage",
  "request_id": "d6296564-f57a-4240-a2df-12b4855de62f",
  "success": false
}
```

## Symbol coverage starts

A symbol listed after its venue's first served date starts later. A window that ends before that start returns `200` with an empty `data` array, and `meta` says where coverage begins:

```json theme={"theme":"github-dark"}
{
  "success": true,
  "data": [],
  "meta": {
    "count": 0,
    "coverage_from": "2026-01-12T00:00:00Z",
    "notice": "No data in the requested range. HIP-3 trades coverage for km:US500 begins 2026-01-12 (UTC); the requested window ends before coverage starts. See /v1/symbols for per-symbol coverage dates.",
    "has_more": false,
    "symbol": "km:US500",
    "venue": "hip3"
  }
}
```

An empty page with `coverage_from` is not a data gap. Move `start` to `coverage_from`, or check per-symbol dates on `/v1/symbols`.

## Lighter finalization

Lighter and Lighter on Robinhood Chain trade history is canonical up to `meta.finalized_through`. When `end` is later, the response clamps the range and says so with `meta.requested_end` and `meta.clamped_to`:

```bash theme={"theme":"github-dark"}
END=$(( $(date -u +%s) / 86400 * 86400 * 1000 - 1 ))   # last millisecond of yesterday (UTC); Free serves through yesterday
START=$(( END - 10 * 86400 * 1000 ))                  # ten days earlier

curl -sS "https://api.0xarchive.io/v1/lighter/trades/BTC?start=$START&end=$END&limit=2" \
  -H "X-API-Key: $OXARCHIVE_API_KEY" \
  -H "0xArchive-Version: 2026-10-01" \
  | jq '.meta | {finalized_through, requested_end, clamped_to, has_more}'
```

```json theme={"theme":"github-dark"}
{
  "finalized_through": "2026-11-18T23:59:59.999Z",
  "requested_end": "2026-11-23T23:59:59.999Z",
  "clamped_to": "2026-11-18T23:59:59.999Z",
  "has_more": true
}
```

The rows after `finalized_through` are on `/v1/lighter/trades/{symbol}/recent` (or `/v1/rh-lighter/trades/{symbol}/recent`), marked `source: "ws"` and counted by `meta.preliminary_row_count`. Keep them apart from finalized rows. [Trades](https://docs.0xarchive.io/rest-api/trades.md) covers both tiers.

## Compared with Hyperliquid's native limits

If you are moving from the Hyperliquid info endpoint, its own caps explain many short histories. The [Hyperliquid info endpoint documentation](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint) states:

| Native request | Native limit |
| - | - |
| `candleSnapshot` | Only the most recent 5,000 candles are available |
| `userFillsByTime` | At most 2,000 fills per response, and only the 10,000 most recent fills are available |
| Requests that take a time range | 500 elements or distinct blocks per response; page with the last returned timestamp |

0xArchive serves Hyperliquid candles from 2025-03-22 12:00 UTC at up to 10,000 per page, and Hyperliquid trades from 2023-04-15 03:31 UTC at up to 50,000 rows per page, each paged with `meta.next_cursor`. [Migrate from a native venue API](https://docs.0xarchive.io/guides/migrate-from-native-api.md) moves one read across.

## Verify the fix

* The first row is at or after `start` (or at `available_from` or `meta.coverage_from`), and the last page has `meta.has_more` set to `false`.
* No `meta.clamped_to` is present, or you read the newer rows from `/recent` on purpose.
* The response status is `200`, and you logged `meta.request_id` for each page.

## Related

* [Capabilities](https://docs.0xarchive.io/capabilities.md): first served times and page limits per venue and data type
* [Errors](https://docs.0xarchive.io/errors.md): every `error_code` and what to do next
* [Venue coverage](https://docs.0xarchive.io/venue-coverage.md): which markets each venue family serves
* [Tell a data gap from a request problem](https://docs.0xarchive.io/troubleshooting/gaps.md): when the window is right and rows are still missing

## Next step

**Page through the full window**

Once the window is inside your plan and the data type's coverage, follow the cursor until the window is done.

[Fix pagination](https://docs.0xarchive.io/troubleshooting/pagination.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.