Leader TWR
The /leader/twr/:id endpoint returns time-weighted return (TWR) index data for a specific leader over a given period. This metric provides a standardized way to measure investment performance that eliminates the impact of cash flows.
Method
GET /leader/twr/:id
:id— the unique identifier of the leader whose TWR data is to be fetched.
Query Parameters
period— Time window for the TWR data in days. Defaults to30.
Response
{
"status": 200,
"data": [
{
"day": "2025-05-07T00:00:00Z",
"twr": "1.0523"
},
{
"day": "2025-05-08T00:00:00Z",
"twr": "1.0687"
}
]
}
Fields Explained
Response Array
Each object in the array represents a daily TWR data point.
- day: Date in ISO 8601 format (UTC).
- twr: The time-weighted return index value for that day.