This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Api1 = require('node-binance-api'); | |
const Api2 = require('node-binance-api'); | |
let singleton1 = Api1(); | |
let singleton2 = Api2(); | |
let instance1 = new Api1(); | |
let instance2= new Api1(); | |
const OPTION_NAME = 'recvWindow'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let api = function Binance() { | |
let self = this; | |
self.cache = 0; | |
return { | |
setCache: function(val) { | |
self.cache = val; | |
}, | |
getCache: function() { |