Skip to main content
POST
TypeScript

Authorizations

Authorization
string
header
required

The Trading API key (trdrs_sk_…), for market data, orders and account state on the accounts its owner holds. Use it server-to-server, and keep it on your server. Its scope is named trading in the API.

Query Parameters

provider
string

The provider the account is at. Omit it to use your default provider.

account
string

The account number at that provider. It must be one of your own accounts.

Body

application/json

The order to cancel.

providerOrderId
string
required

The order id at the provider.

Response

The provider accepted the cancel. If the account is copied to follower accounts, the cancel is copied to them only after this.

The confirmation a write returns when it has nothing else to say.

ok
boolean
required

True when the write succeeded.