schwab_get_market_hours
Get trading hours for one or more market types.
Returns nested markdown — one block per market product Schwab knows about within the requested categories:
— OPEN | CLOSED Pre Market: YYYY-MM-DDTHH:MM — YYYY-MM-DDTHH:MM Regular Market: YYYY-MM-DDTHH:MM — YYYY-MM-DDTHH:MM Post Market: YYYY-MM-DDTHH:MM — YYYY-MM-DDTHH:MM
Sessions are emitted only when Schwab reports hours for them — a closed market on a weekend or holiday will have no session lines under it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO date to check (e.g. "2026-03-15"). Defaults to today when empty. The response is for a single trading day — pass each date explicitly if you need a multi-day forecast. | |
| npub | No | Required. Your Nostr public key (npub1...) for credit billing. | |
| markets | No | Comma-separated market types. Schwab supports "equity", "option", "bond", "future", "forex". Unknown types are silently dropped by Schwab. | equity,option |
| dpop_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |