Skip to content

Onyx-Capital-Technology/onyx-otc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Websocket client for Onyx Flux API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •