Commit a5617c16 by rongjun

bug

parent 63443f90
...@@ -239,16 +239,17 @@ class BaseCollector { ...@@ -239,16 +239,17 @@ class BaseCollector {
runStrategy3(){ runStrategy3(){
console.log("启动成功"); console.log("启动成功");
setInterval(()=>{ this.allowTrade = true
redisClient.get(this.machine + "_STOP", (err, value) => { // setInterval(()=>{
if (value) { // redisClient.get(this.machine + "_STOP", (err, value) => {
this.allowTrade = false; // if (value) {
console.log("滑点过多,停止交易"); // this.allowTrade = false;
} else { // console.log("滑点过多,停止交易");
this.allowTrade = true; // } else {
} // this.allowTrade = true;
}); // }
},1000 *10); // });
// },1000 *10);
this._runMonitor((data)=>{ this._runMonitor((data)=>{
if(data){ if(data){
this.balanceMap = {...data}; this.balanceMap = {...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