139682 and follower account 146502. The values are illustrative.
1
Create or register the accounts
If an account does not exist in MT5, create it with Call
POST /api/v1/mam/accounts/create. If it already exists, use POST /api/v1/mam/accounts/add.When importing an existing leader, set can_be_leader=true. The required history synchronization is created automatically:GET /api/v1/mam/accounts/139682/history-sync until you receive COMPLETED. A follower with can_be_leader=false is available immediately. If you later enable it as a leader through PATCH /api/v1/mam/accounts/{account_login}, its history begins importing at that time.2
Wait for the imported leader history
This step applies only to leaders that already existed in MT5. Until their history import is complete, the API responds with
409 when you attempt to create a subscription. If the import fails or is canceled, retry it before receiving investors.3
Enable and publish the leader
Confirm Store the returned
can_be_leader=true on the operational account and create the profile.leader_id and payment_account_login.4
Fund and validate the follower
Deposit with an idempotent key and then retrieve eligibility.
5
Create the allocation
Send the limit authorized by your CRM product in this request.
6
Activate and monitor
Change the status to
ACTIVE with PATCH /api/v1/mam/allocations/{allocation_id}. Retrieve metrics, history, and subscribers as required by your product.7
Terminate correctly
Use
POST /api/v1/mam/allocations/{allocation_id}/unsubscribe. If you receive an in-progress status, monitor it until CANCELLED.
