When you call a pattern recognition indicator (for example doji), the response is a numerical value telling you whether the pattern is present at a given candle.
Responses
100: the pattern is found at this candle.
0: the pattern is NOT found at this candle.
-100: the bearish variation of the pattern is found at this candle (not all patterns have a bearish variation).
80 (or any other value): the pattern is found, but with partial accuracy (e.g. an 80% match to the perfect form).
Best practices
Patterns are most useful when you scan several past candles with the results parameter, so you can see where in the timeframe the pattern appeared.
Example query
Search for a Doji pattern across the last 20 hourly candles with results=20:
curl "https://v2.taapi.io/indicator/doji?exchange=binance&symbol=BTCUSDT&timeframe=1h&results=20" \
-H "Authorization: Bearer YOUR_API_KEY"
Response example
Each value lines up with the timestamp at the same position, so you can see exactly which candle the pattern appeared on. In this example, a Doji appeared on the third candle:
{
"value": [0, 0, 100, 0, 0, ...],
"timestamp": [1793588400, 1793592000, 1793595600, 1793599200, 1793602800, ...]
}