Quantitative trading self-learning environment with Marimo notebooks.
Learn quantitative trading concepts and techniques through hands-on practice, focusing on:
- Understanding market data and price patterns
- Building and visualizing technical indicators
- Developing trading strategies with real Chinese A-share data
- Data Acquisition: Fetch and process Chinese stock market data using akshare
- Data Analysis: Use polars + narwhals for efficient data manipulation
- Visualization: Create interactive K-line charts with plotly
- Strategy Development: Experiment with quantitative trading ideas
| Component | Technology |
|---|---|
| Notebook | marimo >= 0.19.4 |
| Data Processing | polars, narwhals |
| Data Source | akshare (Chinese A-shares) |
| Visualization | plotly, seaborn |
| Dev Tools | ruff, mypy |
# Install dependencies
uv sync
# Start Marimo notebook server
marimo run notesbooks/*
marimo edit --watch notesbooks/*uvgitjust
To use BaoStock source in batch reading, please use in windows:
if __name__ == "__main__":
multiprocessing.freeze_support()
...Due to the child processes re-importing and re-executing the entire module infinitely.