Skip to content

Stable Release

Compare
Choose a tag to compare
@jaggedsoft jaggedsoft released this 15 Jul 05:51
· 447 commits to master since this release
ff7ee2a

(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({
  // ...
});