Skip to main content

User Info API

Endpoint

GET https://api.leagueoftraders.io/v3/app/user/info

Authorization

This endpoint requires a secret key. Include it in the request headers as follows:

Authorization: Bearer YOUR_SECRET_KEY

Request Parameters

ParameterTypeRequiredDescription
idstringYesUser ID
symbolstringYesTrading symbol (e.g., "BTC")
periodintegerYesPeriod in days (1, 7, 30, 90, 180)

Response

Success Response (200)

{
"status": 200,
"data": {
"user_id": "5ef41d9ac4839072d327cc3e",
"total_buy": "38057.19567999",
"total_sell": "38112.61881687",
"total_volume": "76169.81449686",
"total_holding_seconds": "123456789",
"volume_snapshots": [
{
"date": "2025-09-03T00:00:00Z",
"buy": "5630.03628",
"sell": "5090.6382169",
"holding_seconds": "1234567"
}
]
}
}

Response Fields

Data Object

FieldTypeDescription
user_idstringUser ID
rankstringRank of period
total_buystringTotal buy volume (USD)
total_sellstringTotal sell volume (USD)
total_volumestringTotal trading volume (USD)
total_holding_secondsintegerTotal holding time of the token in seconds
volume_snapshotsarrayArray of daily volume snapshot objects