This message indicates that an invalid expiration date was provided in the webhook request. TradersPost requires that the expiration be specified as either a valid absolute date (in the format YYYY-MM-DD) or as a relative date expression (such as +1 month). If the expiration date does not conform to these formats, it will be considered invalid and the request will not be processed.
Invalid expiration example. While it is a date, it is in a format that TradersPost is not able to understand:
{
"ticker": "AAPL",
"action": "buy",
"expiration": "20230120",
"optionType": "call",
"strikePrice": 150
}
Valid expiration example:
{
"ticker": "AAPL",
"action": "buy",
"expiration": "2023-01-20",
"optionType": "call",
"strikePrice": 150
}
Free 7-day trial
Set-up in 3 minutes
Paper account for testing