diff --git a/dabo/functions/ccxt.sh b/dabo/functions/ccxt.sh index d8b008b..1b73102 100644 --- a/dabo/functions/ccxt.sh +++ b/dabo/functions/ccxt.sh @@ -1,5 +1,4 @@ function f_ccxt { - if [ -s /dabo/.${STOCK_EXCHANGE}-secrets ] then . /dabo/.${STOCK_EXCHANGE}-secrets @@ -11,7 +10,9 @@ function f_ccxt { # Initialize ccxt in python if [ -z "$g_python_running" ] || [ -z "$f_ccxt_initialized" ] then + set -x g_python 'import os' || return 1 + set +x g_python 'import sys' || return 1 g_python 'sys.path.append("/ccxt/python")' || return 1 @@ -28,5 +29,4 @@ function f_ccxt { g_python "$@" || return 1 unset f_ccxt_result f_ccxt_result=${g_python_result[*]} - }