Skip to content

UpdateFixedMarginTradeOrderRequestDTO

stonepy.models.UpdateFixedMarginTradeOrderRequestDTO.UpdateFixedMarginTradeOrderRequestDTO

Bases: RequestModel

A request to add a closing order to an open fixed margin position, or update an existing closing order attached to an open fixed margin position.

trading_account_id class-attribute instance-attribute

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

The ID of the trading account.

market_id class-attribute instance-attribute

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

The unique identifier for a market.

order_id class-attribute instance-attribute

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

Unique identifier for the order.

take_profit_price class-attribute instance-attribute

take_profit_price: Decimal = Field(alias='TakeProfitPrice')

The optional price at which the trade is closed to take profits.

stop_loss_price class-attribute instance-attribute

stop_loss_price: Decimal = Field(alias='StopLossPrice')

The optional market price at which the stop loss is triggered.

trailing_stop_distance class-attribute instance-attribute

trailing_stop_distance: Decimal = Field(
    alias="TrailingStopDistance"
)

The distance away from the current market price that the stop loss should maintain if it is a trailing stop loss order.