Back to Signal Fields
Signal Fields

Cancel order type

Cancel order type shows for the Cancel action, and for any signal that cancels open orders first. It limits which open orders are canceled to those of one order type, such as only the stop orders. Leave it on Default to cancel the open orders of every type. In a signal's JSON the field is cancelOrderType: one of market, limit, stop, stop_limit or trailing_stop.

Cancel only the open limit orders:

{
    "ticker": "AAPL",
    "action": "cancel",
    "cancelOrderType": "limit"
}

Cancel only the open stop orders:

{
    "ticker": "AAPL",
    "action": "cancel",
    "cancelOrderType": "stop"
}

Cancel only the open stop limit orders:

{
    "ticker": "AAPL",
    "action": "cancel",
    "cancelOrderType": "stop_limit"
}

Cancel only the open trailing stop orders:

{
    "ticker": "AAPL",
    "action": "cancel",
    "cancelOrderType": "trailing_stop"
}

Cancel only the open market orders:

{
    "ticker": "AAPL",
    "action": "cancel",
    "cancelOrderType": "market"
}

Cancel every open order of the ticker (leave out cancelOrderType):

{
    "ticker": "AAPL",
    "action": "cancel"
}

Cancel the open stop orders first, then send an exit:

{
    "ticker": "AAPL",
    "action": "exit",
    "cancel": true,
    "cancelOrderType": "stop"
}

Ready to put 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.