From 3913db98544b6fa42cd56132433ec3a8c4cc942e Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 26 Mar 2024 15:07:40 +0100 Subject: [PATCH] ccxt check for swap or spot by LEVERAGE --- dabo/functions/ccxt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/ccxt.sh b/dabo/functions/ccxt.sh index f52cdb8..ec3b953 100644 --- a/dabo/functions/ccxt.sh +++ b/dabo/functions/ccxt.sh @@ -19,7 +19,7 @@ function f_ccxt { 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': 'swap',},})" || return 1 + g_python "exchange = ccxt.${STOCK_EXCHANGE,,}({'apiKey': '${API_KEY}','secret': '${API_SECRET}','options': {'defaultType': '${f_exchange_type}',},})" || return 1 f_ccxt_initialized=true fi