コード例 #1
0
  public String withdraw(
      String withdrawType, String walletSelected, BigDecimal amount, String address)
      throws IOException {

    GeminiWithdrawalResponse[] withdrawRepsonse =
        Gemini.withdraw(
            apiKey,
            payloadCreator,
            signatureCreator,
            new GeminiWithdrawalRequest(
                String.valueOf(exchange.getNonceFactory().createValue()),
                withdrawType,
                walletSelected,
                amount,
                address));
    return withdrawRepsonse[0].getWithdrawalId();
  }