Programmatic access to the same trade plans, indicators and screener lists the bot shows.
Base URLhttps://corenovabot.com/api/v1
Every endpoint except /health, /demo/analyze and this page needs an API key in the
X-API-Key header. A key sent in the URL (?api_key=) is refused with HTTP 400
key_in_url — URLs end up in logs; if you did that, replace the key.
curl -H "X-API-Key: cn_live_..." \
"https://corenovabot.com/api/v1/analyze?symbol=BTC-USDT&asset_type=crypto"
Keys come with the Pro and Premium plans (the free trial does not include the API).
Open Settings → API key in the Web App (sending /api_key in the bot opens it). The key is
shown there once and never sent in a chat — we store only a hash, so save it somewhere safe.
A key that leaks is switched off. If a live key turns up in a web address, a message in the bot or a message to support, we revoke it at once and tell you in the bot with a button to a new one.
| Endpoint | Scope | Plans | What it returns |
|---|---|---|---|
/health | none | everyone | Liveness probe. |
/demo/analyze | none | everyone — BTC-USDT and AAPL only | Try /analyze without a key (cached). |
/analyze | read:analyze | Pro, Premium | Timeframe agreement, trend and the trade plan for a symbol. |
/indicators | read:indicators | Pro, Premium | Raw indicator values for one timeframe. |
/scan | read:scan | Pro, Premium | Screener lists (filters, not forecasts). |
/accuracy | read:accuracy | Pro, Premium | How our trade plans have done, plus a 24h diagnostic. |
/sentiment | read:sentiment | Premium | Recent news headlines about the symbol, dated, newest first (no score since v2.6.264). |
/earnings | read:earnings | Premium | Next earnings date for a US stock. |
/fundamentals | read:fundamentals | Premium | Stock fundamentals. |
Scopes and the rate follow your current plan on every call, both ways: move from Pro to
Premium and the same key reaches the Premium endpoints at Premium's rate on its next call; on Pro, the Premium
endpoints answer HTTP 403 insufficient_scope. If your plan no longer includes the API,
the key is paused: calls answer HTTP 403 plan_ended with
grace_until. Pro or Premium back before then and the same key works again; after it, the key is
switched off at the next 05:00 UTC run. You're told in the bot at each step.
Per key, per minute: Pro 30/min · Premium 60/min. Every response carries X-RateLimit-Limit and
X-RateLimit-Remaining for your key. Over the limit: HTTP 429 rate_limited
with a Retry-After header (seconds). When a minute reaches 80% of the budget we message you in the bot
— at most once an hour. /analyze also computes at most 10 new symbols a minute per key; a
symbol asked again within 5 minutes is served from cache ("cached": true) and doesn't count.
/indicators answers from a 60-second cache per symbol and timeframe.
Stock data for API calls comes from our paid real-time feed up to 40 calls per customer a day (UTC), then from a free source for the rest of the day; crypto is unaffected. API calls don't use analysis tokens.
A key renews itself while your plan includes the API — there is nothing to rotate on a schedule.
Regenerate (Settings → API key in the Web App) issues a new key and switches the old one off at once, so
put the new key in your client straight after. Revoke (or /api_key revoke) switches it off
without a replacement. /api_key status shows this week's calls.
Errors from this API share one shape (HTTP 400, 401, 403, 404, 429, 500, 502, 503):
{
"detail": {
"error": "rate_limited",
"detail": "Limit is 30 requests a minute."
}
}
error is one of: missing_api_key, invalid_api_key (unknown, revoked or
expired), key_in_url (the key is also switched off when it was a live one —
key_revoked), plan_ended (with grace_until), plan_unverified
(503, retry), key_owner_inactive (admin keys), insufficient_scope,
rate_limited, compute_budget, timeframe_not_available,
unknown_preset, symbol_not_found, demo_symbol (the demo answers two symbols),
no_upcoming_earnings, no_fundamentals, data_unavailable,
internal. A malformed parameter (wrong type, unknown asset_type) is answered
HTTP 422 by the framework, with detail as a list of field errors.
The machine-readable description of every endpoint is at /api/v1/openapi.json.
curl https://corenovabot.com/api/v1/health
{"status": "healthy", "version": "v1"}
The /analyze response for BTC-USDT or AAPL only, from a shared
5-minute cache, 10 requests a minute per address (over it: HTTP 429 rate_limited with
Retry-After and X-RateLimit-*, the same shape as a key's). Any other symbol answers
HTTP 400 demo_symbol. Adds "demo": true.
curl "https://corenovabot.com/api/v1/demo/analyze?symbol=AAPL"
What the bot and the Web App show for a symbol: how many timeframes lean the same way, the trend, and the
trade plan (entry, target, stop) — the plan we score. A plan is something you can
follow or not, not a forecast; when timeframes disagree or there is no room to the next level, the plan
is no_trade with the prices that would change that. When the plan at today's price isn't worth
taking (reward:risk below 1:1, a target that is not a chart level, or a stop capped short of its level) the
plan WAITS: limit with an entry at that level (scored only if price gets there within
valid_hours), else no_trade; why_wait says why.
| Param | Type | Notes |
|---|---|---|
symbol | string | Required. BTC-USDT (or BTC) for crypto, AAPL for a stock. |
asset_type | string | crypto (default) or stock. |
timeframe | string | Optional — adds that timeframe's detail as frame. Crypto: 5m 15m 30m 1h 4h 1d 1M; stocks: 5m 15m 30m 1h 1d 1M (no 4h stock bar). |
{
"symbol": "BTC-USDT", "asset_type": "crypto", "price": 64994.8,
"alignment": {"headline": "4 of 6 frames up", "side": "up", "up": 4, "down": 1, "total": 6},
"trend": "...",
"plan": {"mode": "active", "timeframe": "4h", "side": "long", "entry": 64994.8,
"target": 66510.0, "target_kind": "structural", "stop": 64180.5,
"stop_kind": "invalidation", "reward_to_risk": 1.86},
"plan_record": {"scored": 0, "target": 0, "stop": 0, "timed_out": 0, "avg_r": null, "what": "..."},
"stretched": {"rsi_1h": 64.2, "stretched": false, "note": null},
"levels": {"nearest_support": 64180.5, "nearest_resistance": 66510.0},
"timeframes": [{"timeframe": "1h", "read": "up", "adx": 22.4,
"indicators_fired": ["MACD bullish crossover", "RSI overbought"],
"indicators_up": ["MACD bullish crossover"], "indicators_down": ["RSI overbought"]}, "..."],
"computed_at": 1760108400, "cached": false,
"note": "A trade plan you can follow or not — not a forecast. ..."
}
plan.mode is active, limit, no_trade or bias_conflict.
read per timeframe is up, down, flat or no data;
indicators_fired lists the conditions that fired on that timeframe and indicators_up /
indicators_down say which way each leans (some, like a squeeze, lean neither way).
stretched is always an object: stretched: true (with a note) when a coin's 1h
RSI is above 70 — such coins have lagged the average coin the next day; rsi_1h is null when
there is no 1h reading, and stocks are never marked stretched. With timeframe the response adds
frame: the same object as that timeframe's entry in timeframes. Indicators are read on
closed bars; price is the latest trade. There is no verdict or conviction score: in our measurements
neither called the next day.
Raw indicator values for one timeframe, computed live from candles — no signal, score or plan.
Params: symbol, asset_type, timeframe (crypto
5m 15m 30m 1h 4h 1d 1w; stocks 5m 15m 30m 1h 1d; monthly is not offered here).
{
"symbol": "BTC-USDT", "asset_type": "crypto", "timeframe": "1h",
"last_close": 64998.2, "bar_close": 64951.0, "indicators_at": "2026-11-18T03:00:00Z",
"rsi": 65.68, "macd": 197.64, "macd_signal": 90.81,
"adx": 15.96, "plus_di": 30.19, "minus_di": 12.48,
"bb_upper": 65017.69, "bb_lower": 63323.32, "bb_middle": 64170.51,
"ema_9": 64560.22, "ema_21": 64318.20, "ema_50": 64189.89,
"pct_change_24h": 0.56, "volume_24h": 6280.23, "quote_volume_usd": 412000000.0,
"spark": [64102.5, "...", 64951.0], "cached": false
}
Every indicator is computed on the last closed bar of that timeframe: bar_close
is its close and indicators_at (UTC) the time it closed. last_close is the latest
trade, inside the bar still forming. pct_change_24h is the change over the last 24 hours (stocks:
since the previous session's close). volume_24h is the volume of the last 24 bars of the timeframe
you asked for — a full day only on 1h — in the market's own units (contracts for some
coins); quote_volume_usd is the dollar volume traded in 24 hours when we have it (null otherwise).
spark is the last 24 closes, oldest first. Cached 60 seconds per symbol and timeframe
("cached": true).
Pre-computed screener results from the last closed 1h bar across every liquid crypto perpetual (at least
$200K traded a day — the count moves with market volume; refreshed every 15 minutes) and 107 US stocks & ETFs
(hourly while the market is open, then once after the close). Filters, not forecasts: each
response's note carries the list's live record — the share of it that did better than the typical
coin or stock over the next day. Lists are most-traded first; overbought is most-stretched first; with
no preset you get top movers, biggest 24h move first. score is the five-vote indicator
tally (−5 to +5) — not a forecast, and nothing is ranked by it.
| Param | Type | Notes |
|---|---|---|
preset | string | oversold, overbought, bullish, bearish, breakout_up, breakout_down, trending_up, trending_down; omit for top movers. Unknown → 400 unknown_preset. |
asset_type | string | crypto, stock, or omit for both. |
timeframe | string | 1h only (anything else → 400). |
limit | int | 1–100, default 10, capped by plan: Pro 20, Premium 50. |
The response carries limit (the cap applied), tier, order and
note (what our record says about the list); rows carry quote_volume_usd and
stretched. overall_signal / score on a row are a five-indicator tally, not a forecast.
trade_plans: how the plans we showed did — first touch of target or stop, timed out,
average R net of costs (all symbols of the asset class in the window). diagnostic_24h: how often
the trend label matched the price 24 hours later — a diagnostic, not a forecast record; judge
accuracy_rate against benchmark_rate (what always calling the majority direction scored)
— for a two-way call the bar is that benchmark, not 50%. Prefer median_pct_when_correct / median_pct_when_wrong to the
avg_pct_* means, which a single sub-cent bad print can dominate.
Params: asset_type, days (1–365, default 30), symbol (filters the diagnostic only).
Recent news headlines about the symbol from the last 14 days, newest first, each with its source,
published_at and age; available is false when there are none. For coins
the list also includes headlines found via the GDELT Project (gdeltproject.org) and Cryptonews.com — when
it does, attribution names them and you must credit them the same way. Headlines
are not scored — the polarity score and verdict were removed in v2.6.264 (a keyword count, never shown to
call anything). Cached 30 minutes. Params: symbol, asset_type.
Next earnings for a US stock — the date, timing (bmo before the open,
amc after the close, dmh during the session, or null when not published) and the
estimates; HTTP 404 no_upcoming_earnings when none is scheduled. Dates are estimates
until the company confirms them. Cached 24 hours. Param: symbol.
Market cap, P/E (trailing + forward), margins, growth, dividend, analyst target. A value outside a
plausible range (a market cap under $1M, a beta beyond −5…10, margins beyond ±1000%) is
returned as null — it is a data error at the source. Cached 24 hours. Param: symbol.
/api/v1/openapi.json describes every endpoint, parameter and the authentication header (OpenAPI 3.1) — load it into Postman, Insomnia or a code generator.
Breaking changes go to /api/v2/; v1 receives additions and fixes.