Event study framework for analyzing cryptocurrency market liquidity responses to infrastructure vs regulatory events.
Sentiment Without Structure: Differential Liquidity Response to Infrastructure vs Regulatory Events in Cryptocurrency Markets
Murad Farzulla (2025)
Infrastructure events (FTX collapse, Terra/UST) produce significantly larger liquidity deterioration than regulatory events (SEC enforcement, China ban). The Corwin-Schultz spread shows +65.1% for infrastructure vs -11.4% for regulatory events (p=0.0009).
| Metric | Source | Description |
|---|---|---|
| Funding Rate | Binance Futures API | Perpetual futures funding rate (market stress indicator) |
| Amihud Illiquidity | Computed from OHLCV | Price impact per unit volume |
| Roll Spread | Computed from returns | Effective spread from return autocorrelation |
| Corwin-Schultz Spread | Computed from high-low | Spread estimation from daily price ranges |
pip install -r requirements.txtfrom event_liquidity_analysis import EventLiquidityStudy
# Define events
events = [
{"name": "FTX Collapse", "date": "2022-11-10", "type": "Infrastructure"},
{"name": "SEC Binance Suit", "date": "2023-06-05", "type": "Regulatory"},
]
# Run analysis
study = EventLiquidityStudy(symbols=["BTC", "ETH"], event_window=30)
results = study.run_full_event_study(events)
summary = study.generate_summary_statistics(results)funding_rate_data.py- Binance perpetual futures funding rate collectorliquidity_metrics.py- Amihud, Roll, Corwin-Schultz, Kyle's lambda implementationsevent_liquidity_analysis.py- Full event study frameworkconfig.py- Configuration and event definitions
All data from free Binance APIs:
- Spot:
https://api.binance.com/api/v3/klines - Futures:
https://fapi.binance.com/fapi/v1/fundingRate
@misc{farzulla2025sentiment,
author = {Farzulla, Murad},
title = {Sentiment Without Structure: Differential Liquidity Response to Infrastructure vs Regulatory Events in Cryptocurrency Markets},
year = {2025},
doi = {10.5281/zenodo.18099609},
publisher = {Zenodo}
}MIT License - see LICENSE