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
| Source |
Key? |
Best For |
| SEC EDGAR |
No |
Filings, XBRL financials, insider transactions |
| Yahoo Finance |
No |
Real-time quotes, price history, options, dividends |
| Binance |
No |
Crypto prices (non-US only) |
| CoinGecko |
Free key |
Crypto rankings, broader crypto coverage |
| FRED |
Free key |
GDP, unemployment, interest rates, 800K+ economic series |
| Finnhub |
Free key |
Real-time stock quotes, earnings data |
| Alpha Vantage |
Free key |
Stock quotes, financials, price history (25/day limit) |
| World Bank |
No |
Global 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 <name> to force a specific provider.
| Data Type |
Priority Order |
| Stock quotes |
Yahoo → Finnhub → Alpha Vantage |
| Financials |
SEC EDGAR → Yahoo → Alpha Vantage |
| Price history |
Yahoo → Alpha Vantage |
| Earnings |
Yahoo → Finnhub |
| Dividends |
Yahoo |
| Options |
Yahoo |
| SEC filings |
SEC EDGAR |
| Insiders |
SEC EDGAR |
| Crypto |
Binance → CoinGecko |
| Macro/economic |
FRED → World Bank |
| Search |
SEC EDGAR → Yahoo → Finnhub → Alpha Vantage |
1---
2name: open-market-data
3description: Query free financial data APIs — stocks, crypto, macro, SEC filings
4version: 0.1.0
5tags: [finance, stocks, crypto, macro, sec, edgar, fred]
6tools: [Bash]
7metadata:
8 source: https://skillmd.com/skills/modbender/open-market-data
9 openclaw:
10 requires:
11 bins: [node, omd]
12 install:
13 - kind: node
14 package: open-market-data
15 bins: [omd]
16 homepage: https://github.com/anotb/open-market-data
17 emoji: "\U0001F4C8"
18---
19
20# open-market-data (omd)
21
22Unified CLI for free financial data. Queries 8 sources behind a single interface with automatic routing and fallback.
23
24## Quick Reference
25
26```bash
27# Stock quotes
28omd quote AAPL
29omd quote AAPL MSFT GOOGL
30
31# Search
32omd search "Apple Inc"
33
34# Financial statements
35omd financials AAPL
36omd financials AAPL -p quarterly -l 8
37
38# Price history
39omd history AAPL --days 90
40
41# Earnings
42omd earnings AAPL
43
44# Dividends
45omd dividends AAPL
46
47# Options chain
48omd options AAPL
49omd options AAPL -t call
50
51# SEC filings
52omd filing AAPL --type 10-K --latest
53omd filing TSLA --type 8-K -l 5
54
55# Insider transactions
56omd insiders AAPL
57
58# Crypto
59omd crypto BTC
60omd crypto top 20
61omd crypto history ETH -d 30
62
63# Macroeconomic data
64omd macro GDP
65omd macro GDP --limit 12
66omd macro search "unemployment rate"
67
68# Output formats
69omd --json quote AAPL
70omd --plain quote AAPL
71
72# Force specific source
73omd quote AAPL --source finnhub
74omd financials AAPL --source sec-edgar
75omd macro NY.GDP.MKTP.CD --source worldbank
76
77# Bypass cache
78omd --no-cache quote AAPL
79
80# See all sources and their status
81omd sources
82
83# Configure API keys
84omd config set fredApiKey <key>
85omd config show
86```
87
88## Sources
89
90| Source | Key? | Best For |
91|--------|------|----------|
92| SEC EDGAR | No | Filings, XBRL financials, insider transactions |
93| Yahoo Finance | No | Real-time quotes, price history, options, dividends |
94| Binance | No | Crypto prices (non-US only) |
95| CoinGecko | Free key | Crypto rankings, broader crypto coverage |
96| FRED | Free key | GDP, unemployment, interest rates, 800K+ economic series |
97| Finnhub | Free key | Real-time stock quotes, earnings data |
98| Alpha Vantage | Free key | Stock quotes, financials, price history (25/day limit) |
99| World Bank | No | Global economic indicators (GDP, unemployment, inflation) |
100
101## When to Use --json
102
103Use `--json` when you need to parse the output programmatically. Always place `--json` before the command:
104
105```bash
106omd --json quote AAPL
107omd --json financials AAPL -p quarterly
108omd --json crypto top 10
109omd --json macro GDP --limit 5
110```
111
112## Configuration
113
114API keys via env vars or CLI:
115
116```bash
117export FRED_API_KEY=your_key
118export COINGECKO_API_KEY=your_key
119export FINNHUB_API_KEY=your_key
120export ALPHA_VANTAGE_API_KEY=your_key
121export EDGAR_USER_AGENT="YourCompany you@email.com"
122
123# Or use CLI config
124omd config set fredApiKey your_key
125omd config set coingeckoApiKey your_key
126omd config set finnhubApiKey your_key
127omd config set alphaVantageApiKey your_key
128omd config show
129```
130
131## Routing
132
133Commands 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 <name>` to force a specific provider.
134
135| Data Type | Priority Order |
136|-----------|---------------|
137| Stock quotes | Yahoo → Finnhub → Alpha Vantage |
138| Financials | SEC EDGAR → Yahoo → Alpha Vantage |
139| Price history | Yahoo → Alpha Vantage |
140| Earnings | Yahoo → Finnhub |
141| Dividends | Yahoo |
142| Options | Yahoo |
143| SEC filings | SEC EDGAR |
144| Insiders | SEC EDGAR |
145| Crypto | Binance → CoinGecko |
146| Macro/economic | FRED → World Bank |
147| Search | SEC EDGAR → Yahoo → Finnhub → Alpha Vantage |