Back to Webhook Messages
Webhook Messages

Invalid Stop Loss Stop Price Required

The stop loss configuration is invalid. If you do not provide a relative stop loss, you must provide stopLoss.stopPrice. stopLoss.limitPrice cannot be used without stopLoss.stopPrice.

This message indicates that a stop loss value provided in the request is invalid because a stopPrice is required when using absolute stop loss fields. TradersPost requires that stopLoss.limitPrice cannot be sent without stopLoss.stopPrice. Without a stopPrice, the request will not be processed.

This error can occur due to several reasons, such as:

  • stopLoss.limitPrice is set without stopLoss.stopPrice.
  • Misunderstanding of the requirement to specify a stopPrice for absolute stop loss orders.
  • Typographical errors or incorrect configuration in the request.
  • Ensure that your request includes a stopPrice whenever you send an absolute stop loss limit price.

Invalid stopLoss example where limitPrice is set without stopPrice:

{
    "ticker": "AAPL",
    "action": "sell",
    "orderType": "stop_limit",
    "stopLoss": {
        "type": "stop_limit",
        "limitPrice": 95
    }
}

Valid stopLoss value example:

{
    "ticker": "AAPL",
    "action": "sell",
    "orderType": "stop",
    "stopLoss": {
        "type": "stop",
        "stopPrice": 95
    }
}

In the above examples, a valid stop loss order includes a stopPrice when using absolute stop loss fields, ensuring clear and precise instructions for when the stop loss order should be triggered.

Ready to put Invalid Stop Loss Stop Price Required to work?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.