Leaderboard 與 Account Statistics widget 讓您用單個 iframe 將 B2COPY 的公開面放到任意網頁——營銷站、CRM 門戶、落地頁。無需腳本,無需 SDK。Widget 支持 Copy Trading、MAM 與 PAMM。
訪客可在 Widget 中做什麼
- 使用標準排序、篩選與 Find account by login 搜索,無需登入即可瀏覽表現最佳的 master。
- 打開任意帳戶以查看其詳細 Account Statistics,並可返回 Leaderboard。
- 在卡片與表格視圖之間,以及淺色與深色主題之間切換。
- 點擊 Follow 以訂閱:完整方案會跳轉到 Web UI Sign In 頁;獨立方案允許訪客輸入交易帳戶憑據並直接在 widget 內訂閱。
嵌入 Leaderboard
完整 B2COPY 方案在 URL 中使用 /widget;獨立方案使用 /external。其餘完全相同。
<!-- Full solution -->
<iframe src="https://example.com/en/widget/{platform_id}/{platform_type}/leaderboard"></iframe>
<!-- Standalone solution -->
<iframe src="https://example.com/en/external/{platform_id}/{platform_type}/leaderboard"></iframe>| URL 部分 | 含義 |
|---|---|
https://example.com | 您的 Web UI 域名。 |
en | 語言代碼——Web UI 中支持的任意語言。 |
{platform_id} | 投資平臺實例標識符(見下文)。 |
{platform_type} | Copy Trading 用 copy,MAM 用 mam,PAMM:完整方案用 pamm-new,獨立方案用 pamm。 |
<!-- Working example (full solution, Copy Trading, platform 1) -->
<iframe src="https://demo-full.b2copy.b2broker.com/en/widget/1/copy/leaderboard"></iframe>嵌入單個帳戶的 Account Statistics
在 Leaderboard URL 後追加賬號,可直接打開特定帳戶的統計:
<iframe src="https://example.com/en/widget/{platform_id}/{platform_type}/leaderboard/{account_number}"></iframe>
<!-- Example -->
<iframe src="https://demo-full.b2copy.b2broker.com/en/widget/1/copy/leaderboard/2838035"></iframe>強制主題
爲匹配頁面風格,可用查詢參數將 widget 固定到某一主題:
<iframe src="https://example.com/en/widget/1/copy/leaderboard?theme=dark"></iframe>
<iframe src="https://example.com/en/widget/1/copy/leaderboard?theme=light"></iframe>查找您的 Platform ID
打開 Platform Manager
在管理控制臺前往 Investment Platform → Platform Manager。
編輯平臺
找到平臺行並點擊 Edit。實例標識符是頁面 URL 中的最後一個數字——即您的
{platform_id}。
爲 iframe 設定充足尺寸(例如 width="100%" height="900")——Leaderboard 在框架內分頁。可在 B2COPY 產品頁的 「Easy integration to your CRMs」 下預覽實時嵌入的 Leaderboard。
