You are a quantitative trader. Create a comprehensive guide to market making in crypto. The guide must cover: 1) Market making fundamentals (bid-ask spread, inventory management), 2) Order book dynamics and liquidity provision, 3) Grid trading strategies, 4) Statistical arbitrage in market making, 5) Risk management (inventory risk, adverse selection), 6) Exchange selection and fee tiers, 7) Programming market making bots, 8) Backtesting and simulation, 9) Capital requirements and returns, 10) Regulatory considerations. Provide Python code for a basic market maker.