Navigation

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

    Announcing Search Scrip API endpoint for Smart API Users

    General Discussion
    0
    5
    421
    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.
    • M
      Moderator_1 last edited by

      Dear SmartAPI users,

      We are delighted to announce launch of Search Scrip API for our users. A lot of you have told us many a times that you need an API to fetch tokens from Scrips as searching from the scrip master json file is a tedious task. We have heard you and are glad to announce this feature for all our users.

      Method: POST

      The API end point is:

      https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/searchScrip
      

      The request JSON is

      {
                  "exchange": "NFO",
                  "searchscrip":"BANKNIFTY28DEC2347700CE"
      }
      

      The response from the API will be in the following format as follows:

      {
          "status": true,
          "message": "SUCCESS",
          "errorcode": "",
          "data": [
              {
                  "exchange": "NFO",
                  "tradingsymbol": "BANKNIFTY28DEC2347700CE",
                  "symboltoken": "64006"
              }
          ]
      }
      

      Header Parameters are same as for other requests.

      We hope this makes your experience of using SmartAPI better and makes your life easier.

      H 1 Reply Last reply Reply Quote 0
      • H
        hemanthk @Moderator_1 last edited by

        @Moderator_1

        this end point was not working

        {'success': False,
        'message': 'Invalid Token',
        'errorCode': 'AG8001',
        'data': ''}

        M 1 Reply Last reply Reply Quote 0
        • M
          Moderator_1 @hemanthk last edited by

          Hello @hemanthk,
          Can you try logging in again? The error which you're getting is an Invalid token error which should get resolved once you fetch a fresh token from login response.

          Thank you.

          Regards
          SmartAPI Team

          H 1 Reply Last reply Reply Quote 0
          • H
            hemanthk @Moderator_1 last edited by

            @Moderator_1

            this was not working either through web url or python sdk

            9eb4ee5a-da46-49cd-a2c1-12a3061ccf09-image.png

            1 Reply Last reply Reply Quote 0
            • D
              don last edited by

              @Moderator_1

              Is there a way that calling this api without symbol.
              Like if we provide NSE it should return with all NSE symbol alone?

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