Git Product home page Git Product logo

tars's Introduction

Tars

Welcome to the repository of Tars; a small trading bot made for research purposes. If you do invest with it, make it with care. ;-)

Prerequisites

The code is structured following the Cookiecutter data science template. Visit https://drivendata.github.io/cookiecutter-data-science/ to become familiar with it.

Dependencies are managed with pipenv, install it following the informations available on https://pipenv.pypa.io/en/latest/.

Getting Started

Once you installed the dependencies with

pipenv install

start your Jupyter Lab with

jupyter lab

and check the getting started notebook in

notebooks/getting-started.ipynb

and try to run it. If it does not work, it's probably because of the dependencies. In this case, you can try to install Tars with pip with

pip install -r requirements.txt

Once it works, take a visit in the notebooks/tutorialsfolder for more.

Have fun!

More information

Go and check the code base in src/tars. It has many comments helping developers like you.

Contribute

Contributions are always welcome, just take an issue and submit pull requests.

Licence

MIT

tars's People

Contributors

fredmontet avatar

Stargazers

Soon Jin  avatar  avatar Mhbob Alhoussen avatar Nicolas Feyer avatar Jonathan Rial avatar  avatar Jacky Casas avatar

Watchers

James Cloos avatar  avatar  avatar Jacky Casas avatar Jonathan Donzallaz avatar Nicolas Feyer avatar  avatar

Forkers

webclinic017

tars's Issues

Strategy backtester

It'd be useful to be able to evaluate the performance of strategies given historical data in an easy way.

This issue relies on the #4 to be executed.

Make a documentation website

It should use Sphinx and the existing notebooks and all comments from the code. The documentation can be minimal in my opinion.

Make utility functions to load historical data

To create models, historical data is a must. The goal of this issue is to create a utility function to load historical data. Historical data can be found here: https://www.cryptodatadownload.com/data/ or with an API here https://polygon.io/ api.

To download historical data can take a long time and therefore, the resulting dataset should be saved somewhere (data folder is probably a good default location).

The location for this function is best in utils/data.py for instance.

Add prerun method

Currently, the strategy run() method is executed at every trade. When it come to using the same model on multiple trades, it's a burden and a method load/train a model before the first run would be required.

Ensemble strategy

The objective of this issue is to provide a feature that allows a user to trade using multiple strategies at the same time on a single portfolio.

For instance, you have 1000 USD in your portfolio and you want to start to use :

  • BuyAndHold
  • SequentialInvestment
  • TrendFollowingMACD

together so that it emulates one person buying, then investing on a periodic basis and trading at the same time.

Make a Telegram bot

When Tars is running, it should be possible to request informations about it's status using a Telegram bot. The commands could be as simple as :

  • start
  • stop
  • get informations

Prediction based strategy

One simple strategy to implement would be to take a trading decision based on a prediction model output. This issue's goal is to implement such a thing with the possibility to import more than one model in the strategy.

For instance, let's define a set of models:

  • LSTM
  • Facebook Prophet
  • Linear Regression

It should be possible to load one, or many of them, in the prediction based strategy so that the trading decision is made given the weighted sum of the prediction of all models.

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.