Skip to main content
GET
/
api
/
market
/
v1
/
get-country-stock-index
GetCountryStockIndex
curl --request GET \
  --url https://api.example.com/api/market/v1/get-country-stock-index
{
  "available": true,
  "code": "<string>",
  "symbol": "<string>",
  "indexName": "<string>",
  "price": 123,
  "weekChangePercent": 123,
  "currency": "<string>",
  "fetchedAt": "<string>"
}

Query Parameters

country_code
string

ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "JP").

Response

Successful response

GetCountryStockIndexResponse contains the country's primary stock index data.

available
boolean

Whether stock index data is available for this country.

code
string

ISO 3166-1 alpha-2 country code.

symbol
string

Ticker symbol (e.g., "^GSPC").

indexName
string

Index name (e.g., "S&P 500").

price
number<double>

Latest closing price.

weekChangePercent
number<double>

Weekly change percentage.

currency
string

Currency of the index.

fetchedAt
string

When the data was fetched (ISO 8601).