Module: Bitstamp::HTTP::Withdrawal

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

Instance Method Summary collapse

Instance Method Details

#bitcoin_withdrawal(nonce: nil, amount:, address:) ⇒ Object


9
10
11
12
13
14
15
16
17
# File 'lib/bitstamp/http/withdrawal.rb', line 9

def bitcoin_withdrawal(nonce: nil, amount:, address:)
  params = {
    nonce:   nonce,
    amount:  amount,
    address: address
  }

  call(request_uri('bitcoin_withdrawal'), 'POST', params)
end

#withdrawal_requests(nonce: nil, timedelta: 86400) ⇒ Object


3
4
5
6
7
# File 'lib/bitstamp/http/withdrawal.rb', line 3

def withdrawal_requests(nonce: nil, timedelta: 86400)
  params = { nonce: nonce, timedelta: timedelta }

  call(request_uri('v2', 'withdrawal-requests'), 'POST', params)
end