Quant Starter Examples

Overview

Educational quantitative trading examples for beginners, featuring 6 progressive Python examples and an interactive Jupyter Notebook tutorial. All examples are built on the Infoway Python SDK.

Item
Details

Python

3.9+

Dependencies

infoway-sdk, pandas, matplotlib, jupyter

Installation

git clone https://github.com/infoway-api/infoway-quant-starter.git
cd infoway-quant-starter
pip install -r requirements.txt

Examples

01 — Real-time Trade Monitor

python examples/01_realtime_monitor.py

Real-time trade data via WebSocket. Learn:

  • WebSocket connection and event callbacks

  • Real-time data stream processing

  • Terminal live display

02 — K-line Data Download

Batch download K-line history to CSV. Learn:

  • REST API batch requests

  • Data cleaning and formatting

  • CSV file export

03 — Moving Average Crossover Strategy

Classic dual MA crossover backtest. Learn:

  • Moving average calculation

  • Trade signal generation

  • Return and max drawdown calculation

  • matplotlib charting

04 — Crypto Arbitrage Scanner

Cross-currency spread scanner. Learn:

  • Multi-symbol monitoring

  • Spread calculation and arbitrage detection

  • Real-time data comparison

05 — Market Heatmap

Sector heatmap visualization. Learn:

  • Sector data retrieval and processing

  • Terminal color heatmap display

  • matplotlib heatmap rendering

06 — Multi-Market Scanner

Multi-market temperature anomaly detection. Learn:

  • Multi-market parallel data fetching

  • Temperature / sentiment indicator analysis

  • Anomaly signal identification

Jupyter Notebook Tutorial

Interactive tutorial covering:

  • SDK installation and client creation

  • Real-time trade data retrieval

  • K-line queries and chart plotting

  • Market temperature analysis


Last updated