# benitoro/stockholm

一个股票数据（沪深）爬虫和选股策略测试框架

Repository: https://github.com/benitoro/stockholm
Canonical: https://ross.abutalabs.com/products/stockholm
Language: Python
License: GPL-2.0
License Family: copyleft
Last push: 2020-08-14T06:56:51+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4207, "days_push": 2210, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1517, forks 622 (observed 2026-08-28T04:04:56.709024+00:00)

## What it is
A Python framework that crawls Shanghai and Shenzhen A-share stock market data from Yahoo YQL and Sina Finance, and tests stock-picking strategies via backtesting. It exports quotes with technical indicators (moving averages, KDJ) to JSON/CSV and evaluates strategy returns against the CSI 300 index.

## Use cases
- scrape historical quotes for all China A-share stocks
- backtest a technical-analysis stock picking strategy
- export stock data with moving averages and KDJ to CSV or JSON
- compare stock selection returns against the CSI 300 index
- define stock screening rules with expressions
- download Shanghai Shenzhen market data for a date range

## When to choose
- you need historical China A-share data with basic technical indicators
- you want to quickly test and iterate on technical stock-screening strategies
- you prefer a simple CLI-driven Python workflow with CSV/JSON output

## When to avoid
- you need live or intraday data feeds
- you require accurate backtests for stocks with ex-dividend adjustments
- you need many indicators like MACD or BOLL, or database storage
- you need a maintained project - it has not been updated since 2020

## Facets
- artifact type: framework
- maturity: abandoned
- function: web-scraping, data-science, trading, cli, etl
- domain: fintech, analytics
- platform: python, cli
- tags: stock-market, china-a-shares, backtesting, stock-screener, technical-analysis, yql, sina-finance, data-engineering, command-line, macos, linux

## Member repositories
- benitoro/stockholm (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:56.709024+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:04.025243+00:00, confidence not recorded.
  - readme: https://github.com/benitoro/stockholm (fetched 2026-08-28T04:04:56.709024+00:00, sha 8e366bac8be6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
