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

Connectivity check

To ensure the ws connection is still alive, we introduced the ping ws message. It should be sent by the API client at least one time per 1 minute. Each ping message is acknowledged by the server by sending a response message. If the server doesn't get ping updates from the client for 10 minutes, it forcibly closes the connection and stops sending anything to it.

Request:

{"op" : "ping"}

Response:

{"op":"ping","connectionId":"b1b6bc98-fe6e-4744-b980-af1654fe0fd4","topics":[{"success":true,"name":"ping","message":"pong"}]}

PreviousAuthenticationNextSubscription

Last updated 1 year ago