Skip to content

Commit

Permalink
feat: add expires_at into Order (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio authored Feb 4, 2025
1 parent 644c5de commit 7fa0a94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alpaca/trading/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class Order(ModelWithID):
submitted_at (datetime): Timestamp when the order was submitted.
filled_at (Optional[datetime]): Timestamp when the order was filled.
expired_at (Optional[datetime]): Timestamp when the order expired at.
expires_at (Optional[datetime]): An auto cancel request will be triggered after this timestamp.
canceled_at (Optional[datetime]): Timestamp when the order was canceled.
failed_at (Optional[datetime]): Timestamp when the order failed at.
replaced_at (Optional[datetime]): Timestamp when the order was replaced by a new order.
Expand Down Expand Up @@ -215,6 +216,7 @@ class Order(ModelWithID):
submitted_at: datetime
filled_at: Optional[datetime] = None
expired_at: Optional[datetime] = None
expires_at: Optional[datetime] = None
canceled_at: Optional[datetime] = None
failed_at: Optional[datetime] = None
replaced_at: Optional[datetime] = None
Expand Down

0 comments on commit 7fa0a94

Please sign in to comment.