Module: Luno::Accounts

Included in:
Client
Defined in:
lib/luno/accounts.rb

Instance Method Summary collapse

Instance Method Details

#list_account_transactions(account_id, min_row: -1000,, max_row: 0) ⇒ Object

Path params: min_row=1&max_row=1000



14
15
16
17
18
# File 'lib/luno/accounts.rb', line 14

def (, min_row: -1000, max_row: 0)
  path = "accounts/#{}/transactions"
  path_params = { min_row: min_row, max_row: max_row }
  authorise_and_send(http_method: :get, path: path, params: path_params)
end

#list_accountsObject



3
4
5
6
# File 'lib/luno/accounts.rb', line 3

def list_accounts
  path = 'accounts'
  authorise_and_send(http_method: :get, path: path)
end

#list_pending_account_transactions(account_id) ⇒ Object



8
9
10
11
# File 'lib/luno/accounts.rb', line 8

def ()
  path = "accounts/#{}/pending"
  authorise_and_send(http_method: :get, path: path)
end