This commit is contained in:
olli 2024-03-25 21:24:23 +01:00
parent 7baed40c0f
commit 08689a36eb

View File

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