Git Product home page Git Product logo

webclinic017 / robinhood-td-algorithmic-trading-in-angular Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artimatic/robinhood-td-algorithmic-trading-in-angular

1.0 0.0 0.0 3.44 MB

Web app with Robinhood and TD Ameritrade integration, backtesting, and automated live trading. Nodejs and Angular 7

License: MIT License

TypeScript 80.26% JavaScript 6.48% HTML 11.99% CSS 0.77% Batchfile 0.01% SCSS 0.49%

robinhood-td-algorithmic-trading-in-angular's Introduction

Robinhood Station

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Install

  • Create file 'credentials.js' in '\server\config\environment\credentials.js'
  • Get Access to TD Ameritrade. Both a trading account and Developer account are necessary
  • for API access: https://developer.tdameritrade.com/apis
  • Add TD Ameritrade credentials to credentials.js:
export default {
    port: 9000,
    /*
    * This App is using TD Ameritrade's API for real time quotes. You will need to sign up for both a trading 
    * account and Developer account.
    * Follow this guide to retrieve a refresh_token: 
    * https://developer.tdameritrade.com/content/simple-auth-local-apps
    * New refresh_token will have to be generated every 90 days.
    * 
    * The advantage here is more reliable and robust real time quote data.
    */
    tdameritrade: {
        consumer_key: 'TD AMERITRADE API CONSUMER KEY', // Necessary for daytrading. Provides realtime quotes
        refresh_token: 'REFRESH_TOKEN',
        accountId: 'ACCOUNTI_D
    },
    goliathUrl: 'http://localhost:8100/', // Data service local address https://github.com/Artimatic/station-data-service
    armadilloUrl: 'http://localhost:3000/', // Machine Learning service local address https://github.com/Artimatic/robinhood-algorithmic-trading-in-angular
    twilio: { // For SMS functionality
      key: 'KEY',
      id: 'ID'
    }
};

Run npm install

Build

Run npm run build .

Start Server

Run npm run start

Host

http://localhost:9000/

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

User Guide

Order Import Excel Example

symbol quantity price side OrderSize Stop Target StopLoss MeanReversion1 SpyMomentum YahooData SellAtClose TakeProfit
TSLA 2 319.88 DayTrade 1 -0.007 0.005 1 1 1 0 1 1
MSFT 4 112.03 DayTrade 2 -0.007 0.005 1 1 1 0 1 1

Research Backtest Screener

Requires station-data-service to be set up and running. https://github.com/Artimatic/station-data-service

Machine Learning functionalities

Requires station-analysis-service to be set up and running. https://github.com/Artimatic/station-analysis-service

Demo

https://chaddaily.herokuapp.com/trade-view

screen shots: https://imgur.com/a/wNKn2fw

robinhood-td-algorithmic-trading-in-angular's People

Contributors

angular-cli avatar artimatic avatar dependabot[bot] avatar

Stargazers

 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.