Live embed
A trader's live frame on your own page: one script, one tag, no key.
One script, one tag
A trader's live frame on your own page: the chart of what they trade right now with every buy and sell on it, what they hold, and their newest moves as they make them. One script and one tag. No key and no sign-in.
<script src="https://pnl.meme/zterm/embed.js" async></script>
<!-- one trader's live frame: a FOMO handle, or a pump.fun account id -->
<pnl-live handle="HANDLE"></pnl-live>
<pnl-live source="pump" actor="ACCOUNT_ID"></pnl-live>
<!-- his best trades as replays -->
<pnl-clips handle="HANDLE"></pnl-clips>
<!-- everyone who is live now; a card opens his frame in place -->
<pnl-streams></pnl-streams>
The frame is public and read-only: no sign-in, no wallet, no cookie. It is sandboxed, loads when it scrolls into view, fits its own height, and keeps itself current while it is open.
With no script
The same frame as a plain iframe, where a page takes no script. It keeps a fixed height and your page hears no events.
<iframe src="https://pnl.meme/v2/embed/live/HANDLE" width="100%" height="640" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-downloads"></iframe>
Attributes
A tag follows its attributes: change handle, actor, source, theme or limit on a tag already on the page and its frame opens the new address. An address that names nobody removes the frame until the attributes name one again.
What your page hears
The tag fires four DOM events, and they bubble. Each carries public facts only; nothing else leaves the frame, and the frame hears nothing from your page.
const tag = document.querySelector("pnl-live");
tag.addEventListener("pnl:live", (event) => {
badge.hidden = !event.detail.live;
});
tag.addEventListener("pnl:gone", () => {
tag.hidden = true;
});
// A single-page app moves the same tag to another trader:
tag.setAttribute("handle", "HANDLE");
Who a frame shows
- Only a trader shown outside pnl.meme has a frame. Any other address answers not available: the frame says so in one line and the tag fires pnl:gone.
- <pnl-streams> and get_live_traders list who is embedded and live right now, so a page never has to guess a handle.
- A frame says whether its trader is live, and pnl:live tells your page each time that changes.
- The frame's head opens the trader's page on PNL in a new tab. Nothing in a frame asks for a wallet or a sign-in.
Draw your own frame
The frame is PNL's design. To draw a trader in your own, read the same data: three tools on the same key as every other data door, each an MCP tool and a REST path.
curl "https://pnl.meme/v1/tools/get_live_trader?handle=<handle>&limit=40" \
-H "Authorization: Bearer pnl_..."
To be told instead of asking: the stream's live channel sends each new move of everyone get_live_traders lists, as a row that names its trader.
curl -N "https://pnl.meme/v1/stream?channels=live" \
-H "Authorization: Bearer pnl_..."