Webhook Message

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, 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, 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 automate your trading? Sign up for free today.