PostgreSQL LAG function for market price data change in percent

I have a market price logging table over 300 columns system logs data for every 15 seconds.. 4 rows for every minute _id the_datetime column1 column2 column3 1 2021-12-26 19:05:00…