From 666d74ffa3f1613f7354902c6345434f74be5687 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Nov 2017 17:12:52 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index b4e79db07..88e0f831a 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -929,7 +929,7 @@ int32_t LP_tradecommand(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson, price += (r * range) / 100.; bestprice = LP_bob_competition(&counter,aliceid,price,0); printf("%llu >>>>>>> price %.8f qprice %.8f r.%d range %.8f -> %.8f, bestprice %.8f counter.%d\n",(long long)aliceid,ask,qprice,r,range,price,bestprice,counter); - if ( counter > 3 || price >= bestprice-SMALLVAL ) // skip if late or bad price + if ( counter > 3 && price >= bestprice-SMALLVAL ) // skip if late or bad price return(retval); } else return(retval); //LP_RTmetrics_update(Q.srccoin,Q.destcoin);