xalpha is a Python-based fund investment backtesting and analysis engine with multi-market data access, portfolio analytics, and basic backtesting features. It provides APIs for fund info, daily data, real-time data, and valuation history, with documentation and installation via pip or from GitHub.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
xalpha is a fund investment backtesting engine that handles fund information, net value retrieval, portfolio analysis, visualizations, and basic strategy backtesting. It supports obtaining daily and real-time data, and provides tools for historical valuation and instantaneous valuation analyses.
How it works
The project exposes functions to retrieve fund information, run simulations based on a CSV ledger, fetch daily and real-time data for various instruments, and analyze historical and current valuations. Examples in the README show usage such as getting fund data, running backtests from a ledger, and accessing daily/real-time data through concise API calls.
Getting started
Install instructions:
pip install xalpha
Or from GitHub for latest development:
$ git clone https://github.com/refraction-ray/xalpha.git
$ cd xalpha && pip3 install .
For local use with notebooks and demos, the README suggests running in a Jupyter environment and referencing example snippets for common workflows.
Recent releases
Latest releases include:
- v0.12.4 (2026-07-07)
- v0.12.3 2026 version (2025-12-17)
- v0.12.2 Happy new year 2025! (2025-01-02)
- v0.12.1 (2025-01-02)
- v0.12.0 (2024-04-02): Multiple APIs fixed
Traction
Stars: 2670 Forks: 484 Open issues: 46
Behind the repo
The repository is written in Python and licensed MIT. It has ongoing maintenance with last_push on 2026-07-25 and a creation date of 2018-08-02. Topics include ai-agents, backtest, finance, investment, quantitative-trading.
Caveats
License: MIT Created: 2018-08-02 Last push: 2026-07-25






