# Logo API for Portfolio Trackers

> Show stock and crypto logos next to holdings in your portfolio tracker. LoadLogo handles ticker resolution, crypto symbols, and edge-cached delivery.

## Integration Steps

1. **Map holdings to URLs** — Convert ticker symbols and crypto symbols to `img.loadlogo.com/ticker/{SYMBOL}` or `img.loadlogo.com/crypto/{symbol}`.
2. **Display inline** — Use logo URLs directly in `<img>` tags within your holdings table or list.
3. **Enrich with metadata** — Fetch company/token name and details via the API metadata endpoints.
4. **Use brand colors** — Access brand colors for visual coding and chart themes.

## Benefits

- Unified API covers stocks and crypto in one call pattern
- Instant loading from edge-cached logos
- 20,000+ crypto tokens and all major stock exchanges
- Consistent sizing across all logos
- Brand colors available for charts and UI
- Free tier for personal and hobby projects

## Code Example

```javascript
const holdings = [
  { type: "stock", symbol: "AAPL", shares: 10 },
  { type: "crypto", symbol: "btc", amount: 0.5 },
];

holdings.map(h => ({
  ...h,
  logoUrl: h.type === "stock"
    ? `https://img.loadlogo.com/ticker/${h.symbol}?size=32`
    : `https://img.loadlogo.com/crypto/${h.symbol}?size=32`,
}));
```

## Related Features

- [Stock Ticker Logos](/features/stock-tickers.md)
- [Cryptocurrency Logos](/features/crypto-logos.md)
