From f204f2f2ac5ab323784772e1e370da0c9000bf80 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 26 Mar 2024 16:54:14 +0100 Subject: [PATCH] python ccxt --- dabo/dabo-bot.sh | 2 +- dabo/functions/ccxt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dabo/dabo-bot.sh b/dabo/dabo-bot.sh index 28c2ce5..96e3f36 100755 --- a/dabo/dabo-bot.sh +++ b/dabo/dabo-bot.sh @@ -124,7 +124,7 @@ do check_for_sell # Get current balances - [ ${FULL_LOOP} = 1 ] && get_ccxt_balances || continue + get_ccxt_balances [ ${FULL_LOOP} = 1 ] && get_balances || continue # Buy something? diff --git a/dabo/functions/ccxt.sh b/dabo/functions/ccxt.sh index 9fffc28..076efc4 100644 --- a/dabo/functions/ccxt.sh +++ b/dabo/functions/ccxt.sh @@ -18,10 +18,10 @@ function f_ccxt { g_python 'import sys' || return 1 g_python 'sys.path.append("/ccxt/python")' || return 1 g_python 'import ccxt' || return 1 - sleep 0.5 local f_exchange_type="swap" [ -z "$LEVERAGE" ] && f_exchange_type="spot" g_python "exchange = ccxt.${STOCK_EXCHANGE,,}({'apiKey': '${API_KEY}','secret': '${API_SECRET}','options': {'defaultType': '${f_exchange_type}',},})" || return 1 + sleep 5 f_ccxt_initialized=true fi