Webhook Message

Invalid Stop Loss Trail Value Required

Invalid trailing stop loss value. You are required to have a value for trailAmount or trailPercent.

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.