Commit 06c8f7bb by zihan

bug fixed

parent 99595ca7
......@@ -56,7 +56,7 @@ class KucoinCollector extends BaseCollector{
console.error("subscribe error");
console.error(error);
}else{
callback(result.asks.slice(0,depth), result.bids.slice(0,depth), result.symbol, result.timestamp);
callback(result.asks.slice(0,depth).map((item)=>[item[0],item[1]]), result.bids.slice(0,depth).map((item)=>[item[0],item[1]]), result.symbol, result.timestamp);
}
}
let buffer = [];
......
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