zfin/src/models/candle.zig

14 lines
390 B
Zig

const Date = @import("date.zig").Date;
/// A single OHLCV bar, normalized from any provider.
pub const Candle = struct {
date: Date,
open: f64,
high: f64,
low: f64,
close: f64,
/// Close price adjusted for splits and dividends (for total return calculations).
/// If the provider does not supply this, it equals `close`.
adj_close: f64,
volume: u64,
};