portfolioMetrics abstract method

Future<PortfolioMetric> portfolioMetrics(
  1. Portfolio portfolio, {
  2. String currency = 'EUR',
})

The portfolioMetrics method is used to get the portfolio metrics for a given portfolio.

The portfolio argument is used to specify the portfolio.

// Get portfolio metrics for portfolio
final client = BavestRestClient(api_key);
final portfolioMetrics = client.portfolioMetrics(portfolio);

Implementation

Future<PortfolioMetric> portfolioMetrics(Portfolio portfolio,
    {String currency = 'EUR'});