Commit 5c0c677b by zihan

调整合并部分

parent 4d029083
...@@ -365,7 +365,7 @@ class biboxApi { ...@@ -365,7 +365,7 @@ class biboxApi {
this._request("POST","/v1/orderpending","orderpending/pendingHistoryList",params,callback); this._request("POST","/v1/orderpending","orderpending/pendingHistoryList",params,callback);
} }
getOrderbook(symbol,depth,bindIP,callback){ getOrderbook(symbol,depth,bindIP,callback){
this._publicRequest("/v1/open/orders",{"symbol":symbol,"limit":20},callback,bindIP); this._publicRequest("/v1/open/orders",{"symbol":symbol,"limit":25},callback,bindIP);
} }
} }
......
...@@ -20,6 +20,9 @@ const ips = getLocalIpv4s(); ...@@ -20,6 +20,9 @@ const ips = getLocalIpv4s();
function mergeDepth(oldDepth, updateDepth, isAsk) { function mergeDepth(oldDepth, updateDepth, isAsk) {
if(!updateDepth.length){
return oldDepth;
}
var i = [] var i = []
, r = { , r = {
a: 0, a: 0,
......
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