tp_get_fitness
Retrieve CTL, ATL, and TSB performance metrics from TrainingPeaks. Get daily training load data with computed fitness, fatigue, and form values for a specified date range.
Instructions
Get CTL (fitness), ATL (fatigue), and TSB (form) performance data.
Args: days: Number of days to look back (default 90). Ignored if start_date is set. start_date: Start date (YYYY-MM-DD). Overrides days parameter. end_date: End date (YYYY-MM-DD). Defaults to today.
Returns daily training load data with computed CTL/ATL/TSB values and current fitness status. To get accurate CTL/ATL values, the API fetches extra history for the exponential decay calculation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| start_date | No | ||
| end_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |