portfolioChart abstract method

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

The portfolioChart method is used to get the portfolio chart for a given portfolio.

The portfolio argument is used to specify the portfolio.

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

Implementation

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