diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index d124c3894..ea2b0a1d5 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -433,6 +433,7 @@ cJSON *LP_ohlc_json(struct LP_ohlc *bar) jaddinum(item,bar->basesum); jaddinum(item,bar->relsum / bar->basesum); jaddinum(item,bar->numtrades); + return(item); } return(0); } @@ -460,7 +461,7 @@ void LP_ohlc_update(struct LP_ohlc *bar,uint32_t timestamp,double basevol,double bar->basesum += basevol; bar->relsum += relvol; bar->numtrades++; - printf("%d %.8f/%.8f -> %.8f\n",bar->numtrades,basevol,relvol,price); + //printf("%d %.8f/%.8f -> %.8f\n",bar->numtrades,basevol,relvol,price); } }