Commit a5617c16 by rongjun

bug

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