cleanup
This commit is contained in:
parent
2fb220ccfb
commit
0181800430
@ -71,42 +71,14 @@ do
|
||||
# Timestamp
|
||||
export f_timestamp=$(g_date_print)
|
||||
|
||||
|
||||
####### TODO -> Funktionen überarbeiten ############
|
||||
#
|
||||
# # get minute interval for find -mmin (used by get_marketdata market_performance
|
||||
# INTERVAL_MIN=$(echo "${INTERVAL}/60-1" | bc -l | sed -r 's/^(-?)\./\10./' | cut -d\. -f1)
|
||||
# [ -z "${INTERVAL_MIN}" ] && INTERVAL_MIN=1
|
||||
#
|
||||
# ### get general market data
|
||||
# # Get coingecko data
|
||||
# get_coingecko_data
|
||||
#
|
||||
# # Get current MarketData
|
||||
# get_marketdata
|
||||
#
|
||||
# # Check the situation on the market
|
||||
# if ! market_performance
|
||||
# then
|
||||
# f_market_performance=$(cat MARKET_PERFORMANCE_LATEST)
|
||||
# fi
|
||||
####### TODO -> Funktionen überarbeiten ENDE ###########
|
||||
|
||||
|
||||
## watch some manual defined assets
|
||||
#watch_assets
|
||||
|
||||
if [ "${STOCK_EXCHANGE}" = "NONE" ]
|
||||
then
|
||||
## stop here if STOCK_EXCHANGE not present
|
||||
continue
|
||||
fi
|
||||
|
||||
# Get current symbols
|
||||
#[ ${FULL_LOOP} = 1 ] && get_symbols_ticker
|
||||
|
||||
# Sell something?
|
||||
#check_for_sell
|
||||
# clean old data
|
||||
[ ${FULL_LOOP} = 1 ] && find asset-histories -maxdepth 1 ! -type d ! -name "*.csv" ! -name "*.levels" ! -name "*.zones" ! -name "*.indicators-calculated" -mtime +1
|
||||
|
||||
# Get current balance
|
||||
[ ${FULL_LOOP} = 1 ] && get_balance || continue
|
||||
|
@ -70,6 +70,7 @@ function get_levels {
|
||||
|
||||
# reset old levels var
|
||||
unset f_levels
|
||||
unset f_zones
|
||||
|
||||
local f_levelsfile=$1
|
||||
if ! [ -s "$f_levelsfile" ]
|
||||
|
Loading…
Reference in New Issue
Block a user