What are the datas required for a json response if I want my candlestick chart to have different sets of time interval 1m, 5m, 30m, 4hours, 6hours, 12hours, 1day and 1 week? In my database I’m storing individual crypto transactions with epoch timestamp and price. Do I need to output ohlc for the interval that I want for my json output or do I just need to output the price with the timestamp and highcharts will plot it for me?
Let’s say for the intervals that I stated above, do I query my data for 8 different time set with ohlc
or
Query all the transactions with price and timestamp will do?
Thanks.