ApiOrderDTOv2¶
stonepy.models.ApiOrderDTOv2.ApiOrderDTOv2
¶
Bases: ResponseModel
Represents an order.
order_id
class-attribute
instance-attribute
¶
The order identifier
reference
class-attribute
instance-attribute
¶
Reference identifier for the instruction
order_reference
class-attribute
instance-attribute
¶
Reference identifier for the order
market_id
class-attribute
instance-attribute
¶
A market's unique identifier
direction
class-attribute
instance-attribute
¶
Direction identifier for trade, values supported are Buy or Sell
quantity
class-attribute
instance-attribute
¶
The current size of the order
original_quantity
class-attribute
instance-attribute
¶
The original size of the order before user modification
price
class-attribute
instance-attribute
¶
The currently set price at which the order is triggered
original_price
class-attribute
instance-attribute
¶
The original price to trigger the order before user modification
trading_account_id
class-attribute
instance-attribute
¶
The ID of the Trading Account associated with the order
currency_id
class-attribute
instance-attribute
¶
Currency ID for order (as represented in the trading system)
status_id
class-attribute
instance-attribute
¶
Status ID of order (as represented in the trading system) . The table of lookup codes can be found at Lookup Values
type_id
class-attribute
instance-attribute
¶
The type of the order: trade, stop or limit. The table of lookup codes can be found at Lookup Values
if_done
class-attribute
instance-attribute
¶
if_done: list[ApiIfDoneDTOv2] | None = Field(
default=None, alias="IfDone"
)
List of If/Done Orders which will be filled when the initial order is triggered
oco_order
class-attribute
instance-attribute
¶
oco_order: ApiStopLimitOrderDTOv2 | None = Field(
default=None, alias="OcoOrder"
)
Corresponding OCO Order (One Cancels the Other)
auto_rollover
class-attribute
instance-attribute
¶
Flag to indicate whether the trade will automatically roll into the next contract when the current contract expires. Only applies to markets where the underlying is a futures contract
last_changed_date_time_utc
class-attribute
instance-attribute
¶
last_changed_date_time_utc: StoneXDateTime | None = Field(
default=None, alias="LastChangedDateTimeUTC"
)
The date and time when the order was last changed, or executed
allocation_profile_id
class-attribute
instance-attribute
¶
Allocation profile identifier
allocation_profile_name
class-attribute
instance-attribute
¶
Allocation profile name
source
class-attribute
instance-attribute
¶
Source
executed_date_time_utc
class-attribute
instance-attribute
¶
The date and time when the order was executed
associated_orders
class-attribute
instance-attribute
¶
associated_orders: ApiAssociatedDTOv2 | None = Field(
default=None, alias="AssociatedOrders"
)
Any associated orders linked to this one. An associated order is linked to a net position rather than to specific individual trades
position_method_id
class-attribute
instance-attribute
¶
Position method identifier
realized_pnl
class-attribute
instance-attribute
¶
Realized PnL
knock_out_level
class-attribute
instance-attribute
¶
Knockout level