From d3f80aafd736179da70f387cc34a7a01884bc037 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 25 Nov 2017 23:42:21 +0400 Subject: [PATCH] Fix duplicated timestamp --- iguana/exchanges/LP_stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index 4478b00ba..8ef41afb7 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -523,6 +523,7 @@ cJSON *LP_ohlc_json(struct LP_ohlc *bar,struct LP_ohlc *prevbar) if ( bar->numtrades == 0 ) { tmp = *prevbar; + tmp.timestamp = bar->timestamp; tmp.numtrades = 0; tmp.relsum = tmp.basesum = 0.; } else tmp = *bar;