|
@@ -15,6 +15,10 @@ const orderHandler = function(context, task) {
|
|
|
const token = tokenMap[tokenHash]
|
|
const token = tokenMap[tokenHash]
|
|
|
const pair = token.exchange.pair
|
|
const pair = token.exchange.pair
|
|
|
|
|
|
|
|
|
|
+ // 价格非法判定
|
|
|
|
|
+ if (!token.BinancePrice || !token.OneInchPrice) return
|
|
|
|
|
+
|
|
|
|
|
+ // 卖出逻辑判定
|
|
|
if (token.orderPrice) {
|
|
if (token.orderPrice) {
|
|
|
// TODO 对接卖出交易
|
|
// TODO 对接卖出交易
|
|
|
if (token.BinancePrice > token.orderPrice) {
|
|
if (token.BinancePrice > token.orderPrice) {
|