Gilito AIDocs

Exchanges

Retrieve information about stock exchanges and their trading holidays.

GET/api/v1/market-data/exchanges

Returns all available exchanges.

Response

200 OK
GET/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/:id

Returns a single exchange by its ID.

Path Parameters

idstring (UUID)required

The exchange ID.

Response

200 OK
GET/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/:symbol

Look up an exchange by its symbol.

Path Parameters

symbolstringrequired

The exchange symbol (e.g., NYSE, NASDAQ, BME).

Response

200 OK
GET/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/holidays

Returns trading holidays for an exchange, optionally filtered by year.

Path Parameters

idstring (UUID)required

The exchange ID.

Query Parameters

yearnumberoptional

Filter holidays by year (e.g., 2026).

Response

200 OK
GET/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"
    },
    ...
  ]
}