Chicago Quant Alley is a crypto trading simulator and strategy optimizer that bridges academic concepts from stochastic finance with real-world crypto markets. The project allows you to simulate, backtest, and optimize derivatives strategies using historical data, stochastic modeling, and reinforcement-based tuning techniques.
This repository includes:
- Historical data collection from real crypto exchanges
- Strategy implementation for crypto forwards and options
- Backtesting engine with performance evaluation metrics
- Simulation framework using stochastic models
- Multi-Armed Bandit (MAB) algorithms for parameter tuning and adaptive strategy optimization
- Read: Quantitative Trading by Ernest P. Chan
- Key concepts covered:
- Strategy design and execution architecture
- Risk management and capital allocation
- Building a research and execution pipeline
- Collected Options and Forwards data from Delta Exchange API
- Cleaned and stored data in structured formats (
pandasDataFrames and.parquet) - Built utilities for querying, transforming, and visualizing this data
- Completed NPTEL courses:
- Reading in progress: Stochastic Finance with Python by Avishek Nag
- Key focus:
- Stochastic differential equations (SDEs)
- Brownian motion, geometric Brownian motion (GBM)
- Option pricing theory
- Implemented Python-based core simulation engine for trading
- Modeled crypto asset price paths using stochastic processes (e.g., GBM)
- Developed modular system for testing custom strategies on synthetic and real data
- Plug-and-play strategy interface created for future extension
- Integrated Multi-Armed Bandit algorithms (e.g., Epsilon-Greedy, UCB, Exp3)
- Simulated different reward environments (stationary & adversarial)
- Used bandits to optimize:
- Strike price selection
- Entry/exit timing
- Hedging ratios
- Added performance plots and logging to analyze convergence behavior of bandit arms
- Compared MAB-optimized vs. static strategies in terms of Sharpe ratio, drawdown, and win rate
- Books:
- Quantitative Trading β Ernest P. Chan
- Stochastic Finance with Python β Avishek Nag
- Courses:
- Data API:
- Language: Python
- Libraries:
pandas,numpy,matplotlib,scipy,seaborn,scikit-learn,gym,optuna - Tools:
- Jupyter Notebooks (research + prototyping)
- Delta Exchange API (data source)
- Modular architecture for strategy and simulation logic
| Task | Status |
|---|---|
| Read Quant Trading by Ernest Chan | β Completed |
| Collect and clean data from Delta Exchange | β Completed |
| Complete NPTEL courses | β Completed |
| Read Avishek Nagβs Stochastic Finance book | β Completed |
| Build simulator for crypto derivatives | β Completed |
| Implement pricing models (e.g., Black-Scholes, Bachelier) | β Completed |
| Build strategy plug-in system | β Completed |
| Add backtesting with performance metrics | β Completed |
| Integrate Multi-Armed Bandit algorithms for parameter tuning | β Completed |
| Visualize performance (win rate, Sharpe, regret curves, etc.) | β Completed |
This is a research-driven project; contributions are welcome in:
- Advanced strategy modules (e.g., volatility arbitrage, spread trading)
- Risk modeling enhancements
- Visualization and dashboarding (Plotly, Dash, Streamlit)
- Reinforcement Learning-based tuning (e.g., contextual bandits, policy gradients)