Repository navigation
Fixed
- Fixed a crash in
simulate()andsimulate_portfolio()on pandas 2.x when a strategy returns categoricalunderlying_symbolvalues. All four built-in trade selectors now consider only symbol/date pairs present in the data. (#323)
Migration note
- Custom wrappers around
short_callsorshort_putsthat return unsigned premiums must declare their short direction explicitly. PassStrategySpec(name="short_calls", function=wrapped_short_calls, unsigned_short=True)tosimulate()(or use it as the strategy insimulate_portfolio()). A preserved function name alone no longer identifies a short strategy. Direct calls to the built-ins andfunctools.partialapplied to them are unchanged. (#317)
Full Changelog: v2.4.1...v2.4.2