Commit 4c2ecddb by zihan

参数调整

parent ac75ef8f
...@@ -119,7 +119,7 @@ class BiboxStrategy3 extends Strategy3 { ...@@ -119,7 +119,7 @@ class BiboxStrategy3 extends Strategy3 {
for(let i=0;i<2;i++){ for(let i=0;i<2;i++){
setTimeout(()=>{ setTimeout(()=>{
sellOrder(); sellOrder();
},i*150+100); },i*50+150);
} }
} }
} }
...@@ -144,7 +144,12 @@ class BiboxStrategy3 extends Strategy3 { ...@@ -144,7 +144,12 @@ class BiboxStrategy3 extends Strategy3 {
return 0.08; return 0.08;
} }
_giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth) { _giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth) {
return 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); // return super._giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth);
} }
_logDelay() { _logDelay() {
......
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