Trading-strategy

Latest version: v0.26

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

Scan your dependencies

Page 1 of 24

0.26

- Add: `Client.fetch_tvl()` endpoint to stream TVL data efficiently
- Add: `365d` time bucket

0.25.4

- Update: Use correct CoinGecko domain for Pro API
- Update: Pass original HTTP response request around for `CoingeckoError` so caller can diagnose Coingecko failures

0.25.3

- Add: Unichain
- Add: `Client.fetch_token_metadata`: Load token metadata for given token addresses, including Coingecko and TokenSniffer data
- Add: `token_extra_data.load_token_metadata`: Load and cache token metadata for given DataFrame of trading pairs
- Add: `token_filter.filter_by_token_sniffer_score`: Load and cache token metadata for given DataFrame of trading pairs

0.25.2

- Fix: Missing `chains` submodule update from the previous release

0.25.1

- Fix: Missing `chains` submodule update from the previous release

0.25

- Add: `Client.fetch_token_metadata(query_type=OHLCVCandleType.tvl_v2)` option to load /WETH quoted TVL data for Uniswap v3
- Add: `utils.token_extra_data` to load additional trading pair data
- Add: `load_extra_metadata` to load buy and sell tax for given trading pairs
- Add: `CandleUniverse(autoheal_pair_limit)` and reworked how to mitigate MEV issues on pricing data
- Add: `heal_anomalies` to get rid of MEV anomalies, second attempt - handles anomalies detection and smoothing out better
- Add: `GroupedCandleUniverse.calculate_returns` to easily get returns of each trading pair
- Add: `Client.fetch_tvl_by_pair_ids(query_type=OHLCVCandleType.tvl_v2)` option to load /WETH quoted TVL data for Uniswap v3
- Change: Use `orjson` to faster serialisation of some data

Page 1 of 24

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.