Reputation: 1910
I have a table with market data. The table structure looks like this:
symbol | side | price | amount | timestamp |
---|---|---|---|---|
BTC-USD | buy | 35831.56 | 0.00051151 | 2023-11-15T10:42:11.754626Z |
I need to aggregate prices for a given symbol by time intervals. In each time interval, I need to know: the opening price, closing price, maximum price and minimum price.
Upvotes: 2
Views: 162