v1

latestOpenAPI 3.0.12026-07-26171200932.8 KB
Deprecated

Cancels a market order for open before it is executed.

Deprecated: This endpoint is no longer present in the current eToro Public API Swagger. Prefer the current replacement endpoints where available.

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

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

Path parameters

orderIdinteger required

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

Headers

x-request-idstring uuid required
Example:a8518935-f0d8-49d8-9c15-c04a665da4dd

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 pending market order. The response includes a confirmation token.

tokenstring uuid required

A confirmation token indicating the order cancellation.