Navigation

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

    Best posts made by jupyter

    • Not able to fetch BANKNIFTY data using HistoricalAPI

      Hi,

      I am not able to fetch BANKNIFTY data using HistoricalAPI.

      try:
        historicParam={
        "exchange": "NSE",
        "symboltoken": "26009",
        "interval": "ONE_MINUTE",
        "fromdate": "2022-02-30 09:15", 
        "todate": "2022-02-30 09:25"
        }
        print(obj.getCandleData(historicParam))
      except Exception as e:
        print("Historic Api failed: {}".format(e.message))
      

      OUTPUT:

      {'status': True, 'message': 'SUCCESS', 'errorcode': '', 'data': None}
      

      I am not sure why the 'data' is None. Do let me know if there is anything wrong in the code?

      Thanks in advance!!

      posted in Python SDK
      J
      jupyter