Git Product home page Git Product logo

predict_stock_py's Introduction

predict_stock_py

This is a submission for the "Predicting Stock Prices challenge" by @Sirajology on Youtube.

Overview

The python script "predict_stock.py" does the following:

  1. Asks the user for a stock quote from NASDAQ (e.j: AAPL, FB, GOOGL)
  2. Uses Tweepy to retrieve tweets about that stock.
  3. Uses TextBlob to determine if the majority of the tweets are positive using sentiment analisys.
  4. If the last is True, downloads the last year of prices for that stock, and trains a neural net with that data to predict the price for tomorrow.

The folder "demo" contains a test training 'Table 3' to the same network that is used to predict the price.

Dependencies

Usage

Install all the necesary dependencies. Then just run:

python predict_stock.py

It will ask you for a NASDAQ quote, e.j: AAPL, then if the sentiment is positive and the stock you entered exists it will start training the network and give you a result.

Credits

Credits to Siraj and to this blog post.

Disclaimer

Do not use this code to invest in the stock market, if you are interested in stocks start by reading "The Intelligent Investor" by Benjamin Graham.

predict_stock_py's People

Contributors

ciurana2016 avatar

Watchers

Kenken64 (Kenneth) avatar James Cloos avatar  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.