Skip to main content

Algorithmic trading, token and cryptocurrency DEX trading data, for Uniswap, Aave, PancakeSwap, Sushi, Trader Joe, others

Project description

PyPI version

CI Status

pip installation works

Trading Strategy framework for Python

Trading Strategy framework is a Python framework for algorithmic trading on decentralised exchanges. It is using backtesting data and real-time price feeds from Trading Strategy Protocol.

Use cases

  • Analyse cryptocurrency investment opportunities on decentralised exchanges (DEXes)

  • Creating trading algorithms and trading bots that trade on DEXes

  • Deploy trading strategies as on-chain smart contracts where users can invest and withdraw with their wallets


Getting started

See the Getting Started tutorial and the rest of the Trading Strategy documentation. The easiest way to get started is ready Dev Container for Visual Studio Code.


Installing the package

You can install this package with

Poetry as a dependency:

poetry add trading-strategy -E direct-feed

Poetry, local development:

poetry install -E direct-feed


pip install "trading-strategy[direct-feed]" 

Note: trading-strategy package provides trading data download and management functionality only. If you want to developed automated trading strategies you need to install trade-executor package as well.



Read more documentation how to develop this package.



Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trading_strategy-0.22.5.tar.gz (238.9 kB view hashes)

Uploaded source

Built Distribution

trading_strategy-0.22.5-py3-none-any.whl (370.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page