candlestick_agg() instead.
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| ts | TIMESTAMPTZ | - | ✔ | Timestamp associated with stock price |
| open | DOUBLE PRECISION | - | ✔ | Opening price of candlestick |
| high | DOUBLE PRECISION | - | ✔ | High price of candlestick |
| low | DOUBLE PRECISION | - | ✔ | Low price of candlestick |
| close | DOUBLE PRECISION | - | ✔ | Closing price of candlestick |
| volume | DOUBLE PRECISION | - | ✔ | Total volume of trades during the candlestick period |
Returns
An object storing(timestamp, value) pairs for each of the opening, high, low, and closing prices, in addition to
information used to calculate the total volume and Volume Weighted Average Price.