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

data array[object] required
Example: {"orderId":"c3d4e5f6-g7h8-9012-cdef-345678901234","closePositionsRequestId":"b2c3d4e5-f6g7-8901-bcde-f23456789012","currency":"BTC","side":"sell","quantity":"0.5","filledQuantity":"0.5","averagePrice":"45000.00","status":"completed","createdAt":"2024-01-15T11:05:00.000Z","completedAt":"2024-01-15T11:06:00.000Z"}
orderId string <uuid>required
Unique identifier for the order
closePositionsRequestId string <uuid>required
Associated close position request ID
currency string required
Currency symbol for the order
side string required
Side of a trade, from the perspective of the requesting user
Allowed values: buy sell
Example: buy
quantity string <decimal>required
Order quantity
filledQuantity string <decimal>
Filled quantity
averagePrice string <decimal>
Average fill price
status string required
Allowed values: pending_open open completed pending_cancel canceled error scheduled
createdAt string <date-time>required
Timestamp when the order was created
completedAt string <date-time>
Timestamp when the order was completed