Skip to main content
GET
/
api
/
v1
/
user-info
/
people
/
{username}
/
gain
Retrieve detailed historical performance metrics and analytics for a specified user
curl --request GET \
  --url https://public-api.etoro.com/api/v1/user-info/people/{username}/gain \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
{
  "monthly": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "gain": 123
    }
  ],
  "yearly": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "gain": 123
    }
  ]
}

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"c59d19df-758e-40c8-b74c-7f432429bf4d"

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

Unique identifier of the user whose performance metrics are being requested

Response

200 - application/json

OK

monthly
object[]
yearly
object[]