Commit 1837a87f by zihan

尝试多开几个ws

parent de100fd7
...@@ -54,12 +54,12 @@ class biboxApi { ...@@ -54,12 +54,12 @@ class biboxApi {
console.log("fetch ws token error"); console.log("fetch ws token error");
this.subscribeSymbols(symbols, depth, callback); this.subscribeSymbols(symbols, depth, callback);
}else{ }else{
// for(let i=0;i<2;i++){ for(let i=0;i<2;i++){
const ip = IPs[0]; const ip = IPs[0];
// setTimeout(()=>{ setTimeout(()=>{
this._openWs(result, symbols, depth,ip, callback); this._openWs(result, symbols, depth,ip, callback);
// },i*10000); },i*10000);
// } }
} }
}); });
} }
......
...@@ -43,7 +43,7 @@ function testCollector(){ ...@@ -43,7 +43,7 @@ function testCollector(){
// const strategy3 = new BiboxStrategy3(collector); // const strategy3 = new BiboxStrategy3(collector);
// strategy3.run(); // strategy3.run();
} }
// testCollector(); testCollector();
function printCurrency(){ function printCurrency(){
const currentArray = [,'ETH','BTC','LTC','BCH','USDT','USD','RMB',"RCN","WINGS","TRX","LEND","CMT","POWR","HSR","GAS","RDN","TNT","OAX" 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(){ ...@@ -121,7 +121,7 @@ function printCurrency(){
} }
}) })
} }
printCurrency() // printCurrency()
function testOrder(){ function testOrder(){
const order = new Order(); 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