Various scripts and data used to analyze the Bitcoin blockchain, network, protocol, and economics.
-
compress-btc-price-history.py
- Description: request Bitstamp trading history and process data into averaged daily and weekly price history data sets.
- download updated trading history
- source url: http://api.bitcoincharts.com/v1/csv/bitstampUSD.csv.gz
- unzip bitstampUSD.csv.gz -> bitstampUSD.csv
- process bitstampUSD.csv
- spit out average daily/weekly price history -> btcusd-avg-[day/week]-price.csv
-
plotPriceChart.m
- Description: Matlab function that plots above data sets along with exponential fitted curves from three subsets of price data.
- Note: must manually import .csv files into Matlab tables to feed into function and change daily/weekly title strings
- Input argument: daily/weekly price array imported from btcusd-avg-price.csv file
- Description: Matlab function that plots above data sets along with exponential fitted curves from three subsets of price data.
-
compress-oxt-blockchain-history.py
- Description: compress previously exported blockchain metrics historical data by calculating daily and weekly averages.
- Note: must manually download metrics .csv data from http://oxt.me
- Script processes downloaded metric files and spits out daily and weekly averaged stats[METRIC].csv files
-
plotBlockchainStats.m
- Description: Matlab function that plots above data sets along with respective exponential fitted curves.
- Note: must manually import .csv files into Matlab tables to feed into function and uncomment only relevant title strings
- Input argument: relevant metric array imported from daily/weekly averaged stats[METRIC].csv files
- Description: Matlab function that plots above data sets along with respective exponential fitted curves.