ccxt icon indicating copy to clipboard operation
ccxt copied to clipboard

Expose a callback function while the orderbook changes while watching the orderbook, ticker, etc with ccxt.pro

Open zhangxf55 opened this issue 2 years ago • 2 comments

  • Binance market symbols do not follow naming conventions strictly. For example, Most of the exchanges name a swap trading symbol as BTC/USDT:USDT, but binance names a swap(actually, binance call swap 'future') trading symbol as BTC/USDT, without the suffix :USDT
  • While watching an orderbook(or ticker etc...) with ccxt.pro, why not expose an callback function while the orderbook changed? This will improve scalability a lot, while we can write the data into a third party storage/cache, such as redis, mongo or mysql for further analysis.

zhangxf55 avatar Oct 04 '22 12:10 zhangxf55

Hello @zhangxf55

Binance market symbols do not follow naming conventions strictly. For example, Most of the exchanges name a swap trading symbol as BTC/USDT:USDT, but binance names a swap(actually, binance call swap 'future') trading symbol as BTC/USDT, without the suffix :USDT

Yes binance is one of the only exchanges that does not have yet symbols unified; we're working on it hopefully will be fixed soon

While watching an orderbook(or ticker etc...) with ccxt.pro, why not expose an callback function while the orderbook changed?

Thanks for your suggestion; we will take it into consideration

carlosmiei avatar Oct 04 '22 15:10 carlosmiei

Yes, we plan to implement subscribe/unsubscribe event-driver approach in near future.

ttodua avatar Oct 22 '22 09:10 ttodua

Any updates?

goznauk avatar Feb 04 '23 07:02 goznauk