Exchanges
Retrieve information about stock exchanges and their trading holidays.
GET
/api/v1/market-data/exchangesReturns all available exchanges.
Response
200 OKGET/api/v1/market-data/exchanges
curl -X GET "https://api.gilito.ai/api/v1/market-data/exchanges" \
-H "Authorization: Bearer YOUR_API_KEY"Try It
Example Response
{
"data": [
{
"id": "x1y2z3a4-...",
"symbol": "NYSE",
"name": "New York Stock Exchange",
"timezone": "America/New_York",
"country": "US",
"currency": "USD"
},
...
]
}GET
/api/v1/market-data/exchanges/:idReturns a single exchange by its ID.
Path Parameters
idstring (UUID)requiredThe exchange ID.
Response
200 OKGET/api/v1/market-data/exchanges/:id
curl -X GET "https://api.gilito.ai/api/v1/market-data/exchanges/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Try It
Example Response
{
"data": {
"id": "x1y2z3a4-...",
"symbol": "NYSE",
"name": "New York Stock Exchange",
"timezone": "America/New_York",
"country": "US",
"currency": "USD"
}
}GET
/api/v1/market-data/exchanges/symbol/:symbolLook up an exchange by its symbol.
Path Parameters
symbolstringrequiredThe exchange symbol (e.g., NYSE, NASDAQ, BME).
Response
200 OKGET/api/v1/market-data/exchanges/symbol/:symbol
curl -X GET "https://api.gilito.ai/api/v1/market-data/exchanges/symbol/{symbol}" \
-H "Authorization: Bearer YOUR_API_KEY"Try It
Example Response
{
"data": {
"id": "x1y2z3a4-...",
"symbol": "NYSE",
"name": "New York Stock Exchange",
"timezone": "America/New_York",
"country": "US",
"currency": "USD"
}
}GET
/api/v1/market-data/exchanges/:id/holidaysReturns trading holidays for an exchange, optionally filtered by year.
Path Parameters
idstring (UUID)requiredThe exchange ID.
Query Parameters
yearnumberoptionalFilter holidays by year (e.g., 2026).
Response
200 OKGET/api/v1/market-data/exchanges/:id/holidays
curl -X GET "https://api.gilito.ai/api/v1/market-data/exchanges/{id}/holidays?year={year}" \
-H "Authorization: Bearer YOUR_API_KEY"Try It
Example Response
{
"data": [
{
"id": "h1i2j3k4-...",
"exchangeId": "x1y2z3a4-...",
"date": "2026-01-01",
"name": "New Year's Day"
},
...
]
}