Finflow 是一个通过 Bash 调用的中文金融数据 CLI,包名为 @openduo/finflow,安装命令为 npm install -g @openduo/finflow。它聚合财联社(CLS)、金十(Jin10)、雪球(Xueqiu)、格隆汇(Gelonghui)四个平台的数据,并以 Yahoo Finance 作为其未覆盖市场(日本、韩国、香港、美国)的回退来源,覆盖 A 股、港股、美股、期货、商品、外汇、全球指数、宏观数据与快讯。
主要能力按用途分为:个股行情(quote、quote batch、quote kline、quote depth/timeline/ticks);板块与行业(quote industry、quote board、sector rank、sector anchor、sector plate、sector stocks、quote related);基本面与财报(quote f10 indicator/holders/bonus、quote finance -t income|balance|cashflow|indicator);大盘总览(market、market index、market emotion、market hk、market longhu、market rates);资金面(quote flow、flow market、flow history、flow margin);资讯(info flash、info news、info topic、info search);宏观日历与期货(calendar macro|event|holiday、calendar ashare|hk|us、future、price、price kline)。
使用方式:命令通过 Bash 运行,输出始终为一行紧凑 JSON,形如 {"data": {...}, "meta": {"source", "timestamp", "command"}},可管道给 jq 或 python 解析。股票代码格式灵活,sh600519、SH600519、600519 均可,CLI 内部会归一化。名称转代码需先运行 quote search <名字>,不要凭名称猜测代码。百分比字段为百分数本身,如 changePercent: -4.34 表示 -4.34%,展示时直接加 %,不要乘除 100。
限制与注意:概念/行业词搜索返回的是板块、指数与 ETF,而非成分股列表;搜索匹配官方证券名称的子串或前缀,市场俚语(如“宁王”)不会命中;sector rank -t concept 只列当日热门概念,通常不含目标概念,需用 sector plate <已知成分股> 反查 cls 码;quote search 的 -n 参数无效,始终返回约 10 条结果;部分功能(如 flash date、topic show)需要登录或 cookie。资料未提供收费、价格与平台支持等更多信息。