傳回顯示在的帳戶 Leaderboard 小部件 對於所選產品(copy trading,PAMM, 或者 MAM)。
端點
GET [host]/api/v1/investment/widget/leaderboard驗證
需要 Authorization: Bearer <access_token> 標頭。
查詢參數
| 姓名 | 必需的 | 描述 |
|---|---|---|
| 投資平台id | 是的 | 投資平台實例(單一 MT 伺服器為 1 個)。 |
| 平台 | 是的 | 1 → 跟單交易 Leaderboard, 2 →PAMM Leaderboard, 3 →MAM Leaderboard。 |
curl --location --request GET \
'https://host.name/api/v1/investment/widget/leaderboard?investment_platform_id=1&platform=1' \
--header 'Authorization: Bearer <token>'回覆
一個數組 Leaderboard 帳戶對象加上總計 count(縮寫):
{
"status": 200,
"data": {
"accounts": [
{
"name": "Account name",
"login": "124214",
"currency": "USD",
"risk": "86",
"score": 49,
"followers": 12,
"assets": "25342.73",
"aum": 25342.73,
"allocation_method": 4,
"risk_ratio": 1
}
],
"count": 174
}
}