allTickers24hPriceChangeStatistics method

Future<Either<String, List<Ticker24hStatistics>>> allTickers24hPriceChangeStatistics()

24 hour rolling window price change statistics.

Careful when accessing this with no symbol. Weight: 40

Implementation

Future<Either<String, List<Ticker24hStatistics>>>
    allTickers24hPriceChangeStatistics() {
  return sendRequest(
    path: 'fapi/v1/ticker/24hr',
    type: RequestType.GET,
  ).then((r) => r.isLeft
      ? Left(r.left)
      : Right(List<Ticker24hStatistics>.from(
          r.right.map((e) => Ticker24hStatistics.fromMap(e)))));
}