Class: BitcointradeSDK::Bitcoin::Withdraw

Inherits:
BitcointradeSDK::Base show all
Defined in:
lib/bitcointrade_sdk/bitcoin/withdraw.rb

Constant Summary

Constants inherited from BitcointradeSDK::Base

BitcointradeSDK::Base::BASE_URL

Instance Method Summary collapse

Methods inherited from BitcointradeSDK::Base

#send_request

Instance Method Details

#create!(destination:, amount:, fee:, fee_type:) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/bitcointrade_sdk/bitcoin/withdraw.rb', line 14

def create!(destination:, amount:, fee:, fee_type:)
  params = {
    'destination' => destination,
    'amount' =>      amount,
    'fee'=>          fee,
    'fee_type' =>    fee_type
  }

  send_request(:post, '/bitcoin/withdraw', params)['data']
end

#feeObject



6
7
8
# File 'lib/bitcointrade_sdk/bitcoin/withdraw.rb', line 6

def fee
  send_request(:get, '/bitcoin/withdraw/fee')['data']
end

#listObject



10
11
12
# File 'lib/bitcointrade_sdk/bitcoin/withdraw.rb', line 10

def list
  send_request(:get, '/bitcoin/withdraw/list')['data']
end