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 divers binary 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-tui and --json for 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
  1. Data

    divers fetch, divers datasets

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

    Indexer
    required
    State
    with caveatsWorks against the live development ClickHouse of the indexer (one host): check-catalog passes, small datasets of all three ecosystems matched independent server counts row for row, a killed download resumed byte-identical. The catalog (1.1.0) is the real schema of host 1; other production hosts were not available.

    dataset: parquet per day + manifest.json

  2. Validation

    divers validate

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

    Indexer
    required via a dataset
    State
    with caveatsChecks 1–6 run on datasets fetched from the live indexer (pump, raydium, meteora): every row explained or reported, check 6 per program and variant.

    dataset with the verification flag

  3. Backtest

    divers sim

    Replays a dataset to your strategy over WebSocket; its buy and sell are computed with a formula over the pool reserves, with a delay if one is set.

    Indexer
    required via a dataset
    State
    with caveatsRuns on live datasets: every pump.fun curve, PumpSwap, LaunchLab and CPMM trade re-simulated exactly; Raydium AMM v4 approximated; Meteora not simulated; pump.fun curve fees are constants (the indexer does not record them). Results are in the app; the protocol and the API are drafts.

    the same strategy, another adapter: a transaction to the RPC instead of buy/sell

  4. Paper trading

    Paper RPC + UI

    A live strategy changes only its RPC address and trades virtually: transactions execute on LiteSVM against current network accounts.

    Indexer
    not required
    State
    worksWorks (divers paper serve): checked on a mainnet node with swaps through real pool programs, each compared with the node's own simulation of the same transaction, and with replays of landed transactions. HTTP only: no WebSocket subscriptions and no Jito bundles.

    trade journal: SOL and token balances before and after

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

    Indexer
    not required
    State
    with caveatsA separate product: the toolkit only links to it, and its documentation and code links are still placeholders on this site.

    real trades of the wallet, for post-trade analysis

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

    Indexer
    required
    State
    with caveatsBuilt: divers sim api --indexer serves any wallet one UTC day at a time on the indexer's programs, with races, indexer candles and the token card. Checked on the live development ClickHouse (one wallet-day matched independent SQL; races matched own queries). Slot leaders come with name, client and version from the cluster snapshot, and country, city (an estimate) and provider from IP lookups of validator addresses.

    one module computes the PnL of all three sources

  7. PnL module and components

    Rust crate divers-pnl and an npm package

    One PnL calculation over the balance journal for backtest, paper and post-trade; the React components our UI is built from.

    Indexer
    not required
    State
    worksdivers-pnl and the components are built and covered by tests. The npm package name is temporary.

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

Build from source
cargo build --release        # Rust 1.90+, binary: target/release/divers
divers config show           # what was read from .onchaindivers and the environment

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