openbb
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "openbb":https://skillpi.com/zh/skills/deepskill-1e1f5689848389a7865d7c574b9b30e0606b85112425d3aee1d3f5d68697ffc1。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/use-openbb-as-financial-data-context-for-agents。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
使用 OpenBB 提取金融与经济数据并将输出路由到代理工作流:利用 OpenBB 从金融市场提取数据、文件、经济与研究数据,然后通过 Python、REST、OpenBB Workspace 或面向 MCP 的集成,将输出路由到代理工作流中。
介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: openbb
description: >-
Access financial data for analysis, quantitative research, and AI agents using OpenBB
platform — stocks, crypto, forex, macro economics, alternative data. Use when: building
financial analysis tools, feeding market data to AI agents, creating quantitative research
pipelines, accessing free financial data APIs.
license: AGPL-3.0
compatibility: "Python 3.10+"
metadata:
author: terminal-skills
version: "1.0.0"
category: data-ai
tags:
- finance
- market-data
- quant
- openbb
- ai-agentsOpenBB
Open Data Platform for financial data. Connect once, consume everywhere — Python for quants, REST API for apps, MCP server for AI agents. Access stocks, crypto, forex, macro indicators, and alternative data.
GitHub: OpenBB-finance/OpenBB
Overview
OpenBB is an open-source financial data platform that aggregates data from multiple providers (Yahoo Finance, FRED, SEC, FMP, Polygon, and more). It offers a Python SDK, REST API server, and MCP server for AI agents, covering equities, crypto, forex, macro economics, and news.
Instructions
Installation
# Core package
pip install openbb
# With all data providers
pip install "openbb[all]"
Quick Start
from openbb import obb
# Stock price history
output = obb.equity.price.historical("AAPL")
df = output.to_dataframe()
print(df.head())
Equity Data
# Historical prices
df = obb.equity.price.historical("AAPL", start_date="2025-01-01").to_dataframe()
# Real-time quote
quote = obb.equity.price.quote("AAPL").to_dataframe()
# Fundamental analysis
income = obb.equity.fundamental.income("AAPL", period="annual").to_dataframe()
balance = obb.equity.fundamental.balance("AAPL").to_dataframe()
metrics = obb.equity.fundamental.metrics("AAPL").to_dataframe()
# Technical indicators
df = obb.equity.price.historical("AAPL", start_date="2025-01-01").to_dataframe()
sma = obb.technical.sma(data=df, length=20)
rsi = obb.technical.rsi(data=df, length=14)
macd = obb.technical.macd(data=df)
Crypto, Forex, and Macro
# Crypto
btc = obb.crypto.price.historical("BTC-USD").to_dataframe()
# Forex
eurusd = obb.currency.price.historical("EUR/USD").to_dataframe()
# Macro economics
gdp = obb.economy.gdp.nominal(country="united_states").to_dataframe()
cpi = obb.economy.cpi(country="united_states").to_dataframe()
rates = obb.economy.fred_series("FEDFUNDS").to_dataframe()
AI Agent Integration
Run OpenBB as an API server:
openbb-api
# Launches FastAPI at http://127.0.0.1:6900
Query from any language:
curl http://127.0.0.1:6900/api/v1/equity/price/historical?symbol=AAPL
OpenBB also exposes an MCP server so AI agents can query financial data directly.
Data Providers
| Provider | Data | Free Tier |
|---|---|---|
| Yahoo Finance | Prices, fundamentals | Yes |
| FRED | Macro economics | Yes |
| SEC (EDGAR) | Filings, insider trades | Yes |
| FMP | Fundamentals, estimates | Limited |
| Polygon | Real-time prices | Limited |
# Use a specific provider
obb.equity.price.historical("AAPL", provider="yfinance")
# Set API keys for premium providers
obb.user.credentials.fmp_api_key = "your_key"
Examples
Example 1: Full Stock Analysis Pipeline
from openbb import obb
def analyze_stock(ticker: str) -> dict:
"""Full analysis for AI agent consumption."""
price = obb.equity.price.historical(ticker, start_date="2025-01-01").to_dataframe()
fundamentals = obb.equity.fundamental.metrics(ticker).to_dataframe()
news = obb.news.company(ticker, limit=5).to_dataframe()
return {
"ticker": ticker,
"current_price": price["close"].iloc[-1],
"52w_high": price["high"].max(),
"52w_low": price["low"].min(),
"pe_ratio": fundamentals["pe_ratio"].iloc[0] if len(fundamentals) > 0 else None,
"market_cap": fundamentals["market_cap"].iloc[0] if len(fundamentals) > 0 else None,
"recent_news": news["title"].tolist() if len(news) > 0 else [],
}
analysis = analyze_stock("AAPL")
Example 2: Screening and Discovery
# Stock screener — find undervalued dividend stocks
screener = obb.equity.screener(
market_cap_min=1e9,
pe_ratio_max=20,
dividend_yield_min=2.0
).to_dataframe()
# Top gainers/losers
gainers = obb.equity.discovery.gainers().to_dataframe()
losers = obb.equity.discovery.losers().to_dataframe()
# Company news
news = obb.news.company("AAPL", limit=20).to_dataframe()
Guidelines
- Start with
pip install openbb(core) — add[all]only if you need every provider - Use
.to_dataframe()on all outputs for pandas integration - Free data from Yahoo Finance and FRED covers most research needs
- Run
openbb-apito expose data to non-Python applications - The MCP server lets AI agents query financial data autonomously
- Check docs.openbb.co/python/reference for all available endpoints
Resources
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供全面的金融数据访问能力,覆盖股票、加密货币、外汇、宏观经济等多个领域
- 支持多种集成方式(Python SDK、REST API、MCP服务器),满足不同技术栈需求
- 包含完整的端到端示例和实际应用场景,如股票分析管道和筛选发现功能
亮点
- 触发描述清晰完整,明确指出了适用场景和使用时机
- frontmatter中的description位置正确,内容详实且无截断
亮点
- 文档结构清晰,包含概述、安装、快速开始、各类数据访问示例等完整章节
- 提供了多个实际可运行的代码示例,涵盖不同数据类型和使用场景
- frontmatter完整,包含必要的元数据信息
亮点
- 工具来源明确(OpenBB官方),安装命令正确
- 提供了多种数据提供商的配置说明和API密钥设置方法
- 包含错误处理建议和最佳实践指南
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 38, 41, 172 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 123 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- 127.0.0.1
- discord.com
- docs.openbb.co
- github.com
- pro.openbb.co
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。