module Kucoin::Rest::Private::Transfers
Public Instance Methods
cancel_withdrawal(coin, transaction_id:, options: {})
click to toggle source
# File lib/kucoin/rest/private/transfers.rb, line 17 def cancel_withdrawal(coin, transaction_id:, options: {}) options.merge!(authenticate: true) post("/account/#{coin}/withdraw/cancel", data: {txOid: transaction_id}, options: options) end
create_withdrawal(coin, amount:, address:, options: {})
click to toggle source
# File lib/kucoin/rest/private/transfers.rb, line 12 def create_withdrawal(coin, amount:, address:, options: {}) options.merge!(authenticate: true) post("/account/#{coin}/withdraw/apply", data: {coin: coin, amount: amount, address: address}, options: options) end
get_coin_address(coin, options: {})
click to toggle source
# File lib/kucoin/rest/private/transfers.rb, line 6 def get_coin_address(coin, options: {}) options.merge!(authenticate: true) response = get("/account/#{coin}/wallet/address", options: options)&.fetch("data", {}) ::Kucoin::Models::CoinAddress.new(response) if response end