contango.trading.metrics.calculators.trades
contango.trading.metrics.calculators.trades
get_trade_metrics
get_trade_metrics(context: AnalysisContext) -> TradeMetrics
Returns the TradeMetrics for the given context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
AnalysisContext
|
The |
required |
Returns:
| Type | Description |
|---|---|
TradeMetrics
|
A |
Source code in src\contango\trading\metrics\calculators\trades.py
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |