Browse Source

Test

etomic
jl777 7 years ago
parent
commit
72284c1df1
  1. 2
      iguana/exchanges/LP_stats.c

2
iguana/exchanges/LP_stats.c

@ -805,7 +805,7 @@ cJSON *LP_ohlc_json(struct LP_ohlc *bar,struct LP_ohlc *prevbar)
{ {
memset(&tmp,0,sizeof(tmp)); memset(&tmp,0,sizeof(tmp));
tmp.timestamp = bar->timestamp; tmp.timestamp = bar->timestamp;
tmp.close = bar->close; tmp.open = tmp.close = bar->close;
tmp.numtrades = 0; tmp.numtrades = 0;
tmp.relsum = tmp.basesum = 0.; tmp.relsum = tmp.basesum = 0.;
} else tmp = *bar; } else tmp = *bar;

Loading…
Cancel
Save