Commit 86a9ca0d by zihan

bug fixed

parent c6d40a19
......@@ -38,7 +38,7 @@ class BiboxStrategy3 extends Strategy3 {
sellSymbol, sellPrice, amount, constants.OrderSideSell, constants.TimeInForceGTC
, (error, order) => {
if (error) {
if (error.code === "NO_BALANCE" || (error.code === 'ERROR' && error.msg === 'SYMBOL NOT FOUND') || error.statusCode == 502 || error.code == 'ECONNRESET') {
if (error.code === '200004' || error.statusCode == 502 || error.code == 'ECONNRESET') {
if (retryTime > 0 && !createdSellOrder) {
console.log("提示余额不足,再次尝试");
retryTime--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment