GET
List orders for close position request
List orders associated with a close position request.
Path Params
-
accountIdstring requiredThe ID of the account -
closePositionRequestIDstring uuid requiredThe ID of the close position request
Responses
200
Returns orders associated with the close position request. Returns an empty array if no orders exist yet — this endpoint does not validate that the close-position request itself exists. Use GET .../close/requests/{closePositionRequestID} to confirm the request exists.
Response Body
object
-
ordersarray of objects requiredorders object
-
closePositionsRequestIdstring uuid requiredThe close position request ID associated with this order -
statusstring enum requiredStatus of a close position request or orderpendingin_progresscompletedfailed -
currencystring requiredCurrency symbol for the order -
targetCurrencystring requiredThe target currency to trade into when closing the position -
creationDatestring date-time requiredTimestamp when the order was created -
modifiedDatestring date-time requiredTimestamp when the order was last modified -
orderIdstring uuidThe order ID of the trade created to close this position. Omitted if the trade order has not been created yet.
-
400
Bad request - Invalid path parameter format
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-
401
Unauthorized - Invalid or missing authentication
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-
403
Forbidden - Insufficient permissions
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-
500
Internal Server Error
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-