Webhook Message

Invalid Quantity Type Action

Invalid quantityType action provided. quantityType can only be used with action buy, sell, 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, 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.

Ready to automate your trading? Sign up for free today.