Skip to content

FixedMarginOrderResponseDTO

stonepy.models.FixedMarginOrderResponseDTO.FixedMarginOrderResponseDTO

Bases: ResponseModel

The response from the fixed margin trade request.

instruction_status_id class-attribute instance-attribute

instruction_status_id: int | None = Field(
    default=None, alias="InstructionStatusId"
)

The ID indicating the instruction status (Pending, Accepted, etc.) . The table of lookup codes can be found at API Code Lookup Values .

instruction_status_reason_id class-attribute instance-attribute

instruction_status_reason_id: int | None = Field(
    default=None, alias="InstructionStatusReasonId"
)

The ID corresponding to a more descriptive reason for the instruction status. The table of lookup codes can be found at API Code Lookup Values .

order_status_id class-attribute instance-attribute

order_status_id: int | None = Field(
    default=None, alias="OrderStatusId"
)

The ID indicating the order status (Pending, Accepted, Open, etc.) . The table of lookup codes can be found at Lookup Values .

order_status_reason_id class-attribute instance-attribute

order_status_reason_id: int | None = Field(
    default=None, alias="OrderStatusReasonId"
)

The ID corresponding to a more descriptive reason for the order status. The table of lookup codes can be found at Lookup Values .

order_id class-attribute instance-attribute

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

The unique identifier associated to the order returned from the underlying trading system.

quantity class-attribute instance-attribute

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

The trade quantity.

execution_price class-attribute instance-attribute

execution_price: Decimal | None = Field(
    default=None, alias="ExecutionPrice"
)

The market price at which the trade was executed.

fixed_initial_margin class-attribute instance-attribute

fixed_initial_margin: Decimal | None = Field(
    default=None, alias="FixedInitialMargin"
)

The fixed amount of trading resources used to place the trade.

take_profit_price class-attribute instance-attribute

take_profit_price: Decimal | None = Field(
    default=None, 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 | None = Field(
    default=None, alias="StopLossPrice"
)

The market price at which the stop loss is triggered.

error_message class-attribute instance-attribute

error_message: str | None = Field(
    default=None, alias="ErrorMessage"
)

Contains the error message - this is only used when the Status = -1.