
<span class="fu">aggregate_market_prices</span><span class="op">(</span><span class="va">market_prices</span>, unit <span class="op">=</span> <span class="cn">NULL</span>, aggregate_price_fun <span class="op">=</span> <span class="va">mean</span><span class="op">)</span>

<span class="fu">subset_market_prices</span><span class="op">(</span>
  <span class="va">market_prices</span>,
  <span class="va">portfolio_assets</span>,
  <span class="va">portfolio_datetimes</span>,
  unit <span class="op">=</span> <sp