NautilusTrader 1.183.0 Beta
Released on 12th January 2024 (UTC).
Enhancements
- Added
NautilusConfig.json_primitivesto convert object to Python dictionary with JSON primitive values - Added
InstrumentClass.BOND - Added
MessageBusConfiguse_trader_prefixanduse_trader_idoptions (provides more control over stream names) - Added
CacheConfig.drop_instruments_on_reset(default true to retain current behavior) - Implemented core logging interface via the
logcrate, thanks @twitu - Implemented global atomic clock in Rust (improves performance and ensures properly monotonic timestamps in real-time), thanks @twitu
- Improved Interactive Brokers adapter raising docker
RuntimeErroronly when needed (not when using TWS), thanks @rsmb7z - Upgraded core HTTP client to latest
hyperandreqwest, thanks @ayush-sb - Optimized Arrow encoding (resulting in ~100x faster writes for the Parquet data catalog)
Breaking Changes
- Changed
ParquetDataCatalogcustom data prefix fromgeneticdata_tocustom_(you will need to rename any catalog subdirs) - Changed
ComponentStateChangedArrow schema forconfigfromstringtobinary - Changed
OrderInitializedArrow schema foroptionsfromstringtobinary - Changed
OrderBookDeltasdictionary representation ofdeltasfield from JSONbytesto a list ofdict(standardize with all other data types) - Changed external message publishing stream name keys to be
trader-{trader_id}-{instance_id}-streams(with options allows many traders to publish to the same streams) - Renamed all version 2 data wrangler classes with a
V2suffix for clarity - Renamed
GenericDatatoCustomData(more accurately reflects the nature of the type) - Renamed
DataClient.subscribed_generic_datato.subscribed_custom_data - Renamed
MessageBusConfig.streamto.streams_prefix(more accurate) - Renamed
ParquetDataCatalog.generic_datato.custom_data - Renamed
TradeReporttoFillReport(more conventional terminology, and more clearly separates market data from user execution reports) - Renamed
asset_typetoinstrument_classacross the codebase (more conventional terminology) - Renamed
AssetTypeenum toInstrumentClass(more conventional terminology) - Renamed
AssetClass.BONDtoAssetClass.DEBT(more conventional terminology) - Removed
AssetClass.METAL(not strictly an asset class, more a futures category) - Removed
AssetClass.ENERGY(not strictly an asset class, more a futures category) - Removed
multiplierparam fromEquityconstructor (not applicable) - Removed
size_precision,size_increment, andmultiplierfields fromEquitydictionary representation (not applicable) - Removed
TracingConfig(now redundant with new logging implementation) - Removed
Tickerdata type and associated methods (not a type which can be practically normalized and so becomes adapter specific generic data) - Moved
AssetClass.SPORTS_BETTINGtoInstrumentClass.SPORTS_BETTING
Fixes
- Fixed logger thread leak, thanks @twitu
- Fixed handling of configuration objects to work with
StreamingFeatherWriter - Fixed
BinanceSpotInstrumentProviderfee loading key error for partial instruments load, thanks for reporting @doublier1 - Fixed Binance API key configuration parsing for testnet (was falling through to non-testnet env vars)
- Fixed TWAP execution algorithm scheduled size handling when first order should be for the entire size, thanks for reporting @pcgm-team
- Added
BinanceErrorCode.SERVER_BUSY(-1008), also added to the retry error codes - Added
BinanceOrderStatus.EXPIRED_IN_MATCHwhich is when an order was canceled by the exchange due self-trade prevention (STP), thanks for reporting @doublier1