Browse Source

Test

etomic
jl777 8 years ago
parent
commit
a00e3d1ad7
  1. 5
      iguana/exchanges/LP_ordermatch.c

5
iguana/exchanges/LP_ordermatch.c

@ -619,10 +619,7 @@ char *LP_autotrade(char *myipaddr,int32_t mypubsock,double profitmargin,char *ba
sleep(1);
}
if ( autxo->S.swap == 0 )
{
jaddstr(bestitem,"status","couldnt establish connection");
LP_availableset(autxo);
}
else jaddstr(bestitem,"status","connected");
jaddnum(bestitem,"quotedprice",price);
jaddnum(bestitem,"maxprice",maxprice);
@ -642,6 +639,8 @@ char *LP_autotrade(char *myipaddr,int32_t mypubsock,double profitmargin,char *ba
jaddnum(bestitem,"maxprice",maxprice);
jaddstr(bestitem,"status","no response to request");
}
if ( autxo->S.swap == 0 )
LP_availableset(autxo);
return(jprint(bestitem,0));
}

Loading…
Cancel
Save