ticker24hPriceChangeStatistics method
Future<Either<String, Ticker24hStatistics> >
ticker24hPriceChangeStatistics({
- required String symbol,
24 hour rolling window price change statistics.
Weight: 1
Implementation
Future<Either<String, Ticker24hStatistics>> ticker24hPriceChangeStatistics({
required String symbol,
}) {
Map<String, String> params = {symbol: symbol};
return sendRequest(
path: 'fapi/v1/ticker/24hr',
type: RequestType.GET,
params: params,
).then((r) =>
r.isLeft ? Left(r.left) : Right(Ticker24hStatistics.fromMap(r.right)));
}