openbb
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "openbb" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1e1f5689848389a7865d7c574b9b30e0606b85112425d3aee1d3f5d68697ffc1. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/use-openbb-as-financial-data-context-for-agents before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Uses OpenBB to extract financial and economic data and route outputs into agent workflows: employs OpenBB to pull market data, documents, economic and research datasets, then routes outputs into agent workflows via Python, REST, OpenBB Workspace, or MCP-oriented integrations.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
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
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供全面的金融数据访问能力,覆盖股票、加密货币、外汇、宏观经济等多个领域
- 支持多种集成方式(Python SDK、REST API、MCP服务器),满足不同技术栈需求
- 包含完整的端到端示例和实际应用场景,如股票分析管道和筛选发现功能
Highlights
- 触发描述清晰完整,明确指出了适用场景和使用时机
- frontmatter中的description位置正确,内容详实且无截断
Highlights
- 文档结构清晰,包含概述、安装、快速开始、各类数据访问示例等完整章节
- 提供了多个实际可运行的代码示例,涵盖不同数据类型和使用场景
- frontmatter完整,包含必要的元数据信息
Highlights
- 工具来源明确(OpenBB官方),安装命令正确
- 提供了多种数据提供商的配置说明和API密钥设置方法
- 包含错误处理建议和最佳实践指南
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 38, 41, 172 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 123
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- 127.0.0.1
- discord.com
- docs.openbb.co
- github.com
- pro.openbb.co
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.