Webhook Message

Invalid Expiration

Invalid expiration provided. Expiration must be a valid absolute date (2024-09-01) or relative date expression (+1 month).

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
}

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