|
@@ -23,19 +23,19 @@ const pricesHandler = function(context, task) {
|
|
|
const percentage = NumKit.getSubFloat((DiffPrice / OneInchPrice) * 100, 2)
|
|
const percentage = NumKit.getSubFloat((DiffPrice / OneInchPrice) * 100, 2)
|
|
|
|
|
|
|
|
// 价格非法的就不处理了
|
|
// 价格非法的就不处理了
|
|
|
- if ((() => {
|
|
|
|
|
- if (!token.prevHandleTime) return true
|
|
|
|
|
-
|
|
|
|
|
- const time = new Date().getTime()
|
|
|
|
|
-
|
|
|
|
|
- return time > token.prevHandleTime + Config.handleSpaceHours * (60 * 1000)
|
|
|
|
|
- })()) return
|
|
|
|
|
|
|
+ // if ((() => {
|
|
|
|
|
+ //
|
|
|
|
|
+ // })()) return
|
|
|
|
|
|
|
|
const rows = [pair.toString(), OneInchPrice.toString(), BinancePrice.toString(), DiffPrice.toString(), percentage.toString()]
|
|
const rows = [pair.toString(), OneInchPrice.toString(), BinancePrice.toString(), DiffPrice.toString(), percentage.toString()]
|
|
|
|
|
|
|
|
// 识别到在拉盘
|
|
// 识别到在拉盘
|
|
|
const isLong = (() => {
|
|
const isLong = (() => {
|
|
|
- return percentage > Config.percentageLimit
|
|
|
|
|
|
|
+ if (!token.prevHandleTime) return true
|
|
|
|
|
+
|
|
|
|
|
+ const time = new Date().getTime()
|
|
|
|
|
+
|
|
|
|
|
+ return percentage > Config.percentageLimit && time > token.prevHandleTime + Config.handleSpaceHours * (60 * 1000)
|
|
|
})()
|
|
})()
|
|
|
|
|
|
|
|
if (isLong) {
|
|
if (isLong) {
|