Commit 1837a87f by zihan

尝试多开几个ws

parent de100fd7
......@@ -54,12 +54,12 @@ class biboxApi {
console.log("fetch ws token error");
this.subscribeSymbols(symbols, depth, callback);
}else{
// for(let i=0;i<2;i++){
for(let i=0;i<2;i++){
const ip = IPs[0];
// setTimeout(()=>{
setTimeout(()=>{
this._openWs(result, symbols, depth,ip, callback);
// },i*10000);
// }
},i*10000);
}
}
});
}
......
......@@ -43,7 +43,7 @@ function testCollector(){
// const strategy3 = new BiboxStrategy3(collector);
// strategy3.run();
}
// testCollector();
testCollector();
function printCurrency(){
const currentArray = [,'ETH','BTC','LTC','BCH','USDT','USD','RMB',"RCN","WINGS","TRX","LEND","CMT","POWR","HSR","GAS","RDN","TNT","OAX"
......@@ -121,7 +121,7 @@ function printCurrency(){
}
})
}
printCurrency()
// printCurrency()
function testOrder(){
const order = new Order();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment