|
|
@@ -53,7 +53,7 @@ const orderHandler = function(context, task) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const table = new TableKit(['pair', 'binance', 'order price', 'profit', 'next time'], 20)
|
|
|
+const table = new TableKit(['pair', 'binance', 'order price', 'profit', 'next time', 'percentage'], 20)
|
|
|
const showInfo = function(context, task) {
|
|
|
const logger = task.logger
|
|
|
const tokenMap = context.tokenMap
|
|
|
@@ -67,7 +67,7 @@ const showInfo = function(context, task) {
|
|
|
const BinancePrice = token.BinancePrice ? token.BinancePrice : NaN
|
|
|
const DiffPrice = token.DiffPrice
|
|
|
const percentage = NumKit.getSubFloat((DiffPrice / OneInchPrice) * 100, 2)
|
|
|
- const orderPrice = token.orderPrice ? token.orderPrice : NaN
|
|
|
+ const orderPrice = token.orderPrice ? token.orderPrice : ''
|
|
|
const orderPercentage = NumKit.getSubFloat(((BinancePrice - orderPrice) / orderPrice) * 100, 2)
|
|
|
const nextTimeStr = token.nextHandleTime ? TimeKit.getTimeByMillisecond(token.nextHandleTime) : ''
|
|
|
|
|
|
@@ -76,7 +76,8 @@ const showInfo = function(context, task) {
|
|
|
return OneInchPrice && BinancePrice
|
|
|
})()
|
|
|
|
|
|
- const rows = [pair.toString(), BinancePrice.toString(), orderPrice.toString(), orderPercentage.toString().concat('%'), nextTimeStr]
|
|
|
+ const rows = [pair.toString(), BinancePrice.toString(), orderPrice.toString(),
|
|
|
+ orderPercentage.toString().concat('%'), nextTimeStr, percentage.toString().concat('%')]
|
|
|
|
|
|
// 识别到在拉盘
|
|
|
token.isLong = (() => {
|