getAssetExchangeRecords method

Future<Map<String, dynamic>?> getAssetExchangeRecords({
  1. String? direction,
  2. int? from,
  3. int? limit,
})

Implementation

Future<Map<String, dynamic>?> getAssetExchangeRecords(
    {String? direction, int? from, int? limit}) async {
  log.d('ByBitRest.getAssetExchangeRecords');
  var parameters = <String, dynamic>{};
  if (from != null) parameters['from'] = from;
  if (direction != null) parameters['direction'] = direction;
  if (limit != null) parameters['limit'] = limit;
  return await request(
      path: '/v2/private/exchange-order/list',
      type: 'GET',
      parameters: parameters,
      withAuthentication: true);
}