Giter Site home page Giter Site logo

stockbot's Introduction

STOCKBOT

analyzing current sp500 stocks by implementing an analysys inspired by benjamin-graham's algorithm.

General Arhictecture

the project consists of three parts:

  • python scrapper - a multithreaded python scrapper.
  • sql database - sql database to store the stock data.
  • c++ engine - a c++ engine to anazlyze the stocks.

Description

  • The python scrapper downloads all the sp500 stock symbols. for each one of the stocks the scrapper download stock data : p/e, current- ratio, etc.
  • The python scrapper saves all the data to an sql database file.
  • The c++ engine reads the database, calculate every stock by benjamin graham parameters and gives indicator to every stock from 0-7.
  • The c++ engine will display the 10 best stocks to buy at this moment, according to benjamin graham algorithm.

GitHub Logo

Requiered Liabries:

Python:

  • requests
  • re
  • BeautifulSoup
  • ast
  • sqlite3

c++:

  • c++ 11 and above.
  • sqlite3.h
  • curses.h

Installation

OS X & Linux & Windows: there is 3 ways to install the project:

  • building the whole project from scratch. from the home directory type : "python project_builder.py". the script will start the scrapping, move the older database to database/backup folder, create new database, run the c++ engine on the database and display the results.

  • running only the python scrapper. from the directory python_scrapper type : "python main.py". the scrapper will build the stocks database and save it at database folder. the name of the database will be "mydatabase.db". if the database is already there, delete it manually before running the script.

  • running only the c++ engine. from the directory src type : "make". to run the project type: "./stockbot" please note that you must proivde a databse. the starter repository already includes a database.

Contributers

  • thanks to Dan Kashtan for providing his stock knowledge and benjamin graham algorithm.

stockbot's People

Contributors

aradinbar avatar

Watchers

 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.