Skip to content

ApiIfDoneDTOv2

stonepy.models.ApiIfDoneDTOv2.ApiIfDoneDTOv2

Bases: ResponseModel

Contains the If/Done stop and limit orders. An If/Done order is comprised of two separate orders linked together and requested as a single order. When the first order is executed, the second order becomes an active order. For example, attaching a stop/limit to a trade or order.

stop class-attribute instance-attribute

stop: ApiStopLimitOrderDTOv2 | None = Field(
    default=None, alias="Stop"
)

The price at which the stop order will be filled

limit class-attribute instance-attribute

limit: ApiStopLimitOrderDTOv2 | None = Field(
    default=None, alias="Limit"
)

The price at which the limit order will be filled