From d9b40d24662278a9c414695d7e521e8bae8064dc Mon Sep 17 00:00:00 2001 From: mraniki <8766259+mraniki@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:20:31 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Unit=20Test=20=E2=99=BB=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cefi/default_settings.toml | 2 +- cefi/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cefi/default_settings.toml b/cefi/default_settings.toml index c2642c24..212b6479 100644 --- a/cefi/default_settings.toml +++ b/cefi/default_settings.toml @@ -28,7 +28,7 @@ ccxt_commands = """ # CCXT Parameters to connect # to 1 or more exchanges -[default.exchanges] +[default.exchanges.main] cex_name = "" cex_api="" cex_secret="" diff --git a/cefi/main.py b/cefi/main.py index 592ba69a..c1869dba 100644 --- a/cefi/main.py +++ b/cefi/main.py @@ -147,7 +147,7 @@ async def get_account_balances(self): balance_info.append(f"🏦 Balance for {exchange_name}:\n{balance}") return "\n".join(balance_info) - async def get_account_balance(cex): + async def get_account_balance(self, cex): """ return account balance of a given ccxt exchange @@ -192,7 +192,7 @@ async def get_account_positions(self): position_info.append(f"📊 Position for {exchange_name}:\n{positions}") return "\n".join(position_info) - async def get_account_position(cex): + async def get_account_position(self, cex): """ return account position. of a given exchange