/0xarchive:0xarchive-backtest a wallet, an idea, a script or a strategy file, e.g. 'reverse engineer 0x...', 'does funding predict reversals', 'audit backtest.py'from 0xarchive
Quant research and backtesting on 0xArchive data. Takes a wallet, trading idea, script, or strategy and returns a verdict with statistical rigor including walk-forward and deflated Sharpe tests.
Ships in 0xarchive. 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.
Read when SKILL.md points to them.
Turn one sentence into a quant study: a testable spec, the cheapest evidence first, a backtest with every cost in, a gauntlet of checks, and a verdict the user can rerun from its receipt.
The engine ships inside this skill, in engine/: a Rust backtester with a Python strategy API, the
0xbt command, imported as oxarchive_backtest (usually as oxb). It is deterministic: the same
engine, dataset, strategy source and params give the same result hash on every machine, so a result is
a claim anyone can check. Market data questions outside a backtest belong to the 0xarchive skill (the
API reference).
Check once per session, and only what the route needs. Paths below are relative to this skill's directory.
The engine: 0xbt --version should print 0xbt 0.3.2. If it's missing or older, install it into
the project's Python environment (Python 3.12 or later; prebuilt for macOS, Linux and Windows):
pip install "0xarchive-backtest[curated]==0.3.2"
On a platform without a prebuilt wheel, pip builds it from source, which needs Rust (cargo --version; ask the user before installing it from https://rustup.rs). engine/ beside this skill
is the same source. Never write a substitute backtester.
The API key: $OXARCHIVE_API_KEY must be set for pulling data and for the trader route. Never
print it. Free keys read only the last 30 days and, from November 23, 2026,
after an account's first 30 days, only through yesterday (UTC); longer backtests need a paid plan.
The data: minute Parquet files, data/hyperliquid/<MARKET>/<YYYY-MM>.parquet. Use what is in the
working directory, or pull what the study needs:
0xbt data pull --markets BTC,ETH,SOL --from 2025-03 --to 2026-09 # into data/hyperliquid
0xbt hourly # for universe rules
A pull costs about 30 requests per market per month (a year of one market is about 350). Tell the user the markets and months before a large pull. Never invent or synthesize market
data for a verdict. A strategy over x.top_n needs every market it could pick, so pull the candidates.
Pick the route from what the user handed over, then read only that reference.
| Input | Route | Read |
|---|---|---|
| A wallet or vault address, or a Lighter account index | Reverse engineer the trader | references/traders.md |
| A one-line idea, a tweet, a thread, a claim | Write it as a spec, then test it | references/ideas.md |
| A paper or PDF | Extract the rules into a spec, then as an idea | references/ideas.md |
| A Pine Script or TS indicator | Port it to oxb, then test it | references/ports.md |
| Code from another framework (backtrader, vectorbt, freqtrade, zipline, a notebook) | Audit the original, port it, test it | references/audit.md, references/ports.md |
| A strategy file for oxb | 0xbt check, then the gauntlet | references/gauntlet.md |
| "Find me something", an open search | Exploration with a declared budget | references/exploration.md |
Every route ends in the gauntlet (references/gauntlet.md). Column names, coverage dates and what the dataset cannot express are in references/data.md; how to write a strategy is in references/strategy-api.md.
If the user says only "my strategy" or "this wallet" with nothing attached or named in the conversation, ask which one. Never pick an example on their behalf.
These are what make the result worth posting. They hold on every route.
0xbt study init in the working
directory. From then on every backtest, sweep and gauntlet below that directory is written to
.0xarchive/trials.jsonl, and the last three months of data (or --holdout DATE) are sealed.
Never edit, move or delete .0xarchive/, and never run backtests from outside the study directory to
avoid it. One question per study; a new question gets a new directory.oxb.Source(DIR).rows(market, start, end, columns=[...]), which goes through the seal.STUDY.md beside .0xarchive/: the hypothesis in one
sentence, the universe, clock, signal, sizing, costs and window, and the result that would kill it.
Do not change the kill condition after seeing results.request_id), inferred
(your reasoning from measured numbers), or untested. Never present an inference as a measurement.loses after costs,
fails nulls, in-sample only, holds out of sample, passes deflated Sharpe,
passes sealed holdout) and never soften, round up or reword it. A clock luck note on the card
goes in the same sentence as the rung, with its range of returns. Do not call anything an edge, a
signal that works, or profitable below holds out of sample, and say "deflated Sharpe not passed"
alongside it at that rung.0xbt study status). Do not restart a study to reset the count.0xbt study commit runs one candidate over the sealed months,
once, and can't be undone. Propose the candidate, say what it is and why, and commit only on the
user's go-ahead.x.top_n or x.rule, which see only data from before each
pick, so delisted markets stay in. A hand-picked list of today's winners is survivorship bias; flag it.STUDY.md (rule 3). Check coverage for the columns the idea reads (data.md) and set
the window inside it, ending at or before the holdout.def strategy(param=default, ...) returning oxb.Strategy),
then 0xbt check FILE. Keep it to the pieces in x (references/strategy-api.md).0xbt gauntlet FILE --start ... --end HOLDOUT -g name=v1,v2 --card card.md. A small grid
of values the spec already justified, not a search.card.md.passes deflated Sharpe and only with the user's go-ahead (rule 8):
0xbt study commit FILE -p ..., then rerun the gauntlet so the card shows the holdout.For a request with several questions (a trader with three markets, an idea with two variants), keep a
checklist in STUDY.md, mark each question answered, partly answered or open, and don't call the study
finished while one is open.
Deliver, in this order:
card.md (the gauntlet's one-page report) and the strategy file.0xbt backtest FILE --start ... --end ... -p ... with the result hash it
must reproduce.oxb.Session, strategy-api.md
"Paper trading"). Never place real orders or handle keys; live trading is out of scope.engine/Cargo.lock (opens in a new tab)engine/Cargo.toml (opens in a new tab)engine/README.md (opens in a new tab)engine/crates/build-api/Cargo.toml (opens in a new tab)engine/crates/build-api/src/lib.rs (opens in a new tab)engine/crates/build-api/src/main.rs (opens in a new tab)engine/crates/dataset/Cargo.toml (opens in a new tab)engine/crates/dataset/examples/size.rs (opens in a new tab)engine/crates/dataset/src/lib.rs (opens in a new tab)engine/crates/dataset/src/manifest.rs (opens in a new tab)engine/crates/engine/Cargo.toml (opens in a new tab)engine/crates/engine/src/bars.rs (opens in a new tab)engine/crates/engine/src/calendar.rs (opens in a new tab)engine/crates/engine/src/exits.rs (opens in a new tab)engine/crates/engine/src/lib.rs (opens in a new tab)engine/crates/engine/src/markets.rs (opens in a new tab)engine/crates/engine/src/receipt.rs (opens in a new tab)engine/crates/engine/src/reference.rs (opens in a new tab)engine/crates/engine/src/stats.rs (opens in a new tab)engine/crates/engine/src/tests.rs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
backtesting, quant-research, strategy-testing, hyperliquid, trading
2 skills in this plugin
npx claudepluginhub 0xarchiveio/0xarchive-quant --plugin 0xarchiveOther plugins' skills for the same job