Commit 145762fd by zihan

参数调整

parent 86a9ca0d
...@@ -143,15 +143,15 @@ class BiboxStrategy3 extends Strategy3 { ...@@ -143,15 +143,15 @@ class BiboxStrategy3 extends Strategy3 {
_getMinMargin() { _getMinMargin() {
return 0.05; return 0.05;
} }
_giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth) { // _giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth) {
const buyAmount = this._getTotalAmount(baseCurrency1, midCurrency, buyDepth)[0]; // const buyAmount = this._getTotalAmount(baseCurrency1, midCurrency, buyDepth)[0];
const sellAmount = this._getTotalAmount(midCurrency, baseCurrency2, sellDepth)[0]; // const sellAmount = this._getTotalAmount(midCurrency, baseCurrency2, sellDepth)[0];
if (parseFloat(buyAmount) > parseFloat(sellAmount)) { // if (parseFloat(buyAmount) > parseFloat(sellAmount)) {
return true; // return true;
} // }
return buyDepth > sellDepth ; // return buyDepth > sellDepth ;
// return super._giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth); // return super._giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth);
} // }
_logDelay() { _logDelay() {
return true; return true;
} }
......
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