Quickstart
From a clone to live prices in the terminal, then a simulated strategy.
You will build raikiri, start Bybit and open the terminal. No API keys are needed and nothing here places an order.
Install the tools
xcode-select --install
brew install cmake ninja conan node bashThe compiler must be GCC 14, Clang 18 or Apple Clang 17. Docker is needed only for chart history.
Build and start
git clone https://github.com/TeachPenguinsFly/raikiri.git
cd raikiri
make deps && make build
(cd frontend && npm install)
make up VENUES=bybitThe first build takes several minutes. When it is up, open http://127.0.0.1:5173 and pick a market such as BTC/USDT. Ctrl+C stops everything.
To check the data without the terminal:
curl -s http://127.0.0.1:8787/v1/healthalive should be true and priced, the number of instruments with a quote, should grow.
More venues and history
make venues # names you can start
make up VENUES="binance bybit okx" # these three
make up # all of them
make dup # with PostgreSQL in Docker, for chart history; run `make web` beside itThe default build carries sanitizers and is slow. For many venues use the release build: make deps PRESET=rel, then
make up PRESET=rel.
Run a strategy on the simulated venue
make demoThis runs a market maker against a simulated exchange for ten seconds, through the same risk checks and order path as live trading, and prints a latency table. The simulator trades against random flow and charges no fees, so it shows that code works, not that a strategy makes money.
If something is wrong
needs bash 4 or newer: macOS ships an older bash. Install it with Homebrew and put it first onPATH.- A venue shows no prices: read
/tmp/raikiri-dev/<venue>.log. Some venues block certain countries. conan_toolchain.cmakenot found: runmake depswith the samePRESETyou build with.