Candlestick (OHLCV) bar data.
Represents a single candlestick with open, high, low, close prices and volume for a time period.
Fields
timestamp- Period start time in millisecondsopen- Opening pricehigh- Highest pricelow- Lowest priceclose- Closing pricevolume- Trading volume in base currency
Summary
Types
Functions
Creates an OHLCV struct from a list.
CCXT exchanges return candles as [timestamp, open, high, low, close, volume].
Examples
CCXT.OHLCV.from_list([1_680_000_000_000, 28000.0, 28500.0, 27800.0, 28200.0, 150.5])
@spec schema() :: map()
JSON Schema for the OHLCV unified type.