Commit f4909e49 by ken

depth

parent 61d06110
......@@ -167,7 +167,7 @@ function _handleDepthData(symbol, data, source) {
const bids = data.bids.slice(0, 5);
const currentJsonData = JSON.stringify({asks, bids});
if (data.timestamp > lastEventTime
|| (data.timestamp === lastEventTime && currentJsonData !== lastDataMap[symbol] && (currentJsonData !== lastLastDataMap[symbol] || lastLastEventTime != data.timestamp))) {
|| (data.timestamp === lastEventTime /*&& currentJsonData !== lastDataMap[symbol] && (currentJsonData !== lastLastDataMap[symbol] || lastLastEventTime != data.timestamp)*/)) {
if (symbol === "BTCUSDT") {
let consoleMethod = console.log;
if (data.timestamp === lastEventTime) {
......@@ -256,7 +256,7 @@ function run() {
console.log(depthInterval);
setInterval(() => {
for (const symbol of observerSymbol) {
depthByRest(symbol);
// depthByRest(symbol);
}
}, depthInterval);
setInterval(() => {
......
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