Skip to main content

quote

Function quote 

Source
pub fn quote(
    value: Value,
    instrument: &BinaryOption,
    ts_init: UnixNanos,
) -> Result<Option<QuoteTick>>
Expand description

Builds one quote tick from a ticker payload.

Returns Ok(None) when either side lacks a price or has a zero size. A negative size is an error.

ยงErrors

Returns an error if the payload is malformed, the quote is crossed, a price or size is outside its exact domain, or the timestamp is missing or invalid.