Webhook Message

Invalid Stop Loss Amount And Percent

Invalid stop loss value. You cannot have a value for both amount and percent.

This message indicates that both the stopLoss.amount and stopLoss.percent were provided in the request, which is not allowed. TradersPost requires that you specify only one of these values to set the stop loss. Providing values for both parameters will be considered invalid, and the request will not be processed.

Invalid stopLoss example where both amount and percent are provided:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "stop",
        "amount": 10,
        "percent": 5
    },
}

Valid stopLoss example (amount only) that will calculate a $90 stop price:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "stop",
        "amount": 10
    },
}

Valid stopLoss example (percent only) that will calculate a $95 stop price:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "stop",
        "percent": 5
    },
}

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