> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed widget

> Drop a live odds card into any web page via iframe or auto-mounted helper script.

The embed widget renders a live odds card with current price, sparkline, and resolution metadata.

## iframe

```html theme={null}
<iframe
  src="https://simplefunctions.dev/embed/KXRATECUT-26DEC31"
  width="320" height="220"
  loading="lazy"
  style="border: 0; border-radius: 8px;"
></iframe>
```

The route is `/embed/[ticker]`. Replace the ticker with any Kalshi or Polymarket id.

## embed.js helper

```html theme={null}
<div data-sf-embed="KXRATECUT-26DEC31"></div>
<script src="https://simplefunctions.dev/embed.js" async></script>
```

The script auto-finds every `[data-sf-embed]` element and inserts an iframe with the right size.

## Embed builder

For visual config (size, theme, show/hide labels):

```text theme={null}
https://simplefunctions.dev/embed
```

Returns embed HTML you can copy-paste.

## Live updates

The embedded iframe polls every 30s for price updates. No WebSocket — it's a static-friendly drop-in.

## Auth

Public; no API key required. Embeds are rate-limited per-domain.
