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
  1. Web Sockets

Authentication

To authenticate the web socket connection, you need to send the following message:

{
"op":"authenticate",
"args":[
  "0x516d4746469cf47d2501c49a1d38d351ff0f68ac1f9a3c705a858764498a6271",
  "0x0202151a20fece8aa697f362995cde34fa7ae09b8b774f50804784c5685182b827",
  "1703156861177",
  "0x6944da5e68a585bfbf998e4fc6ac96640a3f67501c09f30ee69a36031a595d2",
  "0x4003eb1b2e50d044a6860359cb0746181e6790efa242c9e82fb9128626e5884"
]}

Here args contains the following:

  accountId,
  publicKey,
  timestamp,
  signature.r,
  signature.s,

Signature it is signed string timestamp={timestamp}

PreviousWeb SocketsNextConnectivity check

Last updated 1 year ago