Webhook Message

Invalid Stop Loss Value Required

Invalid stop loss value. You are required to have a relative or absolute stop loss.

This message indicates that the stop loss value provided in the request is invalid because either a relative or absolute stop loss value is required. TradersPost requires that one of these parameters be specified to define the stop loss. Without a value for either parameter, the request will not be processed.

Invalid stop loss value example where neither a relative or absolute stop loss value is provided:

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

Valid stop loss value example (relative percent):

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

Valid stop loss value example (relative amount):

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

Valid stop loss value example (absolute stopPrice):

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

In the above examples, a valid stop loss order includes either a relative or absolute stop loss, ensuring clear and precise instructions for the stop loss mechanism.

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