Commit 61d06110 by ken

depth

parent 17a52384
......@@ -196,7 +196,7 @@ const lastDepthRestSendTimeMap = {};
let detphRestSentAmount = 0;
function depthByRest(symbol,callback) {
const urls = [`http://api.zb.cn/data/v1/depth?market=${symbol}&size=5`, `http://api.zb.cn/data/v1/depth?market=${symbol}&size=5`];
const urls = [`http://api.zb.cn/data/v1/depth?market=${symbol}&size=5`, `http://api.zb.com/data/v1/depth?market=${symbol}&size=5`];
detphRestSentAmount += 1;
const index = detphRestSentAmount % 2;
const url = urls[index];
......
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