/bitcoin-analysis

Compile, analyse, plot cryptocurrency protocols, networks, marketplaces

Primary LanguageMATLAB

Various scripts and data used to analyze the Bitcoin blockchain, network, protocol, and economics.

Bitcoin price history

  • 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
    • 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

Bitcoin transaction and UTXO histories

  • 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

Generated Figures

BTC price history full, unconstrained, daily, exp1 and poly1 fits blockchain stats: fees top tech stock price poly1 fits telecoms penetration expl1, poly1 fits