Ichimoku Cloud
Category: Trend · Updated November 2026
The TAAPI.IO Ichimoku Cloud API returns every Ichimoku line as JSON for crypto pairs and US stocks: the conversion and base lines, the cloud under the current candle, the cloud ahead and the cloud behind. Send an exchange, symbol and timeframe to get real-time or historical values, with no candles to download and no calculations to maintain.
What one request returns
- The two fast lines:
conversion(Tenkan-sen) andbase(Kijun-sen), midpoints of the last 9 and 26 candles. - The cloud in three places: under the current candle (
currentSpanA,currentSpanB), 26 candles ahead (spanA,spanB) and where the lagging line sits (laggingSpanA,laggingSpanB). The offsets are already applied, so you compare numbers directly. - A series, with
results: one set of lines per candle, oldest first, to find cloud breaks and crosses.
So one call answers the four questions Ichimoku traders ask: where is price against the cloud, which way are the fast lines crossed, what colour is the cloud ahead, and does the lagging line agree?
Example: every Ichimoku signal bearish, 13 November 2026
Request: one /bulk call for BTCUSDT on daily Binance candles, with Ichimoku and the closing price, both with backtrack=1 so yesterday's closed candle. Sent at 22:37 UTC on 14 November with the default settings of 9, 26, 52 and 26.
| Line | Value | Against the close of 68,314 | Reading |
|---|---|---|---|
| Conversion | 74,243.01 | Close below | Conversion below base: bearish cross since 14 October |
| Base | 76,233.00 | Close below | |
| Cloud under the candle | 81,181.82 – 82,807.64 | Close below | Below the cloud since 5 November |
| Cloud ahead | 75,238.00 – 77,423.27 | Span B on top | The future cloud is bearish |
| Cloud at the lagging line | 74,847.83 – 81,181.82 | Close below | The lagging check agrees |
How to interpret this: Ichimoku gives several signals at once, and the strongest reading is when they all agree. On 13 November they did, on the bearish side. The conversion line crossed below the base line on 14 October, at a close of 81,682. BTC dropped into the cloud on 22 October and closed below it on 5 November, at 76,088. Since 30 October the cloud ahead has had span B above span A, the bearish colour, and the close is below the cloud that sits under the lagging line as well. BTC has fallen another 10.2% since it left the cloud. The last time all four flipped the other way was in August: BTC closed above the cloud on 18 August at 64,725, the conversion line crossed above the base line the next day, and BTC stayed above the cloud until 22 October, 25.8% higher. The cloud itself now sits 19% above price, at 81,182 to 82,808, so a trader waiting for BTC to close back above it would only re-enter well above today's price.
| Date | BTC close | Signal |
|---|---|---|
| 18 Aug | 64,725.42 | Close above the cloud |
| 19 Aug | 69,334.79 | Conversion crosses above base |
| 14 Oct | 81,682.01 | Conversion crosses below base |
| 22 Oct | 81,416.09 | Back inside the cloud, 25.8% above the August break |
| 30 Oct | 77,368.77 | Cloud ahead turns bearish |
| 5 Nov | 76,088.01 | Close below the cloud |
| 13 Nov | 68,314.00 | 10.2% below the cloud break |
Values are from the production API on 14 November 2026, using closed daily candles. Two cloud breaks are an illustration, not a backtest. Nothing here is financial advice.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/ichimoku |
| Outputs | Conversion, base, three pairs of cloud spans, timestamp |
| Default settings | 9, 26, 52, 26 |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get Ichimoku Cloud with one API call
This request returns Ichimoku Cloud for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/ichimoku \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/ichimoku',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h'},
)
print(resp.json())const params = new URLSearchParams({"exchange": "binance", "symbol": "BTCUSDT", "timeframe": "1h"});
const res = await fetch(`https://v2.taapi.io/indicator/ichimoku?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Ichimoku Cloud API response
Every value is returned in an array, even for a single candle. This response came from the live API at 22:47 UTC on 14 November 2026, so it describes the daily candle still forming.
{
"conversion": [69871.335],
"base": [74112.215],
"spanA": [71991.775],
"spanB": [75273.215],
"currentSpanA": [82793],
"currentSpanB": [81181.82],
"laggingSpanA": [81206.0325],
"laggingSpanB": [74965.455],
"timestamp": [1794614400]
}| Field | Type | Description |
|---|---|---|
conversion | number[] | Conversion line (Tenkan-sen): midpoint of the last 9 candles |
base | number[] | Base line (Kijun-sen): midpoint of the last 26 candles |
spanA, spanB | number[] | The cloud calculated on this candle. Charts draw it 26 candles ahead, so it is the cloud price will meet in the future |
currentSpanA, currentSpanB | number[] | The cloud under this candle: spans A and B calculated 26 candles earlier. Compare the close with these |
laggingSpanA, laggingSpanB | number[] | The cloud where the lagging line is drawn: spans A and B calculated 51 candles earlier. A close above both confirms an uptrend, below both a downtrend |
timestamp | integer[] | Unix time of each candle, in seconds |
Ichimoku Cloud API parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
exchange | string | Yes | — | binance, binancefutures, bybit, gateio, kraken or stocks |
symbol | string | Yes | — | Pair or ticker, e.g. BTCUSDT or AAPL |
timeframe | string | Yes | — | 1m 5m 15m 1h 4h 1d 1w |
conversionPeriod | integer | No | 9 | Candles in the conversion line |
basePeriod | integer | No | 26 | Candles in the base line |
spanPeriod | integer | No | 52 | Candles in span B |
displacement | integer | No | 26 | How far the cloud is shifted forward, in candles |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent |
What is the Ichimoku Cloud?
Ichimoku Kinko Hyo, developed by Goichi Hosoda, is a complete trend system built from midpoints of highs and lows. The cloud between its two spans acts as dynamic support and resistance, and it is shifted forward in time.
Ichimoku formula
| Output | Calculation |
|---|---|
| Conversion | (highest high + lowest low) ÷ 2 over the last 9 candles |
| Base | (highest high + lowest low) ÷ 2 over the last 26 candles |
| Span A | (conversion + base) ÷ 2, drawn 26 candles ahead |
| Span B | (highest high + lowest low) ÷ 2 over the last 52 candles, drawn 26 candles ahead |
In the example, the highest high of the last nine days was 80,918.01 and the lowest low 67,568.00, so the conversion line is (80,918.01 + 67,568.00) ÷ 2 = 74,243.01. Because the spans are drawn ahead, the cloud under today's candle was calculated 26 days ago. The API returns that cloud as currentSpanA and currentSpanB, so you don't have to shift anything yourself.
How to read Ichimoku in your code
| Signal | Meaning | Condition |
|---|---|---|
| Above the cloud | Bullish trend | Close above currentSpanA and currentSpanB |
| Below the cloud | Bearish trend | Close below currentSpanA and currentSpanB |
| Bullish cross | Short-term momentum up | conversion above base |
| Bullish cloud ahead | Future support rising | spanA above spanB |
| Lagging confirmation | Today's close beats the past | Close above laggingSpanA and laggingSpanB |
Limitations: several lines give several signals, and they rarely all agree. In ranges the cloud is thin and flat and says little. The defaults were designed for a six-day trading week. Nothing on this page is financial advice.
Which cloud to compare with
On a chart, Ichimoku draws the cloud 26 candles to the right of the candle that produced it, and the lagging line 26 candles to the left. That is why the endpoint returns three pairs of spans. Use currentSpanA and currentSpanB to ask whether price is above the cloud today. Use spanA and spanB to see the cloud price will meet in 26 candles: span A on top is the bullish colour. Use laggingSpanA and laggingSpanB for the lagging check, which compares today's close with the cloud where the lagging line is drawn.
Score the four Ichimoku signals with Python
This turns the four classic checks into a score from −4 to +4: price against the cloud, conversion against base, the colour of the cloud ahead, and the lagging line. One /bulk request returns Ichimoku and the closing price for the last closed candle. It uses one construct, so it works on every plan.
curl -X POST https://v2.taapi.io/bulk \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"constructs": [
{
"id": "btc_1d",
"exchange": "binance",
"symbol": "BTCUSDT",
"timeframe": "1d",
"indicators": [
{
"id": "ichimoku",
"indicator": "ichimoku",
"backtrack": 1
},
{
"id": "close",
"indicator": "price",
"backtrack": 1
}
]
}
]
}'import requests
payload = {
"constructs": [
{
"id": "btc_1d",
"exchange": "binance",
"symbol": "BTCUSDT",
"timeframe": "1d",
"indicators": [
{
"id": "ichimoku",
"indicator": "ichimoku",
"backtrack": 1
},
{
"id": "close",
"indicator": "price",
"backtrack": 1
}
]
}
]
}
resp = requests.post(
'https://v2.taapi.io/bulk',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json=payload,
)
data = resp.json()
i = {k: v[-1] for k, v in data['btc_1d']['ichimoku'].items()}
close = data['btc_1d']['close']['value'][-1]
def side(price, a, b):
return 1 if price > max(a, b) else -1 if price < min(a, b) else 0
signals = {
'Price vs cloud': side(close, i['currentSpanA'], i['currentSpanB']),
'Conversion vs base': 1 if i['conversion'] > i['base'] else -1,
'Cloud ahead': 1 if i['spanA'] > i['spanB'] else -1,
'Lagging line': side(close, i['laggingSpanA'], i['laggingSpanB']),
}
for name, s in signals.items():
print(f'{name}: {["bearish", "neutral", "bullish"][s + 1]}')
print(f'Score {sum(signals.values()):+d} (from -4 to +4)')The response at 22:37 UTC on 14 November. All four checks are bearish, so the script prints Price vs cloud: bearish Conversion vs base: bearish Cloud ahead: bearish Lagging line: bearish Score -4 (from -4 to +4)
{
"btc_1d": {
"ichimoku": {
"conversion": [74243.005],
"base": [76233],
"spanA": [75238.0025],
"spanB": [77423.26999999999],
"currentSpanA": [82807.635],
"currentSpanB": [81181.82],
"laggingSpanA": [81181.82],
"laggingSpanB": [74847.83499999999],
"timestamp": [1794528000]
},
"close": {
"value": [68314],
"timestamp": [1794528000]
}
}
}A score of +4 or −4 is the classic strong signal. Many traders only act on those, and treat the cloud as the exit: a long position closes when price closes back inside it. In the August example that kept a long position open for nine weeks.
Get historical Ichimoku Cloud values
Add results to return a series for backtesting or charting. The last element is the most recent candle.
curl -G https://v2.taapi.io/indicator/ichimoku \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get Ichimoku Cloud for multiple symbols
Combine Ichimoku Cloud with other indicators in one request. Each exchange, symbol and timeframe combination is one construct: Basic allows 1 per request, Pro 3 and Expert 10.
curl -X POST https://v2.taapi.io/bulk \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"constructs": [
{
"id": "btc_1h",
"exchange": "binance",
"symbol": "BTCUSDT",
"timeframe": "1h",
"indicators": [
{
"id": "ichimoku",
"indicator": "ichimoku"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream Ichimoku Cloud in real time
Subscribe over WebSocket to receive new values every 5 seconds while the candle is forming. Streaming supports 1m, 5m, 15m and 1h, and uses interval where REST uses timeframe.
{
"type": "subscribe",
"id": "ichimoku",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "ichimoku"
}Common Ichimoku settings
These are starting points, not recommendations. Test any setting on your own market and timeframe.
| Settings | Character | Typical use |
|---|---|---|
| 9, 26, 52, 26 | Standard | The original settings, for daily charts |
| 10, 30, 60, 30 | Slightly slower | Markets that trade seven days a week |
| 20, 60, 120, 30 | Much slower | Crypto, to reduce noise |
Why Ichimoku values can differ between platforms
- Offsets: some charts shift the cloud by 25 candles instead of 26. The lines are the same, but the cloud under a given candle differs.
- Exchange data: every line is built from highs and lows, which differ between venues.
- Open candle: the newest values change until the candle closes. Use
backtrack=1to read closed candles.
Ichimoku Cloud API FAQ
What does the Ichimoku API return?
Arrays for conversion, base, spanA, spanB, currentSpanA, currentSpanB, laggingSpanA and laggingSpanB, plus a timestamp for each candle.
Which fields tell me if price is above the cloud?
Compare the close with currentSpanA and currentSpanB. Those are the cloud under the current candle. spanA and spanB are the cloud 26 candles ahead.
Does the API return the lagging line itself?
The lagging line is just the close drawn 26 candles back. The API returns the cloud at that position as laggingSpanA and laggingSpanB, so you compare today's close with them.
Can I change the Ichimoku settings?
Yes. Set conversionPeriod, basePeriod, spanPeriod and displacement. The defaults are 9, 26, 52 and 26.
Can I get Ichimoku for US stocks?
Yes. Use exchange=stocks with a ticker such as AAPL. US stocks are included on the Pro plan and above.
Related indicators
- SuperTrend: a single trailing trend line
- Donchian Channels: the highest high and lowest low, as bands
- Exponential Moving Average: a simpler trend filter
- ADX: trend strength
Build with Ichimoku Cloud on Binance, Bybit or US stocks. Start for free or browse all 262 indicators.