Navigation

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

    Historic API not working

    Test
    0
    32
    263
    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.
    • P
      Phanilbb last edited by

      facing similar issue..

      1 Reply Last reply Reply Quote 1
      • V
        Ved last edited by

        i have 403 error. I fetch 2 time per minute. please increase limit

        1 Reply Last reply Reply Quote 1
        • L
          laskshmi last edited by

          Same issue here too.

          Access denied because of exceeding access rate
          

          9894182e-1e9b-47ef-9405-b8e4a2759ddf-image.png

          @admin @administrators Please take a look

          R 1 Reply Last reply Reply Quote 3
          • P
            prajju809 last edited by

            i am also facing same issue

            1 Reply Last reply Reply Quote 0
            • R
              ramanagajula1999 last edited by

              @admin , I am able to get the LastTradingPrice of an instrument, But History API is not working for me as well. Can you resolve the history API issue asap please.?

              1 Reply Last reply Reply Quote 0
              • R
                ramanagajula1999 @laskshmi last edited by

                @admin123 @admin , facing the similar issue. Any update on this issue?

                1 Reply Last reply Reply Quote 0
                • N
                  NaitikJyani last edited by

                  facing similar issue

                  1 Reply Last reply Reply Quote 1
                  • R
                    ramesh123 last edited by

                    @admin i am also facing similar issue kindly resolve

                    1 Reply Last reply Reply Quote 0
                    • Y
                      yogeshwadhwani last edited by

                      Any update?

                      1 Reply Last reply Reply Quote 0
                      • P
                        pkiitjee last edited by

                        Not working for me also. Kindly resolve the issue ASAP.

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

                          Facing Same issue since Yesterday , no response from Admin ...Do we have any clue if someone is out here from Angel to help us on this issue?

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

                            188 data = json.loads(r.content.decode("utf8"))
                            190 except ValueError:

                            failed while getting historical data

                            1 Reply Last reply Reply Quote 0
                            • A
                              aashish verma last edited by

                              2023-02-22 12:44:35.901798 : Start task in the background
                              {'task': 'hb', 'channel': '', 'token': '0894940755', 'user': 'XXXXXX', 'acctid': 'XXXXXXX'}
                              HeartBeat Sending Failed
                              2023-02-22 12:44:39.117428 : Start task in the background
                              {'task': 'hb', 'channel': '', 'token': '0894940755', 'user': 'XXXXXX', 'acctid': 'XXXXX'}
                              HeartBeat Sending Failed

                              getting this error please help

                              1 Reply Last reply Reply Quote 0
                              • N
                                nitish.bane last edited by

                                Looks like issue is resolved now. I am able to pull historical data. Thanks @admin

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

                                  I was facing the same issue from last 2 days. Now it seems it starts working fine. Need to test in live market though.

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    ThetaDecay last edited by

                                    Today whole day I got errors. No trade was placed today
                                    Leaving Angel and shifting to ICICI or Zerodha
                                    last 2 days facing issue
                                    Cant beleive big broker like u can have this for 2 full days!!!!!

                                    22-Feb-23 09:45:12 :     fetch_ohlc_angel() - Getting candles
                                    22-Feb-23 09:45:13 :     fetch_ohlc_angel() - Exception occured while fetching OHLC for ticker:NIFTY23FEB23FUT from 2023-02-20 09:45 to 2023-02-22 09:45
                                    Traceback (most recent call last):
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 191, in _request
                                        data = json.loads(r.content.decode("utf8"))
                                      File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
                                        return _default_decoder.decode(s)
                                      File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
                                        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                                      File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
                                        raise JSONDecodeError("Expecting value", s, err.value) from None
                                    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
                                    
                                    During handling of the above exception, another exception occurred:
                                    
                                    Traceback (most recent call last):
                                      File "/home/a/Desktop/angel_st/src/angel_main.py", line 443, in fetch_ohlc_angel
                                        data = obj.getCandleData(historic_param)
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 416, in getCandleData
                                        getCandleDataResponse = self._postRequest(
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 225, in _postRequest
                                        return self._request(route, "POST", params)
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 194, in _request
                                        raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
                                    smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'
                                    22-Feb-23 09:45:13 :     fetch_ohlc_angel() - Exception: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'
                                    Traceback (most recent call last):
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 191, in _request
                                        data = json.loads(r.content.decode("utf8"))
                                      File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
                                        return _default_decoder.decode(s)
                                      File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
                                        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                                      File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
                                        raise JSONDecodeError("Expecting value", s, err.value) from None
                                    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
                                    
                                    During handling of the above exception, another exception occurred:
                                    
                                    Traceback (most recent call last):
                                      File "/home/a/Desktop/angel_st/src/angel_main.py", line 443, in fetch_ohlc_angel
                                        data = obj.getCandleData(historic_param)
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 416, in getCandleData
                                        getCandleDataResponse = self._postRequest(
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 225, in _postRequest
                                        return self._request(route, "POST", params)
                                      File "/home/a/.local/lib/python3.10/site-packages/smartapi/smartConnect.py", line 194, in _request
                                        raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
                                    smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'
                                    
                                    1 Reply Last reply Reply Quote 1
                                    • First post
                                      Last post