Quantitative pricing framework for solar energy derivatives using NASA satellite data
Project description
Solarpunk Bitcoin: Energy-Backed Cryptocurrency Research & Development
Academic research on renewable energy as a fundamental anchor for cryptocurrency value, with practical derivatives pricing framework for energy-backed assets.
๐ Research Papers
- CEIR-Trifecta.md โ Core empirical work: "When Does Energy Cost Anchor Cryptocurrency Value?" Triple natural experiment design (China mining ban 2021, Ethereum merge 2022, Russia sanctions 2025)
- Quasi-SD-CEIR.md โ Framework extension: Supply-demand dynamics with sentiment analysis and hidden Markov regimes
- Final-Iteration.md โ SolarPunkCoin concept: Renewable-energy-backed stablecoin addressing 10 cryptocurrency failure modes
- Empirical-Milestone.md โ Spring 2025 research proposal for Yuan Ze University
๐ง Energy Derivatives Framework
Production-ready Python package for pricing European-style options on renewable energy-backed assets.
Quick start:
cd energy_derivatives
pip install -r requirements.txt
jupyter notebook notebooks/main.ipynb
Core modules:
binomial.pyโ Binomial tree pricing with convergence analysismonte_carlo.pyโ Monte Carlo simulation with confidence intervalssensitivities.pyโ Greeks computation (delta, gamma, vega, theta, rho)plots.pyโ Publication-quality visualizationsdata_loader.pyโ Energy data calibration
Details: ~2,300 lines of production code, full documentation, Jupyter notebook with 10-section walkthrough.
๏ฟฝ๏ฟฝ Empirical Data & Analysis
empirical/ contains CEIR computation pipeline:
- Bitcoin/Ethereum energy consumption (TWh/year from Digiconomist)
- Mining distribution (geographic concentration)
- Electricity prices (regional, time-varying)
- Macro controls (S&P 500, VIX, gold)
- Analysis scripts (
gecko.py,CEIR.py,Regression.py)
๐ Project Structure
solarpunk-coin/
โโโ README.md # This file
โโโ CEIR-Trifecta.md # Main research paper
โโโ Quasi-SD-CEIR.md # Supply-demand extension
โโโ Final-Iteration.md # SolarPunkCoin vision
โโโ Empirical-Milestone.md # Research roadmap
โ
โโโ energy_derivatives/ # Derivatives pricing package
โ โโโ src/ # Core modules
โ โ โโโ binomial.py
โ โ โโโ monte_carlo.py
โ โ โโโ sensitivities.py
โ โ โโโ plots.py
โ โ โโโ data_loader.py
โ โโโ notebooks/
โ โ โโโ main.ipynb # Full demonstration
โ โโโ requirements.txt
โ
โโโ empirical/ # CEIR data & scripts
โ โโโ gecko.py # Data collection
โ โโโ CEIR.py # CEIR calculations
โ โโโ Regression.py # Analysis
โ โโโ data/ # CSV files
โ
โโโ examples/
โโโ presentation_colab.ipynb # Solar energy demo
๐ฏ Key Features
โ
Rigorous Theory: Risk-neutral valuation, geometric Brownian motion, arbitrage-free pricing
โ
Two Methods: Binomial tree (exact) + Monte Carlo (distribution analysis)
โ
Complete Greeks: All 5 sensitivities via finite differences
โ
Real Data: Calibrated to Bitcoin CEIR (2018โ2025)
โ
Multi-Location: Taiwan, Arizona, Spain solar data comparison
โ
Production Code: Type hints, comprehensive docstrings, error handling
๐ Usage
Python API:
from energy_derivatives.binomial import BinomialTree
from energy_derivatives.data_loader import load_parameters
params = load_parameters(data_dir='empirical')
price = BinomialTree(**params, N=400).price()
Jupyter Notebook:
cd energy_derivatives
jupyter notebook notebooks/main.ipynb
See notebooks/main.ipynb for complete 10-section demo with explanations.
๐ Author
Spectating101 (s1133958@mail.yzu.edu.tw)
Yuan Ze University
๐ License
MIT
Status: Research papers completed (peer review in progress). Derivatives framework complete and submission-ready.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spk_derivatives-0.2.0.tar.gz.
File metadata
- Download URL: spk_derivatives-0.2.0.tar.gz
- Upload date:
- Size: 50.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c4e7b8fa1eee67ff96b46f9c847dd97bfd105f8bf2431749ca4b64691e06250
|
|
| MD5 |
0e8ec89cd9c71fcfd05fd3f8132b372c
|
|
| BLAKE2b-256 |
ab0a3ec9386b37f9a01ba19919299222c9b292d9cfe62521753e75c2f4f5410d
|
Provenance
The following attestation bundles were made for spk_derivatives-0.2.0.tar.gz:
Publisher:
publish.yml on Spectating101/spk-derivatives
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spk_derivatives-0.2.0.tar.gz -
Subject digest:
3c4e7b8fa1eee67ff96b46f9c847dd97bfd105f8bf2431749ca4b64691e06250 - Sigstore transparency entry: 749292105
- Sigstore integration time:
-
Permalink:
Spectating101/spk-derivatives@84bb22f184b0e3f801cf67c1b994cc7bf9f30e4f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Spectating101
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@84bb22f184b0e3f801cf67c1b994cc7bf9f30e4f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file spk_derivatives-0.2.0-py3-none-any.whl.
File metadata
- Download URL: spk_derivatives-0.2.0-py3-none-any.whl
- Upload date:
- Size: 46.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c87f60a20c58c81fe9f791157f7fd0666c0909e7791dac31897f911379ad6025
|
|
| MD5 |
5c71c7f4b921547680ece779a270ef43
|
|
| BLAKE2b-256 |
53a01fe4be7584f5212d41a1956413c5ae1aef7ffb44ea339a3337b7c2d45032
|
Provenance
The following attestation bundles were made for spk_derivatives-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on Spectating101/spk-derivatives
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spk_derivatives-0.2.0-py3-none-any.whl -
Subject digest:
c87f60a20c58c81fe9f791157f7fd0666c0909e7791dac31897f911379ad6025 - Sigstore transparency entry: 749292113
- Sigstore integration time:
-
Permalink:
Spectating101/spk-derivatives@84bb22f184b0e3f801cf67c1b994cc7bf9f30e4f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Spectating101
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@84bb22f184b0e3f801cf67c1b994cc7bf9f30e4f -
Trigger Event:
workflow_dispatch
-
Statement type: