Logo di 0xarchive Backtest

0xarchive Backtest

Organizzazione
0xArchiveIO
0xarchive-backtest

Quant research and backtesting on 0xArchive data, done the way a careful desk does it: hand over a wallet, a trading idea, a tweet, a Pine or TS script, a paper, someone else's backtest, or a strategy file, and get a verdict with receipts. Reverse engineers a trader's style from their fills and scores how much of their book a strategy reproduces; tests whether a trader or a strategy is skilled or lucky. Every run goes into a trial ledger, the last months stay sealed until one candidate is committed, and nothing is called an edge until it passes costs, nulls, out-of-sample and walk-forward tests and a deflated Sharpe over every try. Uses the 0xarchive-backtest engine (0xbt) on Hyperliquid perps. Use for backtest, "is this edge real", test this strategy, reverse engineer this wallet, vault or trader, port this Pine script, audit this backtest, find me a strategy, or paper trade a strategy.

Panoramica

Pubblicato da0xArchiveIO
Repository0xarchive-quant
Nome della skill0xarchive-backtest
Stelle
95
Fork
12
File inclusi
87
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 87

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da 0xArchiveIO su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA 0xarchive Backtest in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/0xArchiveIO/0xarchive-quant/tree/main/skills/backtest
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/0xArchiveIO/0xarchive-quant.git /tmp/0xarchive-quant
mkdir -p .claude/skills
cp -r /tmp/0xarchive-quant/skills/backtest .claude/skills/0xarchive-backtest
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva 0xarchive Backtest in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente 0xarchive Backtest non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi 0xarchive Backtest non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

0xArchive Backtest

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).

Before the first run

Check once per session, and only what the route needs. Paths below are relative to this skill's directory.

  1. 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):

    bash
    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.

  2. 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; longer backtests need a paid plan.

  3. The data: minute Parquet files, data/hyperliquid/<MARKET>/<YYYY-MM>.parquet. Use what is in the working directory, or pull what the study needs:

    bash
    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.

Route the input first

Pick the route from what the user handed over, then read only that reference.

InputRouteRead
A wallet or vault address, or a Lighter account indexReverse engineer the traderreferences/traders.md
A one-line idea, a tweet, a thread, a claimWrite it as a spec, then test itreferences/ideas.md
A paper or PDFExtract the rules into a spec, then as an ideareferences/ideas.md
A Pine Script or TS indicatorPort it to oxb, then test itreferences/ports.md
Code from another framework (backtrader, vectorbt, freqtrade, zipline, a notebook)Audit the original, port it, test itreferences/audit.md, references/ports.md
A strategy file for oxb0xbt check, then the gauntletreferences/gauntlet.md
"Find me something", an open searchExploration with a declared budgetreferences/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.

The rules

These are what make the result worth posting. They hold on every route.

  1. Start a study before the first backtest of a new question: 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.
  2. Never read the Parquet files directly (pandas, pyarrow, duckdb). For event studies and research reads, use oxb.Source(DIR).rows(market, start, end, columns=[...]), which goes through the seal.
  3. Write the spec before the first run, in 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.
  4. Cheap evidence first. An event study or a single backtest before a grid. Most ideas die here.
  5. Label every number as measured (it has a result hash, receipt id or API request_id), inferred (your reasoning from measured numbers), or untested. Never present an inference as a measurement.
  6. The gauntlet decides, not you. Report its rung in its own words (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.
  7. Every try counts. Tweaking until something passes is what the ledger is for: each variant is a trial, and the deflated Sharpe gets harder with each. Tell the user the trial count with every verdict (0xbt study status). Do not restart a study to reset the count.
  8. The holdout is the user's to open. 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.
  9. Not testable is an answer. When the idea needs data the dataset doesn't have (see data.md), say so plainly and say what would make it testable. Don't approximate it with a different idea silently.
  10. Point in time. Universes come from 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.

The workflow

  1. Route the input (above) and read its reference.
  2. Frame: write 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.
  3. Cheap evidence: an event study or one backtest. Stop here if it is dead, and say so.
  4. Strategy: write it as an oxb file (def strategy(param=default, ...) returning oxb.Strategy), then 0xbt check FILE. Keep it to the pieces in x (references/strategy-api.md).
  5. Gauntlet: 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.
  6. Verdict: report the rung, its reasons, the notes, and the trial count. Show card.md.
  7. Holdout, only at 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.
  8. Build: hand over the deliverables below.

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.

Finish

Deliver, in this order:

  1. The verdict line: rung, trial count, and the one reason that decided it.
  2. card.md (the gauntlet's one-page report) and the strategy file.
  3. The rerun command, exactly: 0xbt backtest FILE --start ... --end ... -p ... with the result hash it must reproduce.
  4. What is inferred or untested, in one list.
  5. For a strategy that passed: how to paper trade it on live rows (oxb.Session, strategy-api.md "Paper trading"). Never place real orders or handle keys; live trading is out of scope.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

e 27 file in più.

Domande frequenti

Cosa fa la skill IA 0xarchive Backtest?

Quant research and backtesting on 0xArchive data, done the way a careful desk does it: hand over a wallet, a trading idea, a tweet, a Pine or TS script, a paper, someone else's backtest, or a strategy file, and get a verdict with receipts. Reverse engineers a trader's style from their fills and scores how much of their book a strategy reproduces; tests whether a trader or a strategy is skilled or lucky. Every run goes into a trial ledger, the last months stay sealed until one candidate is committed, and nothing is called an edge until it passes costs, nulls, out-of-sample and walk-forward t...

Perché usare 0xarchive Backtest su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. 0xarchive Backtest è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo 0xarchive Backtest in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/0xArchiveIO/0xarchive-quant/tree/main/skills/backtest. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare 0xarchive Backtest?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con 0xarchive Backtest?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con 0xarchive Backtest: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA 0xarchive Backtest è gratuita?

Sì. È pubblicata su GitHub da 0xArchiveIO con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