Commit 8774062b by zihan

发现symbol not found 也照样继续卖币

parent 0113ef24
......@@ -35,7 +35,7 @@ class BiboxStrategy3 extends Strategy3 {
sellSymbol, sellPrice, amount, constants.OrderSideSell
, (error, order) => {
if (error) {
if(error.code === "NO_BALANCE"){
if(error.code === "NO_BALANCE" || (error.code === 'ERROR' && error.msg === 'SYMBOL NOT FOUND')){
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