Onyx WebSocket API 0.0.1

Onyx WebSocket API. Messages sent and received via WebSocket described in this documentation are encoded in JSON format. There is also a protobuf alternative (not documented here).

Servers

  • wss://app.onyxhub.co/stream/v2wssproduction
  • wss://app.uat.onyxhub.co/stream/v2wssuat

Operations

  • send websocket

    Operation IDauthenticate

    Available only on servers:

    Accepts the following message:

    Message IDauth_request
    Correlation ID$message.payload#/id
    object

    Examples

    REPLY INFORMATION

    REPLY CHANNEL INFORMATION

    Reply will be provided via this designated address: websocket
  • send websocket

    Operation IDsubscribe

    Available only on servers:

    Accepts the following message:

    Message IDsubscription_request
    Correlation ID$message.payload#/id
    object

    Examples

    REPLY INFORMATION

    REPLY CHANNEL INFORMATION

    Reply will be provided via this designated address: websocket
  • send websocket

    Operation IDunsubscribe

    Available only on servers:

    Accepts the following message:

    Message IDunsubscription_request
    Correlation ID$message.payload#/id
    object

    Examples

    REPLY INFORMATION

    REPLY CHANNEL INFORMATION

    Reply will be provided via this designated address: websocket
  • send websocket

    Operation IDplace_order

    Available only on servers:

    Accepts the following message:

    Message IDnew_order_request
    Correlation ID$message.payload#/id
    object

    Examples

    REPLY INFORMATION

    REPLY CHANNEL INFORMATION

    Reply will be provided via this designated address: websocket

Messages

  • #1
    Message IDauth_request
    Correlation ID$message.payload#/id
    object
  • #2
    Message IDauth_response
    Correlation ID$message.payload#/id
    object
  • #3
    Message IDsubscription_request
    Correlation ID$message.payload#/id
    object
  • #4
    Message IDsubscription_response
    Correlation ID$message.payload#/id
    object
  • #5
    Message IDunsubscription_request
    Correlation ID$message.payload#/id
    object
  • #6
    Message IDunsubscription_response
    Correlation ID$message.payload#/id
    object
  • #7
    Message IDnew_order_request
    Correlation ID$message.payload#/id
    object
  • #8
    Message IDnew_order_response
    Correlation ID$message.payload#/id
    object
  • #9
    Message IDerror_response
    Correlation ID$message.payload#/id
    object