Kernel: Python 2 (Ubuntu Linux)
Setting Up
In [98]:
Load and Sample BTC Prices
In [100]:
date | type | open | close | volumeto | volumefrom | high | low | |
---|---|---|---|---|---|---|---|---|
102 | 2016-01-05 06:00:00 | bitcoin | 432.91 | 432.82 | 387391.95 | 894.18 | 433.31 | 432.12 |
281 | 2016-01-12 17:00:00 | bitcoin | 445.84 | 445.97 | 1185941.26 | 2654.35 | 446.80 | 445.32 |
305 | 2016-01-13 17:00:00 | bitcoin | 429.14 | 429.07 | 992036.83 | 2312.55 | 430.19 | 428.49 |
802 | 2016-02-03 10:00:00 | bitcoin | 374.87 | 375.07 | 794489.80 | 2118.56 | 375.82 | 374.46 |
1034 | 2016-02-13 02:00:00 | bitcoin | 386.30 | 386.02 | 1169135.58 | 3010.16 | 387.14 | 385.62 |
Load and Sample StockTwits Sentiments
In [101]:
timestamp | compound | pos | neg | count | |
---|---|---|---|---|---|
0 | 2015-12-28 19:00:00 | 1.0000 | 1.000 | 0.000 | 1 |
29 | 2015-12-30 00:00:00 | 0.7983 | 0.404 | 0.000 | 1 |
52 | 2015-12-30 23:00:00 | NaN | NaN | NaN | 0 |
80 | 2016-01-01 03:00:00 | 0.7213 | 0.366 | 0.094 | 1 |
195 | 2016-01-05 22:00:00 | 0.7213 | 0.383 | 0.099 | 1 |
Scaling Both BTC and StockTwits series
In [102]:
BTC Price and BTC Message Rate
In [105]:
Text(0,0.5,u'Normalized Values')
BTC Price and Compound Sentiment
In [106]:
In [111]:
Text(0,0.5,u'Normalized Values')
Raw Hourly Normalized Sentiment Score
In [71]:
[<matplotlib.lines.Line2D at 0x7fe7ebe56990>]
See the correlation of the dip for the crash between 2017 August and 2018 January on stocktweets hourly positive sentiment and BTC price above
BTC Price and Web Search Trends
In [47]:
date | type | interest | |
---|---|---|---|
79 | 2016-01-04 07:00:00 | bitcoin | 3 |
199 | 2016-01-09 07:00:00 | bitcoin | 4 |
263 | 2016-01-11 23:00:00 | bitcoin | 5 |
274 | 2016-01-12 10:00:00 | bitcoin | 3 |
349 | 2016-01-15 13:00:00 | bitcoin | 6 |
In [49]:
In [51]:
In [114]:
Text(0,0.5,u'Normalized Values')
In [0]: