Skip to content

Commit

Permalink
🎨 update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Jul 9, 2024
1 parent 012601b commit 22a9d84
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cefi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def get_quotes(self, symbol):
Returns:
quotes
"""
_info = ["⚖️\n"]
_info = []
for client in self.clients:
_info.append(f"{client.name}: {await client.get_quote(symbol)}")
return "\n".join(_info)
Expand All @@ -209,7 +209,7 @@ async def get_balances(self):
balance
"""
_info = ["💵\n"]
_info = []
for client in self.clients:
_info.append(f"{client.name}:\n{await client.get_account_balance()}")
return "\n".join(_info)
Expand All @@ -225,7 +225,7 @@ async def get_positions(self):
position
"""
_info = ["📊\n"]
_info = []
for client in self.clients:
_info.append(f"{client.name}:\n{await client.get_account_position()}")
return "\n".join(_info)
Expand All @@ -240,7 +240,7 @@ async def get_pnls(self, **kwargs):
Returns:
pnl
"""
_info = ["🏆\n"]
_info = []
for client in self.clients:
client_name = f"{client.name}:\n"
account_pnl = await client.get_account_pnl(
Expand All @@ -264,7 +264,7 @@ async def submit_order(self, order_params):
trade_confirmation(dict)
"""
_order = ["🧾 Order\n"]
_order = []
for client in self.clients:
_order.append(
f"{client.name}:\n{await client.execute_order(order_params)}\n"
Expand All @@ -282,7 +282,7 @@ async def modify_position(self, order_params):
trade_confirmation(dict)
"""
_order = ["🧾 Order\n"]
_order = []
for client in self.clients:
_order.append(
f"{client.name}:\n{await client.modify_position(order_params)}\n"
Expand Down

0 comments on commit 22a9d84

Please sign in to comment.