Skip to content

api accountinfo

ntwerd edited this page Apr 12, 2023 · 3 revisions

Get Account Info


Returns json data about account.

URL

http://122.8.148.106/robot/api/v1/account/<brokerCode>/<accountNo>

Method:

GET

Required:

Header : X-API-KEY

Success Response:

  • Code: 200

    Content:

{
    "status": "T",
    "message": null,
    "data": {
        "account": {
            "primary": false,
            "accountNo": "1234567-8",
            "marketValue": 0,
            "line": 100000,
            "excessEquity": null,
            "equity": 100000,
            "credit": 0,
            "cash": 100000,
            "name": null,
            "clientType": null,
            "market": "EQUITY",
            "accountType": "CASH_BALANCE",
            "params": {}
        }
    }
}

Error Response:

  • Code: 200

    Content:

{
    "status": "F",
    "message": "Invalid api key",
    "data": {}
}

OR

  • Code: 200

    Content:

{
    "status": "F",
    "message": "Account not found",
    "data": {}
}

Clone this wiki locally