Skip to content

About

An event-driven trading simulation built in Rust, with generated market prices, automated clients, and price-time-priority order books. Built with Tokio, gRPC, WebSockets, Docker, OpenTelemetry, and Grafana.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

65 Commits

Folders and files

Repository files navigation

Orderbook Trading

Overview

This project demonstrates a time-priority based orderbook where clients react to subscribed price events and make trading decisions.

Information:

Usage

The services are run in docker-compose via just commands but you may use docker commands directly from the justfile.

Build Services

This builds the price generator, price aggregator, market data gateway, client, orderbook, and orderbook gateway programmes.

just build

To build a specific service check the justfile.

Start Services

The default starts with 10 clients, 5 orderbook gateways, and 5 orderbooks (1 gateway and 1 orderbook for each instrument).

just start

To start with a different number of clients specify a number

just start 5

To view telemetry about the services navigate to http://localhost:3000/dashboards

Stop Services

The services are in-memory however telemetry is persistent.

Stop and retain telemetry

just stop

Stop and delete telemetry

just remove

About

An event-driven trading simulation built in Rust, with generated market prices, automated clients, and price-time-priority order books. Built with Tokio, gRPC, WebSockets, Docker, OpenTelemetry, and Grafana.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages