Get Account Profile¶
Returns profile and margin information for the currently authenticated account.
GET
https://{some_domain}/account/me
Authorization¶
All requests must include a JWT token:
Authorization: <JWT_TOKEN>
Request¶
This endpoint does not require a request body.
Response¶
Success (200)¶
{
"id": 1001,
"login": 1001,
"currency": "USD",
"group": "STD-1",
"comment": "VIP account",
"enable": 1,
"enable_read_only": 0,
"enable_change_password": 1,
"leverage": 100,
"avatar": "",
"email": "[email protected]",
"name": "John Doe",
"phone": "+35700000000",
"address": "Street 1",
"city": "Limassol",
"country": "CY",
"zipcode": "3010",
"regdate": 1713000000,
"prevbalance": 1200.5,
"prevmonthbalance": 1100.0,
"balance": 1500.0,
"storage": -12.5,
"commission": -3.2,
"credit": 0.0,
"margin": 250.0,
"margin_free": 1250.0,
"margin_level": 600.0,
"equity": 1484.3
}
Error Responses¶
| Code | Error | Description |
|---|---|---|
| 400 | INVALID_DATA |
Session access data is missing |
| 400 | INVALID_USER |
Account is not available |
| 400 | INVALID_MARGIN_LEVEL |
Margin or group data is unavailable |
| 401 | PERMISSION_DENIED |
Invalid or missing JWT |