dividends abstract method

Future<Dividends> dividends(
  1. SecurityIdentifier id, {
  2. String? currency,
})

The dividends method is used to get the dividends for a given stock symbol. By default, the dividends are returned in EUR. You can specify a different currency by passing the currency argument.

The id argument is used to specify the stock id. The currency argument is used to specify the currency.

// Get dividends for Apple in EUR
final client = BavestRestClient(api_key);
final dividends = client.dividends(SecurityIdentifier(symbol: "AAPL"));

Implementation

Future<Dividends> dividends(SecurityIdentifier id, {String? currency});