Skip to main content
DELETE
/
api
/
v2
/
trading
/
execution
/
demo
/
orders
/
{orderId}
Cancels an order before it is executed
curl --request DELETE \
  --url https://public-api.etoro.com/api/v2/trading/execution/demo/orders/{orderId} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
{
  "token": "7f1da128-f516-4710-8474-915566c4b22e"
}

Authorizations

Authorization
string
header
required

eToro OAuth2. Each operation lists the scopes that grant access as separate security requirements (OpenAPI OR semantics): the caller's token only needs ONE of them — you do NOT need all of them. The same scopes back the x-api-key/x-user-key credential pair.

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"8184a10e-d950-4f0c-a19b-542615e8e54f"

x-api-key
string<password>
required

API key for authentication.

Example:

"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"

x-user-key
string<password>
required

User-specific authentication key.

Example:

"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"

Path Parameters

orderId
integer<int64>
required

The ID of the order to cancel.

Response

Order cancellation request submitted successfully.

Acknowledgment when the service returns a confirmation payload.

token
string<uuid>

Optional confirmation token for the cancellation request.