error reporting and added get_marketdata_all
This commit is contained in:
parent
8b17a7053b
commit
4f3f7fdbec
@ -32,16 +32,21 @@ do
|
|||||||
. ../../dabo-bot.conf
|
. ../../dabo-bot.conf
|
||||||
. ../../dabo-bot.override.conf
|
. ../../dabo-bot.override.conf
|
||||||
# notify failed downloads
|
# notify failed downloads
|
||||||
[ "$interval" = "1d" ] && cat FAILED_*/* 2>/dev/null | notify.sh -s "Failed downloads"
|
if [ "$interval" = "1h" ]
|
||||||
|
then
|
||||||
|
cat FAILED_*/* 2>/dev/null | notify.sh -s "Failed downloads"
|
||||||
|
mkdir -p REPORTED_FAILED
|
||||||
|
mv FAILED_*/* REPORTED_FAILED/ 2>/dev/null
|
||||||
|
fi
|
||||||
# Timestamp
|
# Timestamp
|
||||||
export f_timestamp=$(g_date_print)
|
export f_timestamp=$(g_date_print)
|
||||||
# get candles and indicators
|
# get candles and indicators
|
||||||
get_ohlcv-candles $interval
|
get_ohlcv-candles $interval
|
||||||
|
[[ $interval != 1w ]] && get_marketdata_all $interval
|
||||||
[ -n "$seconds" ] && sleeptime=$(( ( ($seconds - $(TZ=UTC printf "%(%s)T") % $seconds) % $seconds + 2 )))
|
[ -n "$seconds" ] && sleeptime=$(( ( ($seconds - $(TZ=UTC printf "%(%s)T") % $seconds) % $seconds + 2 )))
|
||||||
#[[ $interval = 4h ]] && sleeptime=??
|
#[[ $interval = 4h ]] && sleeptime=??
|
||||||
if [ "$interval" = "1d" ]
|
if [ "$interval" = "1d" ]
|
||||||
then
|
then
|
||||||
get_marketdata_fear_and_greed_alternativeme
|
|
||||||
sleeptime=$(($(TZ=UTC date +%s -d "tomorrow 0:01") - $(date +%s) +2 ))
|
sleeptime=$(($(TZ=UTC date +%s -d "tomorrow 0:01") - $(date +%s) +2 ))
|
||||||
fi
|
fi
|
||||||
[ "$interval" = "1w" ] && sleeptime=$(($(TZ=UTC date +%s -d "next monday 0:01") - $(date +%s) +2 ))
|
[ "$interval" = "1w" ] && sleeptime=$(($(TZ=UTC date +%s -d "next monday 0:01") - $(date +%s) +2 ))
|
||||||
|
Loading…
Reference in New Issue
Block a user