Skip to content

curcio/pybuilder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybuilder

This project is a Python adaptation of Flashbots' rbuilder. Unlike rbuilder, which is designed to build blocks in real time, this repository focuses solely on backtesting. It does not implement live building capabilities.

Usage

The workflow consists of two steps:

  1. Fetch a block and its mempool transactions. Run the fetch script specifying the block number:

    python scripts/run_backtest_fetch.py --block 20114954

    This downloads the relevant mempool data using Flashbots' Mempool Dumpster and stores everything in a SQLite database configured in config.yaml.

  2. Build the block. Run the backtest build script to simulate block building from the fetched data:

    python scripts/run_backtest_build.py 20114954

    This reads the block data and available orders from the SQLite database and simulates the block building process for analysis.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%