portfolioStats abstract method

Future<PortfolioStats> portfolioStats(
  1. Portfolio portfolio, {
  2. String currency = "EUR",
  3. required int from,
  4. required int to,
  5. required CandleResolution resolution,
})

The portfolioStats method is used to get the portfolio stats for a given portfolio.

The portfolio argument is used to specify the portfolio.

// Get portfolio stats for portfolio
final client = BavestRestClient(api_key);
final portfolioStats = client.portfolioStats(portfolio, from: 1630352898, to: 1655848800, resolution:  CandleType.day);

Implementation

Future<PortfolioStats> portfolioStats(Portfolio portfolio,
    {String currency = "EUR",
    required int from,
    required int to,
    required CandleResolution resolution});