OrderDTO¶
stonepy.models.OrderDTO.OrderDTO
¶
Bases: ResponseModel
An order for a specific Trading Account.
order_id
class-attribute
instance-attribute
¶
The Order identifier.
market_id
class-attribute
instance-attribute
¶
The Market identifier.
client_account_id
class-attribute
instance-attribute
¶
Client account ID.
trading_account_id
class-attribute
instance-attribute
¶
Trading account ID.
currency_id
class-attribute
instance-attribute
¶
Trade currency ID.
currency_iso
class-attribute
instance-attribute
¶
Trade currency ISO code.
direction
class-attribute
instance-attribute
¶
Direction of the order (1 == buy, 0 == sell).
auto_rollover
class-attribute
instance-attribute
¶
Flag indicating whether the order automatically rolls over. Only applies to markets where the underlying is a futures contract.
execution_price
class-attribute
instance-attribute
¶
The price at which the order was executed.
last_changed_time
class-attribute
instance-attribute
¶
The date and time that the order was last changed. Always expressed in UTC.
open_price
class-attribute
instance-attribute
¶
The open price of the order.
original_last_changed_date_time
class-attribute
instance-attribute
¶
original_last_changed_date_time: StoneXDateTime | None = (
Field(default=None, alias="OriginalLastChangedDateTime")
)
The date of the order. Always expressed in UTC.
original_quantity
class-attribute
instance-attribute
¶
The orders original quantity, before any part / full closures.
position_method_id
class-attribute
instance-attribute
¶
Indicates the position of the trade. 1 == LongOrShortOnly, 2 == LongAndShort.
quantity
class-attribute
instance-attribute
¶
The current quantity of the order.
type
class-attribute
instance-attribute
¶
The type of the order (1 = Trade / 2 = Stop / 3 = Limit) . The table of lookup codes can be found at Lookup Values .
status
class-attribute
instance-attribute
¶
The order status ID. The table of lookup codes can be found at Lookup Values .
reason_id
class-attribute
instance-attribute
¶
The order status reason identifier. The table of lookup codes can be found at Lookup Values .