Skip to content

roq-trading/roq-java-samples

Repository files navigation

roq-java-samples

Example projects demonstrating how to use Roq's Java bindings.

Operating Systems

  • Linux (x86-64, AArch64)
  • macOS (Arm64, x86-64)

Installing

If you just want to install the project.

Stable Channel

conda install -y --channel https://roq-trading.com/conda/stable roq-java-samples

Unstable Channel

conda install -y --channel https://roq-trading.com/conda/unstable roq-java-samples

Prerequisites

If you want to build from source.

Install Roq's Java bindings

Stable Channel

conda install -y --channel https://roq-trading.com/conda/stable roq-java

Unstable Channel

conda install -y --channel https://roq-trading.com/conda/unstable roq-java

Third-party

conda install -y openjdk

Building

If you want to build from source.

cmake . && make -j4 && make install

Using

java \
  -Djava.library.path=$CONDA_PREFIX/lib \
  -classpath $CONDA_PREFIX/share/java/roq.jar:$CONDA_PREFIX/share/java/roq-samples.jar \
  com.roq.samples.Main \
  $HOME/run/deribit.sock

License

The project is released under the terms of the BSD 3-Clause license.

Links