This message indicates that the strikePrice
provided in the request is invalid. TradersPost requires that the strikePrice
be a valid number greater than zero and must be sent along with a valid expiration
and optionType
. If the strikePrice
does not meet these criteria, the request will not be processed.
This error can occur due to several reasons, such as:
strikePrice
is not a number (e.g., it contains letters or special characters).strikePrice
is a negative number or zero.strikePrice
is provided without a valid expiration
and optionType
.strikePrice
greater than zero and is accompanied by valid expiration
and optionType
values to avoid this error.Invalid strikePrice
example:
{
"ticker": "AAPL",
"action": "buy",
"expiration": "2024-09-01",
"optionType": "call",
"strikePrice": -50,
}
Valid strikePrice
example:
{
"ticker": "AAPL",
"action": "buy",
"expiration": "2024-09-01",
"optionType": "call",
"strikePrice": 150,
}
In the above examples, a valid strikePrice
is a positive number and is accompanied by a valid expiration
and optionType
, ensuring the request meets the required parameters for processing.
You can alternatively specify the contract you want to trade by sending the full option contract symbol in the ticker
parameter:
{
"ticker": "AAPL 240901C150",
"action": "buy",
}