Broker API HubMenu

eToro API POST /api/v1/trading/info/aggregate-portfolio

POST/api/v1/trading/info/aggregate-portfolioversion v1Trading (Real)

The same real account portfolio snapshot as the GET form, with the level of detail and the filters sent in a request body. It reads data and changes nothing.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Independent and unofficialapi-portal.etoro.comchecked

Read on eToro's own reference page on 12 Oct 2026: method, path, parameters and the top level response fields. The OAuth scope listed is etoro-public:trade.real:read. The page marks no body field as required. Account totals are worked out on the whole portfolio whatever the filters. Documented rate limit: 60 requests per 60 seconds, shared with related endpoints.

Parameters

NameInTypeDescription
x-request-idrequiredheaderstringA fresh UUID for every request.
Content-TyperequiredheaderstringSend application/json on a request with a body.
accountLevelbodystringnone, totals or details. none leaves accountTotals out.
instrumentLevelbodystringnone, totals or details: how much per instrument data to return.
mirrorLevelbodystringnone, totals or details: how much copy trading data to return.
pnlLevelbodystringnone, pnl or dailyPnl.
conversionModebodystringeToroApp or realtime.
instrumentIdsbodyarrayLimit the reply to these instrument IDs.
mirrorFiltersbodyarrayWhich copy trading relationships to include, by mirror ID. 0 is the directly held part of the portfolio.
dailyCutoffUtcbodystringStart of your local day as a UTC timestamp, used for the daily figures.

Authentication headers

NameTypeDescription
x-api-keyrequiredstringYour public API key, which identifies the application. Sent with x-user-key; eToro's reference says an OAuth 2.0 bearer token can be used instead of the key pair, not alongside it. Placeholder only: never paste a real key into this site.
x-user-keyrequiredstringYour user key from Settings > Trading > API Key Management. Each key is tied to one environment (Demo or Real) and to Read or Write permission. Placeholder only.

Request

Written from the method, path and parameters recorded on this page. No demo host is recorded as a plain address for this API, so the samples read the base address from an environment variable. Not executed against a live or demo account. Credentials are read from environment variables on your own machine and are never entered on this site. The request builder writes these same snippets, from the same record.

This call takes a request body. The record marks no body field as required, so the samples send an empty JSON object with a Content-Type of application/json (in Python, passing json= sets that header). Add the fields the call needs from the parameters above before the request can succeed.

Python
# Set ETORO_BASE_URL, ETORO_API_KEY, ETORO_USER_KEY as environment variables first. Never paste real values into code.
# No demo host is recorded as a plain address for this API, so the base address is read from ETORO_BASE_URL.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: body fields accountLevel, instrumentLevel, mirrorLevel, pnlLevel, conversionMode, instrumentIds, mirrorFilters, dailyCutoffUtc.
import os
import requests

BASE_URL = os.environ["ETORO_BASE_URL"]
headers = {
    "x-api-key": os.environ["ETORO_API_KEY"],
    "x-user-key": os.environ["ETORO_USER_KEY"],
    "x-request-id": "...",
    "Content-Type": "application/json",
}
body = {}
resp = requests.post(BASE_URL + "/api/v1/trading/info/aggregate-portfolio", headers=headers, json=body, timeout=10)
resp.raise_for_status()
print(resp.json())
JavaScript
// Set ETORO_BASE_URL, ETORO_API_KEY, ETORO_USER_KEY as environment variables first. Never paste real values into code.
// No demo host is recorded as a plain address for this API, so the base address is read from ETORO_BASE_URL.
// Replace each {placeholder}, "..." and 0 with a real value before running.
// Optional and not shown: body fields accountLevel, instrumentLevel, mirrorLevel, pnlLevel, conversionMode, instrumentIds, mirrorFilters, dailyCutoffUtc.
// Run as a module, for example a .mjs file, on a Node version that has fetch built in.
const BASE_URL = process.env.ETORO_BASE_URL;
const res = await fetch(BASE_URL + "/api/v1/trading/info/aggregate-portfolio", {
  method: "POST",
  headers: {
    "x-api-key": process.env.ETORO_API_KEY,
    "x-user-key": process.env.ETORO_USER_KEY,
    "x-request-id": "...",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());
curl
# Set ETORO_BASE_URL, ETORO_API_KEY, ETORO_USER_KEY as environment variables first. Never paste real values into code.
# No demo host is recorded as a plain address for this API, so the base address is read from ETORO_BASE_URL.
# Replace each {placeholder}, "..." and 0 with a real value before running.
# Optional and not shown: body fields accountLevel, instrumentLevel, mirrorLevel, pnlLevel, conversionMode, instrumentIds, mirrorFilters, dailyCutoffUtc.
curl -X POST "$ETORO_BASE_URL/api/v1/trading/info/aggregate-portfolio" \
  -H "x-api-key: $ETORO_API_KEY" \
  -H "x-user-key: $ETORO_USER_KEY" \
  -H "x-request-id: ..." \
  -H "Content-Type: application/json" \
  -d '{}'

Response

A mock response. The values are invented, so check field names against the official reference.

{
  "_mock": true,
  "cid": 1000001,
  "timestamp": "2026-09-18T08:00:00Z",
  "accountCurrency": "USD",
  "accountTotals": {},
  "instrumentAggregates": [],
  "mirrors": []
}

Limits that apply at eToro

LimitValueScopeSource
Headline limit60/min reads per keyuserapi-portal.etoro.comchecked

eToro API errors you may meet

All eToro API error codes, including 10 more not listed here.