Portfolio overview
curl --request GET \
--url https://api.easierprop.com/api/accounts/{id}/portfolio \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.easierprop.com/api/accounts/{id}/portfolio"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.easierprop.com/api/accounts/{id}/portfolio', 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://api.easierprop.com/api/accounts/{id}/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.easierprop.com/api/accounts/{id}/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.easierprop.com/api/accounts/{id}/portfolio")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easierprop.com/api/accounts/{id}/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"account": {},
"positions": [
{
"ticket": 12345678,
"symbol": "EURUSD",
"orderType": "Buy",
"lots": 0.01,
"openPrice": 1.08542,
"stopLoss": 0,
"takeProfit": 0,
"profit": 3.2,
"swap": 0,
"commission": -0.07,
"comment": "",
"openTime": "2026-04-01T12:00:00",
"closePrice": 0,
"closeTime": "",
"dealType": "Buy",
"digits": 5,
"contractSize": 100000,
"volume": 0.01,
"state": "Filled",
"fillPolicy": "FillOrKill",
"expirationType": "GTC",
"expertId": 0,
"dealInternalIn": 0,
"dealInternalOut": 0,
"orderInternal": 0,
"partialCloseDeals": [
{}
],
"partialFillDeals": [
{}
],
"placedType": "ByClient",
"profitRate": 1,
"requestId": 0,
"stopLimitPrice": 0,
"fee": 0,
"closeComment": "",
"closeLots": 0,
"closeVolume": 0,
"openTimestampUTC": 1711972800,
"closeTimestampUTC": 0,
"expirationTime": ""
}
],
"position_count": 3,
"total_profit": 142.5,
"total_swap": -1.2,
"total_commission": -0.21
}
}Enhanced
Portfolio overview
Returns account summary plus all open positions with aggregated profit, swap, and commission totals.
GET
/
api
/
accounts
/
{id}
/
portfolio
Portfolio overview
curl --request GET \
--url https://api.easierprop.com/api/accounts/{id}/portfolio \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.easierprop.com/api/accounts/{id}/portfolio"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.easierprop.com/api/accounts/{id}/portfolio', 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://api.easierprop.com/api/accounts/{id}/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.easierprop.com/api/accounts/{id}/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.easierprop.com/api/accounts/{id}/portfolio")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easierprop.com/api/accounts/{id}/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"data": {
"account": {},
"positions": [
{
"ticket": 12345678,
"symbol": "EURUSD",
"orderType": "Buy",
"lots": 0.01,
"openPrice": 1.08542,
"stopLoss": 0,
"takeProfit": 0,
"profit": 3.2,
"swap": 0,
"commission": -0.07,
"comment": "",
"openTime": "2026-04-01T12:00:00",
"closePrice": 0,
"closeTime": "",
"dealType": "Buy",
"digits": 5,
"contractSize": 100000,
"volume": 0.01,
"state": "Filled",
"fillPolicy": "FillOrKill",
"expirationType": "GTC",
"expertId": 0,
"dealInternalIn": 0,
"dealInternalOut": 0,
"orderInternal": 0,
"partialCloseDeals": [
{}
],
"partialFillDeals": [
{}
],
"placedType": "ByClient",
"profitRate": 1,
"requestId": 0,
"stopLimitPrice": 0,
"fee": 0,
"closeComment": "",
"closeLots": 0,
"closeVolume": 0,
"openTimestampUTC": 1711972800,
"closeTimestampUTC": 0,
"expirationTime": ""
}
],
"position_count": 3,
"total_profit": 142.5,
"total_swap": -1.2,
"total_commission": -0.21
}
}Authorizations
Client API key (prefixed with sk_). On /api/* endpoints the key
is scoped to its own MT5 accounts. On /admin/* endpoints the key
identifies its owning admin and grants access to all of that
admin's keys — so any of your sk_ works to manage any of your
other keys (cross-admin operations are rejected as 400 Key not found).
Path Parameters
Account ID
⌘I