kite.margins() returning error

gkaranam
Hi. Calling kite.margins() is giving the below error.

Traceback (most recent call last):
File "C:\Users\lenovo\OneDrive\Desktop\Bhagiram\test.py", line 9, in
margins = kite.margins(segment=None)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\kiteconnect\connect.py", line 329, in margins
return self._get("user.margins")
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\kiteconnect\connect.py", line 861, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\kiteconnect\connect.py", line 937, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.GeneralException: Message build error
Tagged:
  • sujith
    Post midnight there will be a BOD process running everyday, you can request after 7:30 AM in the morning.
Sign In or Register to comment.