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:
strikeCount is less than 2 or greater than 20.strikeCount is not an integer (e.g., it contains letters or special characters).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.