Join us live for TradersPost Tutor Sessions today at 1pm EST. Join us to learn, ask questions, and level up your automation game. Watch on YouTube
Webhook Message

Invalid Stop Loss Limit Price

The provided stopLoss.limitPrice is invalid. The stopLoss.limitPrice field must be a positive numeric value representing an absolute stop loss limit price.

This message indicates that the stopLoss.limitPrice provided in the request is invalid. TradersPost requires that the stopLoss.limitPrice be a valid positive number, representing the price at which the stop loss order will be filled.

For example, if a stopLoss.limitPrice such as "-50" or "xyz" is provided, the request will not be processed.

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

  • The stopLoss.limitPrice is a negative number.
  • The stopLoss.limitPrice is not a number (e.g., it contains letters or special characters).
  • The stopLoss.limitPrice is zero or improperly formatted according to the required parameters.
  • Ensure that the stopLoss.limitPrice in your request is a positive number and correctly formatted to avoid this error.

Invalid stopLoss.limitPrice example:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "stop_limit",
        "stopPrice": "90",
        "limitPrice": "invalid"
    },
}

Valid stopLoss.limitPrice example:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "stopLoss": {
        "type": "stop_limit",
        "stopPrice": "90",
        "limitPrice": "89"
    },
}

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now