OpenViSTAI · Agents · Blockchain · Crypto
Menu
DeFi

WEB3 Backtest

WEB3 Backtest is an open-source TypeScript library for backtesting DeFi trading strategies with historical data, protocol position simulations, metrics and analytics. It formats retrieved data as snapshots at one-minute, hourly or daily resolutions, and can connect to local InfluxDB and Grafana services for storing and charting results.

Independent OpenViST project profile, based on linked sources.

WEB3 Backtest — OpenViST project profile in DeFi.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a code-based workflow to test DeFi strategies against historical snapshots and the repository’s supported data sources and position simulators fit your use case.

Who it is for

  • Developers writing and evaluating DeFi trading strategies in TypeScript.
  • Researchers or protocol teams comparing strategy behavior over historical data, where a listed source and simulator cover the markets they need.

Documented uses

  • Configure historical data sources, a testing period and handlers for a backtest.
  • Simulate opening, changing and closing supported DeFi positions as the backtest progresses.
  • Store and visualize results using the optional local InfluxDB and Grafana setup.
  • Inspect strategy metrics and analytics.
Before you choose

Requirements & limits

The repository is public and licensed under MIT. It is a library intended to run from a local development environment, not a hosted application. The README documents npm dependency installation and ts-node commands; it does not identify required runtime versions.

  • Data-source coverage is limited and varies by chain, protocol and resolution; check the README’s support table before planning a backtest.
  • Position simulators and the project API are described as early-stage and subject to change.
  • InfluxDB and Grafana are optional for strategy testing, while the larger example requires Influx.
  • The README marks the NPM module, wallet support for simulators and local data caching as unavailable.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Run the simple sample backtest

Install the project dependencies and run the repository’s simple TypeScript sample.

Before you start

  • A local copy of the repository
  • Node.js tooling capable of running npm and ts-node

Steps

  1. Install dependencies with the command below.

    Documented command
    npm install
  2. Run the sample with ts-node ./src/simple.ts.

Expected outcome

The documented simple sample backtest runs from the repository.

Guide limitations

  • The README warns that the project is in early development and its API may change.
  • The README does not specify Node.js or npm version requirements.
Source-based practical guide

Start local Grafana and InfluxDB services

Launch the optional local services used to store and visualize backtest data.

Before you start

  • Docker and Docker Compose
  • A local copy of the repository with its docker-compose.yml file

Steps

  1. From the repository, run docker-compose up -d.

  2. After use, stop the containers with docker-compose down -v.

Expected outcome

The repository’s Docker Compose setup starts local InfluxDB and Grafana services for backtest data and visualization.

Guide limitations

  • These services are not required to test strategies; the larger example requires Influx.
  • A fresh Grafana instance has no dashboards and needs data-source configuration; the README describes importing provided dashboard JSON files.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 October 2026
Original website title
RoboVault/web3-backtest · Official homepage title · retained in its source language