Git Product home page Git Product logo

algorithmic_intraday_trading's Introduction

Overview

This is a repository for intraday mid-frequency algorithmic trading framework. This framework was developed for personal use so the data collection, database storage etc. are done as such. This repo was created to share my personal project portfolio and the actual development happens on a separate repo.

Main files

  • run_sudden_move_reversal_analysis_equity.py - equity trading
  • run_sudden_move_reversal_analysis_crypto.py - crypto (binance) trading

Backtest

  • run_sudden_move_reversal_analysis_equity_csv.py - equity trading
  • run_sudden_move_reversal_analysis_crypto_csv.py - crypto (binance) trading

There are a few files of format run_....py, run_..._csv.py, which follow above pattern.

Data

The data is collected and stored in the GCP BQ database, but as this project is mainly for my personal use, all is done on my personal GCP project. sandbox_export.py has examples to pull over the data in csv format.

Supported Broker / Exchanges

  • Equity: TD Ameritrade, Ally, Tradier
  • Crypto: Binance

Architecture

    ┌──────────┐               ┌───────────┐                       ┌────────────────┐
    │          │               │           │                       │                │
    │ Exchange │               │ websocket │                       │      GCP       │
    │          │──────────────▶│           │─────exports──────────▶│    BigQuery    │
    │          │               │           │                       │                │
    └──────────┘               └───────────┘                       └────────────────┘
                                     │                                      │        
                                     │                                      │        
                                     │                          ┌────downloads       
                                     │                          │                    
                                     ▼                          ▼                    
                             ┌───────────────┐          ┌───────────────┐            
                             │               │          │               │            
                             │  GCP PubSub   │          │CSV file export│            
                             │               │          │               │            
                             └───────────────┘          └───────────────┘            
                                     │                          │                    
                                     │                          │                    
                                   live                         │                    
                                 trading                        │                    
                                     │                          │                    
                                     ▼                          │                    
                             ┌───────────────┐              backtest                 
                             │               │                  │                    
                             │ trade engine  │                  │                    
                             │               │◀─────────────────┘                    
                             │               │                                       
                             └───────────────┘                                       
                                     │                                               
                                  trade                                              
                                execution                                            
                                     │                                               
                                     │                                               
                                     │                                               
                                     ▼                                               
                             ┌───────────────┐                                       
                             │               │                                       
                             │  Broker API   │                                       
                             │               │                                       
                             └───────────────┘              

algorithmic_intraday_trading's People

Contributors

hjunlimgoog 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.