mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-05-29 10:50:40 +02:00
feat: add current price and other info to DCA strategy detail
This commit is contained in:
@@ -145,15 +145,6 @@ def strategy_detail(request, strategy_id):
|
||||
"entries": entries,
|
||||
"entries_data": entries_data,
|
||||
"monthly_data": monthly_data,
|
||||
"total_invested": strategy.total_invested(),
|
||||
"total_received": strategy.total_received(),
|
||||
"average_entry_price": strategy.average_entry_price(),
|
||||
"total_entries": strategy.total_entries(),
|
||||
"current_total_value": strategy.current_total_value(),
|
||||
"total_profit_loss": strategy.total_profit_loss(),
|
||||
"total_profit_loss_percentage": strategy.total_profit_loss_percentage(),
|
||||
"investment_frequency": strategy.investment_frequency_data(),
|
||||
"price_comparison_data": strategy.price_comparison_data(),
|
||||
}
|
||||
|
||||
return render(request, "dca/fragments/strategy/details.html", context)
|
||||
|
||||
Reference in New Issue
Block a user