Skip to content

Instantly share code, notes, and snippets.

View bmino's full-sized avatar

Brandon bmino

  • SharkByte
  • Charleston, SC
  • X @bmino_
View GitHub Profile
@bmino
bmino / apiInstantiationTest.js
Last active July 10, 2018 03:03
Node Binance Api Instantiation Test
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';
@bmino
bmino / ModuleExample.js
Last active June 26, 2018 22:56
Create Instances and Singletons
let api = function Binance() {
let self = this;
self.cache = 0;
return {
setCache: function(val) {
self.cache = val;
},
getCache: function() {