Logo

    ACCOUNT_STATUS

    Description

    Provides information regarding the MetaTrader account, Broker and its settings.

    Important

    All JSON commands you send to MetaSocket should be in a single line format similar to the examples below. Additionally, example replies in this page are presented in a "beautified" format for presentation purposes. Actual replies are always returned in a single line.

    Example

    {"MSG": "ACCOUNT_STATUS"}

    Reply

    {
    "MSG": "ACCOUNT_STATUS",
    "COMPANY": "My Broker Ltd",
    "CURRENCY": "USD",
    "NAME": "John Dela Croix",
    "SERVER": "MyBroker-Demo",
    "LOGIN": 123456,
    "TRADE_MODE": 0,
    "LEVERAGE": 1000,
    "LIMIT_ORDERS": 0,
    "MARGIN_SO_MODE": 0,
    "TRADE_ALLOWED": 1,
    "TRADE_EXPERT": 1,
    "BALANCE": 270962.86,
    "CREDIT": 0,
    "PROFIT": 0,
    "EQUITY": 270962.86,
    "MARGIN": 0,
    "MARGIN_FREE": 270962.86,
    "MARGIN_LEVEL": 0,
    "MARGIN_SO_CAL": 120,
    "MARGIN_SO_SO": 50,
    "ERROR_ID": 0,
    "ERROR_DESCRIPTION": "The operation completed successfully",
    "DEMO": "MetaSocket running in DEMO mode"
    }