cryptocurrencyPrice method

Future<CryptoPrice?> cryptocurrencyPrice(
  1. String symbol
)

Cryptocurrency Price

Implementation

Future<CryptoPrice?> cryptocurrencyPrice(String symbol) async {
  final path = '/crypto/${symbol.toLowerCase()}/price?token=$token';
  return await _get<CryptoPrice?>(
    path,
    callback: (data) => CryptoPrice.parse(data),
  );
}