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}"
|
get_ohlcv-candle "${f_eco_asset}" ${f_timeframe} "${f_histfile}" "ECONOMY-${f_eco_asset}"
|
||||||
fi
|
fi
|
||||||
# refresh latest indicators
|
# refresh latest indicators
|
||||||
[ -s "${f_histfile}" ] && get_indicators "${f_histfile}" 900
|
[ -s "${f_histfile}" ] && get_indicators "${f_histfile}" 51
|
||||||
done
|
done
|
||||||
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"
|
get_ohlcv-candle "$f_symbol" $f_timeframe "${f_histfile}" && printf '%(%Y-%m-%d %H:%M:%S)T' >>"$f_histfile.fetched"
|
||||||
|
|
||||||
# refresh latest indicators
|
# refresh latest indicators
|
||||||
get_indicators "${f_histfile}" 900
|
get_indicators "${f_histfile}" 51
|
||||||
|
|
||||||
rm -f "${f_histfile}.fetching"
|
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"
|
cat "$g_tmp/f_add_missing_ohlcv_intervals_result" >"$f_histfile"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user