Skip to content

IStatisticsService

QuantConnect.Statistics.IStatisticsService

This interface exposes methods for accessing algorithm statistics results at runtime.

set_summary_statistic

set_summary_statistic(name: str, value: str) -> None

Sets or updates a custom summary statistic

Parameters:

Name Type Description Default
name str

The statistic name

required
value str

The statistic value

required

statistics_results

statistics_results() -> StatisticsResults

Calculates and gets the current statistics for the algorithm

Returns:

Type Description
StatisticsResults

The current statistics.