Apart from the python stuff ; You are missing only on one point. you are not storing the userinfo aquired from GenerateSession external to your scripting enviornment. so that it can be retrieved when…
@RP3436 Preserving the instance object is a *bad* idea and you shouldn't be storing the object anywhere. When you refresh your ipython kernel (jupyter notebook is a frontend for ipy kernel) releases …
You can get instruments from `instruments` call in Python client. Here is a documentation - https://kite.trade/docs/connect/v3/market-quotes/#instruments