symbolPriceTicker method
Latest price for a symbol
Implementation
Future<Either<String, Ticker>> symbolPriceTicker({
required String symbol,
}) {
Map<String, String> params = {'symbol': symbol};
return sendRequest(
path: 'api/v3/ticker/price',
type: RequestType.GET,
params: params,
).then((r) => r.isLeft ? Left(r.left) : Right(Ticker.fromMap(r.right)));
}