API Rate Limit - need clarification. I have quoted examples for reference

Hi,

Can someone please clarify about API rate limit ?

  1. If I have 1 scrip and I trigger to get 15 days data from today , in an interval of 5 seconds, then how is rate limit calculated ?

    is it :

    • Number of Requests per Day: 10,000 requests

    • Time Interval Between Requests: 5 seconds

    • Number of Requests per Hour: 3600 seconds per hour/ 5 seconds interval = 720 call in 1 hr

    • In a trading session, Total Number of Hours the code can run before it hits 10000 limit:

      10,000 requests per day / Number of Requests per Hour which is 720 = 13 hrs

  2. If there are 3 srcips then is the calculation ?

    • Number of Requests per Hour: 3x(3600 seconds per hour/ 5 seconds interval)= 720x3 call in 1 hr for = 2160 calls in 1 hr

    • In a trading session, Number of Hours the code can run before it hits 10000 limit:

      10,000 requests per day / Number of Requests per Hour which is 2160 = 4 hrs

  3. Another question regarding point 2, do I need to add 1 sec gap between the Get History calls of those 3 scripts also ? and is it mandatory ?

6 replies