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_oraclebayesian_trendllnrreversalsceresenzoperpkitnohlcnha