Legacy

Get trades with cursor pagination (Deprecated)

Deprecated: Use /v1/hyperliquid/trades/{symbol} or /v1/lighter/trades/{symbol} instead.

Get historical trades using cursor-based pagination. This is the same as /v1/trades/{symbol} with cursor pagination (which is now the default). This endpoint is maintained for backwards compatibility and explicit cursor-only usage.

get/v1/trades/{symbol}/cursor

Request

  • Base URL: https://api.0xarchive.io
  • URL: https://api.0xarchive.io/v1/trades/{symbol}/cursor
  • Auth: API key in header X-API-Key

Path parameters

symbolstring required
Example:BTC

Trading pair symbol (e.g., BTC, ETH, SOL)

Query parameters

startinteger

Start timestamp in Unix milliseconds. Defaults to 24h ago.

endinteger

End timestamp in Unix milliseconds. Defaults to now.

cursorstring

Cursor for pagination (use the value from previous response's next_cursor). The cursor is an opaque string that should be passed as-is.

limitinteger

Maximum number of results (default: 100, max: 1000)

Response

List of trades with cursor for next page

successboolean

Example response

{
  "success": true,
  "data": [
    {
      "symbol": "BTC",
      "coin": "BTC",
      "side": "B",
      "price": "42150.50",
      "size": "0.5",
      "timestamp": "2025-01-21T10:30:45.123Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.