Skip to content

NewStopLimitOrderRequestDTO

stonepy.models.NewStopLimitOrderRequestDTO.NewStopLimitOrderRequestDTO

Bases: RequestModel

A request for a stop/limit order.

order_id class-attribute instance-attribute

order_id: int = Field(alias='OrderId')

The identifier of the order to update.

market_id class-attribute instance-attribute

market_id: int = Field(alias='MarketId')

The unique identifier for the market.

currency class-attribute instance-attribute

currency: str = Field(alias='Currency')

Currency to place order in.

auto_rollover class-attribute instance-attribute

auto_rollover: bool = Field(alias='AutoRollover')

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.

direction class-attribute instance-attribute

direction: str = Field(alias='Direction')

Direction identifier for order/trade, values supported are Buy or Sell .

position_method_id class-attribute instance-attribute

position_method_id: int = Field(alias='PositionMethodId')

Indicates the position of the trade. 1 == LongOrShortOnly, 2 == LongAndShort.

quantity class-attribute instance-attribute

quantity: Decimal = Field(alias='Quantity')

Size of the order/trade.

bid_price class-attribute instance-attribute

bid_price: Decimal = Field(alias='BidPrice')

Market prices are quoted as a pair (buy/sell or bid/offer) , the BidPrice is the lower of the two.

offer_price class-attribute instance-attribute

offer_price: Decimal = Field(alias='OfferPrice')

Market prices are quoted as a pair (buy/sell or bid/offer) , the OfferPrice is the higher of the two.

audit_id class-attribute instance-attribute

audit_id: str = Field(alias='AuditId')

Unique identifier for each price tick. Read this value from the prices stream. Treat it as a unique but random string.

trading_account_id class-attribute instance-attribute

trading_account_id: int = Field(alias='TradingAccountId')

The ID of the trading account associated with the trade/order request.

if_done class-attribute instance-attribute

if_done: list[ApiIfDoneDTOv2] | None = Field(
    default=None, alias="IfDone"
)

List of attached If/Done Orders that will be filled when the initial trade/order is triggered.

oco_order class-attribute instance-attribute

oco_order: NewStopLimitOrderRequestDTO | None = Field(
    default=None, alias="OcoOrder"
)

Corresponding OCO Order (One Cancels the Other) if one has been defined.

applicability class-attribute instance-attribute

applicability: str = Field(alias='Applicability')

Identifier which relates to the expiry of the order/trade, i.e. GoodTillDate (GTD), GoodTillCancelled (GTC) or GoodForDay (GFD).

expiry_date_time_utc class-attribute instance-attribute

expiry_date_time_utc: StoneXDateTime = Field(
    alias="ExpiryDateTimeUTC"
)

The associated expiry DateTime for a pair of GoodTillDate If/Done orders.

guaranteed class-attribute instance-attribute

guaranteed: bool = Field(alias='Guaranteed')

Flag to determine whether an order is guaranteed to trigger and fill at the associated trigger price.

trigger_price class-attribute instance-attribute

trigger_price: Decimal = Field(alias='TriggerPrice')

Price at which the order is intended to be triggered.

reference class-attribute instance-attribute

reference: str = Field(alias='Reference')

Reference identifier for the instruction.

allocation_profile_id class-attribute instance-attribute

allocation_profile_id: int = Field(
    alias="AllocationProfileId"
)

ID of the allocation profile to use if the client is a Trading Advisor.

order_reference class-attribute instance-attribute

order_reference: str = Field(alias='OrderReference')

The order reference identifier.

source class-attribute instance-attribute

source: str = Field(alias='Source')

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