Webhook Message

Invalid Strike Price

Invalid strikePrice provided. Strike price must be a valid number greater than zero and must be sent with a valid expiration and optionType.

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:

  • The strikePrice is not a number (e.g., it contains letters or special characters).
  • The strikePrice is a negative number or zero.
  • The strikePrice is provided without a valid expiration and optionType.
  • Ensure that your request includes a valid 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",
}

Ready to automate your trading? Sign up for free today.