market_clock
Check whether US equity markets are open and retrieve the next open or close time plus upcoming session days for trading-hours decisions. Crypto trades 24/7 and is unaffected.
Instructions
[Trading Data API] US equities market clock (is_open, next_open/close) + upcoming sessions, via Alpaca. Crypto endpoints are 24/7 and unaffected.
Example: /v1/market-clock
Use when you need to know whether US equity markets are open and when the next session opens or closes. Not for crypto, which trades 24/7.
Behavior: read-only. Priced via x402 (USDC on Base) or free with WICKEDAPI_API_KEY; with neither, you get HTTP 402 with the decoded price in payment_required (a price quote, not a failure).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "market_clock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Optional. Upcoming session days to include (default 3, max 30; 0 to omit). |