Error in API: "Too many request, please try again later"

Nov 03, 2021 at 21:24
848浏览
4 Replies
会员从May 03, 2021开始   3帖子
Nov 03, 2021 at 21:24
I am developing a platform that consults every 5 minutes 'get-data-daily.json' method in order to check for gain/loss during the day. But I get this error constantly.

How can I solve this? Or what is the maximum request per [x range time] in order to try avoiding this error?

Thank you!
会员从Jan 06, 2020开始   4帖子
Dec 25, 2021 at 18:38
Hello Christopher,

Did you find a solution, I have the same issue.

Mickael
会员从May 03, 2021开始   3帖子
Dec 30, 2021 at 08:09
Yes, wait 1.2 seconds from every request in order to prevent get blocked!
会员从Jan 06, 2020开始   4帖子
Dec 30, 2021 at 09:20
I already tried this solution, sleep of 10 seconds between each get-data-daily and it doesn't help.

I tried 2 methods but same result

Login
Get-data-daily 1st
Sleep 10 seconds
Get-data daily 2nd
Sleep 10 seconds
Etc. Until fifth portfolio
Logout

Login
Get-data-daily 1st
Logout
Sleep 10 seconds
Login
Get-data-daily 2nd
Logout
Sleep 10 seconds
Etc until fifth portfolio.
会员从May 03, 2021开始   3帖子
Dec 30, 2021 at 20:44 (已编辑 Dec 30, 2021 at 20:45)
Hello, you need to wait 1.2 seconds from EVERY request, so the schema is the following:

Login
Sleep 1.2 seconds <----- here is your error, you don't wait.
Get-data-daily 1st
Sleep 1.2 seconds
Get-data daily 2nd
Sleep 1.2 seconds
Get-data daily 3rd
Sleep 1.2 seconds
Logout
登录 / 注册 to comment
You must be connected to Myfxbook in order to leave a comment
*商业用途和垃圾邮件将不被容忍,并可能导致账户终止。
提示:发布图片/YouTube网址会自动嵌入到您的帖子中!
提示:键入@符号,自动完成参与此讨论的用户名。