Commit 205e7571 by rongjun

bug

parent 8543b7f0
......@@ -56,6 +56,10 @@ class Strategy3 {
const buyDelay = endTime - this.collector.getSymbolEventTime(buySymbol);
const sellDelay = endTime - this.collector.getSymbolEventTime(sellSymbol);
console.log('买入交易对延迟:' + buyDelay + " 卖出交易对延迟:" + sellDelay);
if(buyDelay > 5000 || sellDelay > 5000){
console.log('延时过大,放弃该轮交易');
return false;
}
}
const service = this.service;
let savedRecord = null;
......
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