curl --request GET \
--url https://api.0xarchive.io/v1/trades/{symbol}/cursor \
--header 'X-API-Key: <api-key>'{
"success": true,
"data": [],
"meta": {
"count": 100,
"next_cursor": "1704067200123_456789",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}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.
curl --request GET \
--url https://api.0xarchive.io/v1/trades/{symbol}/cursor \
--header 'X-API-Key: <api-key>'{
"success": true,
"data": [],
"meta": {
"count": 100,
"next_cursor": "1704067200123_456789",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}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.
API key for authentication. Get yours at https://www.0xarchive.io/dashboard/
Trading pair symbol (e.g., BTC, ETH, SOL)
"BTC"
Start timestamp in Unix milliseconds. Defaults to 24h ago.
End timestamp in Unix milliseconds. Defaults to now.
Cursor for pagination (use the value from previous response's next_cursor). The cursor is an opaque string that should be passed as-is.
Maximum number of results (default: 100, max: 1000)
x <= 1000List of trades with cursor for next page
true
Hide child attributes
Trading pair symbol
"BTC"
Trading pair symbol (deprecated, use symbol instead)
"BTC"
Trade side: 'B' (buy) or 'A' (sell/ask)
A, B "B"
Execution price
"42150.50"
Trade size
"0.5"
Execution timestamp (UTC)
"2025-01-21T10:30:45.123Z"
Blockchain transaction hash
Unique trade ID
Associated order ID
True if taker (crossed the spread), false if maker
Trading fee amount
Fee denomination (e.g., USDC)
Realized PnL if closing a position
Position direction (e.g., 'Open Long', 'Close Short', 'Long > Short')
Position size before this trade
User's wallet address
Maker's wallet address (the resting order)
Taker's wallet address (crossed the spread)
Builder address that routed this order. Present only when the order was placed through a builder.
Builder fee charged on this fill, paid to the builder (in quote currency, typically USDC). Present only when builder_address is set.
HIP-3 deployer fee share on this fill (in quote currency). Negative for the maker side (rebate), positive for the taker side. Present only on HIP-3 fills.
Priority fee burned in HYPE (not USDC) for write priority on the Hyperliquid validator queue. Independent of builder_fee and deployer_fee — paid to the network, not to a builder or deployer. Present only when the order paid for priority.
Client order ID
TWAP execution ID
Was this page helpful?