Compare commits

...

2 Commits

Author SHA1 Message Date
3e412615b9 values 2024-09-02 15:22:31 +02:00
06fc9f7cc2 values 2024-09-02 14:52:42 +02:00
4 changed files with 6994 additions and 7469 deletions

Binary file not shown.

View File

@ -41,7 +41,7 @@ set +a
mkdir -p ${BASEPATH}/botdata/asset-histories
cd ${BASEPATH}/botdata
ECO_ASSETS="DXY DOWJONES SP500 NASDAQ MSCIEAFE 10YRTREASURY OIL GOLD MSCIWORLD OILGAS KRE EUR-USD"
ECO_ASSETS="DXY DOWJONES SP500 NASDAQ MSCIEAFE 10YRTREASURY GOLD MSCIWORLD OILGAS KRE EUR-USD"
. ../../dabo-bot.conf
. ../../dabo-bot.override.conf

View File

@ -40,20 +40,25 @@ function get_values {
# get current prices from exchange
get_symbols_ticker
# get values from csv files
f_first=true
#f_first=true
for f_asset in $f_assets BTC${CURRENCY} $f_eco_assets
do
# read latest ohlcv data and indicators per timeframe to vars
for f_time in 5m 15m 1h 4h 1d 1w
do
f_prefix="${f_asset}_${f_time}_"
[ "$f_first" = "true" ] && f_prefix="${f_time}_"
f_prefix=${f_prefix//-/_}
#f_prefix="${f_asset}_${f_time}_"
#[ "$f_first" = "true" ] && f_prefix="${f_time}_"
f_prefix="${f_time}_"
if [[ "$f_asset" =~ ^ECONOMY- ]]
then
f_prefix="${f_asset}_${f_time}_"
f_prefix=${f_prefix//-/_}
fi
f_histfile="asset-histories/${f_asset}.history.${f_time}.csv"
if ! [ -s "$f_histfile" ]
then
g_echo_note "file $f_histfile emty or does not exist"
g_echo_warn "file $f_histfile empty or does not exist"
f_return=1
continue
fi
@ -90,13 +95,13 @@ function get_values {
fi
done
unset f_first
#unset f_first
done
for i in "${!v[@]}"
do
echo "\${v[$i]} = ${v[$i]}"
echo "\${v[$i]}=${v[$i]}"
done | sort >values.new
mv values.new values

File diff suppressed because it is too large Load Diff