getHistoricalData abstract method

Future<List<Candle>> getHistoricalData({
  1. required String symbol,
  2. required Timeframe timeframe,
  3. int count = 500,
  4. DateTime? before,
})

Fetches historical OHLCV bars for the specified symbol and timeframe. Optionally pass before to fetch candles older than that timestamp (for pagination).

Implementation

Future<List<Candle>> getHistoricalData({
  required String symbol,
  required Timeframe timeframe,
  int count = 500,
  DateTime? before,
});