Changes in API Rate Limit


  • Dear SmartAPI Users,

    In our quest to provide the best service to our customers, we have added additional rate limits on per minute and per hour basis.

    Here are the new rate limits for various endpoints:

    Sr. No. API Per second Per Minute Per Hour
    1 /rest/auth/angelbroking/user/v1/loginByPassword 1 NA NA
    2 /rest/auth/angelbroking/jwt/v1//generateTokens 1 NA 1000
    3 /rest/secure/angelbroking/user/v1/getProfile 3 NA 1000
    4 /rest/secure/angelbroking/user/v1/logout 1 NA NA
    5 /rest/secure/angelbroking/user/v1/getRMS 2 NA NA
    6 /rest/secure/angelbroking/order/v1/placeOrder 20 500 1000
    7 /rest/secure/angelbroking/order/v1/modifyOrder 20 500 1000
    8 /rest/secure/angelbroking/order/v1/cancelOrder 20 500 1000
    9 /rest/secure/angelbroking/order/v1/getOrderBook 1 NA NA
    10 /rest/secure/angelbroking/order/v1/getLtpData 10 500 5000
    11 /rest/secure/angelbroking/order/v1/getPosition 1 NA NA
    12 /rest/secure/angelbroking/order/v1/getTradeBook 1 NA NA
    13 /rest/secure/angelbroking/order/v1/convertPosition 10 500 5000
    14 /rest/secure/angelbroking/order/v1/searchScrip 1 NA NA
    15 /rest/secure/angelbroking/order/v1//details/{GuiOrderID} 10 500 5000
    16 /rest/secure/angelbroking/portfolio/v1/getHolding 1 NA NA
    17 /rest/secure/angelbroking/portfolio/v1/getAllHolding 1 NA NA
    18 /rest/secure/angelbroking/market/v1/quote 10 500 5000
    19 /rest/secure/angelbroking/margin/v1/batch 10 500 5000
    20 /rest/secure/angelbroking/gtt/v1/createRule 10 500 5000
    21 /rest/secure/angelbroking/gtt/v1/modifyRule 10 500 5000
    22 /rest/secure/angelbroking/gtt/v1/cancelRule 10 500 5000
    23 /rest/secure/angelbroking/gtt/v1/ruleDetails 10 500 5000
    24 /rest/secure/angelbroking/gtt/v1/ruleList 10 500 5000
    25 /rest/secure/angelbroking/historical/v1/getCandleData 3 180 5000

    We hope that the new rate limits help you to get a better trading experience.

    Thank you.

    Regards
    SmartAPI Team


  • @angeltrader

    Rate limits are implemented as mentioned in the table above.
    Please provide client code to further analyze the issue.

    Regards,
    SmartAPI Team


  • @Moderator_1 said in Changes in API Rate Limit:

    /rest/secure/angelbroking/order/v1/getTradeBook

    I am hitting the getTradeBook API endpoint every 15 seconds and still I end up getting Error: Couldn't parse the JSON response received from the server: Access denied because of exceeding access rate error randomly every 4-5 minutes. The mentioned limit for this end point is 1 request per second which is way higher than my 4 requests per minute. Are the API rate limits implemented as they are mentioned in this table or they are just random? I have noticed the same behavior with other end points as well. Access denied errors are thrown at random.


  • Thanks for sharing this information.
    Hindi fonts download


  • Hello @D1s2p3n4
    Could you please install the sdk and start with the documentation
    Regards,
    SmartAPI Team


  • This post is deleted!

  • @Moderator_1 i want to join smart api


  • Hello @perceptron,

    Currently there is a limit of 3 connections per client code for Websocket Streaming. There is no additional cap or limit on it.

    Thank you.

    Regards
    SmartAPI Team


  • @Moderator_1 is there any new limit on live socket data streaming?


  • @Moderator_1

    Thanks for taking action on it!

    With Regards
    Amit


  • Hi @godboleamit,
    Ratelimit per minute is an additional cap on top on per second ratelimit. In this case, the ratelimit per minute for getCandleData should be 180. Thank you for highlighting this. We will fix this and let you know. If you have any suggestions, then please let us know that as well.

    Thank you.

    Regards
    SmartAPI Team


  • @Moderator_1 said in Changes in API Rate Limit:

    500

    Thanks for clarifying the rate limit!

    But how the rate limits per second and per minute are related to each other?

    For example:

    Rate limit for - /rest/secure/angelbroking/historical/v1/getCandleData

    • 3 per second and
    • 500 per minute

    So if we consider per second limit rate as a primary rate limit, then max rate limit per minute is 180 per minute.

    Hence how to use the rate limit per minute?

    Any use case as an example will be useful.