cryptofeed icon indicating copy to clipboard operation
cryptofeed copied to clipboard

Inconsistent TICKER implementations

Open L1nkus opened this issue 2 years ago • 2 comments

TICKER sometimes means 'bookTicker' (real-time best bid and ask updates), but sometimes 'ticker' (slow, usualy ever second updates with a bunch of extra info like volume in last 24h).

E.g. on binance it correponds to 'bookTicker':

    websocket_channels = {
    L2_BOOK: 'depth',
    TRADES: 'aggTrade',
    TICKER: 'bookTicker',
    CANDLES: 'kline_',
    BALANCES: BALANCES,
    ORDER_INFO: ORDER_INFO
}

But on gateio to 'ticker', despite that the 'bookTicker' endpoint is also available on gateio:


websocket_channels = {
     L2_BOOK: 'spot.order_book_update',
     TRADES: 'spot.trades',
     TICKER: 'spot.tickers',
     CANDLES: 'spot.candlesticks'
}

Are there plans to make TICKER, or to maybe have L1_BOOK correspond to 'bookTicker', while TICKER to 'ticker' endpoints?

L1nkus avatar Dec 07 '22 22:12 L1nkus

probably will just remove ticker - the value it gives seems marginal and too many inconsistencies like these

bmoscon avatar Dec 09 '22 14:12 bmoscon

Thank for the response. Though hmmm, idk if I'd call it marginal. For example on Binance it's the only way to get real-time updates along trades, but through just trades you can't obtain quantities on best levels

L1nkus avatar Dec 09 '22 15:12 L1nkus