Commit d5f524b7 by zihan

参数调整

parent 608c7ce8
......@@ -143,15 +143,6 @@ class BiboxStrategy3 extends Strategy3 {
_getMinMargin() {
return 0.05;
}
// _giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth) {
// const buyAmount = this._getTotalAmount(baseCurrency1, midCurrency, buyDepth)[0];
// const sellAmount = this._getTotalAmount(midCurrency, baseCurrency2, sellDepth)[0];
// if (parseFloat(buyAmount) > parseFloat(sellAmount)) {
// return true;
// }
// return buyDepth > sellDepth ;
// return super._giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth);
// }
_logDelay() {
return true;
}
......
......@@ -57,10 +57,10 @@ class Strategy3 {
const buyDelay = endTime - this.collector.getSymbolEventTime(buySymbol);
console.log('买入交易对延迟:' + buyDelay + " 卖出交易对延迟:" + sellDelay);
}
// if(sellDelay > 5000){
// console.log('延时过大,放弃该轮交易');
// return false;
// }
if(sellDelay > 5000){
console.log('延时过大,放弃该轮交易');
return false;
}
const service = this.service;
let savedRecord = null;
const finishedOrders = [];
......
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