Commit 852d5481 by zihan

调整下卖单的时间

parent e0c2ec51
......@@ -85,7 +85,9 @@ class BiboxStrategy3 extends Strategy3 {
console.log("买入全部成交");
createdBuyOrder = true;
amount = collector.processAmount(midCurrency, baseCurrency2, parseFloat(order.executedQty*0.999));
setTimeout(()=>{
sellOrder();
},200);
returnOrder();
} else if (parseFloat(order.executedQty) > 0) {
returnAmount = parseFloat(returnAmount) * parseFloat(order.executedQty) / parseFloat(amount);
......@@ -95,7 +97,9 @@ class BiboxStrategy3 extends Strategy3 {
order.remark = "部分成交@amount " + order.executedQty + ";";
createdBuyOrder = true;
if (parseFloat(amount) > 0)
setTimeout(()=>{
sellOrder();
})
if (parseFloat(returnAmount) > 0)
returnOrder();
else {
......
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