Back to Webhook Messages
Webhook Messages

Invalid Strike Count

The provided strikeCount is invalid. The strikeCount must be an integer between 2 and 20.

This message indicates that the strikeCount provided in the request is invalid. TradersPost requires that the strikeCount parameter be an integer between 2 and 20. Values are cast to (int) before validation — fractional strings such as "12.7" become 12 rather than failing as non-integers. Any value outside the allowed range will be considered invalid, and the request will not be processed.

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

  • The strikeCount is less than 2 or greater than 20.
  • Ensure that the strikeCount in your request is an integer between 2 and 20 to avoid this error.

Invalid strikeCount example:

{
    "ticker": "AAPL",
    "action": "buy",
    "expiration": "+6 months",
    "optionType": "call",
    "intrinsicValue": "itm",
    "strikesAway": 2,
    "strikeCount": 21,
    "quantityType": "dollar_amount",
    "quantity": 1000
}

Valid strikeCount example:

{
    "ticker": "AAPL",
    "action": "buy",
    "expiration": "+6 months",
    "optionType": "call",
    "intrinsicValue": "itm",
    "strikesAway": 1,
    "strikeCount": 20,
    "quantity": 1
}

In the above examples, a valid strikeCount is a numeric value within the specified range, ensuring the request meets the required parameters for processing.

Ready to put Invalid Strike Count 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.