Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate limits for Websocket trading #8

Open
alokym86 opened this issue Oct 14, 2024 · 2 comments
Open

Rate limits for Websocket trading #8

alokym86 opened this issue Oct 14, 2024 · 2 comments

Comments

@alokym86
Copy link
Contributor

Hi! Looks like there is no built-in support for rate limiting in the case of WebSocket spot trading. Here is an axample of the exchange response if I sent Place/Amend requests more often than 10/1s.

{"header":{"response_time":"1728899982230","status":"429","channel":"spot.order_amend","event":"api","client_id":"client_id","conn_id":"5c87dfa92caf9951","trace_id":"83169a6f64116902cb7a6c260fa868be"},"data":{"errs":{"label":"TOO_MANY_REQUESTS","message":"Request Rate limit Exceeded"}},"request_id":"161"}
  • client_id was changed by me, other field as I got in response.
@JKorf
Copy link
Owner

JKorf commented Oct 14, 2024

Hi, I can't find any info on this rate limit for the client websocket. Do you know where the 10/1s rule is defined?

If this is a specific rate limit for order placement/editing I also think it should not be part of the client rate limiting as you don't want to delay these calls, and it's better to let the server decide whether it's within or outside the limit.

@alokym86
Copy link
Contributor Author

I can't find any documentation about WebSocket rate limits. The gateio AI-support-bot says there are no limits, the only limit is a limit of 300 connections at a time. But it looks like the placing/amending order rules for websocket is the same as for REST https://www.gate.io/docs/developers/apiv4/en/#trade-ratio-rate-limiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants