curl --request GET \
--url https://public-api.etoro.com/api/v1/trading/info/real/pnl \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-user-key: <x-user-key>'import requests
url = "https://public-api.etoro.com/api/v1/trading/info/real/pnl"
headers = {
"x-request-id": "<x-request-id>",
"x-api-key": "<x-api-key>",
"x-user-key": "<x-user-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-request-id': '<x-request-id>',
'x-api-key': '<x-api-key>',
'x-user-key': '<x-user-key>',
Authorization: 'Bearer <token>'
}
};
fetch('https://public-api.etoro.com/api/v1/trading/info/real/pnl', 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://public-api.etoro.com/api/v1/trading/info/real/pnl",
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>",
"x-api-key: <x-api-key>",
"x-request-id: <x-request-id>",
"x-user-key: <x-user-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://public-api.etoro.com/api/v1/trading/info/real/pnl"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "<x-request-id>")
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-user-key", "<x-user-key>")
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://public-api.etoro.com/api/v1/trading/info/real/pnl")
.header("x-request-id", "<x-request-id>")
.header("x-api-key", "<x-api-key>")
.header("x-user-key", "<x-user-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.etoro.com/api/v1/trading/info/real/pnl")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = '<x-request-id>'
request["x-api-key"] = '<x-api-key>'
request["x-user-key"] = '<x-user-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"clientPortfolio": {
"credit": 10000.5,
"unrealizedPnL": 251,
"mirrors": [
{
"mirrorId": 1,
"cid": 123,
"parentCid": 456,
"stopLossPercentage": 15.5,
"isPaused": false,
"copyExistingPositions": true,
"availableAmount": 5000,
"stopLossAmount": 750,
"initialInvestment": 10000,
"depositSummary": 12000,
"withdrawalSummary": 2000,
"positions": [
{
"positionId": 9002,
"cid": 124,
"openDateTime": "2024-01-02T09:00:00Z",
"openRate": 1.2346,
"instrumentId": 102,
"isBuy": false,
"takeProfitRate": 1.6,
"stopLossRate": 1.1,
"mirrorId": 1,
"parentPositionId": 8002,
"amount": 2000,
"leverage": 3,
"orderId": 5002,
"orderType": 2,
"units": 20.5,
"totalFees": 3.5,
"initialAmountInDollars": 2000,
"isTslEnabled": true,
"stopLossVersion": 2,
"isSettled": false,
"redeemStatusId": 1,
"initialUnits": 20.5,
"isPartiallyAltered": true,
"unitsBaseValueDollars": 2000,
"isDiscounted": true,
"openPositionActionType": 2,
"settlementTypeId": 2,
"isDetached": true,
"openConversionRate": 1.2,
"pnlVersion": 2,
"totalExternalFees": 1,
"totalExternalTaxes": 0.5,
"isNoTakeProfit": true,
"isNoStopLoss": false,
"lotCount": 2,
"externalOperation": null,
"pnL": 150.75,
"closeRate": 1.3,
"closeConversionRate": 1.15,
"timestamp": "2024-01-02T12:00:00Z"
}
],
"parentUsername": "parent_user",
"closedPositionsNetProfit": 350.75,
"startedCopyDate": "2024-01-01T09:00:00Z",
"pendingForClosure": false,
"parentMirrors": [],
"mirrorCalculationType": 2,
"ordersForOpen": [
{
"orderId": 1001,
"orderType": 1,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"amount": 1000,
"amountInUnits": 10.5,
"isBuy": true,
"leverage": 2,
"stopLossRate": 1.2345,
"takeProfitRate": 1.3456,
"isTslEnabled": false,
"isDiscounted": true,
"mirrorId": 1,
"frozenAmount": 0,
"totalExternalCosts": 5,
"isNoTakeProfit": false,
"isNoStopLoss": false,
"lotCount": 1,
"openPositionActionType": 1,
"externalOperation": null
}
],
"ordersForClose": [
{
"orderId": 2001,
"orderType": 2,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 5,
"lotsToDeduct": 0.5,
"positionId": 3001
}
],
"ordersForCloseMultiple": [
{
"orderId": 3001,
"orderType": 3,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 10,
"lotsToDeduct": 1,
"pendingClosePositionIds": [
3001,
3002
]
}
],
"mirrorStatusId": 1
}
],
"orders": [
{
"orderId": 5001,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"instrumentId": 101,
"isBuy": true,
"takeProfitRate": 1.5,
"stopLossRate": 1.2,
"rate": 1.3,
"amount": 1000,
"leverage": 2,
"units": 10.5,
"isTslEnabled": false,
"executionType": 1,
"isDiscounted": false,
"isNoTakeProfit": false,
"isNoStopLoss": false
}
],
"ordersForOpen": [
{
"orderId": 1001,
"orderType": 1,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"amount": 1000,
"amountInUnits": 10.5,
"isBuy": true,
"leverage": 2,
"stopLossRate": 1.2345,
"takeProfitRate": 1.3456,
"isTslEnabled": false,
"isDiscounted": true,
"mirrorId": 1,
"frozenAmount": 0,
"totalExternalCosts": 5,
"isNoTakeProfit": false,
"isNoStopLoss": false,
"lotCount": 1,
"openPositionActionType": 1,
"externalOperation": null
}
],
"ordersForClose": [
{
"orderId": 2001,
"orderType": 2,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 5,
"lotsToDeduct": 0.5,
"positionId": 3001
}
],
"ordersForCloseMultiple": [
{
"orderId": 3001,
"orderType": 3,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 10,
"lotsToDeduct": 1,
"pendingClosePositionIds": [
3001,
3002
]
}
],
"bonusCredit": 500,
"positions": [
{
"positionId": 9001,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"openRate": 1.2345,
"instrumentId": 101,
"isBuy": true,
"takeProfitRate": 1.5,
"stopLossRate": 1.2,
"mirrorId": 1,
"parentPositionId": 8001,
"amount": 1000,
"leverage": 2,
"orderId": 5001,
"orderType": 1,
"units": 10.5,
"totalFees": 2.5,
"initialAmountInDollars": 1000,
"isTslEnabled": false,
"stopLossVersion": 1,
"isSettled": true,
"redeemStatusId": 0,
"initialUnits": 10.5,
"isPartiallyAltered": false,
"unitsBaseValueDollars": 1000,
"isDiscounted": false,
"openPositionActionType": 1,
"settlementTypeId": 1,
"isDetached": false,
"openConversionRate": 1,
"pnlVersion": 1,
"totalExternalFees": 0,
"totalExternalTaxes": 0,
"isNoTakeProfit": false,
"isNoStopLoss": false,
"lotCount": 1,
"externalOperation": null,
"pnL": 100.25,
"closeRate": 1.25,
"closeConversionRate": 1.1,
"timestamp": "2024-01-01T12:00:00Z"
}
]
}
}Get account PnL and portfolio details
Rate limit: 60 requests per 60 seconds. This is a shared quota — the same budget is consumed by a group of related endpoints, so calling any of them reduces what is left for the others (you cannot call each at the full rate independently). Endpoints sharing this quota:
GET /api/v1/trading/info/aggregate-portfolioGET /api/v1/trading/info/portfolio
Retrieves the real account’s current portfolio, including credit, open positions, orders, mirrors, and PnL details.
curl --request GET \
--url https://public-api.etoro.com/api/v1/trading/info/real/pnl \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-user-key: <x-user-key>'import requests
url = "https://public-api.etoro.com/api/v1/trading/info/real/pnl"
headers = {
"x-request-id": "<x-request-id>",
"x-api-key": "<x-api-key>",
"x-user-key": "<x-user-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-request-id': '<x-request-id>',
'x-api-key': '<x-api-key>',
'x-user-key': '<x-user-key>',
Authorization: 'Bearer <token>'
}
};
fetch('https://public-api.etoro.com/api/v1/trading/info/real/pnl', 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://public-api.etoro.com/api/v1/trading/info/real/pnl",
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>",
"x-api-key: <x-api-key>",
"x-request-id: <x-request-id>",
"x-user-key: <x-user-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://public-api.etoro.com/api/v1/trading/info/real/pnl"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-request-id", "<x-request-id>")
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-user-key", "<x-user-key>")
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://public-api.etoro.com/api/v1/trading/info/real/pnl")
.header("x-request-id", "<x-request-id>")
.header("x-api-key", "<x-api-key>")
.header("x-user-key", "<x-user-key>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.etoro.com/api/v1/trading/info/real/pnl")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-request-id"] = '<x-request-id>'
request["x-api-key"] = '<x-api-key>'
request["x-user-key"] = '<x-user-key>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"clientPortfolio": {
"credit": 10000.5,
"unrealizedPnL": 251,
"mirrors": [
{
"mirrorId": 1,
"cid": 123,
"parentCid": 456,
"stopLossPercentage": 15.5,
"isPaused": false,
"copyExistingPositions": true,
"availableAmount": 5000,
"stopLossAmount": 750,
"initialInvestment": 10000,
"depositSummary": 12000,
"withdrawalSummary": 2000,
"positions": [
{
"positionId": 9002,
"cid": 124,
"openDateTime": "2024-01-02T09:00:00Z",
"openRate": 1.2346,
"instrumentId": 102,
"isBuy": false,
"takeProfitRate": 1.6,
"stopLossRate": 1.1,
"mirrorId": 1,
"parentPositionId": 8002,
"amount": 2000,
"leverage": 3,
"orderId": 5002,
"orderType": 2,
"units": 20.5,
"totalFees": 3.5,
"initialAmountInDollars": 2000,
"isTslEnabled": true,
"stopLossVersion": 2,
"isSettled": false,
"redeemStatusId": 1,
"initialUnits": 20.5,
"isPartiallyAltered": true,
"unitsBaseValueDollars": 2000,
"isDiscounted": true,
"openPositionActionType": 2,
"settlementTypeId": 2,
"isDetached": true,
"openConversionRate": 1.2,
"pnlVersion": 2,
"totalExternalFees": 1,
"totalExternalTaxes": 0.5,
"isNoTakeProfit": true,
"isNoStopLoss": false,
"lotCount": 2,
"externalOperation": null,
"pnL": 150.75,
"closeRate": 1.3,
"closeConversionRate": 1.15,
"timestamp": "2024-01-02T12:00:00Z"
}
],
"parentUsername": "parent_user",
"closedPositionsNetProfit": 350.75,
"startedCopyDate": "2024-01-01T09:00:00Z",
"pendingForClosure": false,
"parentMirrors": [],
"mirrorCalculationType": 2,
"ordersForOpen": [
{
"orderId": 1001,
"orderType": 1,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"amount": 1000,
"amountInUnits": 10.5,
"isBuy": true,
"leverage": 2,
"stopLossRate": 1.2345,
"takeProfitRate": 1.3456,
"isTslEnabled": false,
"isDiscounted": true,
"mirrorId": 1,
"frozenAmount": 0,
"totalExternalCosts": 5,
"isNoTakeProfit": false,
"isNoStopLoss": false,
"lotCount": 1,
"openPositionActionType": 1,
"externalOperation": null
}
],
"ordersForClose": [
{
"orderId": 2001,
"orderType": 2,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 5,
"lotsToDeduct": 0.5,
"positionId": 3001
}
],
"ordersForCloseMultiple": [
{
"orderId": 3001,
"orderType": 3,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 10,
"lotsToDeduct": 1,
"pendingClosePositionIds": [
3001,
3002
]
}
],
"mirrorStatusId": 1
}
],
"orders": [
{
"orderId": 5001,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"instrumentId": 101,
"isBuy": true,
"takeProfitRate": 1.5,
"stopLossRate": 1.2,
"rate": 1.3,
"amount": 1000,
"leverage": 2,
"units": 10.5,
"isTslEnabled": false,
"executionType": 1,
"isDiscounted": false,
"isNoTakeProfit": false,
"isNoStopLoss": false
}
],
"ordersForOpen": [
{
"orderId": 1001,
"orderType": 1,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"amount": 1000,
"amountInUnits": 10.5,
"isBuy": true,
"leverage": 2,
"stopLossRate": 1.2345,
"takeProfitRate": 1.3456,
"isTslEnabled": false,
"isDiscounted": true,
"mirrorId": 1,
"frozenAmount": 0,
"totalExternalCosts": 5,
"isNoTakeProfit": false,
"isNoStopLoss": false,
"lotCount": 1,
"openPositionActionType": 1,
"externalOperation": null
}
],
"ordersForClose": [
{
"orderId": 2001,
"orderType": 2,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 5,
"lotsToDeduct": 0.5,
"positionId": 3001
}
],
"ordersForCloseMultiple": [
{
"orderId": 3001,
"orderType": 3,
"statusId": 1,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"lastUpdate": "2024-01-02T10:00:00Z",
"instrumentId": 101,
"unitsToDeduct": 10,
"lotsToDeduct": 1,
"pendingClosePositionIds": [
3001,
3002
]
}
],
"bonusCredit": 500,
"positions": [
{
"positionId": 9001,
"cid": 123,
"openDateTime": "2024-01-01T09:00:00Z",
"openRate": 1.2345,
"instrumentId": 101,
"isBuy": true,
"takeProfitRate": 1.5,
"stopLossRate": 1.2,
"mirrorId": 1,
"parentPositionId": 8001,
"amount": 1000,
"leverage": 2,
"orderId": 5001,
"orderType": 1,
"units": 10.5,
"totalFees": 2.5,
"initialAmountInDollars": 1000,
"isTslEnabled": false,
"stopLossVersion": 1,
"isSettled": true,
"redeemStatusId": 0,
"initialUnits": 10.5,
"isPartiallyAltered": false,
"unitsBaseValueDollars": 1000,
"isDiscounted": false,
"openPositionActionType": 1,
"settlementTypeId": 1,
"isDetached": false,
"openConversionRate": 1,
"pnlVersion": 1,
"totalExternalFees": 0,
"totalExternalTaxes": 0,
"isNoTakeProfit": false,
"isNoStopLoss": false,
"lotCount": 1,
"externalOperation": null,
"pnL": 100.25,
"closeRate": 1.25,
"closeConversionRate": 1.1,
"timestamp": "2024-01-01T12:00:00Z"
}
]
}
}Authorizations
eToro OAuth2. Each operation lists the scopes that grant access as separate security requirements (OpenAPI OR semantics): the caller's token only needs ONE of them — you do NOT need all of them. The same scopes back the x-api-key/x-user-key credential pair.
Headers
A unique request identifier.
"2c2237cf-6f42-49d7-97a0-fa5de2688556"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
Response
Successfully retrieved real account PnL and portfolio information.
Comprehensive portfolio information including positions, orders, and account status
Container for all portfolio-related information
Show child attributes
Show child attributes