Commit ac75ef8f by zihan

添加抢卖

parent 9bb0c5bf
......@@ -115,13 +115,13 @@ class BiboxStrategy3 extends Strategy3 {
doSaveOrder(order, baseCurrency1, midCurrency, constants.OrderTypeBuy);
})
// if(!this.collector.isBaseCurrency(midCurrency) && this.collector.getCurrencyBalance(midCurrency,true) < amount){
// for(let i=0;i<2;i++){
// setTimeout(()=>{
// sellOrder();
// },i*200+100);
// }
// }
if(!this.collector.isBaseCurrency(midCurrency) && this.collector.getCurrencyBalance(midCurrency,true) < amount){
for(let i=0;i<2;i++){
setTimeout(()=>{
sellOrder();
},i*150+100);
}
}
}
_isFeeDeducedByOther() {
......
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