Navigation

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

    fetch banknifty index data

    Python SDK
    5
    7
    174
    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.
    • P
      panda1234 last edited by

      trading symbol and symboltoken of banknifty-index??????

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @panda1234 last edited by

        Hi @panda1234 Please refer below link:
        https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

        W S 2 Replies Last reply Reply Quote 0
        • W
          webseos @admin last edited by

          @admin This is a 16MB File to refer anybody full of text/ Search a needle in haystack

          H C 2 Replies Last reply Reply Quote 0
          • H
            HawkEye @webseos last edited by

            @webseos
            I have used following functions:

             def __getScrips(self):
                    if self.__SCRIPS == None:
                        scripURL = 'https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json'
                        self.__SCRIPS = pd.read_json(scripURL)
                    
                    return self.__SCRIPS
            
                def getTokenFromSymbol(self, symbol):
                    scrips = self.__getScrips()
                    return scrips[scrips['symbol']==symbol].iloc[-1]['token']
                
                def getSymbolFromToken(self, token):
                    scrips = self.__getScrips()
                    return scrips[scrips['token']==token].iloc[-1]['symbol']
            

            p.s: Newbie to this SDK

            1 Reply Last reply Reply Quote 0
            • C
              charlotteemma @webseos last edited by charlotteemma

              ohlc= get_ohlc(name="BANKNIFTY25NOV21FUT", exchange="NFO")

              1 Reply Last reply Reply Quote 0
              • S
                sureAngel @admin last edited by

                @admin Can we fetch historic data for Nifty Banknifty indices? If its not available now any timeline we could expect it in.

                A 1 Reply Last reply Reply Quote 0
                • A
                  admin @sureAngel last edited by

                  @harish said in fetch banknifty index data:

                  @admin Can we fetch historic data for Nifty Banknifty indices? If its not available now any timeline we could expect it in.

                  No, Currently we dont provide this for spot.

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