Navigation

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

    SmartConnect getOIData throws blank results

    Python SDK
    0
    2
    6
    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.
    • S
      S63128103 last edited by

      def historicaldata():
      try:
      historicParam={
      "exchange" : "NFO",
      "symboltoken" : "101931",
      "interval" : "THREE_MINUTE",
      "fromdate" : "2024-12-30 09:20",
      "todate" : "2024-12-30 09:21",
      }

          return smartApi.getOIData(historicParam)
      

      Above function returns blank output. It should throw or show some OI data. Please help.

      Output ->

      "status": true,
      "message": "SUCCESS",
      "errorcode": "",
      "data": [ ]

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

        @S63128103 it is returning blank because no trades have happened in the contract at the time of writing this response. You can check the same on the Angel One's chart.

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