#[repr(C)]
pub struct dxf_candle_t {
Show 15 fields pub event_flags: dxf_event_flags_t, pub index: dxf_long_t, pub time: dxf_long_t, pub sequence: dxf_int_t, pub count: dxf_double_t, pub open: dxf_double_t, pub high: dxf_double_t, pub low: dxf_double_t, pub close: dxf_double_t, pub volume: dxf_double_t, pub vwap: dxf_double_t, pub bid_volume: dxf_double_t, pub ask_volume: dxf_double_t, pub open_interest: dxf_double_t, pub imp_volatility: dxf_double_t,
}
Expand description

@brief Candle

@details Candle event with open, high, low, close prices and other information for a specific period. Candles are build with a specified CandlePeriod (#dxf_candle_type_period_attribute_t + value) using a specified CandlePrice type (#dxf_candle_price_attribute_t) with a data taken from the specified CandleExchange (A-Z) from the specified CandleSession (#dxf_candle_session_attribute) with further details of aggregation provided by CandleAlignment (#dxf_candle_alignment_attribute)

Fields§

§event_flags: dxf_event_flags_t

Transactional event flags

§index: dxf_long_t

Unique per-symbol index of this candle

§time: dxf_long_t

Timestamp of this candle in milliseconds

§sequence: dxf_int_t

Sequence number of this candle; distinguishes candles with same #time

§count: dxf_double_t

Total number of original trade (or quote) events in this candle

§open: dxf_double_t

The first (open) price of this candle

§high: dxf_double_t

The maximal (high) price of this candle

§low: dxf_double_t

The minimal (low) price of this candle

§close: dxf_double_t

The last (close) price of this candle

§volume: dxf_double_t

Total volume in this candle

§vwap: dxf_double_t

Volume-weighted average price (VWAP) in this candle

§bid_volume: dxf_double_t

Bid volume in this candle

§ask_volume: dxf_double_t

Ask volume in this candle

§open_interest: dxf_double_t

Open interest

§imp_volatility: dxf_double_t

Implied volatility

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.