Get Data for the Leaderboard Widget

Pull leaderboard data for a public, read-only embed.

For admins

Returns the accounts displayed in the Leaderboard widget for a chosen product (copy trading, PAMM, or MAM).

Endpoint

GET [host]/api/v1/investment/widget/leaderboard

Authentication

Requires the Authorization: Bearer <access_token> header.

Query Parameters

NameRequiredDescription
investment_platform_idYesThe investment platform instance (1 for a single MT server).
platformYes1 → copy-trading 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>'

Response

An array of Leaderboard account objects plus a total count (abbreviated):

{
  "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
  }
}
Not a B2COPY client yet?

Bring B2COPY to your brokerage and grow on autopilot

Launch copy trading, PAMM, and MAM on your existing servers and turn your best traders into a growth engine — with hosting, monitoring, and support included. Not sure where to start? Talk to us and we’ll walk you through it.

2–4 weeks

Time to launch

$0

Infrastructure cost

40%+

Volume increase