Skip to content

Cancel individual order

Request

Cancel a single active order by ID (the unique ID assigned by server, received in the place order response). Use Query order (server ID) or Query order (client ID or all active orders) to get the current status of your order.

Security
SSO_TOKEN
Path
idstring, <= 32 charactersrequired

The unique ID assigned by the server when your order was placed. Returned in response in the orderId field.

Example:4820275011
JavaScript
const id = '4820275011';
const resp = await fetch(
  `https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/orders/${id}`,
  {
    method: 'DELETE',
    headers: {
      SSO_TOKEN: 'YOUR_API_KEY_HERE'
    }
  }
);

const data = await resp.text();
console.log(data);

Responses