Example projects demonstrating how to use Roq's Python bindings.
- Linux (x86-64, AArch64)
- macOS (Arm64, x86-64)
- fastcore (Apache 2.0 License)
If you just want to install the project.
conda install -y --channel https://roq-trading.com/conda/stable roq-python-samples
conda install -y --channel https://roq-trading.com/conda/unstable roq-python-samples
If you want to build from source.
Install Roq's Python bindings
conda install -y --channel https://roq-trading.com/conda/stable roq-python
conda install -y --channel https://roq-trading.com/conda/unstable roq-python
Some examples use the @typedispatch
decorator from the fastcore library
conda install -y fastcore
If you want to build from source.
python setup.py clean --all && python -m pip install . -vvv
Demonstrates how to set up a gateway client
- Implements the callback handlers
- Sends requests using the dispatcher interface
python -m roq_samples.strategy ~/run/deribit.sock
Demonstrates how to set up a FIX client session
python -m roq_samples.fix_session \
--sender_comp_id xxx \
--target_comp_id yyy \
--username foo \
--password bar \
--network_address $HOME/run/fix-bridge.sock
Demonstrates how to maintain market data from SBE incremental / snapshot multicast feeds
python -m roq_samples.sbe_receiver \
--local_interface 192.168.188.66 \
--multicast_snapshot_address 225.0.0.1 \
--multicast_snapshot_port 1234 \
--multicast_incremental_address 225.0.0.1 \
--multicast_incremental_port 2345
The project is released under the terms of the BSD 3-Clause license.