Cancel order
Changed onCancels an order in the specified account. Accepts order IDs for all asset types.
Request
- Base URLhttps://api.snaptrade.com
- URLhttps://api.snaptrade.com/accounts/{accountId}/trading/cancel
- AuthAPI key in header Signature and API key in query parameter clientId and API key in query parameter timestamp
Path parameters
Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
Query parameters
SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the rotate user secret endpoint.
Request body
Example request
{
"brokerage_order_id": "66a033fa-da74-4fcf-b527-feefdec9257e"
}Response
OK
Example response
{
"brokerage_order_id": "66a033fa-da74-4fcf-b527-feefdec9257e",
"raw_response": {
"order_id": "1234567890",
"status": "CANCELLED"
}
}Changes
- breaking
the
response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromstringto no type for status
- breaking
- breaking
the
response's property type changed from no type tostringfor status - breaking
the
response's property type changed from no type tostringfor status
- breaking