Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Issue with Market Quote!

    Python SDK
    0
    3
    51
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cyriac last edited by

      Hi @admin @Moderator_1 @Moderator_2 ,

      Facing the below issue with Market Quote End Point after just about 10 to 15 minutes. As you can see it is within the limit of 1 per second.

      My Question: Is there is there some extra limit like maximum 500 calls per day?

      11 Mar - 11:06:31: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:33: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:36: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:39: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:41: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:44: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:47: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:50: Failed to fetch data: Access denied because of exceeding access rate
      11 Mar - 11:06:52: Failed to fetch data: Access denied because of exceeding access rate

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @Cyriac last edited by

        Hi @Cyriac

        Kindly note of this new rate limiting on respective API on below post.
        https://smartapi.angelbroking.com/topic/4387/changes-in-api-rate-limit

        Regards,
        SmartAPI team

        C 1 Reply Last reply Reply Quote 0
        • C
          Cyriac @Moderator_2 last edited by

          Hi @admin @Moderator_1 @Moderator_2 ,

          Can you please reconfirm the rate limits for Market Quote?

          I still don't think it is correct.

          Here is the output from my code. It ran from 11:45 to about 12:11 then returned error. As you can see, I am only making a single call to the end point every 2 to 3 seconds. Which is about 20 per minute and 1200 every hour. This is well within the limit of 10 per second, 500 a minute and 5000 per hour.

          Also, if there are 40 tokens are called for just LTP is it considered as one call or 40 calls? (According to the documentation it should be considered as just 1 call... Still this wont explain the issue).

          Regards

          Cyriac

          12 Mar - 11:44:46: Bank Nifty Index Open_Price: 47351.35
          12 Mar - 11:44:50: Tokens: ['99926009', '41845', '41856', '41858', '41867', '41875', '41880', '41889', '41892', '41894', '41899', '41908', '41912', '41914', '41916', '41918', '41921', '41927', '41937', '41939', '41946', '41950', '41855', '41857', '41866', '41873', '41879', '41882', '41890', '41893', '41897', '41901', '41911', '41913', '41915', '41917', '41920', '41925', '41935', '41938', '41944', '41949', '41951']
          12 Mar - 11:45:55: Table created successfully.
          12 Mar - 12:11:55: An error occurred: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/secure/angelbroking/market/v1/quote/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000000129154F0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
          12 Mar - 12:13:54: Failed to fetch data: Access denied because of exceeding access rate
          12 Mar - 12:13:56: Failed to fetch data: Access denied because of exceeding access rate
          12 Mar - 12:13:59: Failed to fetch data: Access denied because of exceeding access rate
          12 Mar - 12:14:08: Failed to fetch data: Access denied because of exceeding access rate
          12 Mar - 12:14:11: Failed to fetch data: Access denied because of exceeding access rate
          12 Mar - 12:14:17: Failed to fetch data: Access denied because of exceeding access rate
          12 Mar - 12:14:19: Failed to fetch data: Access denied because of exceeding access rate
          12 Mar - 12:14:22: Failed to fetch data: Access denied because of exceeding access rate

          1 Reply Last reply Reply Quote 0
          • First post
            Last post