API Support Forum
OEC API > API Support > Too many requests message
Author Topic: Too many requests message
(2 messages, Page 1 of 1)
Moderators: VPfau
multichartsDEV1
Posts: 7
Joined: May 26, 2020


Posted: Sep 11, 2020 @ 08:11 AM             Msg. 1 of 2
Hello,

We have a customer who cannot load data from GAIN. He is exceeding more than 5000 api requests per hour, exceeding tick limit of 10 as well.

Could you please let us know for which event from GFAPI is the error text “Too many requests” displayed?

server= prod.gainfutures.com Port= 9210 Login= ATantleff

\\PRD31CLIPRI05.production.local\GF.Servers.Front.PriceServer_Log\GF.Servers.Front.PriceServer20200904.log
08:30:03.050 DEBUG - ATantleff removed from sub=4294998778 total 1 by
08:30:03.082 DEBUG - ATantleff added to sub=4294998778 total 2 by
08:30:05.195 DEBUG - ATantleff removed from sub=4294998781 total 1 by
08:30:05.398 DEBUG - ATantleff added to sub=4294998781 total 2 by
08:31:35.309 DEBUG - ATantleff ServerSubID not found for 30246
08:31:35.311 DEBUG - ATantleff <- Your subscription limit of 10 has been reached
08:31:36.105 DEBUG - ATantleff ServerSubID not found for 30259
08:31:36.106 DEBUG - ATantleff <- Your subscription limit of 10 has been reached
09:48:50.509 DEBUG - ATantleff <- Too many requests
09:48:50.509 DEBUG - Ignored request from ATantleff :
09:48:50.520 DEBUG - ATantleff <- Too many requests
09:48:50.520 DEBUG - Ignored request from ATantleff :
Edited by multichartsDEV1 on Sep 11, 2020 08:11 AM
SPikalov
Posts: 25
Joined:


Posted: Sep 15, 2020 @ 10:27 AM             Msg. 2 of 2
Hello.
var gfClient = GFApi.CreateClient();
gfClient.Traders.TraderError += (client, e) =>
{
string errorMessage = e.Message;
....
};

Best Regards,
Sergey.