Skip to main content

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 analysis
  • monte_carlo.py โ€“ Monte Carlo simulation with confidence intervals
  • sensitivities.py โ€“ Greeks computation (delta, gamma, vega, theta, rho)
  • plots.py โ€“ Publication-quality visualizations
  • data_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spk_derivatives-0.2.0.tar.gz (50.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spk_derivatives-0.2.0-py3-none-any.whl (46.0 kB view details)

Uploaded Python 3

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

Hashes for spk_derivatives-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3c4e7b8fa1eee67ff96b46f9c847dd97bfd105f8bf2431749ca4b64691e06250
MD5 0e8ec89cd9c71fcfd05fd3f8132b372c
BLAKE2b-256 ab0a3ec9386b37f9a01ba19919299222c9b292d9cfe62521753e75c2f4f5410d

See more details on using hashes here.

Provenance

The following attestation bundles were made for spk_derivatives-0.2.0.tar.gz:

Publisher: publish.yml on Spectating101/spk-derivatives

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spk_derivatives-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spk_derivatives-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c87f60a20c58c81fe9f791157f7fd0666c0909e7791dac31897f911379ad6025
MD5 5c71c7f4b921547680ece779a270ef43
BLAKE2b-256 53a01fe4be7584f5212d41a1956413c5ae1aef7ffb44ea339a3337b7c2d45032

See more details on using hashes here.

Provenance

The following attestation bundles were made for spk_derivatives-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Spectating101/spk-derivatives

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page