splits abstract method

Future<Splits> splits(
  1. SecurityIdentifier id, {
  2. int years = 1,
})

The splits method is used to get the splits for a given stock symbol. The id argument is used to specify the stock id. The years argument is used to specify the number of years to get the splits for.

// Get splits for Apple in the last 5 years
final client = BavestRestClient(api_key);
final splits = client.splits(SecurityIdentifier(symbol: "AAPL"), years: 5);

Implementation

Future<Splits> splits(SecurityIdentifier id, {final int years = 1});