Algorithmic trading data for cryptocurrencies and DEXes like Uniswap, Aave and PancakeSwap
Project description
Trading Strategy framework for Python
Trading Strategy framework is a Python framework for algorithmic trading on decentralised exchanges.
- Download decentralised finance market data sets
- Develop and backtest trading strategies in Jupyter Notebook
- Live trade execution for onchain trading
- Smart contract vault support for turning your trading strategy to a third-party investable vault
The trading-strategy
library provides data fetching for backtesting and live trading.
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
Features
-
Supports multiple blockchains like Ethereum mainnet, Binance Smart Chain and Polygon
-
Access trading data from on-chain decentralised exchanges like SushiSwap, QuickSwap and PancakeSwap
-
Integration with Jupyter Notebook for easy manipulation of data. See example notebooks.
-
Write algorithmic trading strategies for decentralised exchange
Getting started
See the Getting Started repository and the rest of the Trading Strategy documentation.
Prerequisites
-
Python 3.10
-
Understanding Python package management and installation (unless using Dev Container from teh above)
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:
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.
Documentation
Community
Read more documentation how to develop this package.
License
GNU AGPL 3.0.
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
Built Distribution
File details
Details for the file trading_strategy-0.24.1.tar.gz
.
File metadata
- Download URL: trading_strategy-0.24.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed4e0574ddf1c96045b7eb8d1852904971373053a98c3b2fd8bd94aa86451bd |
|
MD5 | ac1ab352ec06d2387f41f7a2118ccd91 |
|
BLAKE2b-256 | 715be06cf39c6f06798f82cf20ae1e8ac145611d7eee02ad89c40502321964da |
File details
Details for the file trading_strategy-0.24.1-py3-none-any.whl
.
File metadata
- Download URL: trading_strategy-0.24.1-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2200ad96c7b87a6131483ffc7602fa7413f29bef2ed42560f0856f35b047109c |
|
MD5 | a7077243d9dd2ba8763a8d450728815b |
|
BLAKE2b-256 | fed425983c40e34e1613912522b31b83a66e47a6213973edbd7dd8d1935af1ba |