Module: Bitstamp::HTTP::AccountBalance

Included in:
Client
Defined in:
lib/bitstamp/http/account_balance.rb

Instance Method Summary collapse

Instance Method Details

#account_balance(nonce: nil, currency_pair: nil) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/bitstamp/http/account_balance.rb', line 3

def (nonce: nil, currency_pair: nil)
  params = { nonce: nonce }

  if currency_pair == nil
    call(request_uri('v2', 'balance'), 'POST', params)
  else
    call(request_uri('v2', 'balance', currency_pair), 'POST', params)
  end
end