Market overview API
Live quotes for the major indices, currencies, commodities, yields and crypto in one call.
GET /v1/finance/markets1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/finance/markets",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "groups": [ { "group": "US indices", "quotes": [ { "symbol": "^GSPC", "quoteType": "INDEX", "shortName": "S&P 500", "longName": "S&P 500", "currency": "USD", "exchange": "SNP", "regularMarketPrice": 7201.09, "regularMarketChange": -36.08008, "regularMarketChangePercent": -0.4985385, "regularMarketVolume": 3323599000, "regularMarketTime": 1795557250, "fiftyTwoWeekHigh": 7844.52, "fiftyTwoWeekLow": 6316.91, "language": "en-US", "…": "48 more fields" }, { "symbol": "^DJI", "quoteType": "INDEX", "shortName": "Dow Jones Industrial Average", "longName": "Dow Jones Industrial Average", "currency": "USD", "exchange": "DJI", "regularMarketPrice": 50018.7, "regularMarketChange": 423.39062, "regularMarketChangePercent": 0.85369086, "regularMarketVolume": 719818223, "regularMarketTime": 1795557265, "fiftyTwoWeekHigh": 54744.33, "fiftyTwoWeekLow": 45057.28, "language": "en-US", "…": "48 more fields" }, "… 3 more" ] }, { "group": "World indices", "quotes": [ { "symbol": "^FTSE", "quoteType": "INDEX", "shortName": "FTSE 100", "longName": "FTSE 100", "currency": "GBP", "exchange": "FGI", "regularMarketPrice": 10467.07, "regularMarketChange": -13.75, "regularMarketChangePercent": -0.13119203, "regularMarketVolume": 0, "regularMarketTime": 1795538130, "fiftyTwoWeekHigh": 10989.5, "fiftyTwoWeekLow": 9521.5, "language": "en-US", "…": "48 more fields" }, { "symbol": "^GDAXI", "quoteType": "INDEX", "shortName": "DAX P", "longName": "DAX P", "currency": "EUR", "exchange": "GER", "regularMarketPrice": 25017.81, "regularMarketChange": -319.45898, "regularMarketChangePercent": -1.2608263, "regularMarketVolume": 0, "regularMarketTime": 1795539600, "fiftyTwoWeekHigh": 27001.67, "fiftyTwoWeekLow": 21863.81, "language": "en-US", "…": "48 more fields" }, "… 6 more" ] }, "… 4 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
languagequery | string | Language, e.g. en or en-US (default), fr-FR. |
locationquery | string | Two-letter country for regional listings, e.g. US (default), GB, IN. |
Response fields
200 with a FinanceMarkets, in Finance’s own JSON.
| Field | Type | Description |
|---|---|---|
groups | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | Quotes by group. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No ticker or data matches. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Finance is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How fresh?
Cached for a minute.
Finance is a trademark of Yahoo Inc. We are not affiliated with or endorsed by Yahoo Inc.