Commit 6cec08c8 by zihan

日志调整

parent 582dd339
...@@ -143,7 +143,7 @@ class BiboxStrategy3 extends Strategy3 { ...@@ -143,7 +143,7 @@ class BiboxStrategy3 extends Strategy3 {
const sellPrices = this.collector.getDepth(midCurrency, baseCurrency2, 2); const sellPrices = this.collector.getDepth(midCurrency, baseCurrency2, 2);
const possibleLoss = (sellPrices[0][0] - sellPrices[1][0])/sellPrices[0][0]; const possibleLoss = (sellPrices[0][0] - sellPrices[1][0])/sellPrices[0][0];
if(possibleLoss*100 > totalMarginRate){ if(possibleLoss*100 > totalMarginRate){
console.log(`此单风险过高,放弃。买一:${sellPrices[0][0]},买二:${sellPrices[1][0]},损失率${possibleLoss * 100},利差:${totalMarginRate}`); console.log(`此单风险过高,放弃。买一:${sellPrices[0][0]},买二:${sellPrices[1][0]},损失率${(possibleLoss * 100).toFixed(4)},利差:${totalMarginRate.toFixed(4)}`);
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