Skip to content

Releases: ccxt/node-binance-api

Development Release

09 Jun 02:06
6446b57

Choose a tag to compare

Development Release Pre-release
Pre-release

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

Stable Release

29 May 09:46
63de0c9

Choose a tag to compare

(Spot) FIX: aggTrades is a public request & does not require an api key to use

Stable Release

11 May 23:27
798e28a

Choose a tag to compare

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

Stable Release

08 May 10:50
d09a7fb

Choose a tag to compare

Futures: futuresChart() complete websocket chart cache
Futures: Fix for combined websockets
promiseRequest added as public method

Stable Release

07 May 22:52
21da076

Choose a tag to compare

Fix for multiple account API keys by joelrich
fix for futuresPrices()

Stable Release

07 May 12:17
5b3de8f

Choose a tag to compare

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.

Significant Release

05 May 02:08
5478c90

Choose a tag to compare

(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.

Futures WebSocket Streams

Futures miniTicker stream for all symbols

binance.futuresMiniTickerStream( console.log );

Futures miniTicker stream for a symbol

binance.futuresMiniTickerStream( 'BTCUSDT', console.log );

Futures prevDay ticker stream for all symbols

binance.futuresTickerStream( console.log );

Futures prevDay ticker stream for a symbol

binance.futuresTickerStream( 'BTCUSDT', console.log );

Futures mark price stream for all symbols

binance.futuresMarkPriceStream( console.log );

Futures mark price stream for a symbol

binance.futuresMarkPriceStream( 'BTCUSDT', console.log );

Futures aggregate trade stream for a symbol

binance.futuresAggTradeStream( 'BTCUSDT', console.log );

Connect to a custom endpoint. Easier shortcut functions will come later

binance.futuresSubscribe( 'btcusdt@kline_4h', console.log );

Terminate an existing socket

binance.futuresTerminate( 'btcusdt@kline_4h' );

Return active sockets and subscriptions

console.log( binance.futuresSubscriptions() );

Spot Trading: bookTickers stream includes the bid/ask price & amount, for all symbols

binance.websockets.bookTickers( console.log );

Spot Trading: bookTickers stream includes the bid/ask price & amount, for a symbol

binance.websockets.bookTickers( 'BTCUSDT', console.log );

Remaining WebSockets will be coming later. Pull requests are welcome. Ciao!

Stable Release

07 Apr 13:07
ad3cc72

Choose a tag to compare

Method to grab account lending data by JasonMcz.
Add option to override api urls by abou7mied (testnet)

Stable Release

29 Mar 17:58
9624995

Choose a tag to compare

Add maxBorrowable, maxTransferable, mgAllOrders by kirosc

Stable Release

26 Mar 01:02
28f16d5

Choose a tag to compare

Margin account details by jmacioszek
New constructor:

const Binance = require('node-binance-api');
const binance = new Binance({
  APIKEY: '<key>',
  APISECRET: '<secret>'
});

previous constructor still works fine with .options({})