Commit 13669fb3 by rongjun

bug

parent 8591802c
...@@ -59,14 +59,14 @@ class BiboxCollector extends BaseCollector{ ...@@ -59,14 +59,14 @@ class BiboxCollector extends BaseCollector{
// }) // })
} }
_fetchDepthByRest(symbols,depth,callback){ _fetchDepthByRest(symbols,depth,callback){
const restSymbols = []; const restSymbols = symbols;
for(let symbol of symbols){ // for(let symbol of symbols){
const midCurrency = symbol.split("-")[0]; // const midCurrency = symbol.split("-")[0];
if(restCurrencies.includes(midCurrency)){ // if(restCurrencies.includes(midCurrency)){
restSymbols.push(symbol); // restSymbols.push(symbol);
} // }
} // }
const perInterval = 500; const perInterval = 6;
const totalInterval = perInterval * restSymbols.length+50; const totalInterval = perInterval * restSymbols.length+50;
setInterval(()=>{ setInterval(()=>{
const sortedSymbols = restSymbols.sort(()=>{ const sortedSymbols = restSymbols.sort(()=>{
......
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