pnl.memedocs

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.

HTML
<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.

HTML
<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>

The three tags

TagDrawsAddressed by
<pnl-live>One trader, live: the chart with their buys and sells, their positions and their moves.handle, or source and actor
<pnl-clips>Their best trades as replays.handle, or source and actor
<pnl-streams>Everyone embedded who is live now. A card opens that trader's frame in place.nothing: it lists who is live

Attributes

AttributeOnMeans
handlepnl-live, pnl-clipsThe trader's FOMO handle, with or without the @.
sourcepnl-live, pnl-clipsSet to "pump" to address a pump.fun account by its id.
actorpnl-live, pnl-clipsThe pump.fun account id, read with source="pump". get_live_traders lists it as id.
limitpnl-streamsHow many tiles: 1 to 12, 7 unless said.
themeall threeA PNL theme: gameday, phosphor, mono, fomo.
heightall threeThe frame's height in CSS pixels until it has said its own.
titleall threeThe frame's accessible name, for a screen reader.

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.

EventdetailMeans
pnl:ready{}The frame has drawn.
pnl:size{ height }The frame's own height in CSS pixels. The loader has already fitted the frame to it.
pnl:live{ handle, live }Whether this trader is live right now, said again each time it changes.
pnl:gone{}This address shows nobody: the trader is not embedded, or was taken off while the frame was open. Hide the tag or draw your own fallback.
JavaScript
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.

ToolAnswersNeeds
get_live_tradersWho is trading live right nowbuilder plan
get_live_traderOne trader, livebuilder plan
get_trade_replayReplay one of their tradesbuilder plan
One trader, live
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.

Pushed
curl -N "https://pnl.meme/v1/stream?channels=live" \
  -H "Authorization: Bearer pnl_..."
Every toolStreamingPlans & keys
NORMALsigned outpolling? keys