ApiTradeOrderResponseDTO¶
stonepy.models.ApiTradeOrderResponseDTO.ApiTradeOrderResponseDTO
¶
Bases: ResponseModel
The response from the trade request.
status
class-attribute
instance-attribute
¶
The status of the order (Pending, Accepted, Open, etc.) . The table of lookup codes can be found at Lookup Values .
status_reason
class-attribute
instance-attribute
¶
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
¶
The unique identifier associated to the order returned from the underlying trading system.
orders
class-attribute
instance-attribute
¶
orders: list[ApiOrderResponseDTO] | None = Field(
default=None, alias="Orders"
)
List of orders with their associated response.
quote
class-attribute
instance-attribute
¶
quote: ApiQuoteResponseDTO | None = Field(
default=None, alias="Quote"
)
Quote response.
actions
class-attribute
instance-attribute
¶
actions: list[ApiOrderActionResponseDTO] | None = Field(
default=None, alias="Actions"
)
List of order actions with their associated response.
error_message
class-attribute
instance-attribute
¶
Contains the error message - this is only used when the Status = -1.