Module: Bitstamp::HTTP::UserTransactions

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

Instance Method Summary collapse

Instance Method Details

#user_transactions(nonce: nil, offset: 0, limit: 100, sort: 'desc', currency_pair: nil) ⇒ Object


3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bitstamp/http/user_transactions.rb', line 3

def user_transactions(nonce: nil, offset: 0, limit: 100, sort: 'desc', currency_pair: nil)
  params = {
    nonce:  nonce,
    offset: offset,
    limit:  limit,
    sort:   sort
  }

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