pub fn parse_trade_tick(
raw: &OKXTrade,
instrument_id: InstrumentId,
price_precision: u8,
size_precision: u8,
ts_init: UnixNanos,
) -> Result<TradeTick>
Expand description
Parses an OKX trade record into a Nautilus TradeTick
.
ยงErrors
Returns an error if the price or quantity strings cannot be parsed, or if
TradeTick::new_checked
validation fails.