Commit 820818d0 by zihan

bug fixed

parent fb1b22b3
......@@ -144,10 +144,8 @@ class KucoinCollector extends BaseCollector{
return price;
}
getCurrencyMaxReturnAmount(currency){
// const balance = this.getCurrencyBalance(currency);
// return Math.min(Strategy3MaxAmountMap[currency],balance);
//todo
return Strategy3MaxAmountMap[currency] || 1;
const balance = this.getCurrencyBalance(currency);
return Math.min(Strategy3MaxAmountMap[currency],balance);
}
getDepthPrintStr(fromCurrency,toCurrency,depth=1){
return super.getDepthPrintStr(fromCurrency,toCurrency,3);
......
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