class Kucoin::Api::Endpoints::User::Accounts

Public Instance Methods

all(options={})
Alias for: index
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
detail(account_id)
Alias for: show
get(account_id)
Alias for: show
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
Also aliased as: all, list
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
list(options={})
Alias for: index
show(account_id) click to toggle source
# File lib/kucoin/api/endpoints/user/accounts.rb, line 23
def show account_id
  auth.ku_request :get, :show, account_id: account_id
end
Also aliased as: get, detail