What each value represents
A single OHLCV bar describes one interval of time. The open is the price at the start of the interval and the close is the price at the end, while the high and low mark the extreme prices reached in between. Volume is the total quantity traded during the interval. Together these values record where the price started, where it finished, how far it moved, and how much activity occurred.
- Open: the first traded price in the interval.
- High: the highest traded price in the interval.
- Low: the lowest traded price in the interval.
- Close: the last traded price in the interval.
- Volume: the total quantity traded during the interval.
Why interval bars are used
Markets generate a continuous stream of individual trades, often thousands per second for an actively traded symbol. Storing and rendering every trade is costly and difficult to interpret. A bar condenses an entire interval into a single fixed-size record, which keeps historical data compact, comparable across symbols, and fast to chart. The trade-off is granularity: once trades are aggregated into a bar, the order in which they occurred is no longer recoverable, and only the four price points and the total volume remain.
Choosing an interval
The appropriate interval depends on the time horizon being analyzed. Intraday analysis typically uses seconds or minutes, swing analysis uses hours or days, and long-term research uses days, weeks, or months. A common approach is to load daily bars for a broad view and switch to minute bars for closer inspection. Shorter intervals produce far more records for the same date range, which increases storage and transfer requirements.
OHLCV and the live price
A live quote reflects the current price, whereas an OHLCV bar summarizes a completed or in-progress interval. The two are typically combined: historical bars provide context, and a live feed updates the most recent bar as it forms. The close of the current bar continues to change until the interval ends, at which point the bar is finalized and a new one begins. This is why the most recent candle on a live chart appears to move continuously.
OHLCV on SiftingIO
SiftingIO serves historical OHLCV bars over REST under one JSON schema for stocks, forex, crypto, and commodities, with identical field names and timestamp conventions in every market. A request specifies a symbol, an interval, and a date range, and returns an array of bars suitable for charting or backtesting. For live data, the latest prices stream over WebSocket, allowing the current bar to be formed client-side, so historical and live data share one credential and one structure.