Skip to content

GetOrdersResponseDTOv2

stonepy.models.GetOrdersResponseDTOv2.GetOrdersResponseDTOv2

Bases: ResponseModel

Response containing orders. Only one of the two fields will be populated depending upon the type of order (Trade or Stop / Limit) .

trade_orders class-attribute instance-attribute

trade_orders: list[ApiTradeOrderDTOv2] | None = Field(
    default=None, alias="TradeOrders"
)

The details of the order if it is a trade / open position

stop_limit_orders class-attribute instance-attribute

stop_limit_orders: list[ApiStopLimitOrderDTOv2] | None = (
    Field(default=None, alias="StopLimitOrders")
)

The details of the order if it is a stop limit order