Gilito AIDocs

Indicators

Access computed technical indicators for any asset. Indicators are calculated from historical price data.

GET/api/v1/indicators/asset/:assetId

Returns indicator values for an asset. Specify the indicator type and its parameters. Available indicators: SMA, EMA, RSI, MACD, BB, ATR.

Path Parameters

assetIdstring (UUID)required

The asset ID.

Query Parameters

indicatorstringrequired

Indicator type (SMA, EMA, RSI, MACD, BB, ATR).

paramsstring (JSON)required

JSON-encoded parameters (e.g., {"period":20}).

fromstring (ISO date)optional

Start date for the data range.

tostring (ISO date)optional

End date for the data range.

Response

200 OK
GET/api/v1/indicators/asset/:assetId
curl -X GET "https://api.gilito.ai/api/v1/indicators/asset/{assetId}?indicator={indicator}&params={params}&from={from}&to={to}" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "data": [
    {
      "date": "2026-03-19",
      "value": 178.42
    },
    {
      "date": "2026-03-18",
      "value": 177.95
    },
    ...
  ]
}
GET/api/v1/indicators/asset/:assetId/summary

Returns the latest value of all computed indicators for an asset.

Path Parameters

assetIdstring (UUID)required

The asset ID.

Response

200 OK
GET/api/v1/indicators/asset/:assetId/summary
curl -X GET "https://api.gilito.ai/api/v1/indicators/asset/{assetId}/summary" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "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"
  }
}
GET/api/v1/indicators/asset/:assetId/multi-timeframe

Returns a multi-timeframe indicator overlay for an asset. Compare indicator values across different timeframes simultaneously.

Path Parameters

assetIdstring (UUID)required

The asset ID.

Query Parameters

indicatorsstringrequired

Comma-separated indicator types (e.g., RSI,MACD,SMA).

timeframesstringrequired

Comma-separated timeframes (e.g., 1d,1w,1M).

Response

200 OK
GET/api/v1/indicators/asset/:assetId/multi-timeframe
curl -X GET "https://api.gilito.ai/api/v1/indicators/asset/{assetId}/multi-timeframe?indicators={indicators}&timeframes={timeframes}" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "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"
  }
}
GET/api/v1/indicators/custom

Returns all custom indicators created by the authenticated user.

Response

200 OK
GET/api/v1/indicators/custom
curl -X GET "https://api.gilito.ai/api/v1/indicators/custom" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "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"
    }
  ]
}
POST/api/v1/indicators/custom

Create a custom indicator using a formula expression.

Query Parameters

namestringrequired

Name for the custom indicator.

formulastringrequired

Formula expression (e.g., sma(close, 14) - sma(close, 50)).

descriptionstringoptional

Description of what the indicator measures.

Response

200 OK
POST/api/v1/indicators/custom
curl -X POST "https://api.gilito.ai/api/v1/indicators/custom?name={name}&formula={formula}&description={description}" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "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"
  }
}
PATCH/api/v1/indicators/custom/:id

Update a custom indicator's name, formula, or description.

Path Parameters

idstringrequired

The custom indicator ID.

Query Parameters

namestringoptional

Updated name.

formulastringoptional

Updated formula.

descriptionstringoptional

Updated description.

Response

200 OK
PATCH/api/v1/indicators/custom/:id
curl -X PATCH "https://api.gilito.ai/api/v1/indicators/custom/{id}?name={name}&formula={formula}&description={description}" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "data": {
    "id": "ci-abc123...",
    "name": "Updated Custom RSI",
    "formula": "(close - ema(close, 14)) / stddev(close, 14)",
    "updatedAt": "2026-04-04T09:00:00.000Z"
  }
}
DELETE/api/v1/indicators/custom/:id

Delete a custom indicator.

Path Parameters

idstringrequired

The custom indicator ID.

Response

200 OK
DELETE/api/v1/indicators/custom/:id
curl -X DELETE "https://api.gilito.ai/api/v1/indicators/custom/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "data": {
    "id": "ci-abc123...",
    "status": "deleted"
  }
}
POST/api/v1/indicators/custom/:id/evaluate

Evaluate a custom indicator against an asset's historical data. Returns computed values.

Path Parameters

idstringrequired

The custom indicator ID.

Query Parameters

assetIdstring (UUID)required

The asset to evaluate against.

fromstring (ISO date)optional

Start date.

tostring (ISO date)optional

End date.

Response

200 OK
POST/api/v1/indicators/custom/:id/evaluate
curl -X POST "https://api.gilito.ai/api/v1/indicators/custom/{id}/evaluate?assetId={assetId}&from={from}&to={to}" \
  -H "Authorization: Bearer YOUR_API_KEY"
Try It
Example Response
{
  "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 }
    ]
  }
}