Skip to main content

Engine API v1 · AI Agents

Connect AI agents directly to our simulation engine.

With our versioned REST API v1, AI agents and custom scripts talk directly to the Rust engine — headless, OpenAPI 3.1 native, version-pinned, and built for structured trade evaluation.

Active engine
backtester-v1.1.0
Specification
OpenAPI 3.1.0
Pro batch limit
Up to 10,000 variants
Agent-to-Engine Communication (Live Schema)
OpenAPI 3.1 JSON
GET /api/v1/engine/versionsX-Umbre-Engine-Version: backtester-v1.1.0
{
  "apiVersion": "v1",
  "currentEngineVersion": "backtester-v1.1.0",
  "contractVersion": "strategy-frame-v2",
  "liveBacktester": {
    "currentSemver": "1.1.0",
    "capabilities": [
      "single-backtest",
      "batch-permutation",
      "on-demand-scenario-inspect"
    ]
  }
}

Connected in 3 steps

How AI agents work with the simulation engine.

No fragile browser automation: clean JSON contracts, explicit engine versions, and structured results.

  1. 01

    Read OpenAPI 3.1 & engine version

    Your AI agent fetches /api/v1/openapi.json and /api/v1/engine/versions to discover every endpoint, field, and capability automatically.

  2. 02

    Submit JSON strategies & run tests

    Define entry and exit rules as clean JSON and launch single backtests or batch parameter sweeps.

  3. 03

    Evaluate trades & metrics

    Receive exact buy/sell executions, fees, drawdowns, returns, and explicit engine version headers.

REST API v1 overview

All core endpoints at a glance.

Public discovery endpoints work without a key; simulations, batch sweeps, and trade inspection are unlocked on Pro and Enterprise plans.

MethodEndpointAccessPurpose
GET/api/v1/engine/versionsPublicInspect active engine release, frame contract, and live Rust status
GET/api/v1/openapi.jsonPublicMachine-readable OpenAPI 3.1.0 specification for AI agents
POST/api/v1/strategiesPro / EnterpriseCompile a declarative JSON strategy DSL into a runnable snapshot
POST/api/v1/backtestsPro / EnterpriseExecute a single backtest pinned to a specific engineVersion
POST/api/v1/backtests/batchPro / EnterpriseLaunch an asynchronous batch sweep across thousands of parameter variants
POST/api/v1/backtests/:runId/scenarios/:rank/inspectPro / EnterpriseReconstruct OHLC candles and exact buy/sell markers for any scenario
GET/api/v1/backtests/:runIdPro / EnterprisePoll run progress or fetch completed single and batch metrics

API FAQ

Key details before you integrate.

Clear answers for developers, research teams, and AI agent builders.

Can AI agents operate the engine completely without the UI?

Yes. With a Pro or Enterprise API key, AI agents run the full workflow via REST: create strategies in JSON, run single or batch simulations, poll status, and inspect individual trades.

Which plan is required for the Engine API?

Engine version discovery and the OpenAPI 3.1 schema are public. Creating API keys and running simulations on /api/v1 requires an active Pro or Enterprise plan.

How do results stay reproducible across future engine updates?

Every response includes X-Umbre-Engine-Version (currently backtester-v1.1.0) and X-Umbre-Contract-Version (strategy-frame-v2). You can pin engineVersion explicitly in every request for full reproducibility.

Does the API place live orders on exchanges?

No. The Engine API is strictly for historical simulations, parameter sweeps, and benchmarks — with zero broker access or live execution risk.

Important risk information

Backtests and sweetspot analyses are hypothetical simulations based on historical data and selected assumptions. They can omit market effects and do not guarantee future results. Umbre Trading does not provide investment advice or execute trades.

Methodology

Ready to integrate

Connect your scripts or AI agents to Umbre.

Create your scoped API key in the Pro workspace or inspect the public OpenAPI 3.1 schema first.