Coder Social home page Coder Social logo

julestan / saat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 5ymph0en1x/saat

0.0 0.0 0.0 160 KB

Identify and trade statistical arbitrage opportunities between cointegrated pairs using Bitfinex API

License: GNU General Public License v3.0

Python 100.00%

saat's Introduction

SAAT - Statistical Arbitrage - Algorithmic Trading

Guidance

  • Create a new virtual environment (Python 3.6+) and install dependencies with 'pip install -r requirements.txt'.
  • First, you need to acquire data from Bitfinex. This can be done by running 'caching_finex.py' (don't forget to input you credentials in /CONFIG/config_finex.yml).
  • Second, run partial analysis of the data with 'analysis.py'. Once this is done, you'll get a file named 'Thresholds.xlsx'. Open it and look for the best thresholds for the best pairs.
  • Input the settings found at the last step in 'analysis.py' at lines 494-503.
  • Change parameter at line 9 to 2 and rerun 'analysis.py'. This will allow you to select the best pair possible by looking at the graphs generated.
  • Input your choice in 'action.py' with the required parameters (lines 10-15).
  • Run 'action.py' to start paper-trading with real-time data.

Disclaimer

The article and the relevant codes and content are purely informative and none of the information provided constitutes any recommendation regarding any security, transaction or investment strategy for any specific person. The implementation described in the article could be risky and the market condition could be volatile and differ from the period covered above. All trading strategies and tools are implemented at the users’ own risk.

saat's People

Contributors

5ymph0en1x 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.