Predicting Bitcoin values based on online sentiment
Switch branches/tags
Nothing to show
Clone or download
Latest commit 56126ef Mar 29, 2015


Note: Most of the code in this repository was written during HackMIT 2014. We are currently working on further improvements in a private repository.


This is a HackMIT 2014 project. You can see the full writeup here:

We're trying to predict bitcoin values based on sentiment on online communities. Our initial hypothesis is that based on good or bad news in online forums bitcoin prices rise and fall. So by looking at existing data we are trying to find a correlation.

We were inspired by the work of Peter Gloor and Jermain Kaminski on how twitter posts effect bitcoin value. You can read their work here:


We Used the Idol On Demand api: from HP to determine aggregate sentiment. The sentiment is a value between -1 and 1, 1 being "I LOVE BITCOIN" to -1 being "SELL YOUR BITCOIN NOW". Each post over the historical data was summed to get a daily correct value. Our data was taken from the reddit bitcoin community.

The historical bitcoin prices were retreived from the coinbase API:


The initial data is messy. When compared to the graph of bitcoin value, a clear correlation is not evident.

Alt text Alt text

So we Cleaned up the data by applying a filter: Alt text

When we graphed both the price and sentiment on the same graph, a clear correlation becomes apparent. Alt text


Feel free to use our data. There are two text files that have json data dumped straight in them. Or you can use the csv file if you'd like an easier file format. Please attribute your work to this github repo.

Later we're going to setup a automatic buy system using the algorithm we developed.