取得主帳戶與投資帳戶清單

透過 API 取得帳戶及其中繼資料。

面向管理員

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"
}
還不是 B2COPY 客戶?

將 B2COPY 引入您的經紀業務,實現自動駕駛式成長

在現有伺服器上部署跟單交易、PAMM 與 MAM,把最優秀的交易員變成成長引擎——含託管、監控與支援。不確定從何開始?聯絡我們,我們會逐步講解。

2–4 週

上線時間

$0

基礎設施成本

40%+

成交量提升