Navigation

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

    historical values

    Python SDK
    4
    5
    96
    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.
    • H
      hemant last edited by

      historicParam={
      "exchange": "NSE",
      "symboltoken": "3045",
      "interval": "MINUTE",
      "fromdate": "2021-03-01 09:15",
      "todate": "2021-03-28 09:16"
      }
      smartApi.getCandleData(historicParam)

      We get error ataException: Couldn't parse the JSON response received from the server: b''. Any solutionRe: Access to historic values

      S 1 Reply Last reply Reply Quote 0
      • S
        Surya 1 @hemant last edited by

        @hemant you interval has to be ONE_MINUTE and not MINUTE

        punit A 2 Replies Last reply Reply Quote 0
        • punit
          punit @Surya 1 last edited by

          @rajanprabu Correct that 'MINUTE' was in the sample snippet in github, hope @admin can correct it.

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

            Hi @rajanprabu we have noticed this we will update it asap.

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

              hi @hemant The change is implemented in the documentation.

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