From d6645349d01dc0ee2628b3f418f5a0f96949c1a7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 22 Nov 2017 14:26:02 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index 5b666b875..1c3c6e165 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -484,11 +484,11 @@ cJSON *LP_tradesarray(char *base,char *rel,uint32_t starttime,uint32_t endtime,i for (i=0; i= starttime && timestamp <= endtime ) + if ( (timestamp= juint(item,"quotetime")) != 0 && timestamp >= starttime && timestamp <= endtime ) { bari = (timestamp - starttime) / timescale; LP_ohlc_update(&bars[bari],timestamp,jdouble(item,"basevol"),jdouble(item,"relvol")); - } + } else printf("skip.(%s)\n",jprint(item,0)); } } free_json(statsjson);