/candle:candle-strategy-labfrom candle
Replays strategy definitions against historical data in the hacc strategy lab, returning lead cards, runners, and edges tables for backtesting. Use when a strategy idea needs measured validation before live deployment.
Ships in candle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The strategy lab replays a strategy definition over a past window and returns a lead card. It also serves two measured tables: runners and edges. It is a research tool. It never places a paper or live trade, and nothing it returns is promoted to either. Backtests are a model of the past.
Use it after you have a definition worth testing (see candle-strategy-hunt for how to find and triage leads, and
candle-strategy-design for writing the definition). Use it before you spend real money on an idea, not instead of the
judgement that the idea has a counterparty.
Both surfaces need a production agent key (cndl_live_). A device token or a test key cannot use the lab.
| Step | CLI | MCP (local stdio server only) |
|---|---|---|
| Check plan, cap and active job | candle lab status | candle_lab_status |
| Submit a replay | candle lab replay --definition <file|-> --from <iso> --to <iso> | candle_lab_replay (returns a job id at once) |
| Read or wait for a job | candle lab replay get <job-id> | candle_lab_replay_result (poll no faster than every 5 seconds) |
| Cancel | candle lab replay cancel <job-id> | none; use the CLI |
| Measured runners | candle lab runners [--hours n] [--min-wallets n] | candle_lab_runners |
| Signal edges | candle lab edges [--days n] [--min-n n] | candle_lab_edges |
| Per-signal forward returns | none yet; direct HTTP: GET https://api.hacc.fun/v1/strategy-lab/ledger-export?days=&limit=&after_at=&after_key= with Authorization: Bearer <cndl_live_ key> | none |
Run status first. The CLI waits for a replay by default (5 second polls, up to 11 minutes); --no-wait prints the
job id instead. --json keeps the server's body unchanged. Cost: pass --fee-bps and --slippage-bps for your own
tier; without them the CLI reads your fee from Candle and falls back to the lab's default if that read fails.
The export returns up to 500 signals a page, resumable with next_after_at plus next_after_key while truncated is true. Pro may pull 5 pages a day and Max 20, drawn from the same daily ceiling as replays; a refusal is 429 lab_quota with resets_at. Full fields, limits and a resumable script: the Data and strategy API page, "Per-signal forward returns export".
TypeScript callers can use createLabClient from @candledottv/agent-sdk; the CLI and MCP use the same client.
Access and a daily replay cap come from your plan, and one replay can run at a time. The server decides; do not retry
around a refusal. A refusal's code says why:
lab_plan: your plan has no lab access.lab_quota: the daily cap is used; the reply carries the reset time. Wait for it.lab_active: a replay of yours is already running. Read or cancel it.lab_busy: the lab is loaded. Try later.Read it in this order and stop at the first failure.
insufficient; do not read it.Two limits to state in anything you write up:
A lead that survives the card is still only a lead. To deploy one, go to candle-strategy-to-bot, which runs it through
your own agent with the usual risk gates. This skill does not take that step and does not suggest a paper run as part
of the lab. A failed lead is recorded with its cost, window and break-even, not as a verdict on the idea.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub candledottv/agentic --plugin candle23 skills in this plugin
/candle-agent-operations[OPERATIONS] Run long-lived trading workers and data collectors so they recover from crashes without losing state, never extend their own run, report health truthfully, and hand over cleanly to the next agent session. Use when deploying a trading worker or collector that runs for hours or days, when a worker has crashed, hung or restarted, and when ending a session that leaves workers running./candle-book-limits[RISK CONTROL] Size and audit the lifetime caps, slot counts and wallet reserves of an autonomous trading book so they bound risk without silently stopping the book or blocking its exits. Use when designing a book's limits, when a running book has gone quiet, when an order is stuck unresolved, and when two books share one wallet./candle-drained-pool-writeoff[RISK CONTROL] Recognize a held position whose pool was emptied after entry, and account for it as a loss instead of marking it at a stale price or retrying sells forever. Use when a held token's price has stopped updating, when sell quotes keep failing, when a mark looks healthy but no trades arrive, and when deciding whether an unsellable position can be closed out./candle-first-live-trade[OPERATIONS] The plumbing test a trading bot needs before and during its first live trades: a supervised minimum-size round trip through the real code, a sell proven before buys scale, a control exercised on a live position, and the ledger reconciled against the wallet. Use when a bot is about to trade real money for the first time, after any change of key, signer, wallet, venue or quote asset, when an operator says to kill a newly live bot, when the first live fills look different from paper, and when a newly live book goes quiet./candle-kill-switches[RISK CONTROL] The operator controls an autonomous trading book needs so a human can stop new risk, cut one position or cut everything without editing code or killing a process mid-order, and how those controls differ from the rail's own profile stops. Use when building a trading worker, before running one with real money, and when an operator asks to pause, cut, stop or restart a running book./candle-launch[TOKEN LAUNCH] Launch a new token on Candle, on Solana or Hood, optionally seeded with a dev buy (same transaction on Solana; best-effort follow-up on Hood). Use when the user asks to launch, create, deploy, or seed a token.