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
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing
Your browser didn't send the information this action needs.
That usually means a privacy tool, ad blocker, or other browser extension changed the page before you clicked. Nothing is wrong with your account.
What to try: allow this site in your ad blocker or privacy extension, use a private window with extensions turned off, or reload the page and try again.
Still stuck? Contact support and we can help.