Data Types
Normalized schemas for trade, book_change, book_snapshot and more
trade
{
"type": "trade",
"symbol": "BTCUSDT",
"exchange": "binance",
"id": "3445374963",
"price": 61130.98,
"amount": 0.00145,
"side": "sell",
"timestamp": "2024-02-29T23:59:59.998Z",
"localTimestamp": "2024-03-01T00:00:00.001Z"
}{
type: 'trade'
symbol: string // instrument symbol as provided by exchange
exchange: string // exchange id
id: string | undefined // trade id if provided by exchange
price: number // trade price as provided by exchange
amount: number // trade amount as provided by exchange
side: 'buy' | 'sell' | 'unknown' // liquidity taker side (aggressor)
timestamp: string // trade timestamp provided by exchange (ISO 8601 format)
localTimestamp: string // message arrival timestamp (ISO 8601 format)
}book_change
book_ticker
derivative_ticker
book_snapshot_{number_of_levels}_{snapshot_interval}{time_unit}
Examples:
Available time units:
liquidation
option_summary
trade_bar_{aggregation_interval}{suffix}
Examples:
disconnect
error
Last updated
Was this helpful?