Free price chart widget for ICP tokens
Add a live candlestick chart of any token listed on ICP Tokens to your website. Pick a token, copy one snippet — it works on any site and fits every screen.
- Free, also for commercial sites
- No cookies, no tracking, no ads
- Updates every minute
- Works on phones and desktops
Choose how it looks
The preview updates as you change the settings.
Theme
Currency
Height (px) — Recommended
Preview
Copy the code
Your token and settings from step 1 are already in it.
Loading…Works on any website builder that accepts HTML. Keep the link line visible — it credits ICP Tokens and keeps the widget free.
Paste it into your site
Pick your website builder for the exact steps.
- 1Open the HTML of the page where the chart should appear.
- 2Paste the code where you want the chart — anywhere inside
<body>. - 3Save and publish. The chart fills the width of the space you put it in.
- 1Paste the HTML code into your frontend, like on any website. Motoko or Rust does not matter — the chart goes into the frontend, not the backend canister.
- 2Allow the chart in your security settings. Projects created with
dfx newblock frames from other sites by default (the standard security policy has noframe-src), so the browser shows an empty box. Open.ic-assets.json5in your frontend’spublicorstaticfolder (olderdfx newtemplates call itassets). - 3If you already have your own Content-Security-Policy there, add
frame-src https://icptokens.net;to it. If you use the defaultsecurity_policy: "standard", use the example below — it is dfx’s standard policy plus that one directive. All other security headers stay on. - 4Deploy the frontend again (
dfx deploy) and reload the page.
[
{
"match": "**/*",
"security_policy": "standard",
"headers": {
// dfx's standard policy + one directive that allows the ICP Tokens chart
"Content-Security-Policy": "default-src 'self';script-src 'self';connect-src 'self' http://localhost:* https://icp0.io https://*.icp0.io https://icp-api.io;img-src 'self' data:;style-src * 'unsafe-inline';style-src-elem * 'unsafe-inline';font-src *;object-src 'none';base-uri 'self';frame-ancestors 'none';form-action 'self';upgrade-insecure-requests;frame-src https://icptokens.net;"
}
}
]How to check: if the box stays empty, open the browser console. “Framing ’https://icptokens.net/’ violates the following Content Security Policy directive” means step 2 is still missing.
- 1Edit the page or post and click + to add a block.
- 2Search for “Custom HTML” and add that block.
- 3Paste the code, click Preview to check it, then Update.
Some hosted plans remove iframes from posts. If the chart does not show, check your plan or security plugin.
- 1In the editor, click Add Elements → Embed Code → Popular Embeds → Embed HTML.
- 2Click the new box, click Enter Code, paste the code and click Apply.
- 3Drag the box to the full width and the height you picked.
- 1Edit the page and click Add Block → Code.
- 2Paste the code and make sure the mode is set to HTML.
- 3Click outside the block, then Save.
Squarespace needs the Core, Plus or Advanced plan to show an iframe in a code block. If the chart does not show, check your plan.
- 1Open the Add panel and drag a Code Embed element onto the page.
- 2Paste the code and click Save & Close.
- 3Publish the site — the chart shows on the live site and in preview.
- 1Choose the “React” tab above and copy the component.
- 2Put it in your components folder and render the component where you need it — its name is on the first line.
- 3No packages to install — it is a plain iframe.
What your visitors get
The same data as the full chart on ICP Tokens, in a compact frame.
Candle sizes from 1 minute to 1 week
1D and 1W show the full history of the token’s main ICPSwap pool.
USD or ICP
Visitors switch the currency with one tap. You choose which one opens first.
Price or FDV
The same candles shown as fully diluted valuation, when the token’s total supply is known.
Log scale
Makes long histories with big moves easy to read.
Built for phones
The layout adapts to the width of your page — from a narrow phone column to a full-width section.
Trade link
A “Trade on ICPSwap” link opens the swap page for the token.