Skip to main content

Anonymous Ticks

This allows simultaneous tick subscriptions to multiple markets.

Upon subscribing to a market, the client will first receive a snapshot of latest ticker, followed by updates. See the data model: Get Market Tick

Either it can be subscribed from a single symbol (by reaching to this endpoint)

/trading-api/v1/market-data/tick/{symbol}

Or tick of different markets can be subscribed to, and controlled by parameters in the subscription message listed below

/trading-api/v1/market-data/tick

Operations

SEND/trading-api/v1/market-data/tick

Subscribe

Multiple subscriptions could be opened within the same websocket.

The index price of different ticks to be subscribed are controlled by the parameters in the subscription message listed below.

Operation IDsubscribe

Accepts the following message:

Subscription

Let you subscribe to a given topic

  • application/json
Message IDsubscribe
object

Examples

RECEIVE/trading-api/v1/market-data/tick

After subscribing, the server sends :

  • an acknowledgement
  • followed by a snapshot
Operation IDsubscribe-ack

Sends one of the following messages:

  • #1Acknowledgment

    Confirm the topic being subscribed

    • application/json
    Message IDsubscribe-ack
    object

    Examples

  • #2Snapshot

    Snapshot to the subscribed tick data

    • application/json
    Message IDsubscribe-msg-0
    object

    Examples

RECEIVE/trading-api/v1/market-data/tick

In case of invalid subscription message, an error rejection would be sent.

Operation IDsubscribe-nack

Sends the following message:

Rejection

Explain why the topic could not be subscribed

  • application/json
Message IDsubscribe-nack
object

Examples

SEND/trading-api/v1/market-data/tick

Keepalive

In case nothing is subscribed to, keep the websocket connection alive.

Operation IDkeepalive-ping

Accepts the following message:

Keepalive Ping
  • application/json
Message IDkeepalive-ping
object

Examples

RECEIVE/trading-api/v1/market-data/tick

Acknowledgement returned by the server in response to a keepalive-ping.

Operation IDkeepalive-pong

Sends the following message:

Keepalive Pong
  • application/json
Message IDkeepalive-pong
object

Examples