NautilusTrader 1.122.0 Beta - Release Notes
This release includes numerous breaking changes with a view to enhancing the core
functionality and API of the platform. The data and execution caches have been
unified for simplicity. There have also been large changes to the accounting
functionality, with 'hooks' added in preparation for accurate calculation and
handling of margins.
Breaking Changes
- Renamed
Account.balance()toAccount.balance_total(). - Consolidated
TradingStrategy.dataintoTradingStrategy.cache. - Consolidated
TradingStrategy.executionintoTradingStrategy.cache. - Moved
redissubpackage intoinfrastructure. - Moved some accounting methods back to
Instrument. - Removed
Instrument.market_value(). - Renamed
Portfolio.market_values()toPortfolio.net_exposures(). - Renamed
Portfolio.market_value()toPortfolio.net_exposure(). - Renamed
InMemoryExecutionDatabasetoBypassCacheDatabase. - Renamed
Position.relative_qtytoPosition.net_qty. - Renamed
default_currencytobase_currency. - Removed
cost_currencyproperty fromInstrument.
Enhancements
ExecutionClientnow has the option of calculating account state.- Unified data and execution caches into single
Cache. - Improved configuration options and naming.
- Simplified
Portfoliocomponent registration. - Simplified wiring of
Cacheinto components. - Added
reprto execution messages. - Added
AccountTypeenum. - Added
cost_currencytoPosition. - Added
get_cost_currency()toInstrument. - Added
get_base_currency()toInstrument.
Fixes
- Fixed
Order.is_workingforPENDING_CANCELandPENDING_REPLACEstates. - Fixed loss of precision for nanosecond timestamps in Redis.
- Fixed state reconciliation when uninstantiated client.