Demonstrates different use-cases. [C++20] [Examples]
Samples demonstrating how to implement various features of algorithmic trading solutions.
Note! The Windows Subsystem for Linux (WSL) is NOT supported. Reason can be found here.
Optional
The project is primarily designed to be compatible with the conda package manager.
Use
stable
for (the approx. monthly) release build. Useunstable
for the more regularly updated development builds.
git submodule update --init --recursive
scripts/create_conda_env.sh stable debug
source opt/conda/bin/activate dev
Sometimes you may need to delete CMakeCache.txt if CMake has cached an incorrect configuration.
cmake . && make -j4
CustomMessage
from a secondary threadSimulation requires you to either use your own event logs (automatically captured when you're running a gateway) or use sample data
mamba install -y --channel https://roq-trading.com/conda/stable \
roq-data
Data can now be found in the $CONDA_PREFIX/share/roq-data/
directory.
mamba install -y --channel https://roq-trading.com/conda/stable \
roq-deribit
It is easiest to start from a config file template
cp $CONDA_PREFIX/share/roq-deribit/config.toml ~/deribit.toml
Edit this file and update with your Deribit API credentials (link).
You should look for these lines and replace as appropriate
login = "YOUR_DERIBIT_LOGIN_GOES_HERE"
secret = "YOUR_DERIBIT_SECRET_GOES_HERE"
Launch the gateway
roq-deribit \
--name "deribit" \
--config_file ~/deribit.toml \
--client_listen_address ~/deribit.sock
mamba install -y --channel https://roq-trading.com/conda/stable \
roq-coinbase-pro
It is easiest to start from a config file template
cp $CONDA_PREFIX/share/roq-coinbase-pro/config.toml ~/coinbase-pro.toml
Edit this file and update with your Coinbase Pro API credentials (link).
You should look for these lines and replace as appropriate
login = "YOUR_COINBASE_PRO_API_KEY_GOES_HERE"
password = "YOUR_COINBASE_PRO_PASSPHRASE_GOES_HERE"
secret = "YOUR_COINBASE_PRO_SECRET_GOES_HERE"
Launch the gateway
roq-coinbase-pro \
--name "coinbase-pro" \
--config_file ~/coinbase-pro.toml \
--client_listen_address ~/coinbase-pro.sock
The project is released under the terms of the BSD 3-Clause license.