Skip to content

Commit 16c754d

Browse files
authored
Add external_identifier field to NewOrder and PlacedOrder classes (#290)
This update introduces an external_identifier attribute to both NewOrder and PlacedOrder classes, allowing for better tracking of orders across systems.
1 parent af8f9a4 commit 16c754d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tastytrade/order.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ class NewOrder(TastytradeData):
254254
preflight_id: str | None = None
255255
rules: OrderRule | None = None
256256
advanced_instructions: AdvancedInstructions | None = None
257+
#: External identifier for the order, used to track orders across systems
258+
external_identifier: str | None = None
257259

258260
@computed_field # type: ignore[misc]
259261
@property
@@ -330,6 +332,8 @@ class PlacedOrder(TastytradeData):
330332
preflight_id: str | int | None = None
331333
order_rule: OrderRule | None = None
332334
source: str | None = None
335+
#: External identifier for the order, used to track orders across systems
336+
external_identifier: str | None = None
333337

334338
@model_validator(mode="before")
335339
@classmethod

0 commit comments

Comments
 (0)