https://github.com/roq-trading/roq-java-samples
Java examples.
https://github.com/roq-trading/roq-java-samples
api demo example java
Last synced: 4 months ago
JSON representation
Java examples.
- Host: GitHub
- URL: https://github.com/roq-trading/roq-java-samples
- Owner: roq-trading
- License: mit
- Created: 2024-05-27T08:35:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-08-14T04:11:46.000Z (6 months ago)
- Last Synced: 2025-08-14T06:10:36.927Z (6 months ago)
- Topics: api, demo, example, java
- Language: Java
- Homepage: https://roq-trading.com/
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
conda install -y --channel https://roq-trading.com/conda/stable roq-java-samples
```
### Unstable Channel
```bash
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
```bash
conda install -y --channel https://roq-trading.com/conda/stable roq-java
```
### Unstable Channel
```bash
conda install -y --channel https://roq-trading.com/conda/unstable roq-java
```
### Third-party
```bash
conda install -y openjdk
```
## Building
If you want to build from source.
```bash
cmake . && make -j4 && make install
```
## Using
```bash
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
* [Roq GmbH](https://roq-trading.com/)
* [Documentation](https://roq-trading.com/docs/)
* [Contact us](mailto:info@roq-trading.com)