binance-futures-connector
Advanced tools
Comparing version 1.3.5 to 1.3.6
{ | ||
"name": "binance-futures-connector", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "binance-futures-spot 币安-合约+现货-sdk,持续更新,欢迎PR一起完善。微信:wkc19891", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -167,3 +167,3 @@ module.exports.Future = require('./future') | ||
}).catch(err => { | ||
console.log(symbol, `市价,开多,买入异常=>数量:${quantity} | 价格:${flagPrice}`, err) | ||
console.log(symbol, `市价,开多,买入异常=>数量:${quantity} | 价格:${flagPrice}`) | ||
reject(err) | ||
@@ -176,3 +176,3 @@ }); | ||
}).catch(err => { | ||
console.log(symbol, `限价,开多,买入异常=>数量:${quantity} | 价格:${price}`, err) | ||
console.log(symbol, `限价,开多,买入异常=>数量:${quantity} | 价格:${price}`) | ||
reject(err) | ||
@@ -201,3 +201,3 @@ }); | ||
}).catch(err => { | ||
console.log(symbol, `市价,平多,卖出异常=>数量:${quantity} | 价格:${flagPrice}`, err) | ||
console.log(symbol, `市价,平多,卖出异常=>数量:${quantity} | 价格:${flagPrice}`) | ||
reject(err) | ||
@@ -210,3 +210,3 @@ }); | ||
}).catch(err => { | ||
console.log(symbol, `限价,平多,卖出异常=>数量:${quantity} | 价格:${price}`, err) | ||
console.log(symbol, `限价,平多,卖出异常=>数量:${quantity} | 价格:${price}`) | ||
reject(err) | ||
@@ -235,3 +235,3 @@ }); | ||
}).catch(err => { | ||
console.log(symbol, `市价,开空,卖出异常=>数量:${quantity} | 价格:${flagPrice}`, err) | ||
console.log(symbol, `市价,开空,卖出异常=>数量:${quantity} | 价格:${flagPrice}`) | ||
reject(err) | ||
@@ -244,3 +244,3 @@ }); | ||
}).catch(err => { | ||
console.log(symbol, `限价,开空,卖出异常=>数量:${quantity} | 价格:${price}`, err) | ||
console.log(symbol, `限价,开空,卖出异常=>数量:${quantity} | 价格:${price}`) | ||
reject(err) | ||
@@ -269,3 +269,3 @@ }); | ||
}).catch(err => { | ||
console.log(symbol, `市价,平空,买入异常=>数量:${quantity} | 价格:${flagPrice}`, err) | ||
console.log(symbol, `市价,平空,买入异常=>数量:${quantity} | 价格:${flagPrice}`) | ||
reject(err) | ||
@@ -278,3 +278,3 @@ }); | ||
}).catch(err => { | ||
console.log(symbol, `限价,平空,买入异常=>数量:${quantity} | 价格:${price}`, err) | ||
console.log(symbol, `限价,平空,买入异常=>数量:${quantity} | 价格:${price}`) | ||
reject(err) | ||
@@ -320,3 +320,3 @@ }); | ||
console.log('现货,限价,开多,买入成功', res.status) | ||
resolive(res); | ||
resolve(res); | ||
}).catch(err => { | ||
@@ -323,0 +323,0 @@ console.log('现货,限价,开多,买入异常', err.response.data) |
258027