data → validation → simulation → analysis
From raw on-chain data to trade analysis
A toolkit for traders and quants: download Onchain Divers indexer data, validate it, run your strategy on history or virtually on the live network, and analyse every trade. The links work together and on their own; one module computes PnL everywhere.
divers
- Delivery
- one
diversbinary and an npm package of components - Ecosystems
- pump, raydium, meteora
- Strategy
- your code; the toolkit connects it to history or to the paper RPC
- Modes
- TUI by default,
--no-tuiand--jsonfor scripts
The chain of stages
A filled node means the link needs the Onchain Divers indexer (directly or through a downloaded dataset); a hollow one means it does not. Between the cards: what one link hands to the next.
- indexer required
- indexer via a dataset
- no indexer
Data
divers fetch,divers datasetsBuilds a compact dataset from the indexer's ClickHouse: the ecosystems, tables, columns and days you need, together with related records, even when they lie outside the selected dates.
dataset: parquet per day +
manifest.jsonValidation
divers validateChecks that a dataset is complete and consistent and recomputes every trade with the simulator's formula. A dataset that passes every check gets the verification flag. It matters most in recurring pipelines such as regular model retraining: the indexer is a realtime database whose own consistency checks run with a delay, so a freshly fetched day can still be incomplete.
dataset with the verification flag
Backtest
divers simReplays a dataset to your strategy over WebSocket; its
buyandsellare computed with a formula over the pool reserves, with a delay if one is set.the same strategy, another adapter: a transaction to the RPC instead of
buy/sellPaper trading
Paper RPC + UI
A live strategy changes only its RPC address and trades virtually: transactions execute on LiteSVM against current network accounts.
trade journal: SOL and token balances before and after
Smart wallet
bulkhead, a separate library
After a strategy has been paper-traded and before its real trades are analysed: bulkhead sits between an autonomous trader and the chain. Every transaction is checked against limits you set, written to an audit log, and stoppable with one call.
real trades of the wallet, for post-trade analysis
Post-trade analysis
UI + API
For every trade: who got ahead and by how many milliseconds, which validators included the trigger and the execution, PnL with tips, priority fees and failed transactions.
one module computes the PnL of all three sources
PnL module and components
Rust crate
divers-pnland an npm packageOne PnL calculation over the balance journal for backtest, paper and post-trade; the React components our UI is built from.
Status today
Pre-release. The fetcher has run against the live development ClickHouse of the indexer (one host); the validator and the simulator read datasets fetched from it (pump, raydium and meteora) and were reconciled with that history. No real strategy has traded through the toolkit.
Backtest results are viewed in the app: run divers sim api --journal-dir DIR (listens on 127.0.0.1:8766 by default; with --dataset NAME it also serves candles and neighbouring trades) or divers sim serve DATASET --journal-dir DIR --api-listen 127.0.0.1:8766 to watch a backtest while it runs. Paper sessions are written by divers paper serve (journals in <data dir>/paper by default); to see them in the app, run divers sim api --journal-dir <data dir>/paper.
What the toolkit does not have
- Live trading. The smart wallet with controls is a separate product.
- A strategy framework or parameter search: the strategy is your live code.
- Model training.
- Concentrated-liquidity pools (Raydium CLMM, Meteora DLMM): in no stage of the first version.
Build
cargo build --release # Rust 1.90+, binary: target/release/divers
divers config show # what was read from .onchaindivers and the environmentClickHouse credentials and the API key are read from the .onchaindivers file and DIVERS_* variables; variables take precedence over the file. Windows is not supported yet.