Yes! If you have candles from your own data source, TAAPI.IO can calculate indicators on them. There are two endpoints for this. Neither needs an exchange, symbol or timeframe. Send each request with your API key in the Authorization: Bearer YOUR_API_KEY header and Content-Type: application/json.
One indicator: POST /indicator/{name}
For example, POST this to https://v2.taapi.io/indicator/sma:
{
"period": 3,
"candles": [
{ "o": 1, "h": 2, "l": 0.5, "c": 1.5, "v": 10, "t": 1793638800 },
{ "o": 1.5, "h": 2.5, "l": 1, "c": 2, "v": 10, "t": 1793642400 },
{ "o": 2, "h": 3, "l": 1.5, "c": 2.5, "v": 10, "t": 1793646000 },
{ "o": 2.5, "h": 3.5, "l": 2, "c": 3, "v": 10, "t": 1793649600 }
]
}Response:
{ "value": [2.5], "timestamp": [1793649600] }Several indicators at once: POST /bulk-candles
POST to https://v2.taapi.io/bulk-candles. Each construct carries its own candles array and a list of up to 20 indicators:
{
"constructs": [
{
"id": "my_data",
"candles": [ ...your candles... ],
"indicators": [
{ "id": "sma_3", "indicator": "sma", "period": 3 },
{ "id": "rsi_14", "indicator": "rsi", "period": 14 }
]
}
]
}Response:
{
"my_data": {
"sma_3": { "value": [...], "timestamp": [...] },
"rsi_14": { "value": [...], "timestamp": [...] }
}
}How many constructs (candle series) you can send in one request depends on your plan, just like regular bulk queries: 1 on Basic, 3 on Pro and 10 on Expert.
Things to know
Candles can use long field names (
open,high,low,close,volume,timestamp) or short ones (o,h,l,c,v,t). Timestamps are optional but recommended, in Unix seconds.Send candles oldest first, with up to 500 candles per request (per construct for bulk-candles).
Send enough candles for the indicator's period. For example, a 200-period MA needs at least 200 candles.
Results from these endpoints are never cached. Each request is calculated fresh.