Commit 3fbf179f by ken

zb

parent daf6a32f
......@@ -51,7 +51,7 @@ const _subscribe = function(callback, opened_callback = false) {
function subscribe() {
_subscribe((depth) => {
console.log(depth);
console.log(depth.timestamp * 1000);
const key = depth.channel.replace('_', '').toUpperCase() + '@zb';
const symbol = depth.channel.replace('_depth', '').toUpperCase();
const publishContent = JSON.stringify({symbol, time: depth.timestamp * 1000})
......
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