[![PyPI version](https://badge.fury.io/py/trading-strategy.svg)](https://badge.fury.io/py/trading-strategy)
[![CI Status](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/python-app.yml/badge.svg)](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/python-app.yml)
[![pip installation works](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/pip-install.yml/badge.svg)](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/pip-install.yml)
<a href="https://tradingstrategy.ai">
<img src="https://raw.githubusercontent.com/tradingstrategy-ai/trading-strategy/master/logo.svg" width="384">
</a>
# 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](https://tradingstrategy.ai/trading-view/backtesting) and [real-time price feeds](https://tradingstrategy.ai/trading-view)
from [Trading Strategy Protocol](https://tradingstrategy.ai/).
# Use cases
* Analyse cryptocurrency investment opportunities on [decentralised exchanges (DEXes)](https://tradingstrategy.ai/trading-view/exchanges)
* 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](https://tradingstrategy.ai/trading-view/ethereum),
[Binance Smart Chain](https://tradingstrategy.ai/trading-view/binance) and
[Polygon](https://tradingstrategy.ai/trading-view/polygon)
* Access trading data from on-chain decentralised exchanges like
[SushiSwap](https://tradingstrategy.ai/trading-view/ethereum/sushi), [QuickSwap](https://tradingstrategy.ai/trading-view/polygon/quickswap) and [PancakeSwap](https://tradingstrategy.ai/trading-view/binance/pancakeswap-v2)
* Integration with Jupyter Notebook for easy manipulation of data.
See [example notebooks](https://tradingstrategy.ai/docs/programming/code-examples/index.html).
* Write [algorithmic trading strategies](https://tradingstrategy.ai/docs/programming/strategy-examples/index.html) for decentralised exchange
# Getting started
See [the Getting Started repository](https://github.com/tradingstrategy-ai/getting-started) and the rest of the [Trading Strategy documentation](https://tradingstrategy.ai/docs/).
# Prerequisites
* Python 3.10
* [Understanding Python package management and installation](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/)
(unless using Dev Container from teh above)
# Installing the package
You can install this package with
[Poetry](https://python-poetry.org/) as a dependency:
```shell
poetry add trading-strategy -E direct-feed
```
Poetry, local development:
```shell
poetry install -E direct-feed
```
Pip:
```shell
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](https://github.com/tradingstrategy-ai/trade-executor/).
# Documentation
- [Documentation](https://tradingstrategy.ai/docs/).
- [Getting started](https://tradingstrategy.ai/docs/getting-started.html).
Community
---------
* [Trading Strategy website](https://tradingstrategy.ai)
* [Blog](https://tradingstrategy.ai/blog)
* [Twitter](https://twitter.com/TradingProtocol)
* [Discord](https://tradingstrategy.ai/community#discord)
* [Telegram channel](https://t.me/trading_protocol)
* [Changelog and version history](https://github.com/tradingstrategy-ai/trading-strategy/blob/master/CHANGELOG.md)
[Read more documentation how to develop this package](https://tradingstrategy.ai/docs/programming/development.html).
# License
GNU AGPL 3.0.
Raw data
{
"_id": null,
"home_page": "https://tradingstrategy.ai",
"name": "trading-strategy",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.10",
"maintainer_email": null,
"keywords": "algorithmic trading, ethereum, polygon, avalanche, aave, arbitrum, cryptocurrency, uniswap, quantitative finance, binance, blockchain, pancakeswap, polygon, web3",
"author": "Mikko Ohtamaa",
"author_email": "mikko@tradingstrategy.ai",
"download_url": "https://files.pythonhosted.org/packages/34/0f/ff927c0edd49484e914c3b52441595811be751b089f103e462585eedcd4d/trading_strategy-0.24.4.tar.gz",
"platform": null,
"description": "[![PyPI version](https://badge.fury.io/py/trading-strategy.svg)](https://badge.fury.io/py/trading-strategy)\n\n[![CI Status](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/python-app.yml/badge.svg)](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/python-app.yml)\n\n[![pip installation works](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/pip-install.yml/badge.svg)](https://github.com/tradingstrategy-ai/trading-strategy/actions/workflows/pip-install.yml)\n\n<a href=\"https://tradingstrategy.ai\">\n <img src=\"https://raw.githubusercontent.com/tradingstrategy-ai/trading-strategy/master/logo.svg\" width=\"384\">\n</a>\n\n# Trading Strategy framework for Python\n\nTrading Strategy framework is a Python framework for algorithmic trading on decentralised exchanges. \n\n- Download decentralised finance market data sets\n- Develop and backtest trading strategies in Jupyter Notebook\n- Live trade execution for onchain trading\n- Smart contract vault support for turning your trading strategy to a third-party investable vault\n\nThe `trading-strategy` library provides data fetching for backtesting and live trading.\n\nIt is using [backtesting data](https://tradingstrategy.ai/trading-view/backtesting) and [real-time price feeds](https://tradingstrategy.ai/trading-view)\nfrom [Trading Strategy Protocol](https://tradingstrategy.ai/). \n\n# Use cases\n\n* Analyse cryptocurrency investment opportunities on [decentralised exchanges (DEXes)](https://tradingstrategy.ai/trading-view/exchanges)\n\n* Creating trading algorithms and trading bots that trade on DEXes\n\n* Deploy trading strategies as on-chain smart contracts where users can invest and withdraw with their wallets\n\n# Features\n\n* Supports multiple blockchains like [Ethereum mainnet](https://tradingstrategy.ai/trading-view/ethereum), \n [Binance Smart Chain](https://tradingstrategy.ai/trading-view/binance) and \n [Polygon](https://tradingstrategy.ai/trading-view/polygon)\n\n* Access trading data from on-chain decentralised exchanges like\n [SushiSwap](https://tradingstrategy.ai/trading-view/ethereum/sushi), [QuickSwap](https://tradingstrategy.ai/trading-view/polygon/quickswap) and [PancakeSwap](https://tradingstrategy.ai/trading-view/binance/pancakeswap-v2)\n\n* Integration with Jupyter Notebook for easy manipulation of data.\n See [example notebooks](https://tradingstrategy.ai/docs/programming/code-examples/index.html).\n\n* Write [algorithmic trading strategies](https://tradingstrategy.ai/docs/programming/strategy-examples/index.html) for decentralised exchange \n\n# Getting started \n\nSee [the Getting Started repository](https://github.com/tradingstrategy-ai/getting-started) and the rest of the [Trading Strategy documentation](https://tradingstrategy.ai/docs/).\n\n# Prerequisites\n\n* Python 3.10\n\n* [Understanding Python package management and installation](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/)\n (unless using Dev Container from teh above)\n\n# Installing the package\n\nYou can install this package with \n\n[Poetry](https://python-poetry.org/) as a dependency:\n\n```shell\npoetry add trading-strategy -E direct-feed\n```\n\nPoetry, local development:\n\n```shell\npoetry install -E direct-feed\n```\n\nPip:\n\n```shell\npip install \"trading-strategy[direct-feed]\" \n```\n\n**Note**: `trading-strategy` package provides trading data\ndownload and management functionality only. If you want to [developed\nautomated trading strategies you need to install trade-executor package as well](https://github.com/tradingstrategy-ai/trade-executor/).\n\n# Documentation\n\n- [Documentation](https://tradingstrategy.ai/docs/).\n\n- [Getting started](https://tradingstrategy.ai/docs/getting-started.html).\n\nCommunity\n---------\n\n* [Trading Strategy website](https://tradingstrategy.ai)\n\n* [Blog](https://tradingstrategy.ai/blog)\n\n* [Twitter](https://twitter.com/TradingProtocol)\n\n* [Discord](https://tradingstrategy.ai/community#discord) \n\n* [Telegram channel](https://t.me/trading_protocol)\n\n* [Changelog and version history](https://github.com/tradingstrategy-ai/trading-strategy/blob/master/CHANGELOG.md)\n\n[Read more documentation how to develop this package](https://tradingstrategy.ai/docs/programming/development.html).\n\n# License\n\nGNU AGPL 3.0. \n",
"bugtrack_url": null,
"license": "AGPL",
"summary": "Algorithmic trading data for cryptocurrencies and DEXes like Uniswap, Aave and PancakeSwap",
"version": "0.24.4",
"project_urls": {
"Changelog": "https://github.com/tradingstrategy-ai/web3-ethereum-defi/blob/master/CHANGELOG.md",
"Discord": "https://discord.gg/5M88m9nM8H",
"Documentation": "https://tradingstrategy.ai/docs/",
"Homepage": "https://tradingstrategy.ai",
"Repository": "https://github.com/tradingstrategy-ai/trading-strategy",
"Sponsor": "https://tradingstrategy.ai",
"Twitter": "https://twitter.com/tradingprotocol",
"Youtube": "https://www.youtube.com/@tradingstrategyprotocol"
},
"split_keywords": [
"algorithmic trading",
" ethereum",
" polygon",
" avalanche",
" aave",
" arbitrum",
" cryptocurrency",
" uniswap",
" quantitative finance",
" binance",
" blockchain",
" pancakeswap",
" polygon",
" web3"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0785eeebb070daa6968a272732b38a16883ac7ad468660559576dacd7fc9bf64",
"md5": "f02074f2954a5882e51063ee0ee86e80",
"sha256": "5c2bc26504a56c1985f75cbcac95283b4ccb8063f99e707c2cc9482bc2e2ee71"
},
"downloads": -1,
"filename": "trading_strategy-0.24.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f02074f2954a5882e51063ee0ee86e80",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.10",
"size": 16596852,
"upload_time": "2024-10-25T16:54:44",
"upload_time_iso_8601": "2024-10-25T16:54:44.404090Z",
"url": "https://files.pythonhosted.org/packages/07/85/eeebb070daa6968a272732b38a16883ac7ad468660559576dacd7fc9bf64/trading_strategy-0.24.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "340fff927c0edd49484e914c3b52441595811be751b089f103e462585eedcd4d",
"md5": "58b7abd93cacf9e47b3624f9a727ebc5",
"sha256": "ef7c3887fc06e137c405388cbaad8ea8f811bd866b8ba0387621ee2519d55016"
},
"downloads": -1,
"filename": "trading_strategy-0.24.4.tar.gz",
"has_sig": false,
"md5_digest": "58b7abd93cacf9e47b3624f9a727ebc5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.10",
"size": 15840078,
"upload_time": "2024-10-25T16:54:51",
"upload_time_iso_8601": "2024-10-25T16:54:51.999560Z",
"url": "https://files.pythonhosted.org/packages/34/0f/ff927c0edd49484e914c3b52441595811be751b089f103e462585eedcd4d/trading_strategy-0.24.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-25 16:54:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tradingstrategy-ai",
"github_project": "web3-ethereum-defi",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "trading-strategy"
}