FinLab Docs
Load US and Taiwan market data, write stock-selection rules, backtest, and trade daily. Every step comes with code you can run.
pip install finlabEvery dataset is a table of dates by stocks. A condition works on the whole table at once; each True is a stock to hold. Hand it to sim() to backtest, then schedule it to run daily.
data.get('price:adj_close') Dates down, stocks across
close > close.average(60) True = hold that day
sim(position, resample='M') Returns, drawdown, trades
PortfolioSyncManager Updates and orders every day