getMarketStats method
Receive recent market statistics.
Implementation
Future<Map<String, dynamic>?> getMarketStats(
{required String srcCurrency, required String dstCurrency}) async {
var url = Uri.https(basePath, '/market/stats');
var response = await client.post(url,
headers: headers,
body: jsonEncode(
{'srcCurrency': srcCurrency, 'dstCurrency': dstCurrency}));
return jsonDecode(response.body);
}