ApiOpenPositionDTOv2¶
stonepy.models.ApiOpenPositionDTOv2.ApiOpenPositionDTOv2
¶
Bases: ResponseModel
Information about open position.
order_id
class-attribute
instance-attribute
¶
The order's unique identifier
market_id
class-attribute
instance-attribute
¶
The market's unique identifier
market_name
class-attribute
instance-attribute
¶
The market's name
direction
class-attribute
instance-attribute
¶
The direction, Buy or Sell
qauantity
class-attribute
instance-attribute
¶
The quantity of the order
trigger_price
class-attribute
instance-attribute
¶
Trigger price
trading_account_id
class-attribute
instance-attribute
¶
Trading account identifier
currency
class-attribute
instance-attribute
¶
The trade currency.
status
class-attribute
instance-attribute
¶
The order status. The table of lookup codes can be found at Lookup Values
stop_order
class-attribute
instance-attribute
¶
stop_order: ApiBasicStopLimitOrderDTO | None = Field(
default=None, alias="StopOrder"
)
The stop order attached to this order
limit_order
class-attribute
instance-attribute
¶
limit_order: ApiBasicStopLimitOrderDTO | None = Field(
default=None, alias="LimitOrder"
)
The limit order attached to this order
last_changed_date_time_utc
class-attribute
instance-attribute
¶
last_changed_date_time_utc: StoneXDateTime | None = Field(
default=None, alias="LastChangedDateTimeUTC"
)
Represents the date and time when the trade/order was last edited in UNIX time format. Note: does not include things such as the current market price
created_date_time_utc
class-attribute
instance-attribute
¶
The date and time that the order was created in UNIX time format. This can be the time an active order was created, which then become an open position after a fill. Alternatively, this can be the time a market order was executed
executed_date_time_utc
class-attribute
instance-attribute
¶
The date time that the order executed initially in UNIX time format. This does not include any partial closures. This can be the time an active order was created, which then become an open position after a fill. Alternatively, this can be the time a market order was executed
auto_rollover
class-attribute
instance-attribute
¶
Flag to indicate whether the trade will automatically roll into the next market interval when the current market interval expires. Only applies to markets where the underlying is a futures contract
trade_reference
class-attribute
instance-attribute
¶
An alternative trade reference
managed_trades
class-attribute
instance-attribute
¶
managed_trades: list[ApiManagedTradeDTO] | None = Field(
default=None, alias="ManagedTrades"
)
The list of constituent trades for Trading Advisor managed positions (if applicable)
allocation_profile_id
class-attribute
instance-attribute
¶
The identifier of the allocation profile that was used to create the open position, where applicable. (Used by Trade Advisor accounts)
allocation_profile_name
class-attribute
instance-attribute
¶
The name of the allocation profile that was used to create the open position, where applicable. (Used by Trade Advisor accounts)
associated_orders
class-attribute
instance-attribute
¶
associated_orders: ApiAssociatedDTOv2 | None = Field(
default=None, alias="AssociatedOrders"
)
The associated orders linked to this open position. An associated order is linked to a net position rather than to specific individual trades
fixed_initial_margin
class-attribute
instance-attribute
¶
The fixed amount of trading resources used to place the trade
position_method_id
class-attribute
instance-attribute
¶
Position method identifier