This repository was archived by the owner on Sep 9, 2023. It is now read-only.
v0.23.0
-
all market
- all events (
trade
,ticker
, etc) now include the subscribing market as the second argument of the event handler. This functionality allows easier linking of events to the underlying market that was used to subscribe to the events. For example:
let market = { id: 'XBT7D_D95', base: 'BTC', quote: 'BTC', }; bitmex.subscribeLevel2Updates(market) bitmex.on('l2snapshot', (snap, market) => { console.log(`snapshot for ${market.id}`); }); bitmex.on('l2update', (upd, market) => { console.log(`update for ${market.id}`); });
- all events (
-
binance
- increased default watcher duration to 5minutes.
- now support constructor argument
reconnectIntervalMs
to customize watcher timeout