Webhook Message

Invalid Stop Loss Type

Invalid stop loss type.

This message indicates that the stopLoss.type provided in the request is invalid. TradersPost requires that the stopLoss.type be one of the recognized types such as stop, stop_limit, or trailing_stop. Any other value will be considered invalid, and the request will not be processed.

Invalid stopLoss.type example:

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

Valid stopLoss.type example:

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

In the above examples, a valid stop loss order includes a recognized stopLoss.type, ensuring clear and precise instructions for the stop loss mechanism.

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