Back to Webhook Messages
Webhook Messages

Invalid Take Profit Limit Price

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

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

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

Invalid takeProfit.limitPrice example:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "takeProfit": {
        "limitPrice": "invalid"
    }
}

Valid takeProfit.limitPrice example:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "takeProfit": {
        "limitPrice": "110"
    }
}

The takeProfit object accepts only percent, amount, limitPrice, and pnlAmount — not type or stopPrice.

Ready to put Invalid Take Profit Limit 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.