Skip to content

Commit

Permalink
🎨 update client.py and main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Apr 10, 2024
1 parent f5bebfa commit 706e3b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cefi/handler/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ async def get_trade_confirmation(self, trade, instrument, action):
trade_confirmation += f"ℹ️ {trade['id']}\n"
trade_confirmation += f"🗓️ {trade['datetime']}"
if trade_confirmation:
return f"{self.name}:\n{trade_confirmation}"
return f"{trade_confirmation}"
except Exception as e:
logger.error("Error {}", e)
2 changes: 1 addition & 1 deletion cefi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,5 @@ async def submit_order(self, order_params):
"""
_order = ["🧾 Order\n"]
for client in self.clients:
_order.append(f"{client.name}: {await client.execute_order(order_params)}")
_order.append(f"{client.name}:\n{await client.execute_order(order_params)}\n")
return "\n".join(_order)

0 comments on commit 706e3b0

Please sign in to comment.