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