fix: set default

This commit is contained in:
hackerESQ
2025-07-14 21:20:47 -05:00
parent 981ce0d62f
commit 90a15ceddb
+1
View File
@@ -153,6 +153,7 @@ class Portfolio extends Model
$total_performance = [];
// get unique currencies for holdings
$currency_rates = [];
foreach ($holdings->groupBy('market_data.currency')->keys() as $currency) {
$currency_rates[$currency] = CurrencyRate::timeSeriesRates($currency, $holdings->min('first_transaction_date'), now());
}