Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. admin
    3. Best
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by admin

    • RE: Difference between status and orderstatus

      Hi @rajanprabu

      Please refer the enclosed file which list all the order status.

      in status you'll get - *Modified
      (previous trigger pending order)

      in order status - trigger pending

      3321b891-6ca1-444b-92ba-21ca52e8d4b6-image.png

      Order status page 1.png Order status page 2.png

      posted in Python SDK
      A
      admin
    • RE: Important Announcement: Change in Angel One Login Policy

      Hi @Ashok , the new login process will be MPIN based. We will introduce a new login endpoint giving our users sufficient time to migrate to the new login endpoint.

      posted in General Discussion
      A
      admin
    • Important Update: Change in 'feedToken' Format in Login Response

      Dear SmartAPI users,

      We would like to inform you that we have recently made a change to the format of the "feedToken" field in our login response. This field has been changed from numeric to text format.

      Login response: Old Format -

      {
      "status":true,
      "message":"SUCCESS",
      "errorcode":"",
      "data":{
      "jwtToken":"eyJhbGciOiJIUzUxMiJ9.eyJzdWI...",
      "refreshToken":"eyJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE1OTk0ODkwMz...",
      "feedToken":1345613428
      }
      }

      Login response: New Format -
      {
      "status": true,
      "message": "SUCCESS",
      "errorcode": "",
      "data": {
      "jwtToken": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6IkIyMTA5OTIiLCJyb2xlcyI6MCwidXNlcnR5cGUiOiJVU0VSIiwiaWF0IjoxNjgyNDgyNTM2LCJleHAiOjE2ODI1Njg5MzZ9.Jbbwc64K8SxPOhHgTxB58AX4c2qqi_x9Otb5RE7xDwxOLlbX-QTUWBZdAaRrgZBGmwhhAYDLGRo50hCgLE7pUw",
      "refreshToken": "eyJhbGciOiJIUzUxMiJ9.eyJ0b2tlbiI6IlJFRlJFU0gtVE9LRU4iLCJpYXQiOjE2ODI0ODI1MzZ9.PQeoJz3hLMVRJVNVUqmTNa8Mwt3Ta3ieScJ6w6HpzlzQTsQ4p0oMLPDrLK9ouDXRMDcX6ycyMJ2MWwo9AL74YQ",
      "feedToken": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6IkIyMTA5OTIiLCJpYXQiOjE2ODI0ODI1MzYsImV4cCI6MTY4MjU2ODkzNn0.tg5rrEX7EOGbdnpKpMwlWWZ-PXEmrJB27A5XfPPqHRN6IEOZUlQXuIbe5M747dPxDRJrnrBFYDt7WeRSEPITRA"
      }
      }

      We recommend that you update your systems to handle the new values for the "feedToken" field to avoid any errors. We understand that some of our clients may be using parsers to handle our responses, and we encourage you to make the necessary updates to ensure compatibility with the new format.

      Please note that this change has been made to improve the security and stability of our system. We apologize for any inconvenience this may cause and appreciate your understanding.

      If you have any questions or concerns, please don't hesitate to reach out to our support team.

      Thank you for using SmartAPI.

      Best regards,
      The SmartAPI team

      posted in General Discussion
      A
      admin
    • Exciting News: Increased Rate Limit for SmartAPI users - Empowering Traders!

      Hi everyone,

      I have some exciting updates to share with you regarding our SmartAPI platform. As part of our continuous efforts to enhance stability, scalability, and performance, we have made significant improvements to the order placement, modification, and cancellation processes. These updates have resulted in faster response times, allowing you to execute trades with remarkable speed and efficiency.

      But that's not all! I'm delighted to inform you that we have also increased the rate limit for place/modify/cancel orders from 10 to an impressive 20 per second! This upgrade opens up new possibilities for you, enabling you to place, modify, or cancel up to 20 orders within a single second. With improved execution speed and enhanced responsiveness to market changes, you can take full control of your trading strategies and seize opportunities with greater agility.

      At Angel One, we're committed to providing you with the best tools for success. With the increased rate limit, you have more flexibility and efficiency in executing your trading strategies. It's all about staying ahead and maximising your potential.

      If you have any questions or need more information, our support team is here to help. Thank you for being part of our trading community. Let's embrace this upgrade and take our trading to new heights!

      Happy trading!

      posted in General Discussion
      A
      admin
    • Important Update: SmartAPI WebSocket URL Change - Action Required by November 30th, 2023

      Dear SmartAPI Users,

      We hope this message finds you well. We have an important update to share regarding the WebSocket URL for the SmartAPI.

      Change in WebSocket URL:

      We are enhancing the security of your market data connections and safeguarding your information by updating the WebSocket URL for SmartAPI market data. The change is as follows:

      From: ws://smartapisocket.angelone.in/smart-stream
      To: wss://smartapisocket.angelone.in/smart-stream

      Library Updates:
      We're excited to announce that our official SmartAPI libraries for Python, Node.js, and Java have been updated to accommodate this change. These updated libraries have undergone thorough testing to ensure seamless integration with the new WebSocket URL

      Action Required for Library Users:
      The updated libraries are available now on our GitHub repository. We kindly request that all library users update to the latest version to align with the new WebSocket URL.

      Action Required for Direct Connections:
      For users who connect directly to the SmartAPI without using a library, you will need to update your code to use WebSocket Secure (WSS) instead of WebSocket (WS). This change is essential for maintaining a secure connection.

      Cut-Off Date: November 30th, 2023
      Please note, the old WebSocket URL (ws://smartapisocket.angelone.in/smart-stream) will cease to operate after November 30th, 2023. It is vital to transition to the new URL (wss://smartapisocket.angelone.in/smart-stream) before this date to prevent any disruption in service.

      For those who connect directly, we recommend preparing your code for the transition by switching to WSS as soon as the updated libraries are released.

      Clarification for Non-WebSocket Market Data Users:
      Please note that this update specifically applies to users who connect to SmartAPI for market data using WebSocket technology. If you do not use WebSocket for market data, this change does not impact your current setup. Your existing method for retrieving market data remains unaffected.

      We appreciate your patience and cooperation during this transition. The security and reliability of your connection to SmartAPI remain our top priorities.

      If you have any questions or require assistance, please don't hesitate to contact our support team. We are here to help and ensure a smooth transition for all users.

      Thank you for choosing SmartAPI for your trading needs. We look forward to providing you with an even more secure and efficient trading experience.

      Regards
      The SmartAPI Team

      posted in General Discussion
      A
      admin
    • SmartAPI now provides real-time market data for 120 indices across NSE, BSE, and MCX

      Hello SmartAPI users,

      We are excited to introduce several significant updates that will enhance your experience with SmartAPI, providing you with more accurate market data and access to a broader range of indices across various exchanges. Please take note of the following important information:

      1. Symbol Token Updates: We have implemented changes to the symbol tokens for Nifty and Bank Nifty. Kindly make note of the following updates:

      Nifty 50 (NIFTY) - New Token: 99926000
      Nifty Bank (BANKNIFTY) - New Token: 99926009

      Previously, there were issues with OHLC values for Nifty and Bank Nifty. We are delighted to inform you that these issues have been rectified, and you can now access precise OHLC data for these indices. The old symbol tokens (Nifty - Token: 26000 and Bank Nifty - Token: 26009) will be deprecated after a specific period. To ensure uninterrupted access to market data, we strongly recommend transitioning to the new token series.

      2. Introduction of New Indices: We are pleased to announce that SmartAPI now provides live market data for a total of 120 indices. This expansion opens up exciting new opportunities for you to access a wider range of real-time market information.

      We are excited to introduce several new indices, all trackable with the "AMXIDX" instrument type.

      Here's a glimpse of the Market Data API response for some of the new indices:

      For NSE (NIFTY50):

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": {
              "fetched": [
                  {
                      "exchange": "NSE",
                      "tradingSymbol": "Nifty 50",
                      "symbolToken": "99926000",
                      "ltp": 19523.55,
                      "open": 19761.8,
                      "high": 19766.65,
                      "low": 19492.1,
                      "close": 19716.45
                  }
              ],
              "unfetched": []
          }
      }
      

      For NSE (INDIA VIX):

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": {
              "fetched": [
                  {
                      "exchange": "NSE",
                      "tradingSymbol": "India VIX",
                      "symbolToken": "99926017",
                      "ltp": 12.82,
                      "open": 11.59,
                      "high": 13.02,
                      "low": 9.4,
                      "close": 11.59
                  }
              ],
              "unfetched": []
          }
      }
      

      For BSE (SENSEX):

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": {
              "fetched": [
                  {
                      "exchange": "BSE",
                      "tradingSymbol": "SENSEX",
                      "symbolToken": "99919000",
                      "ltp": 65508.32,
                      "open": 66406.01,
                      "high": 66406.01,
                      "low": 65423.39,
                      "close": 66118.69
                  }
              ],
              "unfetched": []
          }
      }
      

      For MCX (MCXCRUDEX):

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": {
              "fetched": [
                  {
                      "exchange": "MCX",
                      "tradingSymbol": "MCXCRUDEX",
                      "symbolToken": "99920000",
                      "ltp": 9663.16,
                      "open": 9797.84,
                      "high": 9831.51,
                      "low": 9635.72,
                      "close": 9716.78
                  }
              ],
              "unfetched": []
          }
      }
      

      Below is a comprehensive list of the new indices we've introduced, categorized by exchange:

      NSE Exchange:

      nse Nifty 50 99926000 NIFTY 26000
      nse Nifty GrowSect 15 99926001 NIFTY GROWSECT 15 26001
      nse Nifty50 PR 2x Lev 99926002 NIFTY50 PR 2X LEV 26002
      nse Nifty 500 99926004 NIFTY 500 26004
      nse Nifty IT 99926008 NIFTY IT 26008
      nse Nifty Bank 99926009 BANKNIFTY 26009
      nse NIFTY MIDCAP 100 99926011 NIFTY MIDCAP 100 26011
      nse Nifty 100 99926012 NIFTY 100 26012
      nse Nifty Next 50 99926013 NIFTY NEXT 50 26013
      nse Nifty Midcap 50 99926014 NIFTY MIDCAP 50 26014
      nse HangSeng BeES-NAV 99926016 HANGSENG BEES-NAV 26016
      nse India VIX 99926017 INDIA VIX 26017
      nse Nifty Realty 99926018 NIFTY REALTY 26018
      nse Nifty Infra 99926019 NIFTY INFRA 26019
      nse Nifty Energy 99926020 NIFTY ENERGY 26020
      nse Nifty FMCG 99926021 NIFTY FMCG 26021
      nse Nifty MNC 99926022 NIFTY MNC 26022
      nse Nifty Pharma 99926023 NIFTY PHARMA 26023
      nse Nifty PSE 99926024 NIFTY PSE 26024
      nse Nifty PSU Bank 99926025 NIFTY PSU BANK 26025
      nse Nifty Serv Sector 99926026 NIFTY SERV SECTOR 26026
      nse Nifty Auto 99926029 NIFTY AUTO 26029
      nse Nifty Metal 99926030 NIFTY METAL 26030
      nse Nifty Media 99926031 NIFTY MEDIA 26031
      nse NIFTY SMLCAP 100 99926032 NIFTY SMLCAP 100 26032
      nse Nifty 200 99926033 NIFTY 200 26033
      nse Nifty Div Opps 50 99926034 NIFTY DIV OPPS 50 26034
      nse Nifty Commodities 99926035 NIFTY COMMODITIES 26035
      nse Nifty Consumption 99926036 NIFTY CONSUMPTION 26036
      nse Nifty Fin Service 99926037 FINNIFTY 26037
      nse Nifty50 Div Point 99926038 NIFTY50 DIV POINT 26038
      nse Nifty100 Liq 15 99926040 NIFTY100 LIQ 15 26040
      nse Nifty CPSE 99926041 NIFTY CPSE 26041
      nse Nifty50 PR 1x Inv 99926042 NIFTY50 PR 1X INV 26042
      nse Nifty50 TR 2x Lev 99926043 NIFTY50 TR 2X LEV 26043
      nse Nifty50 TR 1x Inv 99926044 NIFTY50 TR 1X INV 26044
      nse Nifty50 Value 20 99926045 NIFTY50 VALUE 20 26045
      nse Nifty Mid Liq 15 99926046 NIFTY MID LIQ 15 26046
      nse Nifty Pvt Bank 99926047 NIFTY PVT BANK 26047
      nse NIFTY100 Qualty30 99926048 NIFTY100 QUALTY30 26048
      nse Nifty GS 8 13Yr 99926049 NIFTY GS 8 13YR 26049
      nse Nifty GS 10Yr 99926050 NIFTY GS 10YR 26050
      nse Nifty GS 10Yr Cln 99926051 NIFTY GS 10YR CLN 26051
      nse Nifty GS 4 8Yr 99926052 NIFTY GS 4 8YR 26052
      nse Nifty GS 11 15Yr 99926053 NIFTY GS 11 15YR 26053
      nse Nifty GS 15YrPlus 99926054 NIFTY GS 15YRPLUS 26054
      nse Nifty GS Compsite 99926055 NIFTY GS COMPSITE 26055
      nse NIFTY50 EQL Wgt 99926056 NIFTY50 EQL WGT 26056
      nse NIFTY100 EQL Wgt 99926057 NIFTY100 EQL WGT 26057
      nse NIFTY100 LowVol30 99926058 NIFTY100 LOWVOL30 26058
      nse NIFTY Alpha 50 99926059 NIFTY ALPHA 50 26059
      nse NIFTY MIDCAP 150 99926060 NIFTY MIDCAP 150 26060
      nse NIFTY SMLCAP 50 99926061 NIFTY SMLCAP 50 26061
      nse NIFTY SMLCAP 250 99926062 NIFTY SMLCAP 250 26062
      nse NIFTY MIDSML 400 99926063 NIFTY MIDSML 400 26063
      nse NIFTY200 QUALTY30 99926064 NIFTY200 QUALTY30 26064
      nse NIFTY MID SELECT 99926074 NIFTY MID SELECT 26074

      BSE Exchange:

      bse SENSEX 99919000 SENSEX
      bse BSEPSU 99919001 S&P BSE PSU
      bse BSE100 99919002 S&P BSE 100
      bse BSE200 99919003 S&P BSE 200
      bse BSE500 99919004 S&P BSE 500
      bse BSE IT 99919005 S&P BSE INFORMATION TECHNOLOGY
      bse BSEFMC 99919006 S&P BSE FAST MOVING CONSUMER GOODS
      bse BSE CG 99919007 S&P BSE CAPITAL GOODS
      bse BSE CD 99919008 S&P BSE CONSUMER DURABLES
      bse BSE HC 99919009 S&P BSE HEALTHCARE
      bse TECK 99919011 S&P BSE TECK
      bse BANKEX 99919012 S&P BSE BANKEX
      bse AUTO 99919013 S&P BSE AUTO
      bse METAL 99919014 S&P BSE METAL
      bse CPSE 99919015 S&P BSE CPSE
      bse MIDCAP 99919016 S&P BSE MIDCAP
      bse SMLCAP 99919017 S&P BSE SMALLCAP
      bse DOL30 99919018 S&P BSE DOLLEX 30
      bse DOL100 99919019 S&P BSE DOLLEX 100
      bse DOL200 99919020 S&P BSE DOLLEX 200
      bse LRGCAP 99919042 S&P BSE LARGECAP
      bse MIDSEL 99919043 S&P BSE MIDCAP SELECT INDEX
      bse SMLSEL 99919044 S&P BSE SMALLCAP SELECT INDEX
      bse OILGAS 99919051 S&P BSE OIL & GAS
      bse POWER 99919052 S&P BSE POWER
      bse REALTY 99919053 S&P BSE REALTY
      bse BSEIPO 99919054 S&P BSE IPO
      bse CARBON 99919058 S&P BSE CARBONEX
      bse SMEIPO 99919059 S&P BSE SME IPO
      bse INFRA 99919060 S&P BSE INDIA INFRASTRUCTURE INDEX
      bse GREENX 99919081 S&P BSE GREENEX
      bse SNSX50 99919082 S&P BSE SENSEX 50
      bse SNXT50 99919083 S&P BSE SENSEX NEXT 50
      bse ENERGY 99919084 S&P BSE ENERGY
      bse FINSER 99919085 S&P BSE FINANCIAL SERVICES
      bse INDSTR 99919086 S&P BSE INDUSTRIALS
      bse TELCOM 99919087 S&P BSE TELECOM
      bse MID150 99919088 S&P BSE 150 MIDCAP INDEX
      bse LMI250 99919089 S&P BSE 250 LARGEMIDCAP INDEX
      bse MSL400 99919090 S&P BSE 400 MIDSMALLCAP INDEX

      NCDEX Exchange:

      ncdex AGRIDEX 99918001 AGRIDEX
      ncdex NKRISHI 99918002 NKRISHI
      ncdex FREIGHTEX 99918003 FREIGHTEX
      ncdex NCDEXRAIN 99918004 NCDEXRAIN
      ncdex NCDEXAGRI 99918005 NCDEXAGRI
      ncdex FUTEXAGRI 99918006 FUTEXAGRI

      MCX Exchange:

      mcx MCXCRUDEX 99920000 MCXCRUDEX
      mcx MCXCOPRDEX 99920001 MCXCOPRDEX
      mcx MCXSILVDEX 99920002 MCXSILVDEX
      mcx MCXGOLDEX 99920003 MCXGOLDEX
      mcx MCXMETLDEX 99920004 MCXMETLDEX
      mcx MCXBULLDEX 99920005 MCXBULLDEX
      mcx MCXCOMPDEX 99920006 MCXCOMPDEX
      mcx MFGLOBALCI 99920007 MFGLOBALCI
      mcx MCXSAGRI 99920008 MCXSAGRI
      mcx MCXSENERGY 99920009 MCXSENERGY
      mcx MCXSMETAL 99920010 MCXSMETAL
      mcx MCXSCOMDEX 99920011 MCXSCOMDEX
      mcx MCXCOMPOSITE 99920012 MCXCOMPOSITE
      mcx MCXCOMDEX 99920013 MCXCOMDEX
      mcx MCXAGRI 99920014 MCXAGRI
      mcx MCXENERGY 99920015 MCXENERGY
      mcx MCXMETAL 99920016 MCXMETAL

      These indices cover a wide range of sectors and industries, providing you with a comprehensive view of the market landscape. Whether you are tracking major benchmark indices like NIFTY and SENSEX or exploring sector-specific indices, SmartAPI has you covered.

      If you have any questions, need assistance with the symbol token transition, or require further information on any of the indices listed, please do not hesitate to contact us.

      Thank you for choosing SmartAPI, and we look forward to helping you leverage these enhancements for your trading and investment strategies.

      posted in General Discussion
      A
      admin
    • Important Update: Individual Order Status API using Unique Order ID (10 Requests/Second)

      We're implementing significant enhancements to our trading APIs, with a keen focus on practicality and efficiency for our users. These changes include the introduction of the "uniqueorderid" field in the responses of essential APIs: place order, modify order, cancel order, and orderbook.

      Moreover, we're introducing the "Individual Order Status" API, which grants users access to detailed information about specific individual orders. This means you can skip the hassle of fetching the entire order book when you only need specific order details. Notably, this API offers an impressive rate limit of 10 requests per second, ensuring a smooth and efficient trading experience.

      We believe these improvements will streamline your trading activities, making it easier for you to manage your orders effectively.

      1. Introducing the "Individual Order Status" API:

      This API allows you to retrieve the status of individual orders using the "uniqueorderid" you receive in the response when placing, modifying, or canceling orders.

      API Endpoint: https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/details/{UniqueOrderID}

      Method: GET

      Sample Request:

      https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/details/05ebf91b-bea4-4a1d-b0f2-4259606570e3
      

      Sample Response:

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": {
              "variety": "NORMAL",
              "ordertype": "LIMIT",
              "producttype": "DELIVERY",
              "duration": "DAY",
              "price": 2298.25,
              "triggerprice": 0.0,
              "quantity": "1",
              "disclosedquantity": "0",
              "squareoff": 0.0,
              "stoploss": 0.0,
              "trailingstoploss": 0.0,
              "tradingsymbol": "RELIANCE-EQ",
              "transactiontype": "BUY",
              "exchange": "NSE",
              "symboltoken": "2885",
              "instrumenttype": "",
              "strikeprice": -1.0,
              "optiontype": "",
              "expirydate": "",
              "lotsize": "1",
              "cancelsize": "0",
              "averageprice": 0.0,
              "filledshares": "0",
              "unfilledshares": "1",
              "orderid": "231010000000970",
              "text": "Your order has been rejected due to Insufficient Funds. Available funds - Rs. 937.00 . You require Rs. 2298.25 funds to execute this order.",
              "status": "rejected",
              "orderstatus": "rejected",
              "updatetime": "10-Oct-2023 09:00:16",
              "exchtime": "",
              "exchorderupdatetime": "",
              "fillid": "",
              "filltime": "",
              "parentorderid": "",
              "ordertag": "",
              "uniqueorderid": "05ebf91b-bea4-4a1d-b0f2-4259606570e3"
          }
      }
      
      

      Improved Rate Limit:

      We understand the importance of quick decision-making in trading, especially when you need to place orders like stop-loss or target orders after a successful trade. Our "place order" API enables you to send requests rapidly, with a limit of up to 20 requests per second. In the context of order monitoring, the "getorderbook" API is limited to just 1 request per second. However, we're introducing the "Individual Order Status" API, which is designed to allow 10 requests per second. This enhancement provides you with greater flexibility and control when checking the status of your individual orders.

      2. Unique Order ID:

      In conjunction with these enhancements, we are introducing the "Unique Order ID." This identifier will be included in the response every time you interact with our APIs, whether you're placing an order, modifying it, canceling it, or checking your order book. This unique identifier simplifies the process of tracking and managing your orders with precision.

      These updates are aimed at enhancing your trading experience, providing you with the necessary tools, speed, and control to thrive in today's dynamic markets.

      Sample response on place order:

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": {
              "script": "IDEA-EQ",
              "orderid": "101105793a45AO",
              "uniqueorderid": "87ae4c65-8e5b-4f4e-b836-8c6cf7b0170b"
          }
      }
      
      

      We hope you find these updates valuable, and we look forward to serving you with an even better trading experience.

      Happy trading!

      posted in General Discussion
      A
      admin
    • RE: Sebi Algo Trading Circular

      Hello, it is a SEBI has came up with a consultation paper on use of API services, and we will share the details about changes in the API services soon.

      posted in General Discussion
      A
      admin
    • RE: Where do I get the the full list of available tradingsymbol and symboltoken to fetch the LTP?

      @anuragbaheti said in Where do I get the the full list of available tradingsymbol and symboltoken to fetch the LTP?:

      Where do I get the the full list of available tradingsymbol and symboltoken to fetch the LTP?

      Retrieve the CSV dump of all tradable instruments from below URL:

      https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

      posted in General Discussion
      A
      admin
    • RE: new api generation

      @avi_rockfellar you can only use https here, also, you cannot use local host.

      posted in General Discussion
      A
      admin
    • RE: Unable to Place Stop Loss Order

      HI @Reddy Have you incorporated the new change which are done yesterday.

      posted in Java SDK
      A
      admin
    • RE: Historical Data API not sending data for requested number of days

      Hi @falconTrader @laskshmi

      We apologize for the discrepancy in the API documentation and the actual data received. Our API is currently limited to returning a maximum of 500 records per request. We have update the members on this post -
      https://smartapi.angelbroking.com/topic/3380/issue-fetching-historical-data/12?_=1675141920884

      posted in NodeJS SDK
      A
      admin
    • RE: TypeError: 'NoneType' object is not subscriptable

      Hi @Reddy We are checking this. Regret the inconvenience caused.

      posted in Python SDK
      A
      admin
    • RE: Websocket 2.0

      Hi @rajanprabu , thank you so much for the fix. Request you to please raise the PR, I'll get my tech team to review and approve the same. Open source contributions from experts and loyal SmartAPI users like you will help us to maintain the SDKs. We are exploring few options on the support for SDKs and shall restore the support soon. Thank you for your contribution again.

      posted in Python SDK
      A
      admin
    • RE: Place order for option trade

      Hi @nickmanan

      We have noticed that you are experiencing issues with our SDK due to poor error handling. The error message you are seeing, "TypeError: 'NoneType' object is not subscriptable", is a result of the SDK not handling exceptions properly. This is causing the orderResponse variable to be None, which is leading to the error you are seeing.

      The correct error message from the RestAPI is "Invalid Session or Session is Expired Please Re-login" with error code "AB1010". This error is likely being caused because you are using an expired JWT token. (Read more about it here - https://smartapi.angelbroking.com/topic/3392/faqs-on-ab1010-invalid-session-or-session-expired-please-re-login?_=1671130890317)

      Please note that our SDKs are open source, so you are welcome to make contributions to improve the error handling and other aspects of the code. Additionally, if you encounter any errors in the future, you can make a call to the RestAPI directly to get the correct error message and information on how to resolve the issue.

      We apologize for any inconvenience this may have caused and thank you for your understanding.

      posted in Python SDK
      A
      admin
    • RE: correlation_id

      @tanmoydev said in correlation_id:

      what should be the correlation_id ?

      HI @tanmoydev
      Correlation id is a 10 character alphanumeric ID client may provide which will be returned by the server in error response to indicate which request generated error response. Clients can use this optional ID for tracking purposes between request and corresponding error response.

      posted in Python SDK
      A
      admin
    • RE: Issue fetching Historical data

      Hi @Vypy1

      Historical data API is only able to fetch 500 records at a time.

      Meaning if you are trying to fetch the data using below parameters it will fetch data from 13th Oct 2020 to 18th Oct 2022. Because the Gap between fromdate and todate is > 500 days, it is designed to return latest 500 values as follows = todate-500 days.

      {
      "exchange":"NSE",
      "symboltoken":"11821",
      "interval":"ONE_DAY",
      "fromdate":"2020-08-09 11:00",
      "todate":"2022-10-18 11:40"
      }

      Hope this helps to clarify.

      posted in Python SDK
      A
      admin
    • RE: How to get LTP using python sdk

      HI @Thiyaneswaran

      from smartapi import SmartConnect
      SmartApi =SmartConnect(api_key="Your Api Key")
      login = smartApi.generateSession('Your Client Id', 'Your Password')

      exchange = "NSE"
      tradingsymbol = "SBIN-EQ"
      symboltoken = 3045
      smartApi.ltpData("NSE", "SBIN-EQ", "3045")

      posted in Python SDK
      A
      admin
    • RE: stock option quantity field

      @bablujat check via postman to square off. It is working fine. There maybe a issue in your code.

      posted in Python SDK
      A
      admin
    • RE: Place order error: {"message":"Internal Error","errorcode":"AB2001","status":false,"data":null}

      @PareshBhatiya @mudit236 @Phanilbb

      We are aware of the error being faced by clients. Our team is currently looking into the internal error issue and working towards a resolution. We apologize for the inconvenience and appreciate your patience as we work towards a solution.

      posted in Bugs
      A
      admin