It looks like you're new here. If you want to get involved, click one of these buttons!
Traceback (most recent call last):
File "C:\Users\DJain\AppData\Local\Temp/ipykernel_26276/979208526.py", line 1, in <module>
pos.my_positions(kite)
File "C:\Users\DJain\Options\trade_management.py", line 69, in my_positions
margins = self._kite.margins()
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\connect.py", line 324, in margins
return self._get("user.margins")
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\connect.py", line 837, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\connect.py", line 913, in _request
raise exp(data["message"], code=r.status_code)
GeneralException: Message build error
This is a response from OMS. During beginning of the day (BOD) process, data is erased. On the new OMS, you won't see this error.