Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add expires_at into Order #558

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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