Join us live for TradersPost Tutor Sessions today at 1pm EST. Join us to learn, ask questions, and level up your automation game. Watch on YouTube
Webhook Message

Invalid Quantity Type Action

The provided quantityType is invalid for the specified action. The quantityType field can only be used when the action field is set to buy, sell, reverse, exit, or add.

This message indicates that an invalid action was provided for the specified quantityType in the request. TradersPost requires that the quantityType parameter can only be used with the following actions: buy, sell, reverse, exit, or add. Any other action used in conjunction with a quantityType will be considered invalid, and the request will not be processed.

Example invalid quantityType action:

{
    "ticker": "AAPL",
    "action": "cancel",
    "quantityType": "percent_of_equity",
    "quantity": 50
}

Since action=cancel, the percent_of_equity is not relevant when canceling open orders, so the request will not be processed. You can opt into order canceling for that signal by sending "cancel": true or "action": "cancel" in your webhook/signal JSON when needed (for example, when using take profit or stop loss with your entry).

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now