Skip to content

ApiStopLimitOrderHistoryDTO

stonepy.models.ApiStopLimitOrderHistoryDTO.ApiStopLimitOrderHistoryDTO

Bases: ResponseModel

A stop or limit order from a historical perspective.

order_id class-attribute instance-attribute

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

The order's unique identifier.

market_id class-attribute instance-attribute

market_id: int | None = Field(
    default=None, alias="MarketId"
)

The markets unique identifier.

market_name class-attribute instance-attribute

market_name: str | None = Field(
    default=None, alias="MarketName"
)

The market's name.

direction class-attribute instance-attribute

direction: str | None = Field(
    default=None, alias="Direction"
)

The direction, Buy or Sell .

original_quantity class-attribute instance-attribute

original_quantity: Decimal | None = Field(
    default=None, alias="OriginalQuantity"
)

The quantity of the order when it became a trade / was cancelled etc.

price class-attribute instance-attribute

price: Decimal | None = Field(default=None, alias='Price')

The price / rate that the order was filled at.

trigger_price class-attribute instance-attribute

trigger_price: Decimal | None = Field(
    default=None, alias="TriggerPrice"
)

The price / rate that the order was set to trigger at.

trailing_distance class-attribute instance-attribute

trailing_distance: Decimal | None = Field(
    default=None, alias="TrailingDistance"
)

The stop order's trailing distance. (Used when this is a trailing stop order.)

trading_account_id class-attribute instance-attribute

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

The trading account that the order is on.

type_id class-attribute instance-attribute

type_id: int | None = Field(default=None, alias='TypeId')

The type of the order stop, limit or trade. The table of lookup codes can be found at Lookup Values .

order_applicability_id class-attribute instance-attribute

order_applicability_id: int | None = Field(
    default=None, alias="OrderApplicabilityId"
)

The duration that the order was applicable, i.e. good till cancelled (GTC), good for day (GFD), or good till time (GTT).

currency class-attribute instance-attribute

currency: str | None = Field(default=None, alias="Currency")

The trade currency.

status_id class-attribute instance-attribute

status_id: int | None = Field(
    default=None, alias="StatusId"
)

The order status. The table of lookup codes can be found at Lookup Values .

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

created_date_time_utc class-attribute instance-attribute

created_date_time_utc: StoneXDateTime | None = Field(
    default=None, alias="CreatedDateTimeUtc"
)

The creation date and time of the order in UNIX time format.

guaranteed class-attribute instance-attribute

guaranteed: bool | None = Field(
    default=None, alias="Guaranteed"
)

Flag to indicate whether this is a guaranteed order.

trade_reference class-attribute instance-attribute

trade_reference: str | None = Field(
    default=None, alias="TradeReference"
)

Alternative trade reference.

order_reference class-attribute instance-attribute

order_reference: str | None = Field(
    default=None, alias="OrderReference"
)

The order reference for this stop / limit.

source class-attribute instance-attribute

source: str | None = Field(default=None, alias='Source')

The source for this stop / limit order i.e. FIX/MT4/G2.