Webhook Message

Invalid Strike Count

Invalid strikeCount provided. Strike count must be 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. Any value outside this 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.
  • The strikeCount is not an integer (e.g., it contains letters or special characters).
  • 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": 21,
    "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 automate your trading? Sign up for free today.