getting-started  by tradingstrategy-ai

Algorithmic trading SDK for developing and backtesting strategies

Created 2 years ago
257 stars

Top 98.8% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This repository provides the Trading Strategy SDK, enabling developers to build, backtest, and deploy automated trading strategies on Decentralized Exchanges (DEXes) and DeFi markets. It targets individuals with Python and algorithmic trading knowledge, offering a comprehensive framework for bringing strategies to life with features like market data feeds, backtesting notebooks, and smart contract-based asset management.

How It Works

The framework utilizes Python and Jupyter notebooks for strategy development and backtesting. Core components include data caching, indicator calculation, a decide_trades function for strategy logic, and an in-line backtesting engine. It supports diverse data sources (DEX, CEX) and employs parameter optimization (grid search, Gaussian Processes) to refine strategies. The approach emphasizes modularity, allowing strategies to be developed in notebooks and then deployed for live trading.

Quick Start & Requirements

  • Installation: Options include GitHub Codespaces (browser-based, no local setup), VS Code Dev Containers, or local Python environments. Command-line setup involves cloning the trade-executor repository, installing dependencies via Poetry (poetry install), and activating the environment (poetry shell).
  • Prerequisites: Basic Python, Pandas, Jupyter Notebook, and algorithmic trading knowledge. GitHub account required for Codespaces.
  • Links: Examples are provided as Jupyter notebooks. A workshop video and community Discord server are mentioned but lack direct URLs.

Highlighted Details

  • Extensive example backtesting notebooks cover simple indicators, breakout strategies, portfolio construction, yield optimization, and category-specific strategies (e.g., memecoins).
  • Advanced features include survivorship-bias-free data export scripts for Uniswap, scam filtering, and aggregated liquidity/volume data.
  • Parameter optimization via grid searches and Gaussian Processes (scikit-optimize) is supported.
  • A live trade execution example repository is also provided.

Maintenance & Community

The project highlights community engagement through a Discord server, website, blog, Twitter, and Telegram channel. Specific details on core maintainers, sponsorships, or project health beyond community channels are not provided in the README.

Licensing & Compatibility

The license type and any compatibility notes for commercial use or closed-source linking are not specified in the provided README content.

Limitations & Caveats

Mac users with Intel CPUs may experience slower backtesting speeds with Dev Containers. The specific open-source license is not stated, a critical omission for adoption decisions. Some provided notebooks are designated as "research only."

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.