NautilusTrader 1.189.0 Beta
Released on 15th March 2024 (UTC).
Enhancements
- Implemented Binance order book snapshot rebuilds on websocket reconnect (see integration guide)
- Added additional validations for
OrderMatchingEngine(will now raise aRuntimeErrorwhen a price or size precision forOrderFilleddoes not match the instruments precisions) - Added
LoggingConfig.use_pyo3option for pyo3 based logging initialization (worse performance but allows visibility into logs originating from Rust) - Added
exchangefield toFuturesContract,FuturesSpread,OptionsContractandOptionsSpread(optional)
Breaking Changes
- Changed Arrow schema adding
exchangefield forFuturesContract,FuturesSpread,OptionsContractandOptionsSpread
Fixes
- Fixed
MessageBushandling of subscriptions after a topic has been published on (was previously dropping messages for these late subscribers) - Fixed
MessageBushandling of subscriptions under certain edge cases (subscriptions list could be resized on iteration causing aRuntimeError) - Fixed
Throttlerhandling of sending messages after messages have been dropped, thanks @davidsblom - Fixed
OrderBookDelta.to_pyo3_listusing zero precision from clear delta - Fixed
DataTransformer.pyo3_order_book_deltas_to_record_batch_bytesusing zero precision from clear delta - Fixed
OrderBookMboandOrderBookMbpintegrity check when crossed book - Fixed
OrderBookMbperror when attempting to add to a L1_MBP book type (now raisesRuntimeErrorrather than panicking) - Fixed Interactive Brokers connection error logging (#1524), thanks @benjaminsingleton
- Fixed
SimulationModuleConfiglocation and missing re-export fromconfigsubpackage - Fixed logging
StdoutWriterfrom also writing error logs (writers were duplicating error logs) - Fixed
BinanceWebSocketClientto new specification which requires responding to pings with a pong containing the pings payload - Fixed Binance Futures
AccountBalancecalculations based on wallet and available balance - Fixed
ExecAlgorithmcircular import issue for installed wheels (importing fromexecution.algorithmwas a circular import)