LogoLogo
  • Introduction
  • Get started
  • Trading Account
  • Signing
  • REST API
    • Account
      • Get Account Info
      • Get Positions
      • Get ABR payments
    • Market
      • Get Markets
      • Get Assets
      • Get Orderbook
    • Trade
      • Create Order
      • Cancel Order
      • Query order
      • List historical orders
      • List active orders
      • Trade list
    • Time
  • Web Sockets
    • Authentication
    • Connectivity check
    • Subscription
    • Public topics
      • trade
      • marketInfo
      • orderBook
      • accountCreated
      • kline
    • Private topics
      • conditionalOrder
      • balance
      • order
      • fill
  • Glossary
Powered by GitBook
On this page

Web Sockets

Web Sockets are organized around the idea of topics. There are public and private topics available.

To subscribe to topic updates, you should send a subscription message:

{
  "op": "subscribe",
  "args": ["market-info"]
}

On successful subscription, you will get confirmation.

{
 "op": "subscribe",
 "connectionId": "1d662f0e-4d20-4cc6-a0af-e58f797f7af5",
 "topics":[{ "name": "market-info", "success": true }]
}	

To subscribe to a private topic, you need authenticate the connection.

{
"op": "authenticate",
"args": [accountId,
        publicKey,
        timestamp,
        signature_r,
        signature_s]
}

Signature is signed timestamp=122667888888

PreviousTimeNextAuthentication

Last updated 1 year ago