Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

v0.23.0

Compare
Choose a tag to compare
@bmancini55 bmancini55 released this 18 Apr 20:10
· 622 commits to master since this release
  • 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}`);
    });
    
  • binance

    • increased default watcher duration to 5minutes.
    • now support constructor argument reconnectIntervalMs to customize watcher timeout