Legacy

Get trades (Deprecated)

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

Get historical trades (fills) for a coin within a time range. Includes full execution details like fees, PnL, and position direction.

Pagination: Use the cursor parameter with the timestamp from the previous response's next_cursor for efficient pagination through large datasets.

get/v1/trades/{symbol}

Request

  • Base URL: https://api.0xarchive.io
  • URL: https://api.0xarchive.io/v1/trades/{symbol}
  • 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

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