This is the second version of the BuilderNet orderflow proxy, designed to be highly performant, reliable and efficient. The proxy is responsible for receiving, validating, prioritizing, and forwarding orderflow to all BuilderNet builders. It is built in Rust and uses the Tokio asynchronous runtime.
cargo run -- --help
src/: Source code.tests/: Integration & e2e tests.fixtures/: Clickhouse database fixtures for indexing orders.benches/: Criterion benchmarks for performance testing.simulation/: Simulation harness with Shadow for testing the proxy at scale.
Install the Clickhouse client:
curl https://clickhouse.com/ | shCopy the example environment variables and fill in the values:
cp .env.example .envThen you can use the just commands to provision the database and create the tables:
just provision-dbjust reset-dbjust extract-data "filename.parquet"