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