deleteProfile method
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,
);
}