-
Notifications
You must be signed in to change notification settings - Fork 2
api accountinfo
ntwerd edited this page Apr 12, 2023
·
3 revisions
Returns json data about account.
http://122.8.148.106/robot/api/v1/account/<brokerCode>/<accountNo>
GET
Header : X-API-KEY
-
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": {}
}
}
}
-
Code: 200
Content:
{
"status": "F",
"message": "Invalid api key",
"data": {}
}
OR
-
Code: 200
Content:
{
"status": "F",
"message": "Account not found",
"data": {}
}