Skip to main content
GET
/
api
/
v1
/
user-info
/
people
/
{username}
/
daily-gain
Retrieve granular performance data for specific time periods
curl --request GET \
  --url https://public-api.etoro.com/api/v1/user-info/people/{username}/daily-gain \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
[
{
"timestamp": "2023-01-01T00:00:00Z",
"gain": 0
},
{
"timestamp": "2023-01-02T00:00:00Z",
"gain": 0.14
},
{
"timestamp": "2023-01-03T00:00:00Z",
"gain": -0.26
},
{
"timestamp": "2023-01-04T00:00:00Z",
"gain": 0.68
}
]

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"bbc7c8e1-033d-4292-ba02-12ca75c03980"

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 data is being requested

Query Parameters

minDate
string<date>
required

Start date for the analysis period (inclusive) in YYYY-MM-DD format

maxDate
string<date>
required

End date for the analysis period (inclusive) in YYYY-MM-DD format

type
enum<string>
required

Specifies the granularity of the performance data: 'Daily' for day-by-day metrics or 'Period' for aggregated period statistics

Available options:
Daily,
Period

Response

200 - application/json

OK

timestamp
string<date-time>
gain
number