Git Product home page Git Product logo

trade-executor's Introduction

Automated test suite and Docker image build

Trade Executor: Algorithmic Trading Engine for DeFi

trade-executor is a Python framework for backtesting and live execution of algorithmic trading strategies on decentralised exchanges.

Note: This is early beta software. Please pop in to the Discord for any questions.

Features

Prerequisites

You need to know

Getting started

First study the example code

More information

Installation

Note: The project is under active development. We recommend any developers to use Github master branch for installations.

As as dependency line for Poetry pyproject.yml:

[tool.poetry.dependencies]
# Remove Python 3.11 pin down after upstream dependency issues are resolved
python = ">=3.10,<3.11"  
# extras=["all"] does not seem to work here. Poetry bug?
trade-executor = {git = "https://github.com/tradingstrategy-ai/trade-executor.git", extras = ["web-server", "execution", "quantstats", "data"], rev = "master" }

Checking out from Github to make contributions:

git clone [email protected]:tradingstrategy-ai/trade-executor.git
cd trade-executor
git submodule update --init --recursive

# Extra dependencies
# - execution: infrastructure to run live strategies
# - web-server: support webhook server of live strategy executors
# - qstrader: still needed to run legacy unit tests
poetry install --all-extras

Or with pip:

pip install -e ".[web-server,execution,qstrader,quantstats]" 

Or directly from Github URL:

pip install -e "git+https://github.com/tradingstrategy-ai/trade-executor.git@master#egg=trade-executor[web-server,execution,qstrader,quantstats]"  

Limited file size by pre-commit hook

# The pre-commit hook checks the size of files before allowing a commit to proceed
# If a file exceeds the specified limit, the commit will be aborted
# Default MAX FILE SIZE is 35MB
# Run script setup
cd trade-executor
bash scripts/set-pre-commit-checkfilesize.sh 

Architecture overview

Here is an example of a live trading deployment of a trade-executor package.

Architecture overview

Running tests

See internal development documentation.

Community

License

trade-executor's People

Contributors

miohtama avatar alexthelion123 avatar hieuh25 avatar m-root avatar plamut avatar anteroe avatar servatj avatar sontn1988 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.