Skip to content

Commit

Permalink
✅ Unit Test ♻️
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Sep 14, 2023
1 parent 7664fc5 commit d9b40d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cefi/default_settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
4 changes: 2 additions & 2 deletions cefi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d9b40d2

Please sign in to comment.