Bir müşteri için mevcut MT hesabından bir ana veya yatırım hesabı oluşturur. Hesap, MT'de sahip olduğu giriş numarasıyla B2COPY üzerinde kayıtlı.
Önkoşul
Müşterinin platformda zaten kayıtlı olması ve bir müşteri kimliğine sahip olması gerekir. Bağımsız çözümler için Sorunsuz yetkilendirme ve Bir müşteri kaydetme ve ödeme hesabını oluşturma bölümlerine bakın.
Uç nokta
POST [host]/api/v2/b2copy/accounts/createTalep gövdesi
| İsim | Tür | Gerekli | Açıklama |
|---|---|---|---|
| clientId | tamsayı | Evet | Hesabın oluşturulduğu müşteri. |
| investmentPlatformId | tamsayı | Evet | Yatırım platformu örneği (tek bir MT sunucusu için 1). |
| accountNumber | dize | Evet | MT'de bulunan ve B2COPY'ye kaydedilecek olan MT girişi. |
| productCurrencyId | tamsayı | Evet | Ürün para birimi tanımlayıcısı — yardım için Destek ile iletişime geçin. |
| isMaster | tamsayı | Evet | 1 → bir ana hesap oluşturun; 0 → bir yatırım hesabı oluşturun. |
| accountName | dize | Hayır | Hesaba atanan ad. |
| accountDescription | dize | Hayır | Hesaptaki ticaret stratejisinin açıklaması. |
curl --location --request POST 'https://host.name/api/v2/b2copy/accounts/create' \
--header 'Authorization: Bearer <access_token>' \
--data-raw '{
"clientId": 4406,
"investmentPlatformId": 1,
"accountNumber": "2121882154",
"productCurrencyId": 10,
"isMaster": 0,
"accountName": "MAM investor",
"accountDescription": "The trading strategy applied on the account"
}'Yanıt
id, türü, görünürlük bayrakları ve zaman damgaları dahil olmak üzere oluşturulan hesap nesnesi.
{
"is_master": false,
"show_in_client_ui": true,
"status": true,
"id": 12574,
"account_description": "The trading strategy applied on the account",
"account_name": "MAM investor",
"type": 8,
"show_in_leaderboard": false,
"active_since": "2024-04-01T15:06:41.000000Z",
"created_at": "2024-04-01T15:06:41.000000Z"
}