Perp Spreads History
perp_spreads_historyHistory of the price spread between two venues for one symbol, perp or spot, in 1h, 4h or 1d buckets: (A / B - 1) x 10,000 bps, positive when exchange_a is above exchange_b. Each leg is priced every minute (the book mid where the venue quotes a book, else its last price) and measured against the cross-venue median of the symbol's perp venues, so any pair (binance perp vs okx perp, bybit spot vs hyperliquid perp) comes from one history. Per bucket: open_bps, close_bps, avg_bps; high_bps_bound and low_bps_bound BOUND the extremes (each leg's own extreme can fall on a different minute), they are not observed values; samples_a / samples_b = minutes priced (at most 60 an hour); book_bps_a / book_bps_b = the leg's mean quoted bid-ask width, null without a book. Covers the perp symbols listed on at least two major venues (about 300) and their spot pairs, from 2026-05-30. A bucket where one leg was not priced has no row; nothing found returns empty rows and a note, never zeros. Default window: the last 7 days; at most 10,000 buckets a call. For the spreads right now use perp_spreads.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"exchange_a": "<exchange_a>",
"exchange_b": "<exchange_b>"
},
"name": "perp_spreads_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ISO 8601 or unix seconds, exclusive. Default: now. | |
| start | No | ISO 8601 ('2026-11-01', '2026-11-01T12:00:00Z') or unix seconds. Default: 7 days before end. | |
| symbol | Yes | Required. Base asset, e.g. 'BTC', 'ETH', 'SOL' (not 'BTCUSDT'). | |
| interval | No | Bucket size; 4h and 1d buckets start at 00:00 UTC. | 1h |
| market_a | No | Leg A's market. | perp |
| market_b | No | Leg B's market. | perp |
| exchange_a | Yes | Required. Leg A's venue, lower case, e.g. 'binance'. | |
| exchange_b | Yes | Required. Leg B's venue, lower case, e.g. 'okx'. |