From 73ab11303dd8185ebbeefdb3ba08a230fbf36755 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 2 Nov 2017 18:58:34 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 1 + iguana/exchanges/LP_tradebots.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index cc1307485..1b66f4180 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -965,6 +965,7 @@ char *LP_autobuy(void *ctx,char *myipaddr,int32_t mypubsock,char *base,char *rel continue; 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(clonestr("{\"error\":\"cant get here\"}")); diff --git a/iguana/exchanges/LP_tradebots.c b/iguana/exchanges/LP_tradebots.c index d758e6350..f340ac6f6 100644 --- a/iguana/exchanges/LP_tradebots.c +++ b/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); } lastnumfinished = LP_numfinished;