List orders for close position request

get/api/prime/trading/v1/accounts/{accountId}/margin/positions/close/requests/{closePositionRequestID}/orders

List orders associated with a close position request.

Path Parameters

  • accountIdstringRequired
    The ID of the account
  • closePositionRequestIDstring<uuid>Required
    The ID of the close position request

200 Response

orders array[object] required
Example: {"closePositionsRequestId":"b2c3d4e5-f6g7-8901-bcde-f23456789012","status":"completed","currency":"BTC","targetCurrency":"USD","creationDate":"2024-01-15T11:05:00.000Z","modifiedDate":"2024-01-15T11:06:00.000Z","orderId":"c3d4e5f6-g7h8-9012-cdef-345678901234"}
closePositionsRequestId string <uuid>required
The close position request ID associated with this order
status string required
Status of a close position request or order
Allowed values: pending in_progress completed failed
currency string required
Currency symbol for the order
targetCurrency string required
The target currency to trade into when closing the position
creationDate string <date-time>required
Timestamp when the order was created
modifiedDate string <date-time>required
Timestamp when the order was last modified
orderId string <uuid>
The order ID of the trade created to close this position. Omitted if the trade order has not been created yet.