transferFundsBetweenProfiles method

Future<Response> transferFundsBetweenProfiles({
  1. required String from,
  2. required String to,
  3. required String currency,
  4. required double amount,
})

Transfer funds between profiles

Transfer an amount of currency from one profile to another.

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

Implementation

Future<http.Response> transferFundsBetweenProfiles({
  required String from,
  required String to,
  required String currency,
  required double amount,
}) async {
  Map<String, dynamic> body = {
    'from': from,
    'to': to,
    'currency': currency,
    'amount': amount,
  };

  return post(
    path: '/profiles/transfer',
    body: body,
  );
}