VALENTINE’S SALE: ON. Take 30% off with code BEMYVALENTINE30 and show your trading some love before it expires.
Webhook Message

Invalid Option Type

The provided optionType is invalid. The optionType field must be one of the following values: both, call, or 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.