v1

latestOpenAPI 3.0.12026-07-26171200932.8 KB
Trading - Demo

Cancels an order before it is executed

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/demo/limit-orders/{orderId}
  • DELETE /api/v1/trading/execution/demo/market-close-orders/{orderId}
  • DELETE /api/v1/trading/execution/demo/market-open-orders/{orderId}
  • POST /api/v1/trading/execution/demo/limit-orders
  • POST /api/v1/trading/execution/demo/market-close-orders/positions/{positionId}
  • POST /api/v1/trading/execution/demo/market-open-orders/by-amount
  • POST /api/v1/trading/execution/demo/market-open-orders/by-units
  • POST /api/v2/trading/execution/demo/orders

This endpoint allows traders to cancel an order before execution. If the order has already been processed, cancellation will not be possible. This operation is idempotent when the order is already closed or cancelled.

delete/api/v2/trading/execution/demo/orders/{orderId}

Path parameters

orderIdinteger required

The ID of the order to cancel.

Headers

x-request-idstring uuid required
Example:f0279749-34a7-41f0-8d00-c5c5830b8d74

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

Order cancellation request submitted successfully.

tokenstring uuid

Optional confirmation token for the cancellation request.