Skip to main content

stream_candle

Function stream_candle 

Source
pub fn stream_candle(
    instrument: &InstrumentId,
    tf: Timeframe,
    c: &Candle,
    now: Instant,
) -> Candle
Expand description

A candle of the candle stream to [Candle].

Volume is in lots, as the broker sends it (the connector multiplies by the lot size). close_ts is derived from the open time and the timeframe. The candle is the current state of a candle that may still be forming.