Commit a331540a by ken

try

parent 20637710
......@@ -164,8 +164,8 @@ function _handleDepthData(symbol, data, source) {
symbol = symbol.toUpperCase();
const lastEventTime = lastEventTimeMap[symbol] || 0;
const lastLastEventTime = lastLastEventTimeMap[symbol] || 0;
const asks = data.asks.reverse().slice(0, 5);
const bids = data.bids.slice(0, 5);
const asks = data.asks.reverse().slice(0, 10);
const bids = data.bids.slice(0, 10);
const currentJsonData = JSON.stringify({asks, bids});
if (data.timestamp > lastEventTime
|| (data.timestamp === lastEventTime && currentJsonData !== lastDataMap[symbol] && (currentJsonData !== lastLastDataMap[symbol] || lastLastEventTime != data.timestamp))) {
......
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