{"uid":"cap_z9304H69QlaqDU-6d8S5g","slug":"writerslogic-market-session-checker-76d0056f","name":"WritersLogic Market Session Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/market-session?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","maxLength":5,"description":"venue caller only, local HH:MM."},"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","maxLength":5,"description":"venue caller only, local HH:MM, after open."},"venue":{"enum":["nyse","caller"],"type":"string"},"expect":{"enum":["open","closed"],"type":"string","description":"If given, status is fail for any instant whose state differs."},"weekend":{"type":"array","items":{"type":"integer","maximum":6,"minimum":0},"maxItems":6,"description":"Non-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend."},"holidays":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"maxItems":400,"description":"Extra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry)."},"instants":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|z|[+-]\\d{2}:?\\d{2})$","maxLength":36},"maxItems":50,"minItems":1,"description":"RFC 3339 timestamps with Z or offset."},"timeZone":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$","maxLength":64,"description":"venue caller only."},"earlyCloses":{"type":"array","items":{"type":"object","required":["date","close"],"properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","maxLength":5}}},"maxItems":100,"description":"venue caller only."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j8XynCL7ckaYx5tPeQR4X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether the NYSE core trading session (or a custom venue) is open or closed for up to 50 caller-supplied timestamps, returning status, closure reason, session boundaries, and next open time.","exampleAgentPrompt":"Can you check whether the NYSE was open on January 2, 2027 at 10:00 AM ET and also at 4:30 PM ET that same day — and if either is closed, tell me the reason and when the next session opens?","exampleUseCases":[{"title":"Pre-trade timestamp validation","prompt":"Before submitting these 30 trade order timestamps, check each one against NYSE hours to see which ones fall outside the core session and why — here's the list: [2027-03-15T09:00:00-04:00, 2027-03-15T10:30:00-04:00, 2027-03-15T16:01:00-04:00, ...]"},{"title":"Holiday closure detection for financial reports","prompt":"My report covers the week of November 24–28, 2026 — can you tell me which of those days the NYSE was closed and what the reason was for each closure?"},{"title":"Custom venue session check","prompt":"I have a custom trading venue that's open Monday–Friday 08:00–17:00 Europe/London, closed on UK bank holidays. Can you check whether it was open on May 4, 2026 at 09:00 UTC and May 25, 2026 at 12:00 UTC?"}],"resultDescription":"For each submitted timestamp, the agent receives: whether the session is open or closed, the specific reason if closed (weekend, holiday, before-open, after-close), the session's open and close instants for that day, the next open instant, and a status of 'unsupported' for any timestamp outside the 2026–2028 NYSE data snapshot. For caller-defined venues, the same fields are returned using the provided schedule.","failureModes":["Timestamp outside 2026–2028 NYSE snapshot returns 'unsupported' status","Invalid RFC 3339 format or missing timezone offset causes validation error","More than 50 instants in a single request exceeds the batch limit","Caller venue missing required fields (timeZone, open, close) causes error","Early-close or holiday dates formatted incorrectly are rejected","Unscheduled market halts or exchange closures not reflected (snapshot only)","Pre-market and extended hours are not covered and treated as closed"],"whenToPreferThis":"Use this endpoint when you need deterministic, batch NYSE session status checks for one or more specific timestamps — especially within the 2026–2028 window. It is ideal for financial agents validating trade timestamps, scheduling tasks around market hours, or auditing historical records against official NYSE holidays. Prefer it over manual calendar lookups or general-purpose time APIs when you need structured closure reasons, session boundaries, and next-open times. It is not suitable for real-time clock-based checks (you must supply the timestamp), live halt detection, pre-market hours, or exchanges other than NYSE.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:05.337Z","isFirstParty":false,"canonicalSlug":"writerslogic-market-session-checker-76d0056f"}