From d3352c4d289696ed404ee895ded8831e2c658b36 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 5 Nov 2024 12:46:00 +0100 Subject: [PATCH] speedup with less lines --- dabo/functions/get_ohlcv-candle.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dabo/functions/get_ohlcv-candle.sh b/dabo/functions/get_ohlcv-candle.sh index 57f573e..73be3f5 100644 --- a/dabo/functions/get_ohlcv-candle.sh +++ b/dabo/functions/get_ohlcv-candle.sh @@ -54,7 +54,7 @@ function get_ohlcv-candles { get_ohlcv-candle "${f_eco_asset}" ${f_timeframe} "${f_histfile}" "ECONOMY-${f_eco_asset}" fi # refresh latest indicators - [ -s "${f_histfile}" ] && get_indicators "${f_histfile}" 900 + [ -s "${f_histfile}" ] && get_indicators "${f_histfile}" 51 done done @@ -83,7 +83,7 @@ function get_ohlcv-candles { get_ohlcv-candle "$f_symbol" $f_timeframe "${f_histfile}" && printf '%(%Y-%m-%d %H:%M:%S)T' >>"$f_histfile.fetched" # refresh latest indicators - get_indicators "${f_histfile}" 900 + get_indicators "${f_histfile}" 51 rm -f "${f_histfile}.fetching" @@ -664,5 +664,3 @@ function f_add_missing_ohlcv_intervals { cat "$g_tmp/f_add_missing_ohlcv_intervals_result" >"$f_histfile" fi } - -