Skip to content

Data and strategy backtesting

Your Candle agent key reads market data from two places:

  • The Candle API (https://api.alpha.candle.tv/api/v1, header x-api-key): market state, quotes, the feed, token forensics, agent records and your own P&L, trades and watchlist. Much of it is computed from Hacc, Candle’s market data engine.
  • Hacc itself (https://api.hacc.fun, header Authorization: Bearer <your cndl_live_ key>): the signal tape, wallet and token intelligence, smart-money trades, follows and alert rules, and, on Pro and Max, the strategy lab (saved-strategy backtesting is Max).

The same key works on both, and Candle never proxies the Hacc routes: you call api.hacc.fun directly. Execution always stays on Candle: Hacc reads and backtests, it never trades for you.

FreeProMax
Candle API data (everything below in “On the Candle API”)YesYesYes
Hacc public measured records and account statusYesYesYes
Hacc signal tape, stream, market, wallet and token readsNoYesYes
Hacc wallet groups visibleNopublic, pro, maxpublic, pro, max
Hacc follows, alert rules, personal signals and your own groupsNoYesYes, with higher caps
Hacc wallet book legs (a wallet’s stored swaps and transfers)NoNoYes
Hacc strategy lab: research reports and replaysNoYes (5 replays a day)Yes (20 replays a day by default)
Hacc saved strategies and their backtestsNoNoYes

A Free key reaches Hacc’s public measured records and account status routes, and does not reach Hacc’s stored intelligence or signal stream: those routes answer 403 "Stored intelligence requires Pro or Max".

Plans are described in Plans, pricing & limits. Hacc learns your plan from Candle and refreshes it within about a minute of a change. Max access ends when the Max plan expires.

These are documented in full elsewhere; this is the map.

DataWhereNotes
Market state, migration status, buys and sells for any market Candle indexesMarket state APIPublic, no key
QuotesQuotePublic
The feed: new, graduated, onfire (Hacc’s hot streak), finalstretch (Hacc’s Solana tokens closest to graduating)Feed, Reading the feedPublic. onfire and finalstretch come from Hacc
Token forensics: deployer record, insiders, clusters, and Hacc’s safety checks (mint and freeze authority, LP lock, sellability, liquidity drain)Token forensicsPublic; the safety block covers Solana
Copy score: how a published agent’s own trades would have paid a copierCopy scorePublic
Cohorts and the agent directory, leaderboard and public recordsCohorts, Agent trading APIPublic
Your profile’s P&L, trades, portfolio and paper tradesAgent trading API, MCP serveraccount:read
Your watchlist of up to 200 wallets, with webhook alertsAlerts on the watchlistaccount:read to read, launch:write to change
Paper trading: run your strategy forward against live quotes with nothing broadcastPaper modeswap:write

The MCP server’s read tools (candle_get_feed, candle_get_market, candle_token_forensics and the rest) cover the same data: see Candle MCP server.

Send your production key as a bearer token:

Terminal window
curl -H "Authorization: Bearer $CANDLE_API_KEY" "https://api.hacc.fun/v1/signals?chain=solana&limit=20"
  • Only a live, unrevoked, unexpired production key (cndl_live_) works; a test key is always refused (401 invalid api key).
  • Hacc reads your account, not the key: every key on the account sees the same follows, rules and strategies.
  • On the customer routes described below, Hacc does not check Candle scopes. Any production key, including a Read key, reaches what its plan allows: reads, and account-state writes such as following and unfollowing wallets, editing wallet groups, and creating, changing or deleting rules and strategies. The native desk trade-signal routes described below require separate Hacc scopes; a Candle plan does not grant those scopes. Nothing on the customer routes moves funds or creates a market.
  • Per-account 60-second rate limits apply across all cndl_live_ keys on the same Candle account (429 "Request rate limit reached" when exceeded):
    • 60 GET reads per minute across customer research endpoints.
    • 10 live provider refreshes per minute across vendor-backed market and chain routes when a 60-second cached snapshot expires (when refresh rate or research allowance is exhausted, live routes fall back to stored snapshots or stored reconstruction at 0 credits).
    • 10 report reads per minute across GET /v1/strategy-lab/* research endpoints (counted inside the 60 reads/min ceiling).
  • Per-request query caps on customer cndl_live_ keys: limit and top are capped at 200 rows (1,000 on /v1/tokens/:mint/events), and comma-separated batch address parameters (wallets, addresses, mints, asset_ids) take at most 20 entries per request (400 "At most 20 addresses per request").
  • Under customer research access, both Pro and Max cndl_live_ keys see wallet groups with visibility public, pro and max (internal stays hidden); Free keys have no access to stored groups or signals.

Public measured records and account status (Free, Pro and Max)

Section titled “Public measured records and account status (Free, Pro and Max)”

Every production cndl_live_ key, including Free, can read Hacc’s public measured signal records and its own plan status. Scorecard and signal-record responses carry measure: "Measured record, not a forecast.".

RouteWhat it returns
GET /v1/public/scorecard, GET /v1/public/scorecard/:dateDaily measured signal scorecard (YYYY-MM-DD, or latest when omitted): signal lift against matched baselines, pending 24h count, and per-source, per-rule, per-horizon return aggregates
GET /v1/public/signal-records, GET /v1/public/signal-records/:source/:sourceIdPer-signal measured forward records (source: pattern, quant_call, holder_band or launch_read; paged with before and limit up to 100): entry marks, conservative and priced net returns, 24h path and matched baseline
GET /v1/public/token-signals/:addressPublic measured signal records and holder-quality band for one Solana mint or 0x contract
GET /v1/me/limitsYour account’s plan and current follow, rule and custom-group usage against plan caps
GET /v1/research/session, GET /v1/research/usageYour research tier, live-refresh allowance, daily and rolling 30-day research credit usage, and daily token-lookup refresh count
GET /v1/strategy-lab/statusYour plan’s strategy-lab eligibility, daily replay cap and usage (cap, used, resets_at) and any active replay job

A signal is an event Hacc’s tracked wallets produced on a token: a first buy of a new ticker, several tracked wallets buying together, a large move, a dormant wallet waking up, a deployer launching, distribution, or a KOL mention. Requires Pro or Max.

GET /v1/signals

ParameterMeaning
patternconfluence, deployer, large_move, dormancy, intra_book, new_ticker, distribution or kol_mention
chainsolana or hood (Robinhood Chain)
assetOne token, by Hacc asset id or mint
rule_id, wallet_idSignals from one rule or one tracked wallet
event_kindComma-separated subset of swap, transfer, deploy
since, until, after, orderTime window and paging (order: asc or desc)
limit, offsetUp to 200 rows, 50 by default
group_by=token, rank_by=wallets_effectiveRank tokens by signal count over the window (24h by default), or with rank_by=wallets_effective by distinct non-serial-buyer wallets
groupSignals from one wallet group visible to your plan (public, pro, max)
min_mcap_usd, max_mcap_usd, min_age_minutes, max_age_minutes, ageMarket cap and token age filters (age: <1h, 1-24h or >24h)
venues, exclude_venuesLaunch venue, for example pump, raydium-launchpad, meteora-launchpad, pons, candle, pools-trade, unresolved
min_score_1h, with_scoresFilter by ML 1-hour score (0 to 1), or pass with_scores=true on Pro/Max to attach score_1h to each row
qualitycurated or all; Candle keys receive curated by default

GET /v1/signals/stream is the same tape over a WebSocket on Pro and Max (Free keys are refused before upgrade with 403 "Stored intelligence requires Pro or Max"): a snapshot of the newest 100 signals, then each new one as it lands, with a ping every 20 seconds. It takes event_kind, chain and quality; any other query param, such as pattern, is a 400 instead of being ignored. Each account may hold up to 8 open sockets per API process (64 total subscribers per process).

GET https://api.hacc.fun/v1/trade-signals lists analyst buy/sell calls. These are a different input from the tracked-wallet events on /v1/signals.

Access: this is a native Hacc desk route. It requires a Hacc bearer key with agent or trading scope (admin also qualifies). A native key with only read, write or lab is refused. Candle production keys, including Read keys on Free, Pro and Max, do not receive those native scopes and are refused with 403 "requires agent or trading scope". No Candle plan unlocks this route.

For an authorized native caller, the response is { "signals": [...] }, newest first by creation time, then id. Each call includes its id, side, asset id/address/symbol, chain, source_agent, rationale, confidence, entry price_usd and market_cap_usd, risks, recommended action, refs, status, expiry and creation time. Confidence and non-null prices/caps are decimal strings; the price and cap are the mark captured when the call was created, not a current quote.

Filters are status (open, consumed, expired), side, source_agent, chain, asset_address and since, with limit (default 50, maximum 200) and offset. Status is unfiltered by default; an execution consumer needs open calls and must check expires_at. This is a shared call stream, not an account’s private feed. GET /v1/trade-signals/export and /scoreboard require native trading (or admin); creating or changing a call requires native agent (or admin).

Conviction scores have no public current-score read. Hacc computes a token’s score and tier inside its runner from the strategy’s rolling signal window, wallets and groups. Both trade_signal and conviction entries are used by Hacc’s internal forward runner, including paper and live execution; they are not backtest-only. Entry audit records can contain the conviction points and tier at entry, but those are historical observations, not a current score feed. /v1/strategy-lab/signal-scores is a different model’s min_score_1h input and does not supply conviction points or tiers.

A Candle customer key can backtest these definitions but cannot read the matching live entry inputs through the customer API. Keep trade_signal and conviction entries unavailable for an external bot’s live execution rather than substituting the signal tape, the one-hour signal score or an old entry’s conviction score.

Pro and Max. Routes that take chain default to solana; pass chain=hood for Robinhood Chain where noted. Vendor-backed live reads cache responses in research_snapshots for 60 seconds (provenance.source: "stored_snapshot", research_credits: 0); on a cache miss, Pro and Max accounts with research allowance refresh from the provider (up to 10 refreshes/min, returning provenance.source: "provider_refresh") and fall back to stored snapshots or stored data when rate-limited or out of allowance.

RouteWhat it returns
GET /v1/market/token/:addressMarket data and safety for one token in one call. Solana and Hood
GET /v1/market/token/:address/lookupCross-chain token market and safety lookup by pasted Solana mint or 0x contract (resolves the chain automatically; up to 15 live refreshes/day on Pro and 40/day on Max, stored thereafter)
GET /v1/market/token/:address/historyOHLCV candles (1m to 1D, 30 days by default; pass include_candles=true for candle rows) with a summary: peak, trough, drawdown and launch phases. Solana and Hood
GET /v1/market/token/:address/top-tradersThe token’s top 10 traders over a window, marked against Hacc’s tracked wallets. Solana and Hood
GET /v1/market/token/:address/venuesHow its trading splits across DEX pools. Solana and Hood
GET /v1/market/token/:address/holdersTop holders of a Solana or Hood token (chain=solana or chain=hood, inferred from the address when omitted), marked against Hacc’s tracked wallets
GET /v1/market/token/:address/profileIts contract stage (bonding curve, migrated, AMM-native) and the rug mechanics that stage allows, in plain language
GET /v1/market/token/:address/riskSell-side token risk checks (honeypot, can_sell, buy/sell taxes, LP lock, burn ratio; chain=sol, bsc or base)
GET /v1/tokens/:mint/safetySolana mint safety flags from on-chain mint state, RugCheck, Jupiter Shield and runner evidence (mint_authority, freeze_authority, token_extensions, lp_lock, sellability, plus latest sell_probe)
GET /v1/chain/address/:addressDirect on-chain classification for a Solana or 0x Hood address (wallet, mint, token account, program or contract), plus Solana mint authorities, Token-2022 extensions and deployer launch history
GET /v1/market/token/:address/launch-overviewThe launch at a glance: launch record, price ticks, events, holdings, signals and mentions (stored view on customer research reads; cached 60 seconds). Solana and Hood
GET /v1/market/deployer/:address/launchesRecorded launches for a deployer address on solana or hood
GET /v1/token-launches/:mintRecorded Solana launch row for one mint: deployer, creation tx, pool, quote mint and initial deployer buy
GET /v1/market/token/:address/wallet-pnl?wallets=Realized and unrealized P&L of up to 20 named wallets on this token
GET /v1/market/token-search?q=Name or ticker to mint, Solana and Hood
GET /v1/market/prices?addresses=Current prices for up to 20 tokens in one request (chain=solana by default; pass chain=hood for Hood)
GET /v1/market/native-priceLatest stored SOL and ETH USD minute prices, with optional usd or native budget conversion
GET /v1/market/overviewWhole-market snapshot across Solana and Hood from stored ticks
GET /v1/market/top-tokens?chain=Top tokens on solana or hood ranked by volume or delivered signal_return (horizon: 15m, 1h, 4h, 24h), with measured signal records
GET /v1/market/token-momentum?chain=Ranked token momentum on solana or hood over minutes (1 to 1440), sorted by momentum, buy_volume or price_change
GET /v1/market/token-screener?chain=&from=&to=&min_market_cap_usd=Stored token launches in a window (up to 24 hours) above a market-cap floor on solana or hood, paged with cursor
GET /v1/market/gainersTop trader gainers on Solana, marked against Hacc’s tracked wallets
GET /v1/market/metasTrending narratives
GET /v1/market/activityThe tokens Hacc’s tracked wallets are trading most, by group and chain
GET /v1/market/cohort-flow?cohort=Stored buy flow from a tagged wallet cohort (fomo or serial) over window (15m or 1h)
GET /v1/market/cohort-overlap?mints=&k=Which wallets bought all of a set of two to five tokens (k equals the mint count), and how unusual that overlap is
GET /v1/launches/final-stretchSolana bonding-curve tokens closest to graduating, and those that graduated in the last 10 minutes (the source of Candle’s finalstretch feed)
GET /v1/launches/statsLaunch counts (last_1h, last_24h, last_7d, all_time) by chain alongside pump.fun graduation counts
GET /v1/tokens/lookalikesIndexed launches sharing a ticker or name (mint, ticker, name, chain; 404 when VAMP_FINDER is off)
GET /v1/callouts/token/:mint, GET /v1/callouts/recentTracked leaderboard-trader callouts on Solana tokens and post-call multiples (404 when CALLOUTS is off)
GET /v1/social/mentions, /v1/social/mention-marks, /v1/social/mentions/trendingMentions of a token by the X accounts Hacc follows, price marks at each mention, and what they are mentioning most
GET /v1/research/stored/:viewStored Hacc social and identity views (view: x_mentions, x_trends, social_profiles or fomoscan_handles)

Note: GET /v1/tokens/:mint/events (row cap 1,000) requires a native Hacc read service key because its rows carry unredacted wallet addresses (403 "requires read scope" on cndl_live_ keys). Customer cndl_live_ keys read per-token tracked events through GET /v1/events?asset= and GET /v1/signals?asset=.

RoutePlanWhat it returns
GET /v1/wallets, GET /v1/wallets/:idPro, MaxHacc’s tracked wallets: label, groups, watch level, trading stats and funding source
GET /v1/groups, GET /v1/groups/:idPro, MaxHacc’s wallet groups and their stats, filtered to public, pro and max visibility under customer research access
GET /v1/eventsPro, MaxTracked-wallet event tape (swap, transfer, deploy on solana or hood), filterable by wallet_id, asset and kind, paged by offset or forward cursor since_id (up to 200 rows)
GET /v1/holdings, GET /v1/holdings/totals, GET /v1/holdings/holdersPro, MaxDesk-book token holdings for one tracked wallet (wallet_id), cohort-wide totals by token (group), or tracked holders of a token (chain, address)
GET /v1/venue/:venue/leaderboard, GET /v1/venue/:venue/statusPro, MaxTraders ranked by realized P&L computed from a venue’s on-chain tape (window: 24h, 7d, 30d) and venue tape coverage
GET /v1/market/labelled-trades?kind=smartmoney or kind=kolPro, MaxRecent smart-money or KOL trades on Solana, marked against Hacc’s tracked wallets
GET /v1/market/wallet/:address/stats, /activity, /portfolioPro, MaxAny Solana wallet’s performance over a period (1d to all), recent trades and holdings
GET /v1/market/wallet/:address/token-breakdownPro, MaxPer-token wins and losses for a Solana or Hood wallet (from Hacc’s book when tracked, or live/stored tape otherwise)
GET /v1/market/wallet/:address/book-legsMaxA tracked wallet’s stored swap and transfer legs, Solana or Hood, with the USD source of each leg: 30 days by default, up to 90

Follows, alert rules and personal signals (Pro and Max)

Section titled “Follows, alert rules and personal signals (Pro and Max)”

Follow wallets you care about, then write rules that turn their activity into your own signals.

RouteWhat it does
GET /v1/me/follows, POST /v1/me/follows with { "chain": "solana", "address": "…" }, DELETE /v1/me/follows/:idYour followed wallets. Pro may follow 25, Max 100. A repeat follow of a wallet already followed answers 200 { follow, already: true }; a new follow is 201 with already: false
GET /v1/me/rules, POST /v1/me/rules with { "name", "pattern", "wallet_id"?, "params"? }Alert rules over the wallets you follow, up to 20
GET /v1/me/signals?after=&limit=The signals your rules produced (up to 200 per page, cursor next_after)
GET, POST, DELETE /v1/me/groups, and POST, DELETE /v1/me/groups/:id/walletsYour own wallet groups. Pro may keep 1, Max 5, each with up to 25 wallets. Adding a wallet answers { group, already }, with already true when the wallet was already a member

Rule patterns and their params:

patternparams
new_tickermin_usd (optional): a followed wallet’s first buy of a token
confluencewallets (2 or more), window_minutes: several followed wallets buying the same token
large_movemin_usd: a followed wallet trading at least that much
dormancydays: a followed wallet active again after that many days
distributionmin_usd (optional): a followed wallet selling down

Hacc does not push personal signals: poll /v1/me/signals with the after cursor. To be alerted on a wallet by webhook instead, add it to your Candle watchlist.

Over a cap, these routes answer 429. A Free account gets 403 requires Pro or Max.

Strategy lab and backtesting (Pro and Max)

Section titled “Strategy lab and backtesting (Pro and Max)”

Pro and Max accounts can describe a trading strategy as data, test it against Hacc’s recorded history, and read how it would have done. A strategy here is backtest-only: Hacc never runs it with money. To trade a strategy, run it yourself through the Agent trading API, and try it forward first with paper mode.

There are two ways to test, and research reports to design from.

POST /v1/strategy-lab/replay runs a definition over a window you choose and keeps nothing:

{
"definition": {
"chain": "solana",
"entry": {
"source": "pattern",
"pattern": "confluence",
"filters": { "max_mcap_usd": 500000, "max_age_minutes": 60 }
},
"exit": { "take_profit_pct": 100, "stop_loss_pct": 40, "max_hold_hours": 24 },
"sizing": { "usd_per_trade": 25, "max_concurrent": 4 }
},
"from": "2026-10-01T00:00:00Z",
"to": "2026-10-14T00:00:00Z"
}

It answers 202 { "job_id" }. Poll GET /v1/strategy-lab/replay/:job_id until status is done (or failed); POST /v1/strategy-lab/replay/:job_id/cancel stops it.

The result gives:

  • verdict: pass, fail or insufficient. See “What a pass means” below.
  • verdict_basis: what the verdict was decided on, in this job’s numbers: min_trades, trade_count, distinct_assets, best_asset (the token that made the most, with its trades and P&L), pnl_usd_without_best_asset, and notes that say when a pass would not survive losing its best token.
  • trade_count, pnl_usd, max_drawdown_pct, required_start_usd, final_usd and peak_capital_at_risk_usd. required_start_usd is the smallest balance that could have funded the whole run (open exposure plus accumulated losses), not the peak at risk. peak_capital_at_risk_usd is a conviction-ladder figure only: it reads 0 for every other strategy, so do not read it as the exposure of a pattern or trade-signal replay.
  • skips: why candidate entries were not taken, one count per reason: already_open (a signal on a token the run already holds), once_per_token and reentry_cooldown (re-entry filters you set), max_concurrent, slots_full, no_budget, unpriceable, zero_price, sizing_zero and sizing_skip (a sizing rule skipped the stake), entry_gate, mcap_at_entry (the market cap at entry was outside min_/max_mcap_at_entry_usd), displaced, claimed_today, exited_today and other.
  • trades: the first 2,000 trades, each with entry and exit price and USD, P&L and why it closed (take_profit, stop_loss, trailing_stop, max_hold, exit_signal, aborted for a position still open at the window’s end, or worthless for a token that went a day without a price).
  • universe: how many candidate tokens the replay considered and how many it could price.
  • measurement_quality (when asked for), evidence_kind (legacy_mark_replay, or paper_fidelity_replay), and promotion_eligible, which is always false: a lab replay never promotes anything on its own.

The poll also returns request: the definition (with defaults filled in), window and options the job was given, so a result can be read beside what produced it.

Limits for a Pro or Max account (saving strategies for backtesting is Max only):

  • The window is at most 14 days.
  • One replay runs at a time per account (409 with code: "lab_active" and the running job_id otherwise), and across owned replays at most 6 jobs may sit queued or running in the shared queue (lab_owned_queue_max = 6; 503 with code: "lab_busy" when full, without spending a daily slot).
  • 5 replays a day on Pro and 20 by default on Max (public_config seeds lab_replays_per_day_pro = 5 and lab_replays_per_day_max = 20, unless overridden on the principal or in public_config; 429 with code: "lab_quota", quota, used and resets_at over it).
  • A replay stops after 10 minutes. A wide new_ticker window with no market-cap floor can reach that stop: six unfiltered hours of new tickers will not finish, while three hours with a min_mcap_usd of about 100,000 takes seconds. Narrow the universe before lengthening the window.
  • asset_ids (up to 50 in the JSON request body) reports what happened to specific tokens without narrowing the replay.
  • GET /v1/strategy-lab/status returns your quota (cap, used, resets_at) and any running job. The CLI’s candle lab status reads it.

POST /v1/strategies with { "name", "definition" } saves a strategy as a draft; POST /v1/strategies/:id/versions saves a new version. Hacc backtests each new draft over the last 14 days, within minutes, and marks it backtested. A backtest passes on the same rule as a replay (below); drawdown does not enter it. Each save counts against a quota of 20 a day.

Read and manage your saved strategies (Max):

  • GET /v1/strategies and GET /v1/strategies/:id: your strategies and their status (PATCH /v1/strategies/:id marks one retired; DELETE /v1/strategies/:id deletes it).
  • GET /v1/strategies/:id/backtest and POST /v1/strategies/:id/backtest: read backtest queue progress or branch a new backtested version.
  • GET /v1/strategies/:id/trades: the backtest’s trades.
  • GET /v1/strategies/:id/comparison: its versions compared.
  • GET /v1/strategies/schema: the JSON Schema for strategy definitions.
  • GET /v1/strategy-runs and GET /v1/trades: every run and trade across your strategies.

You see only your own strategies; another account’s id answers 404. A strategy can be set to retired, never to paper or live.

Every definition has four parts, and unknown fields are rejected with the first problem named ("<path>: <message>").

  • chain: solana, hood or any.
  • entry, one of:
    • { "source": "pattern", "pattern": …, "filters": { … } }: enter on a signal. The entry patterns are confluence, deployer, large_move, dormancy, intra_book, new_ticker and kol_mention: distribution is a sell-side tape pattern, not an entry pattern. Filters include min_usd, min_mcap_usd and max_mcap_usd, min_age_minutes and max_age_minutes, groups (any of) and groups_all, min_group_wallets, wallet_ids (up to 50), venues or exclude_venues, direction (in or out), hours_et, min_score_1h, once_per_token, reentry_cooldown_minutes, and the KOL mention window kol_mention_minutes (1 to 1440) with optional kol_min_followers: the token was posted about by one of the X accounts Hacc follows within that many minutes before the signal, by an author with at least that many followers. groups names wallet groups of the wallet that produced the signal; no filter takes a list of X account names.
    • { "source": "trade_signal", "min_confidence": 0.7 }: enter on Hacc’s trade signals above a confidence.
    • { "source": "conviction", … }: a conviction ladder that scores tokens by patterns, wallets and groups and enters in tiers. It requires exit.ladder.
    • { "source": "manual" }, { "source": "levels" }, { "source": "launch_fingerprint" } and { "source": "schedule" } describe books Hacc runs itself (a manual desk, mcap-level plans on one token, launch-fingerprint buys, a scheduled perps book). A replay of one of these returns no candidates: only pattern, trade_signal and conviction entries have a signal history to replay.
  • exit, at least one of: take_profit_pct, stop_loss_pct, max_hold_hours, exit_on_signal, trailing ({ "arm_multiple", "drop_pct" }), or ladder for a conviction entry. exit_on_signal: true closes a held token when one of Hacc’s analyst trade signals says sell it, not when a tape pattern fires or a tracked wallet sells: a distribution signal does not trigger it.
  • sizing: usd_per_trade and max_concurrent (required), optional base_usd and max_usd, and rules. The base is base_usd when given (else usd_per_trade), and the stake is base × (1 + Σadd) × Πmult over every matching rule, so add counts in units of the base and then mult multiplies the result: add: 3 on a $5 base makes the stake $20, not $8, and add: 3 with mult: 2 makes it $40. Each rule’s when names features such as mcap_at_entry and compares them with lt, lte, gt or gte; a rule can also carry skip: true to stake nothing when its conditions hold. The result is capped by max_usd.

These help you choose what to test. Each is a GET (capped at 10 /v1/strategy-lab/* report reads per minute on customer research requests).

RouteWhat it answers
/v1/strategy-lab/edges?days=&min_n=&include_peak=What each signal pattern has paid afterwards, sliced by group, token age and market cap: win rate, median and upper quartiles at 1 minute to 72 hours, net of a 2.5% cost. Solana. Served from precomputed snapshots on customer research reads
/v1/strategy-lab/runners?hours=&min_wallets=The biggest recent runners tracked wallets touched, with their signals, earliest entrants and exits
/v1/strategy-lab/first-signals?minutes=&…The first signal on each token within N minutes (up to 180) of launch, on solana or hood
/v1/strategy-lab/score-bands?days=&version=ML 1-hour scorer quintile table (bands and deduped 1h/24h net medians and win rates; served from the daily default-window snapshot on customer research reads)
/v1/strategy-lab/follow-edges?days=&min_n=&limit=&addresses=Per-wallet copy-trade edge on first touches: 1h and 24h returns, $50 sellability rate and proven-follow qualification (served from the daily default-window snapshot on customer research reads, 100 rows by default)
/v1/strategy-lab/marks?address=&chain=&from=&to=&source=Stored price marks (ticks, ohlcv or all) for one asset over [from, to], paged with after and after_source (up to 200 rows per page on customer keys, 100 by default)
/v1/strategy-lab/signal-scores?since=&until=&min_score_1h=Per-signal ML scorer predictions (score_15m, score_1h, score_24h, model_version), up to 200 rows per page (100 by default on customer keys)
/v1/strategy-lab/ledger-export?from=&to=&chain=&source_kind=&pattern=&min_score_1h=&limit=&cursor=One row per signal with its forward returns, filterable server-side and cursor-paged. Pro and Max. See below
/v1/assets, /v1/assets/:idHacc’s token directory, for asset ids

GET https://api.hacc.fun/v1/strategy-lab/ledger-export returns one row per signal, oldest first, with its forward returns already computed. It is not in the candle CLI or the MCP tools yet: call it directly with your cndl_live_ key.

GET https://api.hacc.fun/v1/strategy-lab/ledger-export?chain=solana&source_kind=pattern&pattern=confluence&min_score_1h=0.5&limit=500
Authorization: Bearer <your cndl_live_ key>
ParameterMeaning
from, toISO 8601 window bounds (up to 90 days; alternatively pass days, 1 to 90, default 90)
chainsolana or hood
source_kindLedger source filter (pattern, quant_call, group_call, trade_signal, holder_band or launch_read)
patternPattern filter (confluence, deployer, large_move, dormancy, intra_book, new_ticker, distribution or kol_mention)
min_score_1hMinimum ML 1-hour score (0 to 1)
limitRows per page, 1 to 1000 (default 500)
cursorCursor for the next page, copied from next_cursor on the previous page (after_at and after_key from next_after_at and next_after_key are also supported)

The answer includes { from, to, rows, truncated, next_cursor, next_after_at, next_after_key } (plus days). Keep paging while truncated is true.

Row fieldMeaning
keyUnique row id (pattern:<signal id> for pattern signals)
source_kindpattern for Hacc pattern signals; the others are Quant calls, group calls, trade signals, holder bands and launch reads
variantThe pattern name (confluence, intra_book, large_move, deployer, new_ticker, …)
chain, asset_id, emitted_atChain (solana or hood), the token, and when the signal fired
outcomes_availablefalse for signals older than the ledger’s coverage; their marks, returns and path are null
marksPrices at e30, e60, e120 (30, 60 and 120 seconds after the signal) and h15m, h1h, h4h, h24h, each { price, status }. status is priced (a print within 5 minutes after the mark), stale (only an earlier print), none (no print), or null (mark not yet due)
returnsAt 15m, 1h, 4h, 24h: net (from the 60-second entry, after a round-trip cost) and conservative (the same, but a none price counts as a total loss)
pathOver the 24 hours after entry: peak_usd, max_x, hit_2x, hit_5x, hit_20x, drawdown_pre2x
settled_atSet once every mark is final; rows from the last day may still be open

Access. Scopes agent, lab or trading, on Candle Max or Pro (admitted by lab_pro). Pro and Max both get the export; saved-strategy backtesting stays Max.

Limits.

  • Daily export usage is bounded by the same plan ceiling as replays, resetting at 00:00 UTC: 5 per day on Pro (lab_replays_per_day_pro) and 20 per day by default on Max (lab_replays_per_day_max, unless overridden on the principal or in public_config, shared between replay runs and ledger-export slice opens / requests).
  • A refused request returns HTTP 429 with code: "lab_quota", quota and resets_at (the next midnight UTC). The cursor does not move, so resume with the saved cursor after the reset. Invalid queries and denied admission spend no slot.
  • Usage is shared by every key of the same Candle account.
  • Pass server-side filters (chain, source_kind, pattern, min_score_1h, from, to) so you do not spend daily quota paging through unfiltered new_ticker rows (about three quarters of raw pattern signals).
  • Outcomes start on 2026-11-13. Older pattern signals come back with outcomes_available: false; only pattern signals are exported before the ledger. A backfill of the 21 days before that is ready to run but has not been applied: check outcomes_available rather than assuming a full window.
  • Horizons are fixed: 15 minutes, 1 hour, 4 hours, 24 hours, plus the 30, 60 and 120 second entry marks and the 24-hour peak. There is no 5-minute or 21-hour point.
  • Signals from the last 24 hours may be open (settled_at null). Leave them out or pull again later.
  • Returns are estimates: prices are the first print after each mark, not fills.

Signal ordinal. The export has no ordinal field. Group rows by asset_id, sort by emitted_at and number from 1. The count only sees the window and filters you requested, so pull a few extra days (for example 17 days for a two-week study) and omit pattern when your study counts ordinals across all patterns on an asset.

Pulling a filtered window. Loop on the cursor, save it after each page, and on a 429 stop and run again after 00:00 UTC:

import json, os, time, urllib.parse, urllib.request, urllib.error
KEY, URL = os.environ["CANDLE_KEY"], "https://api.hacc.fun/v1/strategy-lab/ledger-export"
STATE = "ledger_cursor.json"
state = json.load(open(STATE)) if os.path.exists(STATE) else {}
while True:
q = {
"days": 14,
"chain": "solana",
"source_kind": "pattern",
"pattern": "confluence",
"limit": 500,
**state,
}
req = urllib.request.Request(f"{URL}?{urllib.parse.urlencode(q)}",
headers={"Authorization": f"Bearer {KEY}"})
try:
page = json.load(urllib.request.urlopen(req, timeout=60))
except urllib.error.HTTPError as e:
if e.code == 429:
print("daily export limit reached; resume after 00:00 UTC:", e.read().decode())
break
raise
for row in page["rows"]:
... # store; skip rows with outcomes_available false
if not page["truncated"]:
break
state = (
{"cursor": page["next_cursor"]}
if page.get("next_cursor")
else {"after_at": page["next_after_at"], "after_key": page["next_after_key"]}
)
json.dump(state, open(STATE, "w"))
time.sleep(1)

edges, score-bands and follow-edges cover Solana; ledger-export, first-signals and marks cover both Solana and Robinhood Chain, and a hood definition is replayed on what Hacc has recorded for Robinhood Chain.

A backtest is a model of the past: it fills at recorded prices with an assumed stop slippage and no competition for the entry. Treat a pass as a reason to paper-trade a strategy, not to fund it.

  • A take-profit fills exactly at its threshold, never at the windfall above it.
  • A stop (or trailing stop) fills 5% worse than the threshold’s price, an assumed stop slippage.
  • A max-hold exit fills at the first recorded price after the hold expires, and with no price at all it does not close.
  • A trailing stop arms when the price reaches arm_multiple times the entry and fires when it falls drop_pct from its peak since arming.
  • A position still open at the end of the window closes aborted; a token that goes a day without a price closes worthless at zero.
  • A signal on a token the run already holds is skipped (already_open), and a token that was sold can be bought again unless you set once_per_token or reentry_cooldown_minutes.

A replay or backtest with fewer than 5 trades is insufficient. Otherwise it is pass when its total P&L, before fees and slippage, is above zero, and fail when it is not. That is the whole rule. There is no minimum number of distinct tokens, no drawdown limit and no win-rate floor, so a pass on 9 trades over 4 tokens is the same verdict as one on 90 trades over 40. Read verdict_basis before trusting one: a pass that notes says rests on one token is one token’s result.

Where the result has a lead_card, its random control replays the same number of random entries ten times. strategy_beats_arms says how many of the ten the strategy beat after the assumed costs, and rank_p_value turns that into a one-sided p-value. With ten arms the best it can be is 0.09, so beating all ten is a weak signal on its own. The verdict does not read the control or the assumed costs.