Here is the debugging stack trace. I hv executed each line one by one and eventually, after obtaining kite object successfully, when I try to run any command on kite object such kite.ltp, kite.quote, kite.historical etc, I get HTTP 400
Here is the stacktrace:
> /home/ag/xts-pythonclient-api-sdk-main/c1-ash.py(85)() -> kite = KiteApp(enctoken=enctoken) (Pdb) n > /home/ag/xts-pythonclient-api-sdk-main/c1-ash.py(88)() -> if kite.root_url is None: (Pdb) kite
Here is the debugging stack trace. I hv executed each line one by one and eventually, after obtaining kite object successfully, when I try to run any command on kite object such kite.ltp, kite.quote, kite.historical etc, I get HTTP 400
Here is the stacktrace:
> /home/ag/xts-pythonclient-api-sdk-main/c1-ash.py(85)()
-> kite = KiteApp(enctoken=enctoken)
(Pdb) n
> /home/ag/xts-pythonclient-api-sdk-main/c1-ash.py(88)()
-> if kite.root_url is None:
(Pdb) kite
(Pdb) kite.root_url
'https://api.kite.trade'
(Pdb) n
> /home/ag/xts-pythonclient-api-sdk-main/c1-ash.py(92)()
-> curpos = kite.positions()
(Pdb) s
--Call--
> /home/ag/xts-pythonclient-api-sdk-main/kite_trade.py(128)positions()
-> def positions(self):
(Pdb) n
> /home/ag/xts-pythonclient-api-sdk-main/kite_trade.py(129)positions()
-> positions = self.session.get(f"{self.root_url}/portfolio/positions", headers=self.headers).json()["data"]
(Pdb) self.session.get(f"{self.root_url}/portfolio/positions", headers=self.headers)