Skip to content

wjpeters/bitcoin_prediction

 
 

Repository files navigation

Overview

This is the code for this video on Youtube by Siraj Raval on Bitcoin Prediction.

Usage

The entire setup works on Google cloud.

Part 1: Data Gathering:

In order to capture the real-time data, we run the following two python programs in background to continuously fetch the data. a) Continuous_Stream_Data.py b) Continuous_Stream_Sentiment.py

The two code do the preprocessing of data and store them in “live_tweet.csv” and “live_bitcoin.csv” files.

Part 2: Core Engine:

From the experiments we found LSTM based model to be performing better than ARIMA (discussed in detail in next section). We have set our best model parameters in engine.py file and once it is run it gathers data from the “live_bitcoin.csv” and “live_tweet.csv”, and generate features in real-time and is fed into the model.

The model outputs the next price. It also does a computation based on the threshold set in the code (this is fed from the settings file).

The information about the time stamp, predicted price, current real price and buy/sell decision is then written into a mysql database

Part 3: Tableau and Notification system:

We have used Tableau to generate plots in real-time form the sql-database mentioned in previous section.

Credits

Credits for this code go to sapphirine. I've merely created a wrapper to get people started.

About

This is the code for "Bitcoin Prediction" by Siraj Raval on Youtube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.6%
  • Python 0.4%