Class: GeminiApi::Endpoints::WithdrawCryptoFund

Inherits:
GeminiApi::Endpoint show all
Includes:
PartnerApi::Endpoints::Initializer
Defined in:
lib/gemini_api/endpoints/withdraw_crypto_fund.rb

Constant Summary

Constants inherited from GeminiApi::Endpoint

GeminiApi::Endpoint::HMAC_ALGORITHM

Instance Method Summary collapse

Methods included from PartnerApi::Endpoints::Initializer

prepended

Methods inherited from PartnerApi::Endpoints::Base

#call

Constructor Details

#initialize(address:, amount:, currency: :usd, account: nil, client_transfer_id: nil) ⇒ WithdrawCryptoFund

By default, we allow withdrawing USD as GUSD See: docs.gemini.com/rest-api/#withdraw-usd-as-gusd For other currency, see docs.gemini.com/rest-api/#withdraw-crypto-funds



15
16
17
18
19
20
21
# File 'lib/gemini_api/endpoints/withdraw_crypto_fund.rb', line 15

def initialize(address:, amount:, currency: :usd, account: nil, client_transfer_id: nil)
  @currency = currency.to_sym
  @address = address
  @amount = amount
  @account = 
  @client_transfer_id = client_transfer_id
end