# WritersLogic Market Session Checker

> WritersLogic Market Session Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/market-session?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-market-session-checker-76d0056f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z9304H69QlaqDU-6d8S5g

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-market-session-checker-76d0056f -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-market-session-checker-76d0056f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
