yeah, I understand that. kite.orders() gives all the orders that were placed. So, it becomes a bit confusing. I am thinking that i will have to create a dictionary that stores all the orders with keys being stock name. then write the order details i…