Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions lib/kraken_ruby_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,63 @@ def deposit_status(opts = {})
post_private 'DepositStatus', opts
end

# Get withdrawal methods (POST)
# Input:
# aclass = asset class (optional):
# currency (default)
# asset = asset being withdrawn (optional)
# network = withdrawal network name (optional)
#
# Result:
# {
# "error": [],
# "result": [
# {
# "asset": "XXBT",
# "method": "Bitcoin",
# "network": "Bitcoin",
# "minimum": "0.0004"
# },
# {
# "asset": "XXBT",
# "method": "Bitcoin Lightning",
# "network": "Lightning",
# "minimum": "0.00001"
# }
# ]
# }
#
# Examples:
#
# client.withdrawal_methods(asset: :xxbt)
#
def withdraw_methods(opts = {})
post_private 'WithdrawMethods', opts
end

# Get withdrawal addresses (POST)
# Input:
# aclass = asset class (optional):
# currency (default)
# asset = asset being withdrawn
# method = name of the withdrawal method
# key = Find address for by withdrawal key name, as set up on your account
# verified = Filter by verification status of the withdrawal address.
# Withdrawal addresses successfully completing email confirmation will have a verification status of true.
#
# Result: associative array of withdrawal addresses:
# address = withdrawal address
# expiretm = expiration time in unix timestamp, or 0 if not expiring
# new = whether or not address has ever been used
#
# Examples:
#
# client.withdrawal_addresses(asset: 'xxbt', method: 'Bitcoin', new: true)
#
def withdraw_addresses(opts = {})
post_private 'WithdrawAddresses', opts
end

# Withdraw info (POST)
#
# Example:
Expand Down