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