Python Modules for studying the on-chain behavior of Bitcoin and Decred
This repo is a collection of analysis code, tools and published articles for analysing the blockchains of Bitcoin and Decred.
Based on the on-chain signiatures of BTC and DCR, there is a significant heartbeat for both of these chains. These blockchains also represent the strongest store of value candidates based on my fundamental research and opinions to date and thus deserve further research attention.
This repository includes all data and code used to undertake these analyses.
Note - I am not a developer, code unlikely to be perfect. Suggestions and ideas welcomed.
- Establish additional rigor for my personal fundamental investment thesis for Bitcoin and Decred
- Analyse the scarcity of both Bitcoin and Decred with inspiration from Plan B stock to flow ratio analysis (@100TrillionUSD)
- Analyse the behaviour of DCR tickets as a mechanism for scarcity
- Assess the balance between supply issuance, scarcity, ticket behaviour and transaction flows
- Establish a set of charting packages with which others can replicate and follow the analysis
- Develop an online charting package similar to woobull.com to scratch my own itch encomapsing for both Decred and Bitcion.
This repo is my first and thus structure will develop over time. All code will be Python unless otherwise noted
checkonchain
│ README.md
│ LICENCE
│
└───general (general tools, calling APIs, coin comparisons etc)
│ │ __init.py__
│ │ coinmetrics.py (pulls community API data from coinmetrics) [50%]
|
└───btconchain
│ │ __init.py__
│ │ file012.txt
│
└───dcronchain
│ file021.txt
│ file022.txt
- Monetary Premiums - Article and data for medium article located here.
- Coinmetrics - Contains all scripts for extracting data from Coinmetrics
- Decred_Analysis - Modules for analysing Decred specific metrics
- Bitcoin_Analysis - Modules for analysing Bitcoin specific metrics
Phase 1 - Write supply curve scripts:
- Bitcoin (90%)
- Decred (90%)
Phase 2 - Establish API Calls and Modules for:
- Coinmetrics V2 (50%)
- dcrdata (via TinyDecred) (50%)
- CoinAPI (0%)
- Glassnode (0%)
Phase 3 - Compile datasets from API calls into specific analysis
- Decred staking Distribution - PoW, PoS and Ticket pool
- Transaction volumes and value vs Ticket behaviour
- PoW and PoS difficulty comparisons as driver for value
- Unforgeable costliness (Stock-to-flow, PoW Mining costs, PoS Capital costs, Treasury work cost)
- Realised Cap, Market Cap, Days destroyed
Bitcoin
Decred