Get account information#
About#
Get account information.
GET /users/current/mt5/provisioning-profiles/:profileId/accounts/:login/account-information
For more information see swagger documentation
Headers#
Name | Type | Required | Description |
---|---|---|---|
auth-token | string | Yes | MetaApi account token. See Authentication & authorization |
Path parameters#
Name | Type | Required | Description |
---|---|---|---|
profileId | string | Yes | Id of the provisioning profile that will be used as the basis |
login | number | Yes | MT5 account login |
Response#
- 200 - Successfully get account information. Response schema: AccountInformation
- 400 - Request validation failed. Response schema: Error
- 404 - Provisioning profile with specified id not found. Response schema: Error
Examples#
Example request:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'auth-token: token' -d '{}' 'https://mt-manager-api-v1.new-york.agiliumtrade.ai/users/current/mt5/provisioning-profiles/profileId/accounts/12345/account-information'
Example response:
{
"platform": "mt5",
"broker": "True ECN Trading Ltd",
"currency": "USD",
"balance": 7319.9,
"equity": 7306.649913200001,
"margin": 184.1,
"freeMargin": 7120.22,
"leverage": 100,
"marginLevel": 3967.58283542,
"tradeAllowed": true,
"marginMode": "ACCOUNT_MARGIN_MODE_RETAIL_HEDGING",
"name": "Will Turner",
"login": 12345,
"credit": 0,
}