---
name: eodhd-compare
description: >-
  Side-by-side comparison of two or more companies using EODHD data — valuation,
  financials, profitability, performance, and dividends in comparison tables.
  Invoke as /eodhd-compare <ticker1> <ticker2> ...
argument-hint: "<ticker1> <ticker2> [ticker3 ...]"
---

Compare the following companies side-by-side using EODHD data: $ARGUMENTS

Parse the arguments as ticker symbols separated by spaces or commas (e.g., "AAPL MSFT" or "AAPL.US, MSFT.US").

For each company, fetch:
1. Company fundamentals (valuation, financials, profile)
2. Recent price history (last 90 days for performance comparison)
3. Key technical indicators (RSI, SMA trends)

Present a side-by-side comparison table covering:

**Valuation**
| Metric | [Ticker 1] | [Ticker 2] | ... |
- P/E (TTM), Forward P/E, P/S, P/B, EV/EBITDA

**Financials**
| Metric | [Ticker 1] | [Ticker 2] | ... |
- Revenue, Net Income, EPS, Revenue Growth YoY

**Profitability**
| Metric | [Ticker 1] | [Ticker 2] | ... |
- Gross Margin, Operating Margin, Net Margin, ROE, ROA

**Performance**
| Metric | [Ticker 1] | [Ticker 2] | ... |
- 30d return, YTD return, 52-week range, distance from high

**Dividends**
| Metric | [Ticker 1] | [Ticker 2] | ... |
- Dividend Yield, Payout Ratio, Ex-Date

**Summary**: 3-5 bullet points highlighting key differences and which company looks stronger on each dimension.

Include disclaimer: "This is not financial advice. Data is for informational purposes only."
