Indicators
Access computed technical indicators for any asset. Indicators are calculated from historical price data.
/api/v1/indicators/asset/:assetIdReturns indicator values for an asset. Specify the indicator type and its parameters. Available indicators: SMA, EMA, RSI, MACD, BB, ATR.
Path Parameters
assetIdstring (UUID)requiredThe asset ID.
Query Parameters
indicatorstringrequiredIndicator type (SMA, EMA, RSI, MACD, BB, ATR).
paramsstring (JSON)requiredJSON-encoded parameters (e.g., {"period":20}).
fromstring (ISO date)optionalStart date for the data range.
tostring (ISO date)optionalEnd date for the data range.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/indicators/asset/{assetId}?indicator={indicator}¶ms={params}&from={from}&to={to}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"date": "2026-03-19",
"value": 178.42
},
{
"date": "2026-03-18",
"value": 177.95
},
...
]
}/api/v1/indicators/asset/:assetId/summaryReturns the latest value of all computed indicators for an asset.
Path Parameters
assetIdstring (UUID)requiredThe asset ID.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/indicators/asset/{assetId}/summary" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"assetId": "a1b2c3d4-...",
"indicators": {
"SMA_20": 178.42,
"SMA_50": 175.30,
"SMA_200": 168.15,
"RSI_14": 62.5,
"MACD": { "value": 2.15, "signal": 1.80, "histogram": 0.35 },
"BB_20": { "upper": 185.0, "middle": 178.4, "lower": 171.8 }
},
"updatedAt": "2026-03-19T00:00:00.000Z"
}
}/api/v1/indicators/asset/:assetId/multi-timeframeReturns a multi-timeframe indicator overlay for an asset. Compare indicator values across different timeframes simultaneously.
Path Parameters
assetIdstring (UUID)requiredThe asset ID.
Query Parameters
indicatorsstringrequiredComma-separated indicator types (e.g., RSI,MACD,SMA).
timeframesstringrequiredComma-separated timeframes (e.g., 1d,1w,1M).
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/indicators/asset/{assetId}/multi-timeframe?indicators={indicators}&timeframes={timeframes}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"assetId": "a1b2c3d4-...",
"overlays": {
"RSI_14": {
"1d": 62.5,
"1w": 58.3,
"1M": 55.1
},
"MACD": {
"1d": { "value": 2.15, "signal": 1.80, "histogram": 0.35 },
"1w": { "value": 1.90, "signal": 1.65, "histogram": 0.25 },
"1M": { "value": 3.40, "signal": 2.80, "histogram": 0.60 }
},
"SMA_20": {
"1d": 178.42,
"1w": 176.80,
"1M": 174.50
}
},
"updatedAt": "2026-04-03T00:00:00.000Z"
}
}/api/v1/indicators/customReturns all custom indicators created by the authenticated user.
Response
200 OKcurl -X GET "https://api.gilito.ai/api/v1/indicators/custom" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": [
{
"id": "ci-abc123...",
"name": "My Custom RSI",
"formula": "(close - sma(close, 14)) / stddev(close, 14)",
"description": "Normalized price deviation",
"createdAt": "2026-03-15T10:00:00.000Z"
}
]
}/api/v1/indicators/customCreate a custom indicator using a formula expression.
Query Parameters
namestringrequiredName for the custom indicator.
formulastringrequiredFormula expression (e.g., sma(close, 14) - sma(close, 50)).
descriptionstringoptionalDescription of what the indicator measures.
Response
200 OKcurl -X POST "https://api.gilito.ai/api/v1/indicators/custom?name={name}&formula={formula}&description={description}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "ci-abc123...",
"name": "My Custom RSI",
"formula": "(close - sma(close, 14)) / stddev(close, 14)",
"description": "Normalized price deviation",
"createdAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/indicators/custom/:idUpdate a custom indicator's name, formula, or description.
Path Parameters
idstringrequiredThe custom indicator ID.
Query Parameters
namestringoptionalUpdated name.
formulastringoptionalUpdated formula.
descriptionstringoptionalUpdated description.
Response
200 OKcurl -X PATCH "https://api.gilito.ai/api/v1/indicators/custom/{id}?name={name}&formula={formula}&description={description}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "ci-abc123...",
"name": "Updated Custom RSI",
"formula": "(close - ema(close, 14)) / stddev(close, 14)",
"updatedAt": "2026-04-04T09:00:00.000Z"
}
}/api/v1/indicators/custom/:idDelete a custom indicator.
Path Parameters
idstringrequiredThe custom indicator ID.
Response
200 OKcurl -X DELETE "https://api.gilito.ai/api/v1/indicators/custom/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"id": "ci-abc123...",
"status": "deleted"
}
}/api/v1/indicators/custom/:id/evaluateEvaluate a custom indicator against an asset's historical data. Returns computed values.
Path Parameters
idstringrequiredThe custom indicator ID.
Query Parameters
assetIdstring (UUID)requiredThe asset to evaluate against.
fromstring (ISO date)optionalStart date.
tostring (ISO date)optionalEnd date.
Response
200 OKcurl -X POST "https://api.gilito.ai/api/v1/indicators/custom/{id}/evaluate?assetId={assetId}&from={from}&to={to}" \
-H "Authorization: Bearer YOUR_API_KEY"{
"data": {
"indicatorId": "ci-abc123...",
"assetId": "a1b2c3d4-...",
"values": [
{ "date": "2026-04-03", "value": 1.42 },
{ "date": "2026-04-02", "value": 1.38 },
{ "date": "2026-04-01", "value": 1.25 }
]
}
}