curl --request GET \
--url 'https://gateway.amana.io/trading/me' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/me', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"user": {
"login": 123.45,
"balance": 123.45,
"credit": 0,
"storage": 0,
"assets": 0,
"prevEquity": 123.45,
"prevBalance": 123.45,
"leverage": 123.45,
"group": "<string>",
"server": "<string>",
"createdAt": 123.45,
"currency": "<string>"
},
"access": {
"id": "<string>",
"name": "<string>",
"currency": "<string>",
"currencyDigits": 123.45,
"isHedged": true,
"noPl": true
}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Trading
Get trading account
Get the user’s live trading account, including balance, leverage, and currency, plus the trading rules for their group.
GET
/
trading
/
me
curl --request GET \
--url 'https://gateway.amana.io/trading/me' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/me', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"user": {
"login": 123.45,
"balance": 123.45,
"credit": 0,
"storage": 0,
"assets": 0,
"prevEquity": 123.45,
"prevBalance": 123.45,
"leverage": 123.45,
"group": "<string>",
"server": "<string>",
"createdAt": 123.45,
"currency": "<string>"
},
"access": {
"id": "<string>",
"name": "<string>",
"currency": "<string>",
"currencyDigits": 123.45,
"isHedged": true,
"noPl": true
}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Response
200 Success.
object
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 401 | Token missing or expired | Log in again or use the refresh token. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 429 / 5xx | Rate limit, or temporary issue on our side | Retry with backoff; contact support if it persists. |
curl --request GET \
--url 'https://gateway.amana.io/trading/me' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/me', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"user": {
"login": 123.45,
"balance": 123.45,
"credit": 0,
"storage": 0,
"assets": 0,
"prevEquity": 123.45,
"prevBalance": 123.45,
"leverage": 123.45,
"group": "<string>",
"server": "<string>",
"createdAt": 123.45,
"currency": "<string>"
},
"access": {
"id": "<string>",
"name": "<string>",
"currency": "<string>",
"currencyDigits": 123.45,
"isHedged": true,
"noPl": true
}
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Last modified on October 8, 2026
