{"uid":"cap_LuiM0fxZpnd-25Df4_mx9","slug":"futures-expiry-api-front-month-contract-a02ec5d7","name":"Futures Expiry API – Front Month Contract","description":"Returns the current front-month contract of a CME or Eurex index future, the most active contract after the roll date, days to expiration and the exact last trading time.","url":"https://futures-expiry-api.onrender.com/v1/front-month?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["product"],"properties":{"at":{"type":"string","description":"Optional ISO 8601 time with offset, e.g. 2026-12-11T15:00:00Z. Default: now."},"product":{"type":"string","description":"Futures product: ES, MES, NQ, MNQ, YM, MYM, RTY, M2K, FDAX, FDXM, FESX, FSMI"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-TAjYRcx8NXfx7-MIpAZd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current front-month contract symbol, days to expiration, and exact last trading time for a CME or Eurex index futures product.","exampleAgentPrompt":"What's the current front-month contract for ES futures and how many days are left until it expires?","exampleUseCases":[{"title":"Automated futures roll monitoring","prompt":"Check the front-month ES futures contract right now and tell me how many days I have left before it rolls — I need to know when to switch positions."},{"title":"Options expiry alignment check","prompt":"What's the exact last trading time for the current front-month NQ futures contract? I need to align my options hedge expiry with it."},{"title":"Historical contract lookup for backtesting","prompt":"What was the front-month FDAX contract on December 11, 2026 at 15:00 UTC? I'm backtesting a strategy and need the active contract at that point in time."}],"resultDescription":"Returns the front-month contract identifier (e.g. ESH25), the most active contract after the roll date, the number of calendar days to expiration, and the exact last trading date and time (with timezone) for the specified CME or Eurex index futures product.","failureModes":["Missing or invalid 'product' query parameter returns a 400 error","Unrecognized product code (not in supported enum) returns an error","Invalid ISO 8601 format for the 'at' parameter causes a parse error","Service unavailability on Render hosting platform may cause timeouts","Payment failure via x402 protocol blocks the request"],"whenToPreferThis":"Use this endpoint when you need precise, real-time front-month contract identification and expiration timing for CME or Eurex equity index futures (ES, NQ, YM, FDAX, FESX, etc.). Prefer it over generic financial data APIs when you specifically need roll-date-aware front-month selection and exact last-trading-time precision rather than approximate settlement dates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T18:27:18.541Z","isFirstParty":false,"canonicalSlug":"futures-expiry-api-front-month-contract-a02ec5d7"}