Obtenir une liste de comptes master et d’investissement

Récupérez les comptes et leurs métadonnées via l’API.

Pour les admins

Returns a list of master and investment accounts created on the B2COPY investment platform. Filter by account, client email, or type, and page through results.

Endpoint

GET [host]/api/v2/b2copy/accounts

Authentication

Send the access token in the Authorization: Bearer <access_token> header — see Authorization in the Back Office.

Request body

NameTypeRequiredDescription
investmentPlatformIdintegerYesThe investment platform instance. Use 1 for a single connected MT server; contact Support if you have several.
account_numberstringNoMT login of a specific master or investment account.
emailstringNoClient email — returns accounts of that client.
is_masterbooleanNotrue → only master accounts; false → only investment accounts.
limitintegerNoMaximum number of items returned.
offsetintegerNoSkip the first N items.
sort_bystringNoSort field. Supported: created_at.
sort_orderstringNoSort direction: asc or desc.
curl --location --request GET 'https://host.name/api/v2/b2copy/accounts' \
--header 'Authorization: Bearer <access_token>' \
--data-raw '{
  "investment_platform_id": 1,
  "account_number": "2121944013",
  "email": "username@example.com",
  "is_master": true,
  "limit": 100,
  "offset": 0,
  "sort_by": "created_at",
  "sort_order": "asc"
}'

Response

An array of objects describing the matching accounts.

{
  "firstName": "John",
  "lastName": "Smith",
  "email": "username@example.com",
  "account_id": "2121944013",
  "group": "demo_standalone",
  "account_type": "master",
  "createdAt": "2024-02-09T10:32:47.000000Z"
}
Pas encore client B2COPY ?

Apportez B2COPY à votre courtage et croissez en pilote automatique

Lancez le copy trading, PAMM et MAM sur vos serveurs existants et transformez vos meilleurs traders en moteur de croissance — avec hébergement, monitoring et support inclus. Vous ne savez pas par où commencer ? Parlez-nous et nous vous guiderons.

2–4 semaines

Délai de lancement

$0

Coût d’infrastructure

40%+

Augmentation du volume