Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Categories
    3. Python SDK
    Log in to post

    Python SDK

    • Mnagesh

      List of all Smartapi functions in Python
      • Mnagesh  

      12
      1
      Votes
      12
      Posts
      1309
      Views

      M

      @mnagesh Thnx buddy. May I have any example of gttCancelRule ?
    • S

      Difference between status and orderstatus
      • Surya 1  

      6
      0
      Votes
      6
      Posts
      513
      Views

      H

      @admin i'm not getting this difference why both status has same value
    • W

      How to Access Live NIFTY and BANKNIFTY Option Chain Data Using Python
      • W11681  

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • I

      Drift Hunters: Your New Addiction to Adrenaline-Fueled Drifting
      • InnocentBiryukov  

      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • R

      Historical Candlestick OHLCV data 5Min, Hourly Daily Static IP required or not?
      • rigseo  

      2
      0
      Votes
      2
      Posts
      3
      Views

      M

      @rigseo As of now Static IP is required to access any smartAPI
    • D

      This topic is deleted!
      • deadeyetreacle  

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • D

      SmartApi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'
      • Deeeepak  

      6
      0
      Votes
      6
      Posts
      24
      Views

      D

      Hi @admin @Moderator_1 @Moderator_2 @Moderator_3 If you are alive, please take action on error Too many requests [E 260928 12:33:13 smartConnect:246] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData. Error: Too many requests. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '1.1.1.1', 'X-MACAddress': '02:a1:b1:c1:d1:e1', 'Accept': 'application/json', 'X-PrivateKey': 'aXxxxxxx', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'exchange': 'NFO', 'symboltoken': '115595', 'interval': 'FIVE_MINUTE', 'fromdate': '2026-09-25 09:15', 'todate': '2026-09-28 12:30'}, Response: {'message': 'Too many requests', 'errorcode': 'AB1021', 'status': False, 'data': None} This error is unresolved from 4-5 months I stopped my live algo just because of these errors. There are so many other users shouting about this error in forum about it.
    • D

      Closing Auction Session(CAS) elment like IEP & Volume related
      • deepakkumar88  

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • S

      SmartAPI connectivity issue from VPS
      • Shekkil  

      2
      1
      Votes
      2
      Posts
      10
      Views

      S

      Did you find any solution?
    • S

      Complete fix: AG8004 "Invalid API Key" after successful login + "Primary static IP is already associated with another app"
      • saif859  

      2
      0
      Votes
      2
      Posts
      5
      Views

      B

      Hello, I have the same issue. My existing application: TradingView Auto Primary Static IP: 157.20.240.41 Current test results: generateSession() → SUCCESS getProfile() → SUCCESS getRMS() → AG8004 Invalid API Key getPosition() → AG8004 Invalid API Key searchScrip() → AG8004 Invalid API Key When I try to create a new Trading app using my server IP, the portal says that the Primary Static IP is already associated with another app. Could SmartAPI Admin please check whether my existing TradingView Auto application/API key is a legacy/orphaned app after the April 2026 portal migration? Please also check whether 157.20.240.xxx is still locked to an old/dead application and release/remap it if required. I want to continue with automated MCX trading using the SmartAPI Trading API. Please advise the exact backend action required. Thank you.
    • K

      placeOrder returns HTTP 400 with a completely empty body (no JSON) — reproducible with a real, valid instrument
      • kamlesh364  

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • A

      Sandbox
      • atul25000  

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • P

      getCandleData rate-limit false positives at ~0.003 req/sec — six independent reports, zero acknowledgment
      • pari  

      4
      0
      Votes
      4
      Posts
      17
      Views

      P

      @admin Come on Angel One. Show some professionalism. At least respond. Completely ignoring genuine issues is very unprofessional and reflects very poorly on the company culture and ethics.
    • A

      HTTPSConnectionPool(host='apiconnect.angelone.in', port=443): Max retries exceeded with url: /rest/secure/angelbroking/order/v1/placeOrder (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 403 Forbidden')))
      • Ashutosh 1  

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • I

      Shredding the Slopes, Virtually: Your Ultimate Guide to Snow Rider 3D
      • InnocentBiryukov  

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • A

      TrailingStoploss in ROBO Order
      • akshita0508  

      3
      0
      Votes
      3
      Posts
      27
      Views

      D

      Check this: def PlaceRoboOrder(self, TradingSymbol, Token, BuySell, Exchange, Quantity, Price, stoploss,squareoff): try: orderparams = { "variety": "ROBO", "tradingsymbol": TradingSymbol, #"SBIN-EQ", "symboltoken": Token, #"3045", "transactiontype": BuySell, #"BUY", "exchange": Exchange, #"NSE", "ordertype": "LIMIT", #"LIMIT",Limit_Market "producttype": "BO", "duration": "DAY", "price": Price, #"19500", "squareoff": squareoff, "stoploss": stoploss-1, #"0", "quantity": Quantity, #"1" "triggerprice" : stoploss, #Price-stoploss "trailingstoploss": 5 } smartApi.placeOrder(orderparams)
    • J

      Persistent AB1021 rate-limit error on getCandleData despite low request rate
      • Jay Patel  

      2
      0
      Votes
      2
      Posts
      8
      Views

      P

      Same issue here — running a Nifty-options intraday bot polling getCandleData (FIVE_MINUTE) once every 5 minutes, ~0.003 req/s against the documented 3 req/s/client cap. Comparing the identical 09:15-10:35 window across three consecutive sessions: 12, then 17, then 27 rate-limit rejections, and the last two days both fully exhausted a 6-attempt retry budget on the very first request of the day, before any other call had been made. That makes six independent reports of this exact symptom now, across two different endpoints — candle data and order book — all well under documented limits: 5636/5637, 5611, 5625, 5595, 5560. I've put together a fuller writeup with the full data here: https://smartapi.angelbroking.com/smartapi/forum/topic/5639/getcandledata-rate-limit-false-positives-at-0-003-req-sec-six-independent-reports-zero-acknowledgment Would genuinely appreciate an actual look at the server-side telemetry rather than another "can't help with your code" response.
    • J

      Persistent AB1021 rate-limit error on getCandleData despite low request rate
      • Jay Patel  

      3
      0
      Votes
      3
      Posts
      10
      Views

      P

      Same issue here — running a Nifty-options intraday bot polling getCandleData (FIVE_MINUTE) once every 5 minutes, ~0.003 req/s against the documented 3 req/s/client cap. Comparing the identical 09:15-10:35 window across three consecutive sessions: 12, then 17, then 27 rate-limit rejections, and the last two days both fully exhausted a 6-attempt retry budget on the very first request of the day, before any other call had been made. That makes six independent reports of this exact symptom now, across two different endpoints — candle data and order book — all well under documented limits: 5636/5637, 5611, 5625, 5595, 5560. I've put together a fuller writeup with the full data here: https://smartapi.angelbroking.com/smartapi/forum/topic/5639/getcandledata-rate-limit-false-positives-at-0-003-req-sec-six-independent-reports-zero-acknowledgment Would genuinely appreciate an actual look at the server-side telemetry rather than another "can't help with your code" response.
    • M

      SmartAPI Token and WebSocket Session Lifecycle
      • manojk3535  

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • S

      Invalid symboltoken for commodities
      • Saravanan1209  

      3
      0
      Votes
      3
      Posts
      12
      Views

      X

      CARLOS GOMES ALEXANDRE NETO TOTAL ASSETS AVAILABLE US$ 1.8 BILLION
    • undefined


      •  


      Votes

      Posts

      Views