Tools
Swap widget
Embed swaps in your web page with no backend work. Users swap on your page, and orders count as your referred orders, earning rebates at your membership level.
Quick embed
html
<div id="speed-widget"></div>
<script src="https://speed.cc/widget.js" data-ref="YOUR_INVITE_CODE" data-from="USDT" data-to="BTC" async></script>After logging in, “API” generates this code with your invite code and shows a live preview.
Options
| Option | Description | Default |
|---|---|---|
data-ref | Your invite code; rebates are credited to it | None |
data-from | Default currency to pay, e.g. USDT | Same as the Speed homepage |
data-to | Default currency to receive, e.g. BTC | Same as the Speed homepage |
data-theme | dark or light | Follows the visitor's system setting |
data-lang | zh, en, ru, uk, es, pt, fr, de, th, fa | Follows the visitor |
data-target | Selector of the container | #speed-widget |
data-width | Widget width | 100% (max 480px) |
Embedding with an iframe
If your site can't load third-party scripts, use an iframe. Parameters are the same (without the data- prefix); set the height yourself:
html
<iframe src="https://speed.cc/embed?ref=YOUR_INVITE_CODE&from=USDT&to=BTC&theme=dark"
style="width:100%;max-width:480px;height:640px;border:0" title="Speed"></iframe>Notes
- With the script embed, the widget's height adjusts to its content automatically.
- After ordering, users see payment details and progress inside the widget without leaving your site.
- If your site uses a Content Security Policy, allow
https://speed.ccinscript-srcandframe-src.
Need help with your integration? Contact support: [email protected]