Webhook Message

Invalid Option Type

Invalid optionType provided. Option type must be one of: both, call, put.

This message indicates that an invalid optionType was provided in the request. TradersPost requires that the optionType parameter be specified as one of the following values: both, call, or put. Any other value will be considered invalid and the request will not be processed.

Here is an example of a valid request with the optionType parameter specified correctly. This request will buy calls that are 6 months out, are in the money and are 1 strike away from at the money.

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

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