Skip to content

Get account information#

About#

Get account information.

GET /users/current/mt4/provisioning-profiles/:profileId/accounts/:login/accountInformation

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 MT4 account login

Response#

  • 200 - Successfully get account information. Response schema: AccountInformation
  • 400 - Validation failed. Response schema: Error
  • 401 - Authorization 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.vint-hill.agiliumtrade.ai/users/current/mt4/provisioning-profiles/profileId/accounts/12345/accountInformation'

Example response:

{
  "platform": "mt4", 
  "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,
}