# Agent402 UK — Market Session Status

> Agent402 UK — Market Session Status is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Returns whether a specified financial market (NYSE, NASDAQ, LSE, TSE, XETRA, FX, CRYPTO) is currently open or closed, with a reason code, for a given timestamp.

## Facts

- Endpoint: GET https://agent402.co.uk/v1/time/market-session
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-market-session-status-25fe2ffc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uVA0haLtPqv47UHFqZLbR

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 agent402-uk-market-session-status-25fe2ffc
```

Example prompt: Is the NYSE open right now? Just check the current market session status for me.

## When to prefer this

Choose this endpoint when an agent needs a fast, cheap, deterministic check of whether a specific exchange is in an active trading session — without burning LLM tokens on date/time reasoning. Ideal as a pre-condition gate before executing trades, scheduling financial actions, or routing orders. Costs $0.001 USDC per call with no API key required, making it suitable for high-frequency preflight checks in autonomous agent workflows.

## Known failure modes

- Unrecognized market identifier returns valid:false with an error reason
- Malformed timestamp (not ISO-8601 or unix seconds) may return an error or default to current time
- Timezone edge cases around market open/close boundaries may yield unexpected open/closed status
- Network or payment failure returns HTTP 402 if USDC payment not settled

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

A JSON object with fields: open (boolean — whether the market is currently active), valid (boolean — whether the query was valid), market (string — the market identifier queried, e.g. NYSE), and reason (string code — e.g. 'regular_hours', 'after_hours', 'holiday', 'weekend').

## Request schema (JSON Schema)

```json
{
 "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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "at": {
       "type": "string",
       "description": "ISO-8601 or unix seconds (default now)"
      },
      "market": {
       "type": "string",
       "description": "NYSE|NASDAQ|LSE|TSE|XETRA|FX|CRYPTO"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "open": true,
  "valid": true,
  "market": "NYSE",
  "reason": "regular_hours"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-market-session-status-25fe2ffc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
