getMetrics static method

Future<AssetMetricsResponse> getMetrics(
  1. String assetId
)

Get Crypto Asset Metrics.

Implementation

static Future<AssetMetricsResponse> getMetrics(String assetId) async {
  AssetMetricsResponse response = await _assetsClient.getMetrics(assetId);
  _xRateMap[response.assetMetric.slug] =
      response.assetMetric.marketData.priceUsd;
  return response;
}