pub struct LatestCandlesQuery {
pub candle_specifications: Vec<CandleSpecification>,
pub units: Option<Decimal>,
pub smooth: Option<bool>,
pub daily_alignment: Option<i64>,
pub alignment_timezone: Option<String>,
pub weekly_alignment: Option<WeeklyAlignment>,
}Expand description
Query parameters for latest_candles.
Fields§
§candle_specifications: Vec<CandleSpecification>List of candle specifications to get pricing for. [required]
units: Option<Decimal>The number of units used to calculate the volume-weighted average bid and ask prices in the returned candles. [default=1]
smooth: Option<bool>A flag that controls whether the candlestick is “smoothed” or not. A smoothed candlestick uses the previous candle’s close price as its open price, while an unsmoothed candlestick uses the first price from its time range as its open price. [default=False]
daily_alignment: Option<i64>The hour of the day (in the specified timezone) to use for granularities that have daily alignments. [default=17, minimum=0, maximum=23]
alignment_timezone: Option<String>The timezone to use for the dailyAlignment parameter. Candlesticks with daily alignment will be aligned to the dailyAlignment hour within the alignmentTimezone. Note that the returned times will still be represented in UTC. [default=America/New_York]
weekly_alignment: Option<WeeklyAlignment>The day of the week used for granularities that have weekly alignment. [default=Friday]