NautilusTrader 1.122.0 Beta
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.data
intoTradingStrategy.cache
. - Consolidated
TradingStrategy.execution
intoTradingStrategy.cache
. - Moved
redis
subpackage 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
InMemoryExecutionDatabase
toBypassCacheDatabase
. - Renamed
Position.relative_qty
toPosition.net_qty
. - Renamed
default_currency
tobase_currency
. - Removed
cost_currency
property fromInstrument
.
Enhancements
ExecutionClient
now has the option of calculating account state.- Unified data and execution caches into single
Cache
. - Improved configuration options and naming.
- Simplified
Portfolio
component registration. - Simplified wiring of
Cache
into components. - Added
repr
to execution messages. - Added
AccountType
enum. - Added
cost_currency
toPosition
. - Added
get_cost_currency()
toInstrument
. - Added
get_base_currency()
toInstrument
.
Fixes
- Fixed
Order.is_working
forPENDING_CANCEL
andPENDING_REPLACE
states. - Fixed loss of precision for nanosecond timestamps in Redis.
- Fixed state reconciliation when uninstantiated client.