Commit 66f53562 by ken

改key

parent 5a1da48c
...@@ -8,8 +8,8 @@ const redis = require('redis'); ...@@ -8,8 +8,8 @@ const redis = require('redis');
const redisClient = redis.createClient(); const redisClient = redis.createClient();
const publishKey = "ZB@2"; const publishKey = "ZB@2";
const accountInfoChannel = "getaccountinfo"; const accountInfoChannel = "getaccountinfo";
const APIKEY = "c2e5bd19-6ac3-489e-8e3a-b6e40b4d5b6d"; const APIKEY = "171985b3-3e8a-47af-aa7c-865f3db1909f";
const APISECRET = "15f974c4-fc64-462e-a815-cd0469156300"; const APISECRET = "30577876-ddd0-4969-92f9-f6a1dfb85703";
const lastEventTimeMap = {}; const lastEventTimeMap = {};
...@@ -29,7 +29,7 @@ const _handleSocketOpen = function(opened_callback) { ...@@ -29,7 +29,7 @@ const _handleSocketOpen = function(opened_callback) {
const req = {event: 'addChannel', channel: symbol + '_depth'}; const req = {event: 'addChannel', channel: symbol + '_depth'};
this.send(JSON.stringify(req)); this.send(JSON.stringify(req));
} }
const accountReq = {accesskey: APIKEY,channel: accountInfoChannel,event: "addChannel", sign: "a5f785d4627ae21f4b4baf9c1baf1a60"}; const accountReq = {accesskey: APIKEY,channel: accountInfoChannel,event: "addChannel", sign: "e3226c8f60cd20c6677fe1e995fae7f5"};
console.log(JSON.stringify(accountReq)); console.log(JSON.stringify(accountReq));
setInterval(() => { setInterval(() => {
this.send(JSON.stringify(accountReq)); this.send(JSON.stringify(accountReq));
......
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