futu-api富途牛牛API数据获取技能。 纯数据版本,专注于股票行情数据获取和技术分析。 触发场景:查询股票行情、分析K线数据、计算技术指标、监控市场变化。 适用于:港股、美股市场数据分析和量化研究。
Install via ClawdBot CLI:
clawdbot install jeffersonling1217-png/futu-api基于富途牛牛官方API的纯数据技能,提供股票行情数据获取和技术分析功能。无交易功能,专注于数据分析和市场监控。
cd /Users/chengling/.openclaw/workspace/skills/futu-api
pip install -r requirements.txt
127.0.0.1:11111# 查询实时行情
python futu_api.py quote 00700 --market HK
# 获取K线数据
python futu_api.py kline 00700 --market HK --type 5m --count 100
# 计算技术指标
python futu_api.py indicators 00700 --market HK --type day --count 30
# 查看板块列表
python futu_api.py plates --market HK
# 获取逐笔成交
python futu_api.py ticker 00700 --market HK --count 10
# 查看资金流向
python futu_api.py capital 00700 --market HK
# 查看市场状态
python futu_api.py market --market HK
# 查看股票信息
python futu_api.py info 00700 --market HK
python futu_api.py quote 00700 --market HK
输出示例:
symbol : 00700
market : HK
price : 518.0000
change : +6.0000
change_percent: +1.17%
volume : 32,229,030
time : 16:08:06
支持多种周期:
1m - 1分钟线5m - 5分钟线15m - 15分钟线30m - 30分钟线60m - 60分钟线day - 日线week - 周线month - 月线# 获取5分钟K线
python futu_api.py kline 00700 --market HK --type 5m --count 20
# JSON格式输出
python futu_api.py kline 00700 --market HK --type day --count 10 --format json
python futu_api.py indicators 00700 --market HK --type day --count 30
计算指标:
ma5, ma10, ma20 - 移动平均线rsi - 相对强弱指数bb_upper, bb_middle, bb_lower - 布林带current, high, low - 价格统计# 查看板块列表
python futu_api.py plates --market HK
# 查看前20个板块
# 获取最近成交
python futu_api.py ticker 00700 --market HK --count 10
# 查看资金流向
python futu_api.py capital 00700 --market HK
# 输出示例:
# 主力净流入: +1.2亿
# 散户净流出: -0.8亿
# 资金情绪: 积极
# 查看市场状态
python futu_api.py market --market HK
# 输出示例:
# 市场状态: 收市
# 是否开市: 否
# 查看股票信息
python futu_api.py info 00700 --market HK
# 输出示例:
# 股票名称: TENCENT
# 每手股数: 100
# 上市日期: 2004-06-16
futu-api/
├── futu_api.py # 主程序 (核心代码)
├── requirements.txt # 依赖文件
├── SKILL.md # 技能文档
└── README.md # 使用说明
FutuAPI 类class FutuAPI:
def connect(self): # 连接API
def get_quote(symbol, market): # 获取行情
def get_kline(symbol, market, ktype, count): # 获取K线
def get_indicators(kline_data): # 计算技术指标
def get_plates(market): # 获取板块
def get_ticker(symbol, market, count): # 获取逐笔
from futu_api import FutuAPI
api = FutuAPI()
api.connect()
# 获取腾讯行情
quote = api.get_quote('00700', 'HK')
if quote:
print(f"腾讯: {quote['price']} ({quote['change_percent']:+.2f}%)")
api.disconnect()
from futu_api import FutuAPI
api = FutuAPI()
api.connect()
# 获取K线并计算指标
kline = api.get_kline('00700', 'HK', 'day', 30)
indicators = api.get_indicators(kline)
if indicators:
print(f"MA5: {indicators.get('ma5', 'N/A')}")
print(f"RSI: {indicators.get('rsi', 'N/A')}")
# RSI超卖/超买判断
rsi = indicators.get('rsi')
if rsi:
if rsi < 30:
print("🟢 RSI超卖,可能反弹")
elif rsi > 70:
print("🔴 RSI超买,可能回调")
api.disconnect()
默认连接地址:127.0.0.1:11111
如需修改,可在代码中调整:
api = FutuAPI(host="127.0.0.1", port=11111)
# 检查FutuOpenD是否运行
ps aux | grep FutuOpenD
# 检查端口
netstat -an | grep 11111
# 测试连接
telnet 127.0.0.1 11111
# 检查FutuOpenD是否运行
ps aux | grep FutuOpenD
# 重启FutuOpenD并重新登录
# 检查股票代码格式
python futu_api.py quote 00700 --market HK
# 检查市场类型
python futu_api.py quote AAPL --market US
# 减少数据量
python futu_api.py kline 00700 --count 10
# 增加查询间隔
# 避免连续高频查询
版本: 1.0.0
最后更新: 2026-02-27
技能类型: 纯数据获取
适用市场: 港股、美股
Generated Mar 1, 2026
Quantitative analysts and researchers use this skill to fetch historical stock data and calculate technical indicators for backtesting trading strategies. It supports multiple timeframes like 1-minute to monthly K-lines, enabling detailed analysis of market trends and performance evaluation.
Individual and institutional investors utilize this skill to monitor real-time stock quotes, track price changes, and analyze capital flows in Hong Kong and US markets. It helps in making informed investment decisions by providing up-to-date market data without trading capabilities.
Day traders rely on this skill to access K-line data and compute indicators like RSI and moving averages for short-term trading decisions. The ability to fetch tick-by-tick trades and market status allows for precise timing and risk management during active trading hours.
Portfolio managers and analysts use this skill to retrieve plate lists and sector data, aiding in diversification and sector rotation strategies. By analyzing market segments, they can identify trends and adjust holdings based on broader market movements.
Offer premium access to enriched market data, advanced indicators, or real-time alerts through a subscription model. This can cater to professional traders and firms needing high-frequency or customized data feeds beyond basic API limits.
Partner with trading platforms or financial software providers to integrate this skill as a data module, enhancing their offerings with reliable stock market insights. Revenue is generated through licensing fees or revenue-sharing agreements based on user adoption.
Develop educational courses or tools that teach technical analysis using this skill, targeting students and novice investors. Revenue comes from course sales, workshops, or certification programs that leverage the data for practical learning.
💬 Integration Tip
Ensure FutuOpenD is running and logged in before use, and configure the connection to 127.0.0.1:11111 for seamless data retrieval.
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management, watchlists with alerts, dividend analysis, 8-dimension stock scoring, viral trend detection (Hot Scanner), and rumor/early signal detection. Use for stock analysis, portfolio tracking, earnings reactions, crypto monitoring, trending stocks, or finding rumors before they hit mainstream.
Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
Yahoo Finance (yfinance) powered stock analysis skill: quotes, fundamentals, ASCII trends, high-resolution charts (RSI/MACD/BB/VWAP/ATR), plus optional web a...
Become an autonomous prediction market trader on Polymarket with AI-powered analysis and a performance-backed token on Base. Trade real markets, build a track record, and let the buyback flywheel run.
Get cryptocurrency token price and generate candlestick charts via CoinGecko API or Hyperliquid API. Use when user asks for token price, crypto price, price chart, or cryptocurrency market data.
Trade and monitor Hyperliquid perpetual futures. Check balances, view positions with P&L, place/cancel orders, execute market trades. Use when the user asks about Hyperliquid trading, portfolio status, crypto positions, or wants to execute trades on Hyperliquid.