Commit 9ed0ecc2 by rongjun

bug

parent 1872bc3d
...@@ -93,7 +93,7 @@ class biboxApi { ...@@ -93,7 +93,7 @@ class biboxApi {
let bids = totalOrderbook[symbol].bids || []; let bids = totalOrderbook[symbol].bids || [];
let updateData = []; let updateData = [];
let newCount = 0 let newCount = 0
if(result.data.type === 'SELL'){ if(response.data.type === 'SELL'){
const oldD = totalOrderbook[symbol]; const oldD = totalOrderbook[symbol];
let has = false; let has = false;
for(const a of oldD.asks){ for(const a of oldD.asks){
...@@ -117,7 +117,7 @@ class biboxApi { ...@@ -117,7 +117,7 @@ class biboxApi {
asks = mergeDepth(asks, updateData, true); asks = mergeDepth(asks, updateData, true);
console.log(updateData) console.log(updateData)
console.log(asks) console.log(asks)
}else if(result.data.type === 'BUY'){ }else if(response.data.type === 'BUY'){
const oldD = totalOrderbook[symbol]; const oldD = totalOrderbook[symbol];
let has = false; let has = false;
for(const a of oldD.bids){ for(const a of oldD.bids){
......
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