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, add, breakeven, or resize.
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, breakeven, add, or resize. 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).
Free 7-day trial
Set-up in 3 minutes
Paper account for testing