# mlouielu/twstock

台灣股市股票價格擷取 (含即時股票資訊) - Taiwan Stock Opendata with realtime

Repository: https://github.com/mlouielu/twstock
Canonical: https://ross.abutalabs.com/products/twstock
Homepage: http://twstock.readthedocs.io/
Language: Python
License: MIT
License Family: permissive
Topics: stock, taiwanstock, opendata, finance, grs
Last push: 2026-06-23T14:57:28+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 80, longevity 100
- inputs: {"age_days": 3351, "days_push": 71, "days_rel": 132, "gap_med": 12, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1510, forks 410 (observed 2026-08-28T04:04:55.869732+00:00)

## What it is
A Python library and CLI tool for fetching Taiwan stock price data from the Taiwan Stock Exchange (TWSE) and Taipei Exchange (TPEX), including realtime quotes. It reimplements the functionality of toomore/grs with analysis helpers like moving averages and buy/sell point detection.

## Use cases
- fetch historical stock prices for Taiwan stocks
- get realtime stock quotes from TWSE
- compute moving averages and bias ratios for stocks
- find buy and sell points for Taiwan stocks
- scrape stock data from Taiwan Stock Exchange
- analyze TSMC 2330 stock price trends

## When to choose
- you need Taiwan stock market data in Python
- you want a lightweight scraper for TWSE/TPEX open data
- you need simple technical analysis like moving averages on Taiwan stocks

## When to avoid
- you need global or non-Taiwan market data
- you need a full backtesting or trading framework
- you require high-frequency request rates (TWSE rate limits to 3 requests per 5 seconds)

## Facets
- artifact type: library
- maturity: maintenance
- function: web-scraping, cli, data-science
- domain: fintech, data-science
- platform: python, cli
- tags: taiwan-stock, twse, tpex, stock-prices, opendata, finance, command-line

## Member repositories
- mlouielu/twstock (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:55.869732+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:27.337330+00:00, confidence not recorded.
  - readme: https://github.com/mlouielu/twstock (fetched 2026-08-28T04:04:55.869732+00:00, sha 2206528e9162)
  - registry_pypi: https://pypi.org/pypi/twstock/json (fetched 2026-08-29T11:37:10.096913+00:00, sha cc40ab109502)
- Data as of 2026-08-30T08:39:29.467469+00:00.
