Bitcoin Trading Anomalies & LSTM NN

By on Apr 9, 2019 in Analytics, Blockchain | 0 comments

forblog In [1]: import pandas as pd import numpy as np In [2]: data_raw = pd.read_csv('data/coinbaseUSD.csv') data_raw.shape Out[2]: (1574274, 8) In [3]: train_data_raw = data_raw[:1474273] train_data_raw.shape Out[3]: (1474273, 8) In [4]: validate_data_raw = data_raw[1474274:] validate_data_raw.shape Out[4]: (100000, 8) In [5]: feature_list = ["Volume_(BTC)"] features= len(feature_list) train_data_selected = train_data_raw[feature_list].as_matrix().astype(np.float32) validate_data_selected = validate_data_raw[feature_list].as_matrix().astype(np.float32) In [6]: %matplotlib inline import matplotlib import matplotlib.pyplot as plt from IPython.core.pylabtools import figsize figsize(16, 7) plt.plot(range(len(train_data_raw)), train_data_raw[feature_list], "go") plt.ylabel('Bitcoins') plt.xlabel('Time') plt.show()...

Analyzing Bitcoin’s Blockchain – Part 2

By on Jan 23, 2018 in Analytics, Blockchain | 0 comments

In this post, I’ll walk you through installing BlockSci and converting the raw blockchain into a format that we can use in C++ and Python3 (with or without Jupyter). First, download and install BlockSci.  Follow the instructions on the installation page and when you get to the end, you might run into a few issues. When you get to the last few steps of the install and build – these steps: cd libs/bitcoin-api-cpp mkdir release cd release cmake -DCMAKE_BUILD_TYPE=Release .. make sudo make install cd ../../.. mkdir release cd release cmake -DCMAKE_BUILD_TYPE=Release .. make sudo make install You might get an error that looks something like this: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20′ not found If this happens, then you might have the same issue I did.  I fixed it by doing the following: go to the right location and backup your...

Analyzing Bitcoin’s Blockchain

By on Jan 15, 2018 in Analytics, Blockchain | 0 comments

So you’ve got Bitcoin fever, and you’d like to understand more about how it works. What exactly is contained in the underlying blockchain? This series will have 3 parts: Installing Bitcoin and Jupyter Notebook Installing BlockSci and Converting Data for Analysis Analyzing Blockchain Data So what is Blockchain?  Let’s consult Wikipedia… A blockchain, originally block chain, is a continuously growing list of records, called blocks, which are linked and secured using cryptography. Each block typically contains a hash pointer as a link to a previous block, a timestamp and transaction data. By design, blockchains are inherently resistant to modification of the data. It is “an open, distributed ledger that can record transactions between two parties efficiently and in a verifiable and permanent way”. For use as a distributed ledger, a blockchain is...