Skip to content

Commit

Permalink
update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
junyuanz1 committed Dec 6, 2024
1 parent ba37d60 commit f2af60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thetagang/trades.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def submit_order(
else:
self.__add_trade(trade)
except RuntimeError:
log.error(f"Failed to submit contract: {contract}, order: {order}")
log.error(f"{contract.symbol}: Failed to submit contract, order={order}")

def records(self) -> List[Trade]:
return self.__records
Expand Down

0 comments on commit f2af60c

Please sign in to comment.