trading.optimizer.analysis.calculators.trades
trading.optimizer.analysis.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\optimizer\analysis\calculators\trades.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | |