DELETE Cancel Order

DELETE https://api.swaycharts.io/dxsca-web/accounts/{account code}/orders/{order code}
DELETE https://api.swaycharts.io/dxsca-web/accounts/{account code}/orders/group

Cancel an existing order on an account

This API allows canceling order on an account. Users can always cancel orders on their own accounts, but can only cancel orders on behalf of other accounts if a special permission is set.

Only conditional requests are accepted.

// Request

Empty request

Authorization header should be included in case of basic authentication
// Path Parameters

accountCode - unique code assigned to an account (URL-encoded, https://en.wikipedia.org/wiki/Percent-encoding). See account code
order code - either a client order id (assigned by the client during order placement) or an internal code assigned by the system ("action key" of the order chain). The code should be URL-encoded.
// Query Parameters

The following query arguments are supported for the /orders/group resource:

order-codes - comma-separated list of order codes. Note that the order in this list is important for groups with parent, first order in list is parent, next orders are children.
contingency-type - contingency type of order group to cancel.

Last updated