A practical technical guide to quantitative analysis of decentralized finance using on-chain data.
This book explores core concepts in on-chain analytics and quantitative DeFi, with a focus on Automated Market Makers (AMMs), impermanent loss, and Miner Extractable Value (MEV).
Through clear explanations and hands-on Python examples, you will learn how to:
Model AMM dynamics and liquidity provision mechanicsAnalyze and manage impermanent lossUnderstand and quantify MEV opportunities on blockchain networksWork with blockchain event data using Python and Web3 librariesDesigned for developers, quantitative analysts, and DeFi researchers with intermediate Python knowledge, this book bridges blockchain fundamentals with practical data analysis techniques. All code examples are focused on transparent, reproducible methods using publicly available on-chain data.
Note: This is a technical reference, not financial advice. Trading and investing in cryptocurrency involves substantial risk.