class Kucoin::Api::Endpoints::User::Accounts
Public Instance Methods
create(currency, type)
click to toggle source
# File lib/kucoin/api/endpoints/user/accounts.rb, line 7 def create currency, type options = { currency: currency, type: type } assert_param_is_one_of options, :type, account_types auth.ku_request :post, :index, **options end
holds(account_id)
click to toggle source
# File lib/kucoin/api/endpoints/user/accounts.rb, line 33 def holds account_id auth.ku_request :get, :holds, account_id: account_id end
index(options={})
click to toggle source
# File lib/kucoin/api/endpoints/user/accounts.rb, line 13 def index options={} auth.ku_request :get, :index, **options end
inner_transfer(client_oid, pay_account_id, rec_account_id, amount)
click to toggle source
# File lib/kucoin/api/endpoints/user/accounts.rb, line 19 def inner_transfer client_oid, pay_account_id, rec_account_id, amount auth.ku_request :post, :inner_transfer, clientOid: client_oid, payAccountId: pay_account_id, recAccountId: rec_account_id, amount: amount end
ledgers(account_id, options={})
click to toggle source
# File lib/kucoin/api/endpoints/user/accounts.rb, line 29 def ledgers account_id, options={} auth.ku_request :get, :ledgers, account_id: account_id, **options end