|
|
@@ -22,7 +22,7 @@ const orderHandler = async function(context, task) {
|
|
|
if (!token.BinancePrice || !token.OneInchPrice) continue;
|
|
|
|
|
|
// 更新token的实际余额
|
|
|
- token.orderAmount = NumKit.getSubFloat(accountAssetMap[token.exchange.symbol], token.exchange.lotSize)
|
|
|
+ // token.orderAmount = NumKit.getSubFloat(accountAssetMap[token.exchange.symbol], token.exchange.lotSize)
|
|
|
|
|
|
// 卖出逻辑判定
|
|
|
if (token.orderPrice && token.orderAmount > Math.pow(10, -token.exchange.lotSize)) {
|
|
|
@@ -75,7 +75,7 @@ const orderHandler = async function(context, task) {
|
|
|
|
|
|
// 判断余额是否够下单
|
|
|
if (Config.baseTokenAmount > baseAssetAmount) {
|
|
|
- fileLogger.info(`[下单失败]${pair}, volume: ${Config.baseTokenAmount}, asset: ${baseAssetAmount}.`)
|
|
|
+ fileLogger.info(`[余额不足]${pair}, 需要: ${Config.baseTokenAmount}, 剩余: ${baseAssetAmount}.`)
|
|
|
token.nextHandleTime = new Date().getTime() + Config.stopLossHandleSpaceHours * (60 * 60 * 1000)
|
|
|
|
|
|
continue;
|
|
|
@@ -153,7 +153,7 @@ const showInfo = function(context, task) {
|
|
|
})
|
|
|
table.printEndLine(logger)
|
|
|
|
|
|
- logger.info(`base asset amount: ${accountAssetMap[Config.baseIerc20Token.symbol]}.`)
|
|
|
+ logger.info(`${Config.baseIerc20Token.symbol} asset amount: ${accountAssetMap[Config.baseIerc20Token.symbol]}.`)
|
|
|
logger.info('')
|
|
|
|
|
|
}
|