Struct fxoanda_definitions::CandlestickData
source · pub struct CandlestickData {
pub h: Option<f32>,
pub c: Option<f32>,
pub l: Option<f32>,
pub o: Option<f32>,
}
Fields§
§h: Option<f32>
The highest price in the time-range represented by the candlestick. format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
c: Option<f32>
The last (closing) price in the time-range represented by the candlestick. format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
l: Option<f32>
The lowest price in the time-range represented by the candlestick. format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
o: Option<f32>
The first (open) price in the time-range represented by the candlestick. format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
Implementations§
source§impl CandlestickData
impl CandlestickData
pub fn new() -> CandlestickData
sourcepub fn with_h(self, x: f32) -> Self
pub fn with_h(self, x: f32) -> Self
The highest price in the time-range represented by the candlestick. format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
- param f32
- return CandlestickData
sourcepub fn with_c(self, x: f32) -> Self
pub fn with_c(self, x: f32) -> Self
The last (closing) price in the time-range represented by the candlestick. format: A decimal number encodes as a string. The amount of precision provided depends on the Instrument.
- param f32
- return CandlestickData