Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
by tommuhm: reqHandler response is undefined on ETIMEOUT error by bhnow: Add 'sideEffectType' options for Margin orders
Update to v2 endpoints: futuresBalance futuresAccount futuresPositionRisk Spot & Futures: Add usedWeight() statusCode() futuresLatency() orderCount() lastURL() getInfo() supporting x-mbx-used-weight x-mbx-order-count-1m hedgeMode option & testnet futures streams by nimanr
(Spot) FIX: aggTrades is a public request & does not require an api key to use
Increase Depth and depthCache WebSocket Update Speed to 100ms default by bmino:
(POSSIBLE BREAKING CHANGE) If you're writing depth data to a database, it's likely that only InfluxDB could keep up with this faster speed. If this update causes you problems, let us know by submitting an issue.
Upgrade to v3 REST endpoints by bmino
Futures WebSocket: add futuresLiquidationStream
Futures: futuresChart() complete websocket chart cache Futures: Fix for combined websockets promiseRequest added as public method
Fix for multiple account API keys by joelrich fix for futuresPrices()
This release fixes issues related to changes Binance made at an API level.
Futures: leverageBracket changed to USER_DATA (BREAKING) futuresPositionRisk now returns an array instead of an object.
(BREAKING) Futures orders timeInForce set to "post only" by default, in order to match the web interface. It used to allow limit orders, now you must specify GTC.
binance.futuresMiniTickerStream( console.log );
binance.futuresMiniTickerStream( 'BTCUSDT', console.log );
binance.futuresTickerStream( console.log );
binance.futuresTickerStream( 'BTCUSDT', console.log );
binance.futuresMarkPriceStream( console.log );
binance.futuresMarkPriceStream( 'BTCUSDT', console.log );
binance.futuresAggTradeStream( 'BTCUSDT', console.log );
binance.futuresSubscribe( 'btcusdt@kline_4h', console.log );
binance.futuresTerminate( 'btcusdt@kline_4h' );
console.log( binance.futuresSubscriptions() );
binance.websockets.bookTickers( console.log );
binance.websockets.bookTickers( 'BTCUSDT', console.log );
Remaining WebSockets will be coming later. Pull requests are welcome. Ciao!
Method to grab account lending data by JasonMcz. Add option to override api urls by abou7mied (testnet)
Add maxBorrowable, maxTransferable, mgAllOrders by kirosc