deleteProfile method

Future<Response> deleteProfile({
  1. required String profileId,
  2. required String to,
})

Delete a profile

Deletes the profile specified by profile_id and transfers all funds to the profile specified by to. Fails if there are any open orders on the profile to be deleted.

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

Implementation

Future<http.Response> deleteProfile({
  required String profileId,
  required String to,
}) async {
  Map<String, dynamic> body = {
    'profile_id': profileId,
    'to': to,
  };

  return put(
    path: '/profiles/$profileId',
    body: body,
  );
}