From feef4f1cdcfcfc9379d37854eec4b6dd0465ace6 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 20 Oct 2023 17:40:23 +0200 Subject: [PATCH] updated/added a lot of indexes,... --- dabo/functions/get_marketdata.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dabo/functions/get_marketdata.sh b/dabo/functions/get_marketdata.sh index 1143034..aa59cc2 100644 --- a/dabo/functions/get_marketdata.sh +++ b/dabo/functions/get_marketdata.sh @@ -3,6 +3,11 @@ function get_marketdata { local f_name="$2" ## get data for analysis + if find asset-histories/${f_name}.history.csv -mmin -${INTERVAL_MIN} | grep -q "asset-histories/${f_name}.history.csv" + then + g_echo_note "asset-histories/${f_name}.history.csv already downloaded in the last ${INTERVAL_MIN} minutes" + return 0 + fi # check source platform for parsing parameters, prepare and run wget command >MARKET_DATA_CMD