FinLab is a Python library for Taiwanese stock analysis and backtesting. Current version: 2.0.3. The library provides tools for downloading stock data, technical analysis, and strategy backtesting. It has an active release cadence with breaking changes from v1 to v2.
pip install finlabVerified import paths — ran on the pinned version, not inferred.
Authenticate with your token and fetch closing prices for TSMC (2330).
Migrate to v2 imports: 'from finlab import ...' instead of 'from finlab.data import ...'.
Set FINLAB_TOKEN env var or call login('your_token').Use Chinese column names like '收盤價', '成交量', etc.
Use plain stock numbers like '2330'.
No dependency data recorded yet.