Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. whemant
    3. Topics
    W
    • Profile
    • Following 0
    • Followers 3
    • Topics 6
    • Posts 21
    • Best 1
    • Groups 0

    Topics created by whemant

    • W

      Stop Loss Gap Requirement for ROBO Orders
      General Discussion • • whemant

      1
      0
      Votes
      1
      Posts
      17
      Views

      No one has replied

    • W

      Attempting to resubscribe/reconnect
      Python SDK • • whemant

      4
      0
      Votes
      4
      Posts
      44
      Views

      W

      @0xc0de Yes, I managed to fix it. There was a small error in my code. Strangely the previous version of smartapi-python did not have any issues with this error, but the new version did. As soon as I installed the new version, the problem started appearing.

      It is easy to check if your code also has some existing issues. In the smartWebSocketV2, in the _on_error function, print the error message, and it will show what is wrong with your code:

      def _on_error(self, wsapp, error):
      print(f'error: {error}')

    • W

      Websocket to fetch options data
      Python SDK • • whemant

      5
      0
      Votes
      5
      Posts
      39
      Views

      W

      @Moderator_1
      It worked thanks.

    • W

      Historic API not working
      Test • • whemant

      32
      16
      Votes
      32
      Posts
      259
      Views

      T

      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'
    • W

      FINNIFTY token not available
      Test • • whemant

      19
      0
      Votes
      19
      Posts
      299
      Views

      M

      Hello @whemant,

      Apologies for the delayed response.
      This issue has been fixed pls check.

      Thank you.

      Regards
      SmartAPI Team

    • W

      Error while connecting to smartAPI
      Python SDK • • whemant

      5
      0
      Votes
      5
      Posts
      52
      Views

      A

      HI @whemant This has been fixed.