Skip to content

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

Notifications You must be signed in to change notification settings

zhivko/bitcoin_prediction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 98.1%
  • Python 1.9%