Request to amend order is REJECTED with error "You are being rate limited"
Request to amend order is REJECTED with error "You are being rate limited"
19 Jun 2023, 11:58
Hello,
I've noticed that multiple cBot requests have been rejected by the server with the following error: "You are being rate limited".
My questions:
1. How to avoid such an error when sending multiple requests OnTick() / OnBar()?
2. What is the criteria for being "rate limited"?
The problem here is obvious:
In the limit, if server is too "sensitive" to accept frequent requests, it can make any cBot useless.
Thanks for assisting.
Replies
ncel01
21 Jun 2023, 16:55
( Updated at: 21 Jun 2023, 16:59 )
Dear Spotware team,
Thanks for arranging this info. It is important for traders to be aware of such limitations.
As far as I can see, these limits are only applicable to demo accounts.
1. Are these the overall (cTrader ID) limits or, are these the limits per trading account?
2. Do any limits apply to live accounts?
Thank you.
@ncel01
ncel01
22 Jun 2023, 14:34
Hello,
1. The limits are per trader connection.
Per cTrader ID (user) or, per cTrader running instance/account? This is not clear to me.
2. The limits have not been imposed on live trading accounts yet but they might be imposed if deemed necessary.
Right. In such a case will this be explicitly announced? In advance?
As far as I can see, restrictions are completely unbalanced with regard to their the purpose, where the allowed rate for very likely operations is only 5% ( max. of 100 vs 2000 requests per min.) of that for not so likely operations.
Example:
ModifyPendingOrder(): Very likely to be used more that 100x/min. when managing multiple pending orders OnBar()/OnTick() to avoid any market orders.
ClosePosition()/ModifyPosition(): Not likely at all to be called 2000x/min.
3.
Is in Spotware's plans to effectively improve it's applications performance in parallel with such restrictions?
I believe that such restrictions can remediate any existing problem but will not solve it.
Thanks for informing.
@ncel01
ncel01
27 Jul 2023, 10:27
Dear cTrader Team,
The limits are per trader connection.
What does that exactly mean? Per ctrader ID, per trading account (cTrader instance), etc.
Could you please further clarify and add this information to the documentation?
While no further details are provided this will remain extremely ambiguous for everyone.
Thanks for your understanding.
@ncel01
ncel01
20 Jun 2023, 10:56
Dear Spotware team,
Could you please provide further details as this seems to be a high limitation regarding automated trading?
Why are cBots treated as "hackers" by the server(s) and how to prevent this?
Thank you.
@ncel01