quote abstract method

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

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

It returns a Quote object.

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

Implementation

Future<Quote> quote(SecurityIdentifier id, {String? currency});