Navigation

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

    Posts made by Moderator_1

    • RE: NSE Websocket Server Crash 11:20AM

      @trader_noob @Mastermind

      The issue has been fixed. You can use websockets now. Thanks for your patience.

      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: NSE Websocket Server Crash 11:20AM

      Hello @Mastermind @trader_noob,
      Apologies for the inconvenience.
      Our tech team is working on solving this issue, we'll update you once it is resolved.

      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: Do you have facility to get option chain of any index?

      Hi @PandaTrade, You'll need to subscribe to specific tokens in the Websocket Streaming to get all these data points.

      Our Websocket provides this information, please search for the requisite token.

      Thank you
      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: Need to get token number of symbol in bankex

      @PandaTrade We use a different naming convention. Please tell us the Strike Price and Expiry so that we can help you find it.

      All the data is present in Scrip Master file

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • RE: Historical data for options

      @PandaTrade, Yes it is available for Index Options too. you just need to pass the correct exchange segment and token of the contract in the request body.
      Please note that we donot have data of Expired contracts as of now.

      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: smartapi is not getting installed

      Hi @mst_rajatmishra,

      Please use the below command instead:

      pip install smartapi-python
      

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • RE: Historical data for options

      Hi @PandaTrade,

      This is already live for all SmartAPI users. Please check our documentation page and use this feature.

      Thank you.

      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: Invalid API key

      @sunil_modi
      Please open Command Prompt on Windows by typing cmd and then run this command:

      ipconfig\all

      The physical address in the response is your mac address and you should pass the same for X-macaddress in the request header.
      Similarly you'll see IP address in the response as well. Copy and paste this in the request headers for both X-publicIP and X-clientIP.

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • RE: option data instrument blocked

      Hi @kedar7030140328,

      We donot provide option chain data via an API. You can subscribe to specific tokens in websocket and get data for them.

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • RE: How to get old expiry dates of banknifty and nifty for backtesting?

      Hello @Mitrajit,
      NSE website has day-wise price volume data for expired options contracts. It can be accessed here

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • RE: Invalid API key

      Hi @sunil_modi,
      Please pass all the Header Parameters as described in the documentation. As I can see from your request body, you have only passed content-type, x-api-key and Authorization in the headers. please pass the rest of the values as described in this documentation page

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • RE: Error while using WebSocket.

      Hi @Nichil72,
      Please use one of the supported SDKs, namely Python, Java and NodeJS.

      Regards
      SmartAPI Team

      posted in Java SDK
      M
      Moderator_1
    • RE: Web Socket Issue

      Hi @Nichil72,
      we have stopped support for C# SDK. Please use any of the Python, Java or NodeJS SDKs to access SmartAPI.

      Regards
      SmartAPI Team.

      posted in Java SDK
      M
      Moderator_1
    • RE: Invalid API key

      Hi @sunil_modi,

      Have you checked on the SmartAPI Developer console that your app is active?
      This error usually comes when the is app is set to inactive. Are you able to do other API calls and fetch data from them? Please let us know. then we will be able to troubleshoot your issue.

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • Limit Price Protection in Orders

      Dear SmartAPI Users,

      In compliance with the recent exchange circulars, We are introducing Limit Price Protection, i.e. LPP in our ordering system. This will add as an additional check to save you from getting stuck in erroneous trades and comply the the exchange mandate for protection of retail investors.

      Here are the relevant circulars:

      1. NSE Capital Markets
      2. NSE Options
      3. NSE Futures
      4. NSE Index Options
      5. NSE Stock Options

      Because of these changes, you'll receive messages like

      "message":"Order price is beyond the Limit Price Protection range defined by the exchange. Please increase the stop loss limit price above <$LPPPrice>"
      
      "message": "Difference between limit price and trigger price for SL Limit Order is beyond the exchange’s Permissible range of <$Price Range>. Consider reducing the limit price below <$LimitPrice>"
      

      The permissible limit for each instrument is determined using a specific formula considering the trigger price, X% variation, and a minimum absolute range (in ₹) depending on the type of instrument. For further details on how the permissible range is calculated, please refer to the circulars mentioned above.
      Difference between limit price and trigger price for SL Limit Order is beyond the exchange’s Permissible range of <$Price Range>. Consider reducing the limit price below <$LimitPrice>

      This will affect STOPLOSS_LIMIT orders

      Any incoming limit order placed beyond LPP range shall automatically be rejected by the Exchange as below:
      Buy order price > High LPP limit

      Sell order price < Low LPP limit

      Order price is beyond the Limit Price Protection range defined by the exchange. Please increase the stop loss limit price above < $LPPPrice >

      This will affect LIMIT and STOPLOSS_LIMIT Orders.

      These changes will be rolled out soon our systems and hence we advise you not to get alarmed by these new rejection messages received in response and understand them. We urge you to go through the circulars given above.

      The response from placeorder API will be like this:

      {
          "status": false,
          "message": "Order price is beyond the Limit Price Protection range defined by the exchange. Please increase the stop loss limit price above < 421.30 >",
          "errorcode": "AB1007",
          "data": {
              "script": "BANKNIFTY03JUL2451300CE",
              "orderid": null,
              "uniqueorderid": "bf525811-bf98-4974-9120-b173cb05e12f"
          }
      }
      

      Please note that the order response will only have uniqueorderid, the orderid key will have null value.

      HTTP Status code will be 200, but the response will have "status":false

      The errorcode returned will be AB1007.

      This change is going across all Angel Platforms, hence will be applicable on all, i.e. SmartAPI, Web and Mobile platforms.

      We hope this enhanced check simplifies your trading journey and helps you trade better.

      Thank you.

      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: Request to Update Historical Stock Data for TALBROAUTO

      Hello @manideepbitm,
      We have raised this to our internal team and would provide the data for the same soon. Thank you for pointing this out and helping your fellow traders with important issues.

      We will let you know once the data has been made available.

      Thank you.

      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • List of Scrips allowed for Intraday Trading

      Dear SmartAPI Users,

      Some of you had requested a feature using which you could find out which scrips are allowed for Intraday trading and provide their respective multipliers as well. We are pleased to announce Intraday Scrips List feature which will help you in this regard. Using these API endpoints, you'll be able to retrieve the list of stocks which are allowed for Intraday Trading with their respective multipliers.

      The API end points are:

      1. For NSE

      https://apiconnect.angelbroking.com/rest/secure/angelbroking/marketData/v1/nseIntraday
      HTTP Method - GET
      Headers - Same as other APIs

      Sample response:

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": [
              {
                  "Exchange": "NSE",
                  "SymbolName": "CHEMPLASTS",
                  "Multiplier": "5.0"
              },
              {
                  "Exchange": "NSE",
                  "SymbolName": "SANGHVIMOV",
                  "Multiplier": "5.0"
              },
              {
                  "Exchange": "NSE",
                  "SymbolName": "BANARBEADS",
                  "Multiplier": "1.0"
              },
              {
                  "Exchange": "NSE",
                  "SymbolName": "EICHERMOT",
                  "Multiplier": "5.0"
              }]
      }
      
      1. For BSE

      https://apiconnect.angelbroking.com/rest/secure/angelbroking/marketData/v1/bseIntraday

      HTTP Method - GET
      Headers - Same as other APIs

      Sample response:

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": [
              {
                  "Exchange": "BSE",
                  "SymbolName": "TAALENT",
                  "Multiplier": "1.0"
              },
              {
                  "Exchange": "BSE",
                  "SymbolName": "ARE&M",
                  "Multiplier": "5.0"
              },
              {
                  "Exchange": "BSE",
                  "SymbolName": "EIHAHOTELS",
                  "Multiplier": "1.0"
              },
              {
                  "Exchange": "BSE",
                  "SymbolName": "ESCORTS",
                  "Multiplier": "5.0"
              },
              {
                  "Exchange": "BSE",
                  "SymbolName": "BHARATFORG",
                  "Multiplier": "2.5"
              }]
      }
      

      We hope this feature makes it easy for you to find allowed scrips for Intraday and help with your trading journey.

      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

      Hi @coder ,

      Please login again and then try.

      Thank you.

      Regards
      SmartAPI Team

      posted in Python SDK
      M
      Moderator_1
    • RE: Periodic latency spikes in websocket connection

      Hello @trader_noob, @vivekjha05

      We will get this checked by our tech team and get back to you.

      Thank you.
      Regards
      SmartAPI Team

      posted in General Discussion
      M
      Moderator_1
    • RE: Option Actual Buy Price is not the same(way more than) as returned averageprice from individual_order_details API

      @coolankurmahe the price shown on Angel One UI on T+1 day includes the additional brokerage charges as well. You incur some taxes and charges which is additional to the buy price on the previous day. What you are seeing in the charts is correct. What you're seeing in the UI is inclusive of taxes and charges which you have incurred for the transaction. The price on charts does not include taxes and charges.

      posted in Python SDK
      M
      Moderator_1