CoinsSection class

The section that brings together the requests that are related to coins

Constructors

CoinsSection(Client _client)
Constructs a CoinsSection with the given Client.
const

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

getCoinData({required String id, bool localization = true, bool tickers = true, bool marketData = true, bool communityData = true, bool developerData = true, bool sparkline = false}) Future<CoinGeckoResult<Coin?>>
Get current data (name, price, market, ... including exchange tickers) for a coin.
getCoinHistory({required String id, required DateTime date, bool localization = true}) Future<CoinGeckoResult<CoinHistory?>>
Get historical data (name, price, market, stats) at a given date for a coin.
getCoinMarketChart({required String id, required String vsCurrency, int? days, String? interval}) Future<CoinGeckoResult<List<MarketChartData>>>
Get historical market data include price, market cap and 24h volume (granularity auto).
getCoinMarketChartRanged({required String id, required String vsCurrency, required DateTime from, required DateTime to}) Future<CoinGeckoResult<List<MarketChartData>>>
Get historical market data include price, market cap and 24h volume within a range of timestamp (granularity auto).
getCoinOHLC({required String id, required String vsCurrency, int? days}) Future<CoinGeckoResult<List<OHLCInfo>>>
Get coin's OHLC.
listCoinMarkets({required String vsCurrency, List<String> coinIds = const [], String category = 'all', String order = CoinMarketsOrder.marketCapDescending, int itemsPerPage = 100, int page = 1, bool sparkline = false, List<String> priceChangePercentageIntervals = const []}) Future<CoinGeckoResult<List<Market>>>
List all supported coins price, market cap, volume, and market related data.
listCoins({bool includePlatforms = false}) Future<CoinGeckoResult<List<CoinShort>>>
List all supported coins id, name and symbol.
listCoinTickers({required String id, List<String> exchangeIds = const [], int page = 1, String order = TickersOrder.trustScoreDescending, bool depth = true}) Future<CoinGeckoResult<List<Ticker>>>
Get coin tickers (paginated to 100 items).
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