Commit b5c0716e by ken

depth

parent 557ee2ee
...@@ -185,8 +185,7 @@ function depthByRest(symbol,callback) { ...@@ -185,8 +185,7 @@ function depthByRest(symbol,callback) {
lastDataMap[symbol] = data; lastDataMap[symbol] = data;
if (symbol === "BTCUSDT") { if (symbol === "BTCUSDT") {
console.log(symbol + '@' + data.timestamp * 1000 + ' from rest'); console.log(symbol + '@' + data.timestamp * 1000 + ' from rest');
console.log(data.asks); console.log(JSON.stringify(data));
console.log(data.bids);
} }
const publishContent = JSON.stringify({symbol, time: data.timestamp * 1000}); const publishContent = JSON.stringify({symbol, time: data.timestamp * 1000});
const asks = data.asks.reverse(); const asks = data.asks.reverse();
......
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