Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.64 KB

File metadata and controls

15 lines (10 loc) · 1.64 KB

English | 中文

WebSocket Interface Restrictions

WebSocket Interface Restriction 1 - IP-based Restriction (The limitations of the free trial package written here will be adjusted according to the package after payment.)

For the same token and the same IP, only one WebSocket connection can be established.

WebSocket Interface Restriction 2 - Connection Limit (The limitations of the free trial package written here will be adjusted according to the package after payment.)

To avoid excessive requests causing excessive pressure on backend services, the maximum number of connections for stock-ws-api is limited to 100. Adjustments will be made based on the performance of the subsequent service. Connections exceeding this limit will be disconnected directly.

WebSocket Interface Restriction 3 - Interface Call Rate Limit (The limitations of the free trial package written here will be adjusted according to the package after payment.)

Multiple requests from a WebSocket connection must be sent with a minimum interval of 1 second. For example, if A calls stock-ws-api at 28 minutes and 30 seconds, regardless of whether the WebSocket connection is disconnected, if A then calls stock-ws-api again, at the same time (28 minutes and 30 seconds), the second request will be rejected.

WebSocket Interface Restriction 4 - Quote Subscription Limit (The limitations of the free trial package written here will be adjusted according to the package after payment.)

For a single subscription, you can subscribe to a maximum of 5 codes. If you subscribe to more than 5, only 5 will be subscribed to.