Navigation

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

    Not able to get nifty50 historic data

    Python SDK
    0
    4
    33
    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.
    • K
      kingshuk last edited by

      Hi,

      Need some help on ow to fetch nifty50 historic data.

      getCandleData returns empty dataset for the query below. Can you please guide what needs to be changed to get the nifty50 data.

      {
      'exchange': 'NSE',
      'tradingsymbol': 'NIFTY50',
      'symboltoken': '26000',
      'interval': 'FIVE_MINUTE',
      'fromdate': '2021-06-03 00:00', '
      todate': '2021-06-03 09:21'
      }

      Reagrds,
      Kingshuk

      Mnagesh 1 Reply Last reply Reply Quote 0
      • Mnagesh
        Mnagesh @kingshuk last edited by

        @kingshuk
        exchange is NFO
        token = "56734"
        symbol = "NIFTY30JUN22FUT"

        i am not sure which api function you are calling
        note:
        token and symbol changes every month

        Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

        K 1 Reply Last reply Reply Quote 0
        • K
          kingshuk @Mnagesh last edited by

          @Mnagesh I am using python api - getCandleData

          I am trying to get candle data for index NIFTY50 not for any options.

          The call to with the following is returning empty data set. Can you please give me some clue about how to fix it

          {
          'exchange': 'NSE',
          'tradingsymbol': 'NIFTY50',
          'symboltoken': '56734',
          'interval': 'FIVE_MINUTE',
          'fromdate': '2021-06-21 00:00',
          'todate': '2021-06-21 09:21'
          }

          Regards,
          Kingshuk

          Mnagesh 1 Reply Last reply Reply Quote 0
          • Mnagesh
            Mnagesh @kingshuk last edited by

            @kingshuk
            Three mistakes

            Symbol u should use left side - not tradingsymbol

            Similarly u should use only token on left side.

            Nifty50 is not symbol.

            Ref my previous reply

            Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

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