# Get player
player = await client.get_player("bexli", "bex")
# Get recent matches
matches = await player.get_matches(count=20)
# Get recent performance stats
performance = matches.get_performance_stats()
print(f"Performance over {performance.total_games} recent games:")
print(f"Win Rate: {performance.win_rate:.1f}% ({performance.wins}W/{performance.losses}L)")
kda_str = f"{performance.avg_kills:.1f}/{performance.avg_deaths:.1f}/{performance.avg_assists:.1f}"
print(f"Average KDA: {kda_str} ({performance.avg_kda:.2f})")
print(f"Average CS: {performance.avg_cs:.1f}")
print(f"Average Game Duration: {performance.avg_game_duration_minutes:.1f} minutes")
Available stats
total_games: int
wins: int
losses: int
win_rate: float
avg_kills: float
avg_deaths: float
avg_assists: float
avg_kda: float
avg_cs: float
avg_game_duration_minutes: float