Get current user balance, positions, kyc state, and group configuration
curl --request GET \
--url https://gateway.amana.io/trading/session/{login} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.amana.io/trading/session/{login}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.amana.io/trading/session/{login}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.amana.io/trading/session/{login}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.amana.io/trading/session/{login}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.amana.io/trading/session/{login}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.amana.io/trading/session/{login}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"login": 123,
"balance": 123,
"credit": 0,
"storage": 123,
"assets": 0,
"prevEquity": 123,
"prevBalance": 123,
"leverage": 123,
"group": "<string>",
"server": "<string>",
"createdAt": 123,
"kyc_status": "<string>",
"equity": 123,
"Invested": 123,
"Profits": 123,
"access": {
"id": "<string>",
"name": "<string>",
"currency": "<string>",
"currencyDigits": 123,
"isHedged": true,
"noPl": true
},
"positions": [
{
"id": "<string>",
"symbol": "<string>",
"logo": "<string>",
"delayed": false,
"sharia": false,
"digits": 123,
"friendlyName": "<string>",
"units": 123,
"priceOpen": 123,
"priceCurrent": 123,
"timeCreate": 123,
"timeUpdate": 123,
"leverage": 123,
"rateMargin": 1,
"rateProfit": 1,
"isBuy": true,
"sl": 0,
"tp": 0,
"storage": 0,
"comment": "<string>",
"profit": 0,
"invested": 0
}
],
"orders": [
{
"id": "<string>",
"symbol": "<string>",
"logo": "<string>",
"friendlyName": "<string>",
"units": 123,
"digits": 123,
"state": 123,
"delayed": false,
"sharia": false,
"priceOpen": 123,
"priceCurrent": 123,
"leverage": 123,
"timeCreate": 123,
"timeUpdate": 123,
"rateMargin": 1,
"isBuy": true,
"isLimit": true,
"sl": 0,
"tp": 0,
"comment": "<string>",
"invested": 0,
"useMargin": true
}
],
"currency": "<string>"
}{
"message": "<string>"
}trading
Get current user balance, positions, kyc state, and group configuration
Returns a comprehensive account snapshot including balance, equity, open positions, unrealized P&L, group trading configuration, and KYC status. This is the primary endpoint for rendering the trading dashboard. Call this once per session to populate account state, then use getOpenPositions for live position updates.
GET
/
trading
/
session
/
{login}
Get current user balance, positions, kyc state, and group configuration
curl --request GET \
--url https://gateway.amana.io/trading/session/{login} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.amana.io/trading/session/{login}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.amana.io/trading/session/{login}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gateway.amana.io/trading/session/{login}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway.amana.io/trading/session/{login}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.amana.io/trading/session/{login}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.amana.io/trading/session/{login}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"login": 123,
"balance": 123,
"credit": 0,
"storage": 123,
"assets": 0,
"prevEquity": 123,
"prevBalance": 123,
"leverage": 123,
"group": "<string>",
"server": "<string>",
"createdAt": 123,
"kyc_status": "<string>",
"equity": 123,
"Invested": 123,
"Profits": 123,
"access": {
"id": "<string>",
"name": "<string>",
"currency": "<string>",
"currencyDigits": 123,
"isHedged": true,
"noPl": true
},
"positions": [
{
"id": "<string>",
"symbol": "<string>",
"logo": "<string>",
"delayed": false,
"sharia": false,
"digits": 123,
"friendlyName": "<string>",
"units": 123,
"priceOpen": 123,
"priceCurrent": 123,
"timeCreate": 123,
"timeUpdate": 123,
"leverage": 123,
"rateMargin": 1,
"rateProfit": 1,
"isBuy": true,
"sl": 0,
"tp": 0,
"storage": 0,
"comment": "<string>",
"profit": 0,
"invested": 0
}
],
"orders": [
{
"id": "<string>",
"symbol": "<string>",
"logo": "<string>",
"friendlyName": "<string>",
"units": 123,
"digits": 123,
"state": 123,
"delayed": false,
"sharia": false,
"priceOpen": 123,
"priceCurrent": 123,
"leverage": 123,
"timeCreate": 123,
"timeUpdate": 123,
"rateMargin": 1,
"isBuy": true,
"isLimit": true,
"sl": 0,
"tp": 0,
"comment": "<string>",
"invested": 0,
"useMargin": true
}
],
"currency": "<string>"
}{
"message": "<string>"
}Authorizations
JWT token obtained from authentication endpoints
Path Parameters
The MT5 login number of the authenticated user. Must match the login in the JWT — returns 403 otherwise.
Response
Default Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Last modified on October 7, 2026
