getAllFills method
Get all fills
Get a list of fills. A fill is a partial or complete match on a specific order. must contain either a productId or an orderId
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getfills
Implementation
Future<http.Response> getAllFills({
String? orderId,
String? productId,
String? profileId,
int? limit,
//TODO determine if int or datetime or dateformat or whatever
int? before,
int? after,
}) async {
Map<String, dynamic> queryParameters = {};
if (orderId != null) queryParameters['order_id'] = orderId;
if (productId != null) queryParameters['product_id'] = productId;
if (profileId != null) queryParameters['profile_id'] = profileId;
if (limit != null) queryParameters['limit'] = limit;
if (before != null) queryParameters['before'] = before;
if (after != null) queryParameters['after'] = after;
return get(
path: '/fills',
queryParameters: queryParameters,
);
}