Commit a5f05423 by zihan

如果获取symbol报错,那就过2秒再获取

parent 24cea79d
...@@ -126,7 +126,9 @@ class biboxApi { ...@@ -126,7 +126,9 @@ class biboxApi {
if(error){ if(error){
console.error("get symbol by rest error:"); console.error("get symbol by rest error:");
console.error(error); console.error(error);
this._subscribeSymbol(wss,id,symbol,depth); setTimeout(()=>{
this._subscribeSymbol(wss,id,symbol,depth);
},2000);
return; return;
} }
const data = result.data; const data = result.data;
......
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