# Get TradingView Udf Config

Returns the TradingView datafeed configuration, including supported resolutions, exchanges and feature flags.

_Source: https://beta.taostats.io/docs/api-reference/tradingview/get-tradingview-udf-config_

_Last reviewed: 2026-09-18_

```http
GET https://api.taostats.io/api/dtao/tradingview/udf/config
```

Requires an API key in the `Authorization` header.

Returns the TradingView datafeed configuration, including supported resolutions, exchanges and feature flags. Use it when initializing a chart against the Taostats UDF datafeed.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/api/dtao/tradingview/udf/config"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/api/dtao/tradingview/udf/config', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/api/dtao/tradingview/udf/config",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

_No parameters._

## Responses

### `200` — Config retrieved successfully

| Field | Type | Required |
| --- | --- | --- |
| `currency_codes` | `array` | Yes |
| `currency_codes[].code` | `string` | Yes |
| `currency_codes[].description` | `string` | Yes |
| `currency_codes[].id` | `string` | Yes |
| `exchanges` | `array` | Yes |
| `exchanges[]` | `string` | Yes |
| `supported_resolutions` | `array` | Yes |
| `supported_resolutions[]` | `string` | Yes |
| `supports_group_request` | `boolean` | Yes |
| `supports_marks` | `boolean` | Yes |
| `supports_search` | `boolean` | Yes |
| `supports_timescale_marks` | `boolean` | Yes |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
