stocks
Stock quotes, history, search, compare, crypto via Yahoo.
What this skill does
# Stocks Skill Read-only market data via Yahoo Finance. Five commands: `quote`, `search`, `history`, `compare`, `crypto`. Python stdlib only — no API key, no pip installs. Yahoo's endpoint is unofficial and may rate-limit or change. ## When to Use - User asks for a current stock price (AAPL, TSLA, MSFT, ...) - User wants to look up a ticker by company name - User wants OHLCV history or performance over a date range - User wants to compare several tickers side by side - User asks for a crypto price (BTC, ETH, SOL, ...) ## Prerequisites Python 3.8+ stdlib only. Optional: set `ALPHA_VANTAGE_KEY` to enrich `market_cap`, `pe_ratio`, and 52-week levels when Yahoo's crumb-protected fields come back null. Free key: https://www.alphavantage.co/support/#api-key ## How to Run Invoke through the `terminal` tool. Once installed: ``` SCRIPT=~/.hermes/skills/finance/stocks/scripts/stocks_client.py python3 $SCRIPT quote AAPL ``` All output is JSON on stdout — pipe through `jq` if you want to slice it. ## Quick Reference ``` python3 $SCRIPT quote AAPL python3 $SCRIPT quote AAPL MSFT GOOGL TSLA python3 $SCRIPT search "Tesla" python3 $SCRIPT history NVDA --range 6mo python3 $SCRIPT compare AAPL MSFT GOOGL python3 $SCRIPT crypto BTC ETH SOL ``` ## Commands ### `quote SYMBOL [SYMBOL2 ...]` Current price, change, change%, volume, 52-week high/low. ### `search QUERY` Find tickers by company name. Returns top 5: symbol, name, exchange, type. ### `history SYMBOL [--range RANGE]` Daily OHLCV plus stats (min, max, avg, total return %). Ranges: `1mo`, `3mo`, `6mo`, `1y`, `5y`. Default: `1mo`. ### `compare SYMBOL1 SYMBOL2 [...]` Side-by-side: price, change%, 52-week performance. ### `crypto SYMBOL [SYMBOL2 ...]` Crypto prices. Pass `BTC` (the script appends `-USD` automatically). ## Pitfalls - Yahoo Finance's API is unofficial. Endpoints can change or rate-limit without notice — if requests start failing, that's why. - `market_cap` and `pe_ratio` may return null on `quote` when Yahoo's crumb session isn't established. Set `ALPHA_VANTAGE_KEY` to backfill. - Add a small delay between bulk requests to avoid rate-limiting. - This is read-only — no order placement, no account integration. ## Verification ``` python3 ~/.hermes/skills/finance/stocks/scripts/stocks_client.py quote AAPL ``` Returns a JSON object with `symbol: "AAPL"` and a numeric `price` field.
Related in Web3
xaut-trade
IncludedBuy or sell XAUT (Tether Gold) on Ethereum. Supports market orders (Uniswap V3) and limit orders (UniswapX). Wallet modes: Foundry keystore or WDK. Delegates non-XAUT intents to registered skills (e.g. Polymarket prediction markets, Hyperliquid trading). Triggers: buy XAUT, XAUT trade, swap USDT for XAUT, sell XAUT, swap XAUT for USDT, limit order, limit buy XAUT, limit sell XAUT, check limit order, cancel limit order, XAUT when, create wallet, setup wallet, polymarket, prediction market, bet on, odds on, hyperliquid, perp, perpetual, long, short, open long, open short, close position, leverage.
qfc-openclaw-skill
IncludedQFC blockchain interaction — wallet, faucet, chain queries, staking, epoch & finality, AI inference
gate-dex-trade
IncludedExecutes on-chain token swaps via Gate DEX. Use when user wants to swap, buy, sell, exchange, or convert tokens, or bridge cross-chain. Covers full swap flow: price quotes, transaction build, signing, and submission. Do NOT use for read-only data lookups or wallet account management.
hunch
IncludedDiscover, bet on, track, and settle Hunch prediction markets in natural language. Trigger when a user wants to bet, take a position, or get odds on a crypto outcome — token market-cap milestones and flips, launchpad races (Bankr vs pump.fun volume / #1-days / launches over a cap), token head-to-head outperformance, mcap strike-ladders, and up/down price rounds. Also trigger on "what can I bet on about $TOKEN", "odds on …", "take YES/NO on …", "show my Hunch bets", "did my market resolve". Settles in USDC on Base via x402 (≤ $10 / bet); every bet returns an on-chain proof.
opensea
IncludedQuery NFT data, trade on the Seaport marketplace, and swap ERC20 tokens across Ethereum, Base, Arbitrum, Optimism, Polygon, and more.
polymarket
IncludedTrade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").