fix(lint): remove unused imports and reformat with black
This commit is contained in:
@@ -412,11 +412,14 @@ def strategy_metrics_from_snapshot(
|
||||
]
|
||||
|
||||
scenario_price = spot * _pct_factor(scenario_pct)
|
||||
scenario_gold_value = _as_money(gold_weight * PricePerWeight(
|
||||
amount=scenario_price,
|
||||
currency=BaseCurrency.USD,
|
||||
per_unit=WeightUnit.OUNCE_TROY,
|
||||
))
|
||||
scenario_gold_value = _as_money(
|
||||
gold_weight
|
||||
* PricePerWeight(
|
||||
amount=scenario_price,
|
||||
currency=BaseCurrency.USD,
|
||||
per_unit=WeightUnit.OUNCE_TROY,
|
||||
)
|
||||
)
|
||||
current_gold_value = _as_money(gold_weight * current_spot)
|
||||
unhedged_equity = scenario_gold_value - loan_amount
|
||||
scenario_payoff_per_unit = _strategy_option_payoff_per_unit(strategy, spot, scenario_price)
|
||||
|
||||
Reference in New Issue
Block a user