Now Live: Cboe Europe real-time data for all major European stocks.

Supporting metadata

Metadata endpoints return the lookup tables and enumerations that define valid parameter values across the entire API. They answer: what instrument types exist? What intervals are supported? Which countries are covered? What technical indicators can I use?

Countries

The countries endpoint provides a comprehensive list of countries, including their ISO codes, official names, capitals, and currencies. This data is essential for applications requiring accurate country information for tasks such as localization, currency conversion, or geographic analysis.

Route

API credits cost

1 per request

No parameters are required

data

array of object

List of countries with their ISO codes, names, capital, and currency

Attributes

iso2

string

Two-letter country code defined in ISO 3166

iso3

string

Three-letter country code defined in ISO 3166

numeric

string

Numeric country code defined in ISO 3166

name

string

The full name of country

official_name

string

Official name of country

capital

string

Capital of country

currency

string

Currency of country

Copy for LLM
View as Markdown

Response

{
    "data": [
        {
            "iso2": "US",
            "iso3": "USA",
            "numeric": "840",
            "name": "United States",
            "official_name": "United States of America",
            "capital": "Washington D.C.",
            "currency": "USD"
        }
    ]
}

Instrument type

The instrument type endpoint lists all available financial instrument types, such as stocks, ETFs, and cryptos. This information is essential for users to identify and categorize different financial instruments when accessing or analyzing market data.

Route

API credits cost

1 per request

No parameters are required

result

array of string

List of instrument types available at Twelve Data API.

status

string

Status of the response

Copy for LLM
View as Markdown

Response

{
    "result": [
        "Agricultural Product",
        "American Depositary Receipt",
        "Bond",
        "Bond Fund",
        "Closed-end Fund",
        "Common Stock",
        "Depositary Receipt",
        "Digital Currency",
        "Energy Resource",
        "ETF",
        "Exchange-Traded Note",
        "Global Depositary Receipt",
        "Index",
        "Industrial Metal",
        "Limited Partnership",
        "Livestock",
        "Mutual Fund",
        "Physical Currency",
        "Precious Metal",
        "Preferred Stock",
        "REIT",
        "Right",
        "Structured Product",
        "Trust",
        "Unit",
        "Warrant"
    ],
    "status": "ok"
}

Technical indicators

The technical indicators endpoint provides a comprehensive list of available technical indicators, each represented as an object. This endpoint is useful for developers looking to integrate a variety of technical analysis tools into their applications, allowing for streamlined access to indicator data without needing to manually configure each one.

Route

API credits cost

1 per request

No parameters are required

data

map (key: string, value: object)

Map of technical indicators available at Twelve Data API

Attributes

enable

boolean

If the indicator is tested, approved and is recommended for use returns true, otherwise returns false

full_name

string

Full indicator name

description

string

Brief description of the indicator

type

string

Group to which indicator belongs to

overlay

boolean

If indicator should be plotted over price bars returns true, otherwise returns false

output_values

object

An array of output values

Attributes

parameter_name

object

Output parameter name. Example values: ad, add, adxr, aroonosc, macd, macd_signal, macd_hist, etc

Attributes

default_color

string

Suggested color for displaying returns hex color code

display

string

How output value should be rendered

min_range

integer

If output value has minimum bound

max_range

integer

If output value has maximum bound

parameters

object

An array of input parameters for the indicator

Attributes

parameter_name

object

Input parameter name. Example values: series_type, fast_period, slow_period, time_period, signal_period

Attributes

default

integer

Specifies parameter value set by default

max_range

integer

If the parameter has upper bound in order to ensure correct calculation

min_range

integer

If the parameter has lower bound in order to ensure correct calculation

range

array of string

An array of available parameter values

type

string

Type of parameter might be string, int, float or array

tinting

object

An array of tinting values used for proper indicator coloring

Attributes

display

string

How the tinting should be rendered

color

string

Hex color code for the tinting

transparency

double

Transparency level, float value from 0 to 1

lower_bound

string

Lower bound of tinting, can be a number or a return parameter name

upper_bound

string

Upper bound of tinting, can be a number or a return parameter name

status

string

Response status

Copy for LLM
View as Markdown

Response

{
    "data": {
        "macd": {
            "enable": true,
            "full_name": "Moving Average Convergence Divergence",
            "description": "Moving Average Convergence Divergence(MACD) is ...",
            "type": "Momentum Indicators",
            "overlay": false,
            "output_values": {
                "parameter_name": {
                    "default_color": "#FF0000",
                    "display": "line",
                    "min_range": 0,
                    "max_range": 5
                }
            },
            "parameters": {
                "parameter_name": {
                    "default": 12,
                    "max_range": 1,
                    "min_range": 1,
                    "range": [
                        "open",
                        "high",
                        "low",
                        "close"
                    ],
                    "type": "int"
                }
            },
            "tinting": {
                "display": "fill",
                "color": "#FF0000",
                "transparency": 0.5,
                "lower_bound": "0",
                "upper_bound": "macd"
            }
        }
    },
    "status": "ok"
}