Using the method kite.holdings() I am fetching my holdings on a daily basis before market opens. As I buy and sell regularly, this changes often so it makes more sense to get the latest holdings from Kite.
I have noticed that the instrument token in holdings is changing.
For eg: Yesterday, the instrument token for AARTIIND yesterday was 1793 Today, the instrument token was 134197252 I am holding this since 2020-03-23
Yesterday the instrument token for AXISBANK was 1510401 Today, the instrument token was 136247044 I am holding this since 2020-04-01
I have some trades which are to be sold and some which are to be kept. For those that have to be sold, I would like to use the Orders API to place trades into the market.
This is what I tried doing which did not work. I got the list of all the tokens and put them into a python file. My longterm list will not change.
https://support.zerodha.com/category/trading-and-markets/kite-web-and-mobile/holdings/articles/default-exchange-on-kite