Back to Webhook Messages
Webhook Messages

Invalid Percent Of Position Action

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

This message indicates that an invalid quantityType and action combination was provided in the request. The percent_of_position quantity type can only be used with the following actions: buy, sell, reverse, or exit. Any other action used in conjunction with percent_of_position will be considered invalid, and the request will not be processed.

Here is an example of a valid request using percent_of_position that will sell 50% of the open AAPL position:

{
    "ticker": "AAPL",
    "action": "sell",
    "quantityType": "percent_of_position",
    "quantity": 50
}

Ready to put Invalid Percent Of Position Action 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.