Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Onyx Websocket API v2

PyPI version Python versions Python downloads build

The websocket API v2 support both JSON and Protobuf (binary) encoding. The protobuf encoding is more efficient and faster than JSON encoding.

Environment Protocol URL
Production JSON wss://ws.onyxhub.co/stream/v2
Production Protobuf wss://ws.onyxhub.co/stream/v2/binary
UAT JSON wss://ws.uat.onyxhub.co/stream/v2
UAT Protobuf wss://ws.uat.onyxhub.co/stream/v2/binary

Installation

Install the library via pip:

pip install onyx-otc

To install the library with command line support

pip install onyx-otc[cli]

Example

Install the library with command line support and run the client:

onyx --help

Stream tickers for a list of product symbols.

onyx stream -t ebob -t brt

Stream tradable quotes for a list of contract symbols.

onyx stream -r brtm25@ice -r ebobm25@ice

Protobuf support

The binary endpoints uses protobuf encoding and the definitions are available in the protos/onyx_otc/v2 directory.

Other resources

Metadata

Release files for onyx-otc 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onyx-otc 0.3.1
File Size Uploaded Provenance Actions
onyx_otc-0.3.1.tar.gz 22.2 kB With provenance Details for onyx_otc-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for onyx-otc 0.3.1
File Interpreter ABI Platform Actions
onyx_otc-0.3.1-py3-none-any.whl Python 3 none any Details for onyx_otc-0.3.1-py3-none-any.whl

Total release size: 53.9 kB

Release files / onyx_otc-0.3.1.tar.gz

Download URL onyx_otc-0.3.1.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e9b10429fe4c2ada5a13df90f5449cbf7aebf6200505e38927ec05ee002180b2
BLAKE2b-256 checksum
How to use checksums
55b8774efdbfc899565377c67626ee5ef1f55b8bb82acf9a408f8cc94279b38e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2025.

Transparency log

Release files / onyx_otc-0.3.1-py3-none-any.whl

Download URL onyx_otc-0.3.1-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae05928992c487bbc74b23105a64abdaeecd41cce8c1b971d1f01b19a39c2147
BLAKE2b-256 checksum
How to use checksums
572cfc56004b65763fe50e17ca0c2530d756d4a2895753d62eccfbf345eca056
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2025.

Transparency log

Security for onyx-otc 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for onyx_otc-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page