diff --git a/dabo/functions/get_ohlcv-candle.sh b/dabo/functions/get_ohlcv-candle.sh index 9a72067..57f573e 100644 --- a/dabo/functions/get_ohlcv-candle.sh +++ b/dabo/functions/get_ohlcv-candle.sh @@ -365,7 +365,7 @@ function convert_ohlcv_1h_to_1d { local f_input_file="$1" local f_output_file="$2" - local f_latestdate f_nextdate f_mytimezone f_line f_date f_open f_high f_low f_close f_volume f_inday + local f_latestdate f_nextdate f_mytimezone f_line f_date f_open f_high f_low f_close f_volume f_inday i if ! [ -s "$f_input_file" ] then @@ -416,7 +416,7 @@ function convert_ohlcv_1h_to_1d { echo $f_nextdate f_nextdate=$(date -d "$f_nextdate +1day" "+%Y-%m-%d") i=$((i++)) - if [ i -gt 10 ] + if [ $i -gt 10 ] then g_echo_warn "${FUNCNAME} $@: no nextdate found after >10 iterations" return 1