Navigation

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

    Access to historic values

    Python SDK
    5
    10
    125
    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.
    • B
      bhaskarnvvs last edited by

      Hi,
      Do we have any APIs available to get historic values of indices?

      K 1 Reply Last reply Reply Quote 0
      • K
        krunal96 @bhaskarnvvs last edited by

        Hi @arun1977 ,

        This might help you:
        https://smartapi.angelbroking.com/topic/9/length-of-intraday-and-historical-data

        1 Reply Last reply Reply Quote 0
        • S
          suburangs last edited by

          getting this error while using getCandleData API Rest Request

          'DataException' object has no attribute 'message'

          R A 2 Replies Last reply Reply Quote 0
          • R
            Rajanchauhan @suburangs last edited by

            @suburangs
            post your request body snip here.

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

              Hi @suburangs said in Access to historic values:

              getting this error while using getCandleData API Rest Request
              'DataException' object has no attribute 'message'

              Post your piece of code here.

              S 1 Reply Last reply Reply Quote 0
              • S
                suburangs @Rajanchauhan last edited by

                @Rajanchauhan

                historicParam={'exchange': 'NSE', 'symboltoken': '3456', 'interval': 'ONE_DAY', 'fromdate': '2020-04-16 00:00', 'todate': '2021-04-15 23:00'}
                data=obj.getCandleData(historicParam)

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

                  @admin historicParam={'exchange': 'NSE', 'symboltoken': '3456', 'interval': 'ONE_DAY', 'fromdate': '2020-04-16 00:00', 'todate': '2021-04-15 23:00'}
                  data=obj.getCandleData(historicParam)

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

                    Hi @suburangs can try below mentioned piece of code:
                    {
                    "exchange": "NSE",
                    "symboltoken": "15083",
                    "interval": "ONE_DAY",
                    "fromdate": "2021-04-20 09:30",
                    "todate": "2021-04-29 10:00"
                    }

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

                      @admin Tried but code is breaking.

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

                        Hi @suburangs post ss of both code and error in console.

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