💸 Take advantage of our once-a-year Black Friday 40% off event for new subscribers or when upgrading your plan with code BF402025. Don't miss out!
Webhook Message

Invalid Stop Loss Trail Value Required

The trailing stop loss configuration is invalid. When stopLoss.type is set to trailing_stop, you must provide either a stopLoss.trailAmount or stopLoss.trailPercent value, but not both.

This message indicates that the trailing stop loss value provided in the request is invalid because a value for either stopLoss.trailAmount or stopLoss.trailPercent is required. TradersPost requires that one of these parameters be specified to define the trailing stop loss. If a request does not include a value for either stopLoss.trailAmount or stopLoss.trailPercent, the request will not be processed.

Invalid trailing stop loss value example:

{
    "ticker": "AAPL",
    "action": "buy",
    "stopLoss": {
        "type": "trailing_stop"
    }
}

Valid trailing stop loss value example (trailAmount):

{
    "ticker": "AAPL",
    "action": "buy",
    "stopLoss": {
        "type": "trailing_stop",
        "trailAmount": "2"
    }
}

Valid trailing stop loss value example (trailPercent):

{
    "ticker": "AAPL",
    "action": "buy",
    "stopLoss": {
        "type": "trailing_stop",
        "trailPercent": "5"
    }
}

In the above examples, a valid trailing stop loss order includes a value for either trailAmount or trailPercent, ensuring clear and precise instructions for the trailing stop loss mechanism.

Ready to automate your trading? Sign up for free today.