Skip to main content
DELETE
/
api
/
v1
/
trading
/
execution
/
limit-orders
/
{orderId}
Cancels a Market-if-touched order that has not yet been executed.
curl --request DELETE \
  --url https://public-api.etoro.com/api/v1/trading/execution/limit-orders/{orderId} \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
{
  "token": "9af05785-be29-482d-a892-9d9be4fd34bc"
}

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"69f79314-a293-46a8-9ca6-a18d064b0a06"

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 unique identifier of the Market-if-touched order to be canceled.

Response

200 - application/json

Successfully canceled the Market-if-touched order. The response includes a confirmation token.

token
string<uuid>
required

A confirmation token indicating the order cancellation.