Skip to content

ApiManagedTradeDTO

stonepy.models.ApiManagedTradeDTO.ApiManagedTradeDTO

Bases: ResponseModel

A constituent order of a Trading Advisor managed position.

order_id class-attribute instance-attribute

order_id: int | None = Field(default=None, alias='OrderId')

The unique identifier for the order

quantity class-attribute instance-attribute

quantity: Decimal | None = Field(
    default=None, alias="Quantity"
)

The order size or amount

trading_account_id class-attribute instance-attribute

trading_account_id: int | None = Field(
    default=None, alias="TradingAccountId"
)

The unique identifier for the managed trading account that the order is being placed on

trading_account_code class-attribute instance-attribute

trading_account_code: str | None = Field(
    default=None, alias="TradingAccountCode"
)

The code of the managed trading account that the order is being placed on

trading_account_name class-attribute instance-attribute

trading_account_name: str | None = Field(
    default=None, alias="TradingAccountName"
)

The name of the managed trading account that the order is being placed on

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 order was last changed. Note: does not include things such as the current market price