getProfileById method

Future<Response> getProfileById({
  1. required String profileId,
  2. bool? active,
})

Get profile by id

Information for a single profile. Use this endpoint when you know the profile_id.

https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getprofile

Implementation

Future<http.Response> getProfileById({
  required String profileId,
  bool? active,
}) async {
  Map<String, dynamic> queryParameters = {};
  if (active != null) queryParameters['active'] = active;

  return get(
    path: '/profiles/$profileId',
    queryParameters: queryParameters,
  );
}