Skip to content

Commit

Permalink
Fix CurrencyPair.from_pyo3_c lot_size conversion (#1597)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipmacek authored Apr 20, 2024
1 parent 8dd3c5f commit 6070ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nautilus_trader/model/instruments/currency_pair.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ cdef class CurrencyPair(Instrument):
size_precision=pyo3_instrument.size_precision,
price_increment=Price.from_raw_c(pyo3_instrument.price_increment.raw, pyo3_instrument.price_precision),
size_increment=Quantity.from_raw_c(pyo3_instrument.size_increment.raw, pyo3_instrument.size_precision),
lot_size=Quantity.from_str_c(pyo3_instrument.lot_size) if pyo3_instrument.lot_size is not None else None,
lot_size=Quantity.from_raw_c(pyo3_instrument.lot_size.raw,pyo3_instrument.lot_size.precision) if pyo3_instrument.lot_size is not None else None,
max_quantity=Quantity.from_raw_c(pyo3_instrument.max_quantity.raw, pyo3_instrument.max_quantity.precision) if pyo3_instrument.max_quantity is not None else None,
min_quantity=Quantity.from_raw_c(pyo3_instrument.min_quantity.raw, pyo3_instrument.min_quantity.precision) if pyo3_instrument.min_quantity is not None else None,
max_notional=Money.from_str_c(str(pyo3_instrument.max_notional)) if pyo3_instrument.max_notional is not None else None,
Expand Down

0 comments on commit 6070ce8

Please sign in to comment.