Prompt file imported from GoatWang/oysterun-ccstock-workenv-en (
.codex/prompts/lookup_stock.md). Copyright stays with the author.
Look Up Stock
Look up company profile, sector, and key metrics for a stock.
Usage
/lookup_stock <ticker> [market]
Examples
/lookup_stock AAPL
/lookup_stock 2330 TW
/lookup_stock 000858 CN
Instructions
When this command is invoked:
-
Parse arguments:
ticker: Stock ticker symbol (required)market: Market code —US,TW, orCN(optional, auto-detect)
-
Auto-detect market if not specified (same rules as check_price)
-
Fetch company info and key metrics using the market data fetcher:
cd $(pwd)/tool_scripts/market_data && uv run python fetcher_factory.py info <ticker> --market <market>
cd $(pwd)/tool_scripts/market_data && uv run python fetcher_factory.py metrics <ticker> --market <market>
- Format output in English:
🏢 <company name> (<ticker>)
Market: <market> | Industry: <sector>
Market Cap: <market_cap>
Employees: <employees>
📊 Key Metrics
Price/Earnings (P/E): <pe_ratio>
Price/Book (P/B): <pb_ratio>
ROE (ROE): <roe>%
ROA (ROA): <roa>%
Debt/Equity (D/E): <de_ratio>
Dividend Yield: <dividend_yield>%
52-Week High/Low: <52w_high> / <52w_low>
- Report the formatted result to the user.