Back to Webhook Messages
Webhook Messages

Invalid Risk Percent Action

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

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

Invalid risk_percent example:

{
    "ticker": "AAPL",
    "action": "exit",
    "quantityType": "risk_percent",
    "quantity": 1
}

Valid risk_percent example:

{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "risk_percent",
    "quantity": 1,
    "stopLoss": {
        "type": "stop",
        "percent": 5
    }
}

Ready to put Invalid Risk Percent 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.