SM
AGILEraAI Engine
Sign InInvestor Deck →

API Documentation

The AGILERA Prediction Engine exposes a RESTful JSON API on port 8000. All endpoints accept and return application/json. Click any endpoint to expand its full request/response schema and a ready-to-run curl example.

10

Endpoints

17

Agents

US 63/889,131

Patent

1.0.0

Version

Base URLhttps://api.agilera.ai(configured via NEXT_PUBLIC_AGILERA_ENGINE_URL)

Run the full 17-agent ensemble and return a calibrated triple-barrier probability vector for a single event.

If `bars` is omitted, OHLCV data is automatically fetched from Polygon / Alpaca / Yahoo Finance based on configured API keys on the engine.

Request Body

FieldTypeReqDescription
tickerstringyesTicker symbol, e.g. "AAPL".
entryfloat (> 0)yesEntry price for the triple-barrier event.
upperfloat (> entry)yesUpper barrier price (must be greater than entry).
lowerfloat (< entry)yesLower barrier price (must be less than entry).
vertical_barsint [1–500]noMaximum number of bars before vertical expiry. Default: 20.
barsBarData[]noOptional OHLCV bars array. Each bar: {time, open, high, low, close, volume}. Auto-fetched if omitted.

Response

FieldTypeReqDescription
event_idstring (UUID)yesUnique identifier for this prediction event.
tickerstringyesTicker symbol (uppercase).
p_upperfloat [0,1]yesProbability of upper barrier being hit first.
p_lowerfloat [0,1]yesProbability of lower barrier being hit first.
p_nonefloat [0,1]yesProbability of vertical expiry (neither barrier hit in time).
confidencefloat [0,1]yesmax(p_upper, p_lower, p_none) — strength of the top signal.
calibratedbooleanyesWhether Platt Scaling calibration was applied.
top_signal"UPPER" | "LOWER" | "NONE"yesThe highest-probability outcome.
agent_countintyesNumber of agents that contributed to the prediction.
agent_predictionsobjectyesPer-agent probability vectors: {agent_name: {p_upper, p_lower, p_none}}.
agent_weightsobjectyesPer-agent ensemble weights at prediction time: {agent_name: weight}.
timestampstring (ISO-8601)yesUTC timestamp of the prediction.
ledgerobjectyesDDL-69 ledger format: {p_upper, p_lower, p_none} for ich8.org.

Example

curl -X POST https://api.agilera.ai/predict \
  -H "Content-Type: application/json" \
  -d '{
    "ticker": "AAPL",
    "entry": 195.00,
    "upper": 200.00,
    "lower": 190.00,
    "vertical_bars": 20
  }'

Shared Types

BarData

FieldTypeDefault
timestring""
openfloat0.0
highfloat0.0
lowfloat0.0
closefloat0.0
volumefloat0.0

Outcome enum

Used in POST /outcome and returned in prediction responses.

UPPERUpper barrier hit before lower and expiry
LOWERLower barrier hit before upper and expiry
NONEVertical expiry — neither barrier hit in time

AgentGrade enum

Requires a minimum of 5 predictions to move off the default B grade.

Saccuracy ≥ 70%
Aaccuracy ≥ 60%
Baccuracy ≥ 50% (or < 5 predictions)
Caccuracy ≥ 40%
Daccuracy ≥ 30%
Faccuracy < 30%