Skip to main content
GET
/
api
/
v2
/
portfolios
/
{username}
/
exposure
/
history
Get market exposure history
curl --request GET \
  --url https://public-api.etoro.com/api/v2/portfolios/{username}/exposure/history \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
{
  "userName": "john.smith",
  "results": [
    {
      "date": "2024-01-31",
      "absExposurePct": 0.72,
      "exposureItems": [
        {
          "instrumentId": 1001,
          "symbol": "AAPL",
          "netExposurePct": 0.43,
          "absExposurePct": 0.43
        },
        {
          "instrumentId": 2005,
          "symbol": "TSLA",
          "netExposurePct": -0.25,
          "absExposurePct": 0.25
        }
      ]
    }
  ]
}

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"6a5d26d7-545a-4bd2-9b1b-c99b91c917f9"

x-api-key
string<password>
required

API key for authentication.

Example:

"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"

x-user-key
string<password>
required

User-specific authentication key.

Example:

"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"

Path Parameters

username
string
required

The eToro username of the portfolio owner.

Query Parameters

period
enum<string>

Predefined rolling window. Mutually exclusive with minDate/maxDate.

Available options:
CurrMonth,
OneMonthAgo,
TwoMonthsAgo,
CurrQuarter,
ThreeMonthsAgo,
SixMonthsAgo,
CurrYear,
OneYearAgo,
LastYear,
LastTwoYears
minDate
string<date>

Start date inclusive (ISO 8601 date, YYYY-MM-DD). Mutually exclusive with period. Required together with maxDate when period is omitted.

maxDate
string<date>

End date inclusive (ISO 8601 date, YYYY-MM-DD). Mutually exclusive with period. Required together with minDate when period is omitted.

count
integer

Downsample time axis to at most N buckets. Omit or pass 0 for no downsampling.

Required range: x >= 0

Response

Successful response

userName
string
required
results
object[]
required

Daily snapshots ordered ascending by date.