# Datafeed configuration

`GET https://atlas-api.skylit.ai/v1/config`

API: Atlas. Credits: 0.

The static UDF `DatafeedConfiguration` — supported resolutions,
exchanges, symbol types, and feature flags. Free.

Also carries **`max_fetch_trading_days`**: the `/v1/history`
request-window cap, keyed by every advertised resolution. Read it once
at startup and size your history pages from it, rather than hardcoding a
window that later drifts — or discovering the limit by being rejected,
which costs a credit each time. This call is free precisely so the limit
is knowable in advance.

The values are served from the same limits the server enforces, so they
cannot disagree with it. A charting client can ignore the field: it is
not part of the UDF spec, and TradingView skips config keys it does not
recognise.

⚠ Cached for an hour (`max-age=3600`), so treat a `400` naming a
`max_days` SMALLER than your cached value as authoritative and re-read
this endpoint.

## Authentication

Send your Skylit API key as a bearer token: `Authorization: Bearer <key>`. No other header is accepted.

## Example request

```bash
curl "https://atlas-api.skylit.ai/v1/config" \
  -H "Authorization: Bearer $SKYLIT_API_KEY"
```

## Responses

### 200

Datafeed configuration.

config:

```json
{
  "supports_search": true,
  "supports_group_request": false,
  "supports_marks": false,
  "supports_timescale_marks": false,
  "supports_time": true,
  "supported_resolutions": [
    "1",
    "2",
    "3",
    "5",
    "15",
    "30",
    "60",
    "240",
    "480",
    "D",
    "W"
  ],
  "max_fetch_trading_days": {
    "1": 90,
    "2": 90,
    "3": 90,
    "5": 90,
    "15": 90,
    "30": 90,
    "60": 720,
    "240": 720,
    "480": 720,
    "D": 2600,
    "W": 2600
  },
  "intraday_multipliers": [
    "1",
    "60"
  ],
  "exchanges": [
    {
      "value": "NASDAQ",
      "name": "NASDAQ",
      "desc": "NASDAQ"
    },
    {
      "value": "NYSE",
      "name": "NYSE",
      "desc": "NYSE"
    },
    {
      "value": "ARCA",
      "name": "NYSE ARCA",
      "desc": "NYSE ARCA"
    }
  ],
  "symbols_types": [
    {
      "name": "stock",
      "value": "stock"
    },
    {
      "name": "fund",
      "value": "fund"
    },
    {
      "name": "dr",
      "value": "dr"
    },
    {
      "name": "index",
      "value": "index"
    },
    {
      "name": "futures",
      "value": "futures"
    }
  ]
}
```

### 401

Missing or invalid API key.
