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 Stop Price

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

This message indicates that the stopLoss.stopPrice provided in the request is invalid. TradersPost requires that the stopLoss.stopPrice be a valid positive number, representing the price at which the stop loss order will be triggered and converted to a market order and executed at the best available price.

For example, if a stop loss stop price 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.stopPrice is a negative number.
  • The stopLoss.stopPrice is not a number (e.g., it contains letters or special characters).
  • The stopLoss.stopPrice is zero or improperly formatted according to the required parameters.
  • Ensure that the stopLoss.stopPrice in your request is a positive number and correctly formatted to avoid this error.

Invalid stopLoss.stopPrice example where stopPrice does not contain a valid numeric value:

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

Valid stopLoss.stopPrice example:

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

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now