Skip to main content

Widgets

Asset card

Live price, 24h change, and a sparkline for one asset. Source path is /embed/asset/<slug>.

XLM (native)
<iframe
  src="https://testnet.stellarindex.io/embed/asset/XLM"
  width="320"
  height="180"
  frameborder="0"
  loading="lazy"
  title="XLM (native) price card"
></iframe>
USDC (Centre)
<iframe
  src="https://testnet.stellarindex.io/embed/asset/USDC"
  width="320"
  height="180"
  frameborder="0"
  loading="lazy"
  title="USDC (Centre) price card"
></iframe>
AQUA
<iframe
  src="https://testnet.stellarindex.io/embed/asset/AQUA"
  width="320"
  height="180"
  frameborder="0"
  loading="lazy"
  title="AQUA price card"
></iframe>

Pair card

Live VWAP for a (base, quote) pair. Source path is /embed/pair/<base>~<quote> (URL-encode the tilde when embedding from servers that require strict path encoding).

XLM / USDC
<iframe
  src="https://testnet.stellarindex.io/embed/pair/native~USDC-GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN"
  width="380"
  height="200"
  frameborder="0"
  loading="lazy"
  title="XLM / USDC price card"
></iframe>

Currency card

Live USD-base rate + 7d change for one fiat currency. Source path is /embed/currency/<ticker>.

EUR (Euro)
<iframe
  src="https://testnet.stellarindex.io/embed/currency/EUR"
  width="320"
  height="180"
  frameborder="0"
  loading="lazy"
  title="EUR (Euro) rate card"
></iframe>
GBP (British Pound)
<iframe
  src="https://testnet.stellarindex.io/embed/currency/GBP"
  width="320"
  height="180"
  frameborder="0"
  loading="lazy"
  title="GBP (British Pound) rate card"
></iframe>
JPY (Japanese Yen)
<iframe
  src="https://testnet.stellarindex.io/embed/currency/JPY"
  width="320"
  height="180"
  frameborder="0"
  loading="lazy"
  title="JPY (Japanese Yen) rate card"
></iframe>

Notes

  • No auth, no API key. The widgets read from the public tier of the Stellar Index API. Sites with extreme traffic should host their own copy or use a free API key for the higher rate-limit.
  • Light + dark. The widgets follow the embedding page's color scheme via prefers-color-scheme. Tested against light, dark, and system-default backgrounds.
  • Sandboxed. The iframe runs in a sandboxed browsing context. The widget cannot read your page's cookies, localStorage, or DOM.
  • Apex domain only. Embed against the apex (stellarindex.io), not a preview deployment. Cloudflare-Pages preview URLs are firewalled from external embedding.