call method

Future<String> call(
  1. Methods method, {
  2. Map<String, String>? parameters,
})

creates and executes a request to the kraken api. Returns the api call result.

Implementation

Future<String> call(Methods method, {Map<String, String>? parameters}) {
  if (method._private) {
    String nonce = _generateNonce();
    return callPrivate(method.toString(), nonce, parameters: parameters);
  }
  return callPublic(method.toString(), parameters: parameters);
}