Getting Started
Installation
Supports Windows, macOS, Linux, and Colab; Docker also available.
Online AI Platform
Visit studio.finlab.tw to write strategies through AI conversation — no installation required.
Local AI Coding Assistant (Recommended)
Install the FinLab Skill in Claude Code, Cursor, Windsurf, or other AI coding tools. The AI learns the entire FinLab API and helps you write strategies, look up data fields, and debug backtests.
- Go to finlab.finance for the Skill installation link
- Follow the instructions to add the Skill to your AI coding tool
- Start a conversation, e.g.: "Write a revenue growth breakout strategy and backtest it"
What the Skill covers
Data access (data.get), backtesting (backtest.sim), factor analysis, machine learning (finlab.ml), live trading, and the full API. The AI assistant can write, run, and debug code for you.
Compatibility note
If you encounter dependency issues, try the Docker version instead.
Download Data
Use the following code to download data. You can browse available datasets.
Write a Strategy
Use simple Pandas syntax to write strategy logic. For example, a 300-day high breakout strategy:
Backtest
