ChartDataSource class abstract
Normalized contract for market data providers (REST + WebSocket). The chart engine only interacts with this interface, maintaining zero coupling to any specific broker or provider API.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Disposes any active connections or timers.
-
getHistoricalData(
{required String symbol, required Timeframe timeframe, int count = 500, DateTime? before}) → Future< List< Candle> > -
Fetches historical OHLCV bars for the specified
symbolandtimeframe. Optionally passbeforeto fetch candles older than that timestamp (for pagination). -
getLiveTicks(
String symbol) → Stream< Tick> -
Real-time stream of live trades/ticks for the given
symbol. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited