where
* biz can be spot, futures_btc or futures_usdt,
* type can be deals, orderbooks, candlesticks_*(for spot), or trades, orderbooks, candlesticks_*, mark_prices, funding_updates, funding_applies(for futures).
SPOT deals
timestamp, dealid, price, amount, side
where amount is in stock, and side is 1:sell and 2:buy.
Example:
1577830575.771538, 215782675, 0.032900, 500.000000, 1
1577824963.972980, 215777858, 0.033000, 79.642000, 1
1577824851.057307, 215777760, 0.032900, 439.000000, 2
1577824715.650117, 215777638, 0.032800, 164.646151, 2
SPOT orderbooks
One log file per hour.
Each log file begins with full depth snapshot (action=set).
The following updates are merged in 100ms (action=take/make).
timestamp, side, action, price, amount, begin-id, merged=count
where side is 1:sell and 2:buy; amount is in stock; action is set, take, make.
Example:
1626163200, 2, set,10000,0.0865400000000000,3922620466,0
1626163200, 2, set,20000,0.9606000000000000,3922620466,0
1626163200.2, 2, take,33173.2500000000,0.0017000000,3922620467,1
1626163200.3, 2, take,33115.6700000000,0.0010000000,3922620468,1
1626163200.3, 1, make,33185.9000000000,0.0019000000,3922620469,1
FUTURES trades
timestamp, dealid, price, size
where size is in Count, and positive for long and negative for short, which is same with order size.
Example:
1577836738.742477, 5427, 41.310000, 2
1577836676.677672, 5426, 41.310000, 2
1577836559.596270, 5425, 41.330000, 1
1577836472.507152, 5424, 41.220000, -1
FUTURES orderbooks
One log file per hour.
Each log file begins with full depth snapshot (action=set).
The following updates are merged in 100ms (action=take/make).
timestamp, action, price, size, begin-id, merged=count
where action is set, take, make.
Example:
1626166800,set,2656.1,2000,6440357732,0
1626166800,set,3500.0,1000,6440357732,0
1626166800.1,take,33252.6,-8,6440357733,1
1626166800.1,take,33202.3,8120,6440357734,1
1626166800.1,take,33215.4,-3608,6440357735,1
FUTURES funding_updates
timestamp, funding_rate,interest_rate,bid_diff,ask_diff,mark_price,index_price,update_count
where
* funding_rate is the indicative funding rate for next period,
* bid_diff and ask_diff are the current impact price diffs under contract.funding_impact_value,
* update_count is the update count in current period.
Example:
1625097360,0.0001,0.0003,0,36.99,35036.29,35036.32,476
1625097420,0.0001,0.0003,0,35.4,35044.5,35044.52,477
1625097480,0.0001,0.0003,0,33.07,35053.87,35053.89,478
1625097540,0.0001,0.0003,0,42.32,35063.12,35063.13,479