The provided cancelOrderType value is invalid. The cancelOrderType field must be one of the following values: market, limit, stop, stop_limit, or trailing_stop.
This message indicates that the cancelOrderType value provided in the request is invalid. When you send cancel: true or "action": "cancel", you can optionally set cancelOrderType to limit which open orders are canceled by order type.
The cancelOrderType field must be one of the following values: market, limit, stop, stop_limit, or trailing_stop. Any other value will be considered invalid, and the request will not be processed.
Invalid cancelOrderType example:
{
"ticker": "AAPL",
"action": "cancel",
"cancelOrderType": "invalid"
}
Valid cancelOrderType example:
{
"ticker": "AAPL",
"action": "cancel",
"cancelOrderType": "stop"
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing
Your browser didn't send the information this action needs.
That usually means a privacy tool, ad blocker, or other browser extension changed the page before you clicked. Nothing is wrong with your account.
What to try: allow this site in your ad blocker or privacy extension, use a private window with extensions turned off, or reload the page and try again.
Still stuck? Contact support and we can help.