Back to Webhook Messages
Webhook Messages

Invalid Expiration

The provided expiration is invalid. The expiration field must be a string that can be parsed as a date (prefer YYYY-MM-DD, e.g. 2024-09-01) or a relative date expression (e.g., +1 month).

This message indicates that an invalid expiration value was provided in the webhook request. The value must be a recognizable date or relative expression. Prefer absolute dates such as YYYY-MM-DD or relative expressions such as +1 month. Values that cannot be interpreted as a date are rejected.

Invalid expiration example:

{
    "ticker": "AAPL",
    "action": "buy",
    "expiration": "not-a-date",
    "optionType": "call",
    "strikePrice": 150
}

Valid expiration example:

{
    "ticker": "AAPL",
    "action": "buy",
    "expiration": "2023-01-20",
    "optionType": "call",
    "strikePrice": 150
}

Ready to put Invalid Expiration to work?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.