# FutunnOpen/py-futu-api

富途 OpenAPI  Python SDK

Repository: https://github.com/FutunnOpen/py-futu-api
Canonical: https://ross.abutalabs.com/products/py-futu-api
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-04-01T08:32:17+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 75, release rhythm 35, longevity 100
- inputs: {"age_days": 2856, "days_push": 154, "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 1310, forks 264 (observed 2026-08-28T04:04:19.842103+00:00)

## What it is
The official Python SDK for the Futu OpenAPI, providing market data and trading interfaces for Hong Kong, US, and China A-share markets via the FutuOpenD gateway. It supports both low-frequency REST-style queries and high-frequency push subscriptions for quotes, tickers, K-lines, order books, and order placement.

## Use cases
- fetch real-time stock quotes and K-line data from Futu
- place and manage stock orders programmatically
- subscribe to tick-by-tick and order book push data
- query account positions and order lists for algorithmic trading
- build quantitative trading strategies on HK and US markets
- get market snapshots and sector/plate stock lists

## When to choose
- you trade through Futu (moomoo) brokerage and want programmatic access
- you need both market data feeds and trade execution in Python
- you are building quant strategies on Hong Kong or US equities

## When to avoid
- you use a different broker without a Futu account
- you need a broker-agnostic trading abstraction layer
- you cannot run the FutuOpenD gateway locally, which this SDK requires

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, streaming, trading
- domain: fintech, apis, developer-tools
- platform: python, cross-platform
- tags: futu, quantitative-trading, stock-market-data, hong-kong-stocks, trading-api, market-data, protobuf

## Member repositories
- FutunnOpen/py-futu-api (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:19.842103+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:49:53.136635+00:00, confidence not recorded.
  - readme: https://github.com/FutunnOpen/py-futu-api (fetched 2026-08-28T04:04:19.842103+00:00, sha e3795444007f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
