compare_stocks
Compare 2–10 stocks side by side across price, market cap, P/E, EPS, dividend yield, 52-week range, and performance, with brief insights to support peer or relative analysis.
Instructions
Side-by-side comparison of 2-10 stocks across key metrics (price, market cap, P/E, EPS, dividend yield, 52-week range, and period performance) with brief auto-generated insights.
Use for "which is better, X or Y", peer/relative comparison, or screening a small set. For a deep dive on a single name use get_stock_quote or get_company_info.
Pass 2-10 tickers in the tickers list. Returns a Markdown comparison table by default, or JSON when response_format='json'. A ticker that fails to resolve is reported per-symbol rather than failing the whole call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tickers | Yes | List of 2-10 stock ticker symbols to compare (e.g., ['AAPL', 'MSFT', 'GOOGL']) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Set instead of data when there is nothing to return for this request (for example, no dividends on record). | |
| tickers | No | ||
| comparison | No |