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



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

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

GET paths



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

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

#list_pending_account_transactions(account_id) ⇒ Object



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

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