# Ichimoku cloud

The Ichimoku Cloud endpoint provides data on the Ichimoku Kinko Hyo indicator, offering insights into trend direction, support and resistance levels, and potential entry and exit points. It returns key components such as the Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span. This data helps users evaluate market trends and identify strategic trading opportunities.

**API credits cost:** `1` per symbol

## Parameters

- `symbol` (string, optional, see notes)
  Symbol ticker of the instrument. E.g. `AAPL`, `EUR/USD`, `ETH/BTC`, ...
  Example value: `AAPL`


- `figi` (string, optional, see notes)
  The FIGI of an instrument for which data is requested. This parameter is available on the Ultra plan (individual) and the Enterprise plan (business) and above.
  Example value: `BBG000B9Y5X2`


- `isin` (string, optional, see notes)
  Filter by international securities identification number (ISIN). ISIN access is activating in the Data add-ons section
  Example value: `US0378331005`


- `cusip` (string, optional, see notes)
  The CUSIP of an instrument for which data is requested. CUSIP access is activating in the Data add-ons section
  Example value: `594918104`


- `interval` (string, required)
  Interval between two consecutive points in time series
  Example value: `1min`
  Available values: `1min`, `5min`, `15min`, `30min`, `45min`, `1h`, `2h`, `4h`, `8h`, `1day`, `1week`, `1month`


- `exchange` (string, optional)
  Exchange where instrument is traded
  Example value: `NASDAQ`


- `mic_code` (string, optional)
  Market Identifier Code (MIC) under ISO 10383 standard
  Example value: `XNAS`


- `country` (string, optional)
  The country where the instrument is traded, e.g., `United States` or `US`
  Example value: `United States`


- `conversion_line_period` (integer, optional)
  The time period used for generating the conversation line. Takes values in the range from `1` to `800`
  Default value: `9`


- `base_line_period` (integer, optional)
  The time period used for generating the base line. Takes values in the range from `1` to `800`
  Default value: `26`


- `leading_span_b_period` (integer, optional)
  The time period used for generating the leading span B line. Takes values in the range from `1` to `800`
  Default value: `52`


- `lagging_span_period` (integer, optional)
  The time period used for generating the lagging span line. Takes values in the range from `1` to `800`
  Default value: `26`


- `include_ahead_span_period` (boolean, optional)
  Indicates whether to include ahead span period
  Default value: `true`


- `type` (string, optional)
  The asset class to which the instrument belongs
  Example value: `Common Stock`
  Available values: `American Depositary Receipt`, `Bond`, `Bond Fund`, `Closed-end Fund`, `Common Stock`, `Depositary Receipt`, `Digital Currency`, `ETF`, `Exchange-Traded Note`, `Global Depositary Receipt`, `Limited Partnership`, `Mutual Fund`, `Physical Currency`, `Preferred Stock`, `REIT`, `Right`, `Structured Product`, `Trust`, `Unit`, `Warrant`


- `outputsize` (integer, optional)
  Number of data points to retrieve. Supports values in the range from `1` to `5000`. Default `30` when no date parameters are set, otherwise set to maximum
  Default value: `30`


- `format` (string, optional)
  The format of the response data
  Available values: `JSON`, `CSV`
  Default value: `JSON`


- `delimiter` (string, optional)
  The separator used in the CSV response data
  Default value: `;`


- `prepost` (boolean, optional)
  Returns quotes that include pre-market and post-market data. Only for the `Pro` plan (individual) and `Venture` plan (business) and above.
Available at the `1min`, `5min`, `15min`, and `30min` intervals for US equities.
Open, high, low, close values are supplied without volume
  Default value: `false`


- `dp` (integer, optional)
  Specifies the number of decimal places for floating values.
Should be in range [0, 11] inclusive.
By default, the number of decimal places is automatically determined based on the values provided
  Default value: `-1`


- `order` (string, optional)
  Sorting order of the output
  Available values: `asc`, `desc`
  Default value: `desc`


- `include_ohlc` (boolean, optional)
  Specify if OHLC values should be added in the output
  Available values: `true`, `false`
  Default value: `false`


- `timezone` (string, optional)
  Timezone at which output datetime will be displayed. Supports:

1. Exchange for local exchange time
2. UTC for datetime at universal UTC standard
3. Timezone name according to the IANA Time Zone Database. E.g. America/New_York, Asia/Singapore. Full list of timezones can be found here

Interval Limitation: The timezone parameter is only applicable for intraday intervals (less than 1 day). For intervals of 1day, 1week, or 1month, the timezone parameter is ignored, and data is strictly returned in the Exchange local time.
Take note that the IANA Timezone name is case-sensitive
  Default value: `Exchange`


