dabo/dabo/calc-levels.sh
2024-11-05 12:36:32 +01:00

40 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# Copyright (c) 2022-2024 olli
#
# This file is part of dabo (crypto bot).
#
# dabo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# dabo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with dabo. If not, see <http://www.gnu.org/licenses/>.
. /dabo/dabo-prep.sh
rm -f asset-histories/*.history.*.csv.levels-calculating
sleep 120
while true
do
g_echo_note "Next loop"
# Reload Config
. ../../dabo-bot.conf
. ../../dabo-bot.override.conf
# get levels
get_levels_all
rm -f asset-histories/*.history.*.csv.levels-calculating
# recalc every 6 hours
sleep 21600
done