the product type received from kite.history() API call is same. It should be converted into new product type. Also, it is not refreshed into the orderbook.
Am I missing something? One can try with this code after the kws.connect(threaded=True). On my system in 10 secs about 25000 (25k) twenty five thousand while_ticks functions were created. # Infinite