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
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | User ID |
symbol | string | Yes | Trading symbol (e.g., "BTC") |
period | integer | Yes | Period 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
| Field | Type | Description |
|---|---|---|
user_id | string | User ID |
rank | string | Rank of period |
total_buy | string | Total buy volume (USD) |
total_sell | string | Total sell volume (USD) |
total_volume | string | Total trading volume (USD) |
total_holding_seconds | integer | Total holding time of the token in seconds |
volume_snapshots | array | Array of daily volume snapshot objects |