Trading-strategy

Latest version: v0.25.4

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

Scan your dependencies

Page 1 of 24

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

0.24.4

- Add: `wrangle.normalise_volume` to deal with different volume formats of Uniswap v2 and v3
- Add: Support for Coingecko data loading and metadata cross referencing. See `tradingstrategy.alternative_data.coingecko`.
- Add: `tradingstrategy.alternative_data.coingecko.categorise_pairs()` to tag trading pair data with their CoinGecko category
- Add: `deduplicate_pairs_by_volume()` to make it easier to construct trading pair baskets from open-ended universes
- Add: `Client.fetch_top_pairs(TopPairMethod.by_token_addresses)` - query the best trading pairs and token tax for given token addresses

Page 1 of 24

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.