v1

latestOpenAPI 3.0.12026-07-26171200932.8 KB
Trading - Real

Cancel pending close order

Rate limit: 20 requests per 60 seconds. This is a shared quota — the same budget is consumed by a group of related endpoints, so calling any of them reduces what is left for the others (you cannot call each at the full rate independently). Endpoints sharing this quota:

  • DELETE /api/v1/trading/execution/limit-orders/{orderId}
  • DELETE /api/v1/trading/execution/market-open-orders/{orderId}
  • DELETE /api/v2/trading/execution/orders/{orderId}
  • POST /api/v1/trading/execution/limit-orders
  • POST /api/v1/trading/execution/market-close-orders/positions/{positionId}
  • POST /api/v1/trading/execution/market-open-orders/by-amount
  • POST /api/v1/trading/execution/market-open-orders/by-units
  • POST /api/v2/trading/execution/orders

This endpoint allows traders to cancel a previously placed market order for close before execution. If the order has already been processed, cancellation will not be possible.

delete/api/v1/trading/execution/market-close-orders/{orderId}

Path parameters

orderIdinteger required

The unique identifier of the market order for close to be canceled.

Headers

x-request-idstring uuid required
Example:80622550-9fb7-4b17-b805-9de90d495f65

A unique request identifier.

x-api-keystring password required
Example:lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663

API key for authentication.

x-user-keystring password required
Example:eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_

User-specific authentication key.

Response

Successfully canceled the market order for close. The response includes a confirmation token.

tokenstring uuid required

A confirmation token indicating the order cancellation.