gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

spot websocket v4 api limits #25

Closed ksodo closed 2 years ago

ksodo commented 2 years ago

For your spot websocket v4 api. Related page: https://www.gate.io/docs/developers/apiv4/ws/en/#spot-websocket-v4.

I couldn't find the following information on the doc page. Could you add to the doc too?

  1. What is the limit for subscriptions(channels) on one connection?
  2. What is the rate limit (per second) for messages to gateio server?
  3. What is the limit for connections from one host?

Thanks

revilwang commented 2 years ago
  1. No limit on subscriptions
  2. No limit for message sent
  3. No connections limit for now, but 100 connections at most from one host are recommended.

Note if there are many subscriptions in one connection, the connection can be closed easily, because the server will actively close the connection if the client cannot consume the update in time.

ksodo commented 2 years ago

Thanks