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, 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.