Skip to documentation
API docs/Agent alertsChapters +
Documentation/API reference
v1

API reference

Agent alerts

Alerts with your own settings and optimisers, and every firing.

With your account’s own key (Dashboard → Settings → API access, Premium) your agent can make alerts on any Eclipse indicator, with the settings it chooses, the optimisers it wants and the signals it picks by name. Eclipse computes them on every candle close, exactly as the chart’s own alerts, and records every firing for your agent to read. Each alert can also have a webhook, so the firing is POSTed to your server the moment it happens.

Make an alert

Spell out its settings, or send "copy": "CERES#2" to take a copy from your chart as it is there, optimisers included. The same settings on the same symbol and timeframe switch that alert on rather than make a second. Your plan’s alert cap applies (20 on Premium).

POST https://www.eclipse.trade/api/v1/alerts
Authorization: Bearer ek_...   (your account's key: Dashboard -> Settings -> API access)

{
  "indicator": "ceres",
  "symbol": "BINANCE:BTCUSDT",
  "timeframe": "4h",
  "signals": ["long_entry", "long_exit", "short_entry", "short_exit"],
  "settings": { "mode": "Manual", "length": 120, "longOnly": false },
  "optimisations": {
    "enigma": { "tune": ["length"] },
    "roi_curve_filter": { "length": 20, "type": "SMA", "pause_when": "above" }
  },
  "webhook": "https://your-bot.example.com/eclipse?key=..."
}

Read every firing

Each event is the JSON an alert webhook sends: the signal by name, its side and action, the symbol, timeframe, price and the candle’s times. Events come oldest first; send next_after_id back as after_id to read on. Poll once a minute. Events are kept 30 days.

GET https://www.eclipse.trade/api/v1/alerts/events?after_id=1841

{
  "events": [{
    "event_id": 1842,
    "event": "alert.fired",
    "indicator": "ceres",
    "signal": "long_exit",
    "side": "long",
    "action": "exit",
    "symbol": "BINANCE:BTCUSDT",
    "timeframe": "4H",
    "price": 84210.5,
    "bar_time": "2026-10-27T08:00:00.000Z",
    "fired_at": "2026-10-27T12:00:00.000Z",
    ...
  }],
  "next_after_id": 1842
}

Optimisers

Optimisers (enigma, roi_curve_filter, gradient_boosting) decide an alert’s trades exactly as they decide the chart’s backtest: Enigma tunes the strategy’s inputs on Eclipse’s servers, and a trade the ROI Curve Filter pauses fires nothing, its entry nor its exit.

A sizing model (Gradient Boosting (gradient_boosting); Premium, one an alert, true to add it) sizes each trade from what it learned of the chart’s own past trades, on Eclipse’s servers: a trade it skips fires nothing, its entry nor its exit, and a taken entry’s position size is its sized one. On a chart with fewer than 20,000 candles of history a sizing model stands aside and every trade fires as the strategy’s own. A sizing model sizes the alert’s trades by volatility whatever its positionSizeMode: each from its Volatility-Adjusted size, and the strategy’s own trade (where the model stands aside, or its sizing was not ready) is that Volatility-Adjusted size. A trade whose sizing is not ready yet waits for it and fires once it is, sized, so its event can come after its candle’s close. A trade the model cannot size fires as the strategy’s own, its position_size_pct unsized, and its event’s message says so (“Not sized: …”): where the model cannot run on that chart, or where its sizing is still not ready 10 minutes after the candle closed. Each trade is decided once, at its entry: its exit fires when its entry fired, never when its entry was skipped, and never before its entry.

Enigma sizes the trades of an alert it tunes (its Optimal position sizing, which an alert cannot turn off): each from its Volatility-Adjusted size whatever its positionSizeMode, sized up or down from what was known before its entry, or skipped. A trade it skips fires nothing, its entry nor its exit, and a taken entry’s position_size_pct is its sized size. With a sizing model added, the model sizes the trades in its place.

Every indicator’s settings

The chart’s own names. The same table, with every default, is in the catalog under agent_alerts.

Trend Oracle trend_oracle
Signals: longs, shorts, long_reversal, short_reversal
Settings: mode (Rapid | Self-Tuning | Absolute | Manual Length), length (1 to 500)
Bayesian Trend bayesian_trend
Signals: bullish, bearish, long_reversal, short_reversal
Settings: mode (Rapid | Self-Tuning | Absolute | Manual), length (1 to 500)
LLNR llnr
Signals: long_reversal, short_reversal
Settings: length (1 to 200), rmseLength (1 to 200)
Reversals reversals
Signals: long_r1, long_r2, long_r3, short_r1, short_r2, short_r3
Settings: mode (Rapid | Self-Tuning | Manual), sensitivity (0 to 400), showFilter (true | false)
Ceres ceres
Signals: long_entry, long_exit, short_entry, short_exit
Settings: mode (Self-Tuning | Absolute | Model Optimal | Manual), length (30 to 200), longOnly (true | false), positionSizeMode (Full Position | Volatility-Adjusted), compoundingPercent (0 to 100), costsEnabled (true | false), feePct (0 to 5), slippagePct (0 to 5), initialCapital (1 to 1000000000000), leverage (0.1 to 100), dateRangeEnabled (true | false), dateRangeStart (0 to 4102444800), dateRangeEnd (0 to 4102444800)
Optimisers: enigma, roi_curve_filter, gradient_boosting
Enzo enzo
Signals: long_entry, long_exit, short_entry, short_exit
Settings: mode (Self-Tuning | Absolute | Manual), length (30 to 200), longOnly (true | false), filter (true | false), positionSizeMode (Full Position | Volatility-Adjusted), compoundingPercent (0 to 100), costsEnabled (true | false), feePct (0 to 5), slippagePct (0 to 5), initialCapital (1 to 1000000000000), leverage (0.1 to 100), dateRangeEnabled (true | false), dateRangeStart (0 to 4102444800), dateRangeEnd (0 to 4102444800)
Optimisers: roi_curve_filter
PerpKit perpkit
Signals: long_r1, long_r2, long_cr, long_exit, short_r1, short_r2, short_cr, short_exit
Settings: trendMode (Self-Tuning | Absolute | Model Optimal | Manual), trendLength (30 to 500), reversalsMode (Self-Tuning | Manual), reversalsSensitivity (0 to 400), showReversalsFilter (true | false), tpSpeed (Slow | Fast), showStopLoss (true | false), stopLossMultiplier (0.1 to 10), positionSizeMode (Full Position | Volatility-Adjusted), compoundingPercent (0 to 100), costsEnabled (true | false), feePct (0 to 5), slippagePct (0 to 5), initialCapital (1 to 1000000000000), leverage (0.1 to 100), dateRangeEnabled (true | false), dateRangeStart (0 to 4102444800), dateRangeEnd (0 to 4102444800)
Optimisers: enigma, roi_curve_filter, gradient_boosting
nOHLC nohlc
Signals: bullish, bearish
Settings:
nHA nha
Signals: bullish, bearish
Settings:

Signals are informational outputs of technical indicators, not investment advice or a solicitation to trade. Past signals do not guarantee future performance. Use of this API is governed by the Eclipse terms of use.

Standard API access is self-serve under the published Eclipse terms of use and the pricing and quota on /api/docs/access. No separately negotiated agreement is required for standard access. There is no formal uptime SLA. Redistribution, resale, or custom commercial terms require a separate written agreement through /api/v1/access-request.

Support & access recovery

Search API documentation

↑ ↓ to navigate · Enter to openEsc to close
Agent alerts | Eclipse API