Skip to content

v2.4.2

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 05:53

Fixed

  • Fixed a crash in simulate() and simulate_portfolio() on pandas 2.x when a strategy returns categorical underlying_symbol values. All four built-in trade selectors now consider only symbol/date pairs present in the data. (#323)

Migration note

  • Custom wrappers around short_calls or short_puts that return unsigned premiums must declare their short direction explicitly. Pass StrategySpec(name="short_calls", function=wrapped_short_calls, unsigned_short=True) to simulate() (or use it as the strategy in simulate_portfolio()). A preserved function name alone no longer identifies a short strategy. Direct calls to the built-ins and functools.partial applied to them are unchanged. (#317)

Full Changelog: v2.4.1...v2.4.2