- `date` (string, optional)
  Specifies the exact date to get the data for. Could be the exact date, e.g. `2021-10-27`, or in human language `today` or `yesterday`
  Example value: `2021-10-27`


- `start_date` (string, optional)
  Can be used separately and together with `end_date`. Format `2006-01-02` or `2006-01-02T15:04:05`

Default location:

Forex and Cryptocurrencies - UTC
Stocks - where exchange is located (e.g. for AAPL it will be America/New_York)

Both parameters take into account if timezone parameter is provided.
If timezone is given then, start_date and end_date will be used in the specified location

Examples:

1. &symbol=AAPL&start_date=2019-08-09T15:50:00&…
Returns all records starting from 2019-08-09T15:50:00 New York time up to current date
2. &symbol=EUR/USD&timezone=Asia/Singapore&start_date=2019-08-09T15:50:00&…
Returns all records starting from 2019-08-09T15:50:00 Singapore time up to current date
3. &symbol=ETH/BTC&timezone=Europe/Zurich&start_date=2019-08-09T15:50:00&end_date=2019-08-09T15:55:00&...
Returns all records starting from 2019-08-09T15:50:00 Zurich time up to 2019-08-09T15:55:00

  Example value: `2024-08-22T15:04:05`


- `end_date` (string, optional)
  The ending date and time for data selection, see `start_date` description for details.
  Example value: `2024-08-22T16:04:05`


- `previous_close` (boolean, optional)
  A boolean parameter to include the previous closing price in the time_series data. If true, adds previous bar close price value to the current object
  Default value: `false`


- `adjust` (string, optional)
  Adjusting mode for prices
  Available values: `all`, `splits`, `dividends`, `none`
  Default value: `splits`


**Notes:**

 - At least one of the following parameters is required: `symbol`, `isin`, `figi`, `cusip`.

## Response

- `meta` (object)
  Json object with request general information
  - `symbol` (string)
    The ticker symbol of an instrument for which data was requested.
  - `interval` (string)
    The time gap between consecutive data points.
  - `currency` (string)
    The currency of a traded instrument.
  - `exchange_timezone` (string)
    The timezone of the exchange where the instrument is traded.
  - `exchange` (string)
    The exchange name where the instrument is traded.
  - `mic_code` (string)
    The Market Identifier Code (MIC) of the exchange where the instrument is traded.
  - `type` (string)
    The asset class to which the instrument belongs.
  - `indicator` (object)
    Technical indicator information
    - `name` (string)
      Name of the technical indicator
    - `conversion_line_period` (integer)
      The time period used for generating the conversation line
    - `base_line_period` (integer)
      The time period used for generating the base line
    - `leading_span_b_period` (integer)
      The time period used for generating the leading span B line
    - `lagging_span_period` (integer)
      The time period used for generating the lagging span line
    - `include_ahead_span_period` (boolean)
      Indicates whether to include ahead span period

- `values` (array of object)
  Array of time series data points
  - `datetime` (string)
    Datetime in local market time for equities and in UTC for forex and cryptocurrencies referring to when the bar with specified interval was opened
  - `tenkan_sen` (string)
    Tenkan-sen value
  - `kijun_sen` (string)
    Kijun-sen value
  - `senkou_span_a` (string)
    Senkou span A value
  - `senkou_span_b` (string)
    Senkou span B value
  - `chikou_span` (string)
    Chikou span value

- `status` (string)
  Response status


## Example Request

```bash
curl "https://api.twelvedata.com/ichimoku?symbol=AAPL&interval=1min&apikey=demo"
```

## Example Response

```json
{
    "meta": {
        "symbol": "AAPL",
        "interval": "1min",
        "currency": "USD",
        "exchange_timezone": "America/New_York",
        "exchange": "NASDAQ",
        "mic_code": "XNAS",
        "type": "Common Stock",
        "indicator": {
            "name": "ICHIMOKU - Ichimoku Kink\u014d Hy\u014d",
            "conversion_line_period": 9,
            "base_line_period": 26,
            "leading_span_b_period": 52,
            "lagging_span_period": 26,
            "include_ahead_span_period": true
        }
    },
    "values": [
        {
            "datetime": "2019-08-09 15:59:00",
            "tenkan_sen": "200.33",
            "kijun_sen": "201.42",
            "senkou_span_a": "201.49",
            "senkou_span_b": "200.35501",
            "chikou_span": "199.95499"
        }
    ],
    "status": "ok"
}
```
