Closed davidting0918 closed 5 months ago
Sync okx, binance, bybit, kucoin, bitget, htx, gateioticker output format
okx
binance
bybit
kucoin
bitget
htx
gateio
get_tickers
{ "market": "spot" // must be in "spot", "perp", "futures". If `null` will return all tickers on the exchange }
{ "BTC/USDT:USDT" : { "timestamp": 1630000000000, "instrument_id": "BTC/USDT:USDT", "open_time": 1630000000000, "close_time": 1630000000000, "open": 10000.0, "high": 11000.0, "low": 9000.0, "last": 10000.0, "base_volume": 1000.0, "quote_volume": 10000000.0, "price_change": 0.0, // must in quote currency "price_change_percent": 0.01, // must in percentage, if 0.01 means 1%, "raw_data": {}, }, // many instrument ticker }
get_ticker
{ "instrument_id": "BTC/USDT:USDT" // must be instrument_id in exchange's exchange info }
{ "BTC/USDT:USDT" : { "timestamp": 1630000000000, "instrument_id": "BTC/USDT:USDT", "open_time": 1630000000000, "close_time": 1630000000000, "open": 10000.0, "high": 11000.0, "low": 9000.0, "last": 10000.0, "base_volume": 1000.0, "quote_volume": 10000000.0, "price_change": 0.0, // must in quote currency "price_change_percent": 0.01, // must in percentage, if 0.01 means 1%, "raw_data": {}, } }
Issue purpose:
Sync
okx
,binance
,bybit
,kucoin
,bitget
,htx
,gateio
ticker output formatSync function
get_tickers
get_ticker