veox / python3-krakenex

REST Exchange API for Kraken.com, Python 3
GNU Lesser General Public License v3.0
713 stars 236 forks source link

New Kraken features Deposits & Withdrawal information #115

Open Eloise1988 opened 5 years ago

Eloise1988 commented 5 years ago

Versions

OS:       
Python:   
krakenex: 

What are you trying to achieve?

Add new functionality to code. Kraken has added a new feature in the api -> private-user-funding https://www.kraken.com/features/api#private-user-funding

# code sample
k.query_private('WithdrawStatus')
k.query_private('DepositStatus')

What do you expect to happen?

Get list of deposits Get list of withdrawals

What happens instead?

New code that needs to be implemented

# error message
veox commented 5 years ago

krakenex does not implement methods one-by-one. In other words, the two you mention should already be available, by passing appropriate data to query_private().

From the top of my head:

kraken.query_private('DepositStatus', data={'asset': 'ETH'})
kraken.query_private('WithdrawStatus', data={'asset': 'XBT'})

(Checked - yup, that works.)


For WithdrawStatus, "Withdraw Funds" permission must be enabled on the key. This might be an intentional security feature; or it might be an issue, since method DepositStatus does not require "Deposit Funds` permission. If so, it's an issue upstream.