# agent402.tools Pre-Market & Extended-Hours Quote

> agent402.tools Pre-Market & Extended-Hours Quote is a paid API for AI agents from agent402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns the latest extended-hours (pre-market, regular, after-hours) traded price for a US-listed ticker, including session label, change vs last regular session close, and today's session windows.

## Facts

- Endpoint: GET https://agent402.tools/api/premarket-quote
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-pre-market-extended-hours-quote-df6dc59c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p9EX9ctKhqankGG-E1kfe

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-tools-pre-market-extended-hours-quote-df6dc59c
```

Example prompt: What's the latest extended-hours price for TSLA right now — is it pre-market, after-hours, or regular session, and how much has it moved from yesterday's close?

## When to prefer this

Use this endpoint when you need real-time or near-real-time extended-hours stock price data for US-listed equities, especially outside regular market hours (pre-market or after-hours). Prefer this over standard quote APIs when the session context (pre/regular/post/closed) matters, or when you need to compare the current extended-hours price to the last regular-session close. Not suited for historical data, options, or non-US tickers.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error or empty result
- Non-US-listed tickers may not be supported
- Market data feed delays may cause stale quotes during high-volatility periods
- Payment failure (insufficient USDC balance) results in 402 response before data is returned
- Network timeout if upstream data provider is slow

## How this service works

Extended-hours quote for a US-listed ticker: latest traded price including pre-market and after-hours sessions, which session it printed in (pre / regular / post / closed), change vs. the last regular-session price, and today's session windows. Backed by Yahoo Finance's chart endpoint with includePrePost.

## Output

Returns the latest traded price for the given US ticker including which session it printed in (pre-market, regular, post/after-hours, or closed), the change and percent change vs the last regular-session close price, and the start/end times for today's pre-market, regular, and after-hours session windows.

## 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",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "US-listed ticker (e.g. SPY, AAPL)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "SPDR S&P 500 ETF Trust",
  "symbol": "SPY",
  "currency": "USD",
  "exchange": "PCX",
  "sessions": {
   "pre": {
    "end": "2026-07-13T13:30:00Z",
    "start": "2026-07-13T08:00:00Z"
   },
   "post": {
    "end": "2026-07-14T00:00:00Z",
    "start": "2026-07-13T20:00:00Z"
   },
   "regular": {
    "end": "2026-07-13T20:00:00Z",
    "start": "2026-07-13T13:30:00Z"
   }
  },
  "latestTime": "2026-07-13T23:59:00Z",
  "latestPrice": 621.05,
  "marketState": "post",
  "latestSession": "post",
  "previousClose": 618.1,
  "extendedChangeAbs": 0.73,
  "extendedChangePct": 0.1177,
  "regularMarketTime": "2026-07-13T20:00:00Z",
  "regularMarketPrice": 620.32
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-pre-market-extended-hours-quote-df6dc59c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
