Request to amend order is REJECTED with error "You are being rate limited"

Created at 19 Jun 2023, 11:58
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
NC

ncel01

Joined 19.03.2020

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.


@ncel01
Replies

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

Spotware
21 Jun 2023, 15:47

Dear ncel01,

You can find more information about the new limits imposed on cBots here

Best regards,

cTrader Team


@Spotware

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

Spotware
22 Jun 2023, 10:23

Dear ncel01,

1. The limits are per trader connection.

2. The limits have not been imposed on live trading accounts yet but they might be imposed if deemed necessary.

Best regards,

cTrader Team


@Spotware

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