Commit daf6a32f by ken

zb

parent 3d617f8e
......@@ -56,7 +56,7 @@ function subscribe() {
const symbol = depth.channel.replace('_depth', '').toUpperCase();
const publishContent = JSON.stringify({symbol, time: depth.timestamp * 1000})
const depthJson = JSON.stringify({asks: depth.asks.reverse(), bids: depth.bids, symbol})
redisClient.set(depthJson, key);
redisClient.set(key, depthJson);
redisClient.publish(publishKey, publishContent);
})
}
......
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