Open bludnic opened 1 month ago
This feature is not yet supported by CCXT.
Instead of:
while (true) { try { const ticker = await exchange.watchTicker("BTC/USDT"); } catch (err) { // ... } }
Use subscription:
const handleTicker = (ticker) => { // ... } exchange.onTicker("BTC/USDT", handleTicker) exchange.offTicker("BTC/USDT", handleTicker)
Same approach for watchOrderbook and watchTrades.
watchOrderbook
watchTrades
Discussion: https://github.com/ccxt/ccxt/issues/15188 https://github.com/ccxt/ccxt/issues/9248#issuecomment-2423779762
This feature is not yet supported by CCXT.
Instead of:
Use subscription:
Same approach for
watchOrderbook
andwatchTrades
.Discussion: https://github.com/ccxt/ccxt/issues/15188 https://github.com/ccxt/ccxt/issues/9248#issuecomment-2423779762