Skip to main content

parse_quote_tick

Function parse_quote_tick 

Source
pub fn parse_quote_tick(
    quote: &Quote,
    instrument: &InstrumentAny,
) -> Result<QuoteTick>
Expand description

Converts a best bid and ask, taking ts_event from time_exchange and ts_init from time_coinapi.

ยงErrors

Returns an error if a value is finer than the instrument precision or a timestamp is invalid.