← 返回
开发者工具 Key 中文

open-market-data

Query free financial data APIs — stocks, crypto, macro, SEC filings
查询免费金融数据API——股票、加密货币、宏观经济、SEC文件
anotb
开发者工具 clawhub v0.1.0 1 版本 99745.8 Key: 需要
★ 1
Stars
📥 1,157
下载
💾 112
安装
1
版本
#crypto#edgar#finance#fred#latest#macro#sec#stocks

概述

open-market-data (omd)

Unified CLI for free financial data. Queries 8 sources behind a single interface with automatic routing and fallback.

Quick Reference

# Stock quotes
omd quote AAPL
omd quote AAPL MSFT GOOGL

# Search
omd search "Apple Inc"

# Financial statements
omd financials AAPL
omd financials AAPL -p quarterly -l 8

# Price history
omd history AAPL --days 90

# Earnings
omd earnings AAPL

# Dividends
omd dividends AAPL

# Options chain
omd options AAPL
omd options AAPL -t call

# SEC filings
omd filing AAPL --type 10-K --latest
omd filing TSLA --type 8-K -l 5

# Insider transactions
omd insiders AAPL

# Crypto
omd crypto BTC
omd crypto top 20
omd crypto history ETH -d 30

# Macroeconomic data
omd macro GDP
omd macro GDP --limit 12
omd macro search "unemployment rate"

# Output formats
omd --json quote AAPL
omd --plain quote AAPL

# Force specific source
omd quote AAPL --source finnhub
omd financials AAPL --source sec-edgar
omd macro NY.GDP.MKTP.CD --source worldbank

# Bypass cache
omd --no-cache quote AAPL

# See all sources and their status
omd sources

# Configure API keys
omd config set fredApiKey <key>
omd config show

Sources

SourceKey?Best For
------------------------
SEC EDGARNoFilings, XBRL financials, insider transactions
Yahoo FinanceNoReal-time quotes, price history, options, dividends
BinanceNoCrypto prices (non-US only)
CoinGeckoFree keyCrypto rankings, broader crypto coverage
FREDFree keyGDP, unemployment, interest rates, 800K+ economic series
FinnhubFree keyReal-time stock quotes, earnings data
Alpha VantageFree keyStock quotes, financials, price history (25/day limit)
World BankNoGlobal economic indicators (GDP, unemployment, inflation)

When to Use --json

Use --json when you need to parse the output programmatically. Always place --json before the command:

omd --json quote AAPL
omd --json financials AAPL -p quarterly
omd --json crypto top 10
omd --json macro GDP --limit 5

Configuration

API keys via env vars or CLI:

export FRED_API_KEY=your_key
export COINGECKO_API_KEY=your_key
export FINNHUB_API_KEY=your_key
export ALPHA_VANTAGE_API_KEY=your_key
export EDGAR_USER_AGENT="YourCompany you@email.com"

# Or use CLI config
omd config set fredApiKey your_key
omd config set coingeckoApiKey your_key
omd config set finnhubApiKey your_key
omd config set alphaVantageApiKey your_key
omd config show

Routing

Commands automatically route to the best available source. If the top source fails or hits its rate limit, it falls back to the next one. Use --source to force a specific provider.

Data TypePriority Order
--------------------------
Stock quotesYahoo → Finnhub → Alpha Vantage
FinancialsSEC EDGAR → Yahoo → Alpha Vantage
Price historyYahoo → Alpha Vantage
EarningsYahoo → Finnhub
DividendsYahoo
OptionsYahoo
SEC filingsSEC EDGAR
InsidersSEC EDGAR
CryptoBinance → CoinGecko
Macro/economicFRED → World Bank
SearchSEC EDGAR → Yahoo → Finnhub → Alpha Vantage

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 07:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,089
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,107
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,782