Releases: carlosmiei/node-binance-api
Stable Release
Add assetDetail and tradeFee functions
const Binance = require('node-binance-api');
const binance = new Binance().options("options.json");
binance.useServerTime( () => {
binance.assetDetail((error, response) => {
console.log(response);
});
binance.tradeFee((error, response) => {
console.log(response);
}, "BNBBTC");
});
Stable Release
(BREAKING) Improve Instantiation w/Multiple Instances: (Thanks bmino!!)
Creates separate instances of the internal objects.
When Using Singletons:
Allows internal objects such as depthCache to be shared between multiple require() calls
const binance = require('node-binance-api')().options({
APIKEY: '<key>',
APISECRET: '<secret>'
});
Instantiating Multiple Instances
const Binance = require('node-binance-api');
const instance1 = new Binance().options({
// ...
});
const instance2 = new Binance().options({
// ...
});
Stable Release
(BREAKING) Allow instances and singletons for constructor (Thanks bmino!!)
const binance = require('node-binance-api').options({
APIKEY: '<key>',
APISECRET: '<secret>'
});
Instantiating Multiple Instances
const Binance = require('node-binance-api');
const instance1 = new Binance().options({
// ...
});
const instance2 = new Binance().options({
// ...
});
Stable Release
Expose order() function to public API (Thanks ManuCart)
Stable Release
Fix for Duplicate Deletion Issue (Slow connections)
Fixes issue: binance-exchange #148 by davewang
binance-exchange#148
Stable Release
Fixed unit testing (Singleton VS New Object)
Stable Release
⚠ Breaking Changes: ⚠
🔧 Singleton VS New Object: (Thanks usama33!)
The API is now instantiated like this:
const Binance = require('node-binance-api');
const binance = new Binance().options({
APIKEY: "",
APISECRET: "",
useServerTime: true
});
or this:
const Binance = require('node-binance-api');
const binance = new Binance().options("options.json");
🔧 default recvWindow changed to 5000 as recommended by Binance
🔧 lastEventUpdateTime added to the response of depthCache callback, as third parameter. Thanks yanislk!
Stable Release
Fix depthCache & depthHandler logic (Thank you keith1024 + learnathoner)
(BREAKING) Rename trades
to aggTrades
(Thank you dmitriz)
WebSocket trades() function now conforms to Binance specification
Stable Release
15 commits by dmitriz 🏆
Refactoring, improving consistency, reducing redundancies and making code cleaner
Stable Release
28 commits by dmzoneill 🏆
many improvements including documentation, unit testing, proxy support, and debugging