From e87e505f16c7812f64ef24adfa5ef941dd28e8ef Mon Sep 17 00:00:00 2001 From: George Hill Date: Fri, 6 Sep 2024 20:09:15 +0100 Subject: [PATCH] fix quote parsing --- nautilus_core/persistence/src/arrow/quote.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nautilus_core/persistence/src/arrow/quote.rs b/nautilus_core/persistence/src/arrow/quote.rs index 313c2e01a69b..894a78432236 100644 --- a/nautilus_core/persistence/src/arrow/quote.rs +++ b/nautilus_core/persistence/src/arrow/quote.rs @@ -151,7 +151,7 @@ impl DecodeFromRecordBatch for QuoteTick { let ts_event: UnixNanos = ts_event_values.value(i).into(); let ts_init = ts_init_values.value(i).into(); - let instrument_id_ = instrument_id; + let mut instrument_id_ = instrument_id; if !instrument_id.symbol.as_str().ends_with("IDEALPRO=CASH") { @@ -181,7 +181,7 @@ impl DecodeFromRecordBatch for QuoteTick { sec_type = parts[3] ); - let instrument_id_ = InstrumentId::from(instrument_id_str.as_str()); + instrument_id_ = InstrumentId::from(instrument_id_str.as_str()); }