speedup with less lines
This commit is contained in:
parent
c9cc555b42
commit
d3352c4d28
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user