From d5fb56a7cd4780d2b36a57e3dc68440d5ab938f8 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Sat, 23 Dec 2023 09:56:16 +1100 Subject: [PATCH] Continue Databento integration --- nautilus_trader/adapters/databento/parsing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nautilus_trader/adapters/databento/parsing.py b/nautilus_trader/adapters/databento/parsing.py index f5069892c145..c9786f5b8825 100644 --- a/nautilus_trader/adapters/databento/parsing.py +++ b/nautilus_trader/adapters/databento/parsing.py @@ -438,10 +438,10 @@ def parse_statistics_msg( stat_type=DatabentoStatisticType(record.stat_type), update_action=DatabentoStatisticUpdateAction(record.update_action), price=Price.from_raw(record.price, USD.precision) - if record.price is not (2 * 63 - 1) # TODO: Define a constant for this + if record.price is not (2**63 - 1) # TODO: Define a constant for this else None, quantity=Quantity.from_raw(record.quantity, USD.precision) - if record.quantity is not (2 * 31 - 1) # TODO: Define a constant for this + if record.quantity is not (2**31 - 1) # TODO: Define a constant for this else None, channel_id=record.channel_id, stat_flags=record.stat_flags,