contango.trading.metrics.calculators.returns
contango.trading.metrics.calculators.returns
get_return_metrics
get_return_metrics(context: AnalysisContext) -> ReturnMetrics
Returns the ReturnMetrics for the given context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
AnalysisContext
|
The |
required |
Returns:
| Type | Description |
|---|---|
ReturnMetrics
|
A |
Source code in src\contango\trading\metrics\calculators\returns.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |