Skip to content

Commit

Permalink
fix balance update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
r0fls committed Jun 18, 2024
1 parent 43eed6f commit 8e70f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brokers/base_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async def place_order(self, symbol, quantity, order_type, strategy, price=None):
broker=self.broker_name,
strategy=strategy,
type='cash',
amount=new_balance_amount,
balance=new_balance_amount,
timestamp=datetime.now()
)
session.add(new_balance)
Expand Down

0 comments on commit 8e70f5c

Please sign in to comment.