Class: Kucoin::Api::Endpoints::User::Withdrawals

Inherits:
Kucoin::Api::Endpoints::User show all
Defined in:
lib/kucoin/api/endpoints/user/withdrawals.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#assert_param_is_one_of, #assert_required_param, #auth, #initialize, #open, #path, #url

Constructor Details

This class inherits a constructor from Kucoin::Api::Endpoints::Base

Instance Method Details

#create(currency, address, amount, options = {}) ⇒ Object Also known as: apply



7
8
9
# File 'lib/kucoin/api/endpoints/user/withdrawals.rb', line 7

def create currency, address, amount, options={}
  auth.ku_request :post, :index, currency: currency, address: address, amount: amount, **options
end

#delete(withdrawal_id) ⇒ Object Also known as: cancel



22
23
24
# File 'lib/kucoin/api/endpoints/user/withdrawals.rb', line 22

def delete withdrawal_id
  auth.ku_request :delete, :delete, withdrawal_id: withdrawal_id
end

#index(options = {}) ⇒ Object Also known as: all, list



12
13
14
# File 'lib/kucoin/api/endpoints/user/withdrawals.rb', line 12

def index options={}
  auth.ku_request :get, :index, **options
end

#quotas(currency) ⇒ Object



18
19
20
# File 'lib/kucoin/api/endpoints/user/withdrawals.rb', line 18

def quotas currency
  auth.ku_request :get, :quotas, currency: currency
end