getStats method

Gets statistics on Oracle Prices.

minTime is the first time to include in stats. maxTime is the last time to include in stats.

Implementation

Future<HeliumResponse<HeliumOraclePriceStats>> getStats(
    DateTime minTime, DateTime maxTime) async {
  return _client._doRequest(HeliumRequest(
    path: '/v1/oracle/prices/stats',
    parameters: {
      'min_time': minTime,
      'max_time': maxTime,
    },
    extractResponse: (json) => HeliumOraclePriceStats.fromJson(json['data']),
  ));
}