Browse Source

Test

etomic
jl777 7 years ago
parent
commit
73ab11303d
  1. 1
      iguana/exchanges/LP_ordermatch.c
  2. 2
      iguana/exchanges/LP_tradebots.c

1
iguana/exchanges/LP_ordermatch.c

@ -965,6 +965,7 @@ char *LP_autobuy(void *ctx,char *myipaddr,int32_t mypubsock,char *base,char *rel
continue; continue;
else return(clonestr("{\"error\":\"cant ordermatch to destpubkey\"}")); else return(clonestr("{\"error\":\"cant ordermatch to destpubkey\"}"));
} }
printf("i.%d maxiters.%d qprice %.8f vs maxprice %.8f\n",i,maxiters,dstr(qprice),dstr(maxprice));
return(LP_trade(ctx,myipaddr,mypubsock,&Q,maxprice,timeout,duration,tradeid)); return(LP_trade(ctx,myipaddr,mypubsock,&Q,maxprice,timeout,duration,tradeid));
} }
return(clonestr("{\"error\":\"cant get here\"}")); return(clonestr("{\"error\":\"cant get here\"}"));

2
iguana/exchanges/LP_tradebots.c

@ -353,7 +353,7 @@ void LP_tradebots_timeslice(void *ctx)
} }
} }
} }
else //if ( bot->numpending == 0 ) else if ( bot->numpending == 0 )
LP_tradebot_timeslice(ctx,bot); LP_tradebot_timeslice(ctx,bot);
} }
lastnumfinished = LP_numfinished; lastnumfinished = LP_numfinished;

Loading…
Cancel
Save