Trading-strategy

Latest version: v0.26.2

Safety actively analyzes 723954 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 24

0.21

- Add functionality for downloading and manipulating Binance candle and lending data
to have alternative datasets to benchmark the strategies for overfit and data quality issues
- Add `resample_series()` method to work for single column pd.Series price data
- Fix `CandleUniverse.get_candles_by_pair()` (add return value)
- Fix `resample_candles()` method

0.20.18

- API update: `CandleUniverse.get_candles_by_pair()` accepts `DEXPair` besides `pair_id` as an argument
- `forward_fill()` can handle `volume` column

0.20.17

- Fix: DataFrame copy warning in `estimate_accrued_interest`
- Add: `get_price_with_tolerance(pair_name_hint)` to have better exception messages
- Fix: `CandleSampleUnavailable` exception message was tuple instead of newline separated string

0.20.16

- Add `LendingMetricUniverse.estimate_accrued_interest` so we can estimate the position cost and interest profit
in backtesting

0.20.15

- Update candle mappings so volume doesn't get set to None

0.20.14

- Internal change: move `make_clickable` to module level, so it can be reused

Page 6 of 24

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.