Back to Webhook Messages
Webhook Messages

Invalid Cancel Order Type

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"
}

Ready to put Invalid Cancel Order Type to work?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.