get_market
Check if a market is open and get its headline index summary. Input a market key like US or EUROPE to see price, previous close, and change.
Instructions
Get the trading status and headline index summary for a market.
Answers questions like whether the market is open, when it opens or closes
next, and how the major indices are doing. Takes a market key such as
US or EUROPE — not a ticker symbol. status (open/closed plus the
next open and close times) is only available for US and is null for
every other key, which is an upstream limitation rather than an error. The
index summary, with price, previous close and change, works for all keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | A Yahoo market key (uppercase). One of: US, GB, ASIA, EUROPE, RATES, COMMODITIES, CURRENCIES, CRYPTOCURRENCIES. Only 'US' reports a trading status, the others return the index summary with 'status' set to null. | US |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||