functions implemented in read_stock in Thyme