Call API every second

I want to sell product at live price along with I want to keep history of product price…If I will take control of price at user side for history management then it will be mismatch data from different data from different user at backend side