From 843211c87663217db91ccfd1b48598b75dd28ba9 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 10 Jun 2024 20:36:48 +0200 Subject: [PATCH] switch to CCXT --- dabo/functions/get_asset.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dabo/functions/get_asset.sh b/dabo/functions/get_asset.sh index 76add48..c91f335 100644 --- a/dabo/functions/get_asset.sh +++ b/dabo/functions/get_asset.sh @@ -34,11 +34,11 @@ function get_asset { [ ${FULL_LOOP} == 0 ] && return 0 grep -q "^$(echo "${f_timestamp}" | cut -d: -f1,2)" "${f_ASSET_HIST_FILE}" || return 0 f_ASSET_HIST_FILE="asset-histories/${f_ASSET}.history.csv" - if find "${f_ASSET_HIST_FILE}" -mmin -${INTERVAL_MIN} | grep -q "${f_ASSET_HIST_FILE}" - then - g_echo_note "${f_ASSET_HIST_FILE} already downloaded in the last ${INTERVAL_MIN} minutes" - return 0 - fi + #if find "${f_ASSET_HIST_FILE}" -mmin -${INTERVAL_MIN} | grep -q "${f_ASSET_HIST_FILE}" + #then + # g_echo_note "${f_ASSET_HIST_FILE} already downloaded in the last ${INTERVAL_MIN} minutes" + # return 0 + #fi # headline #[ -s "${f_ASSET_HIST_FILE}" ] || echo "${csv_headline}" >"${f_ASSET_HIST_FILE}"