Back to Webhook Messages
Webhook Messages

Invalid Stop Loss Trail Price

The provided stopLoss.trailPrice is invalid. The stopLoss.trailPrice field must be a positive numeric value representing a relative amount used to calculate your trailing stop loss.

stopLoss.trailPrice is a backwards-compatible alias for stopLoss.trailAmount. Prefer trailAmount in new integrations.

An invalid or non-positive trail amount supplied via either field name is reported as invalid-stop-loss-trail-amount, not this code. This historical message code remains for compatibility; prefer documenting and handling invalid-stop-loss-trail-amount for invalid trail dollar values.

Valid example using the preferred field name:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "trailing_stop",
        "trailAmount": "2"
    }
}

Valid equivalent using the legacy alias:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "trailing_stop",
        "trailPrice": "2"
    }
}

Ready to put Invalid Stop Loss Trail Price 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.