{"adoption": {"forks": 1520, "observed_at": "2026-08-28T04:10:26.180801+00:00", "stars": 8893}, "canonical_url": "https://ross.abutalabs.com/products/backtestingpy", "card": {"archived": false, "artifact_type": "framework", "description": "🔎 📈 🐍 💰  Backtest trading strategies in Python.", "domain": ["fintech", "data-science"], "enriched": true, "function": ["trading", "simulation", "data-visualization", "benchmarking"], "health_score": 78, "homepage": "https://kernc.github.io/backtesting.py/", "language": "Python", "license": "AGPL-3.0", "license_family": "copyleft", "maturity": "active", "member_repos": ["kernc/backtesting.py"], "name": "kernc/backtesting.py", "platform": ["python", "cross-platform"], "pushed_at": "2026-08-05T12:39:16+00:00", "repo": "kernc/backtesting.py", "stars": 8893, "tags": ["backtesting", "algorithmic-trading", "technical-analysis", "finance", "pandas", "bokeh", "trading", "python"], "topics": ["trading", "trading-strategies", "trading-algorithms", "trading-simulator", "backtesting", "backtesting-trading-strategies", "backtesting-engine", "backtesting-frameworks", "investment", "investing", "investment-strategies", "forex", "forex-trading", "stocks", "algorithmic-trading", "framework", "financial-markets", "hacktoberfest", "algo-trading", "finance"], "urls": [], "use_cases": ["backtest a trading strategy on historical OHLC data", "test moving average crossover strategies in Python", "evaluate strategy performance with stats like return and volatility", "simulate forex, crypto, or stock strategies before live trading", "plot interactive equity curves and trade markers", "compare a strategy against buy-and-hold returns"], "what_it_is": "Backtesting.py is a lightweight Python framework for backtesting trading strategies against historical candlestick data. It provides a small, clean Strategy/Backtest API, works with any technical indicator library, and produces interactive performance plots and statistics.", "when_to_avoid": ["you need live trading or broker integration - this library only backtests", "you need multi-asset portfolio backtesting or complex order types", "your project cannot comply with the AGPL-3.0 license", "you need tick-level or high-frequency data simulation"], "when_to_choose": ["you want a fast, lightweight, well-documented backtesting library with a small API", "you already work in Python with Pandas/NumPy and any TA library", "you need interactive visualizations of backtest results", "you backtest single-instrument, bar-based (vectorized/event-driven) strategies"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/backtestingpy", "repo": "kernc/backtesting.py", "role": "main", "score": 75}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:26.180801+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:24:44.095265+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "22447c8450cf2c2a1339d2eb1badaef5113b687d013de4fe81b60fad7bb5fa1a", "fetched_at": "2026-08-28T04:10:26.180801+00:00", "kind": "readme", "missing": false, "url": "https://github.com/kernc/backtesting.py"}, {"content_hash": "b647e1dc0bf302d2b2edc60efbc57ab0412f3c033cd91666c161ecc9e8b0d4b9", "fetched_at": "2026-08-29T08:24:57.141034+00:00", "kind": "homepage", "missing": false, "url": "https://kernc.github.io/backtesting.py/"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 96, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2800, "days_push": 28, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 75, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}