Commit 35b378b1 by rongjun

bug

parent 44c746aa
......@@ -121,7 +121,7 @@ class BiboxCollector extends BaseCollector{
return symbolDetail.pair;
}
getFeeRate(fromCurrency,toCurrency){
return 0.001;
return 0.0009;
}
processAmount(fromCurrency,toCurrency,amount){
//有可能会由于数值过小,传进来的amount被表示为科学计数法法
......
......@@ -243,7 +243,7 @@ class Strategy3 {
const rawReturnPrice = result[8];
const buyFirst = result[9];
if (totalMarginRate > this._getMinMargin()) {
console.log(`发现利差:${totalMarginRate},buyDepth:${buyDepth},sellDepth${sellDepth},returnDepth${returnDepth}`);
console.log(`发现利差:${totalMarginRate},buyDepth:${buyDepth},sellDepth${sellDepth},returnDepth${returnDepth},tl:${returnAmount}`);
return -1;
return [baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyPrice, sellPrice, returnPrice, amount, returnAmount, rawBuyPrice, rawSellPrice, rawReturnPrice, buyFirst];
}
......
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