Skip to content

Commit

Permalink
bump to 0.2.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiktraxl committed Jan 26, 2022
1 parent d5d2cf0 commit 8a1aef6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions pykrakenapi/pykrakenapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ def _decrease_api_counter(self):
if self.api_counter < 0:
self.api_counter = 0
self.time_of_last_query = now

def get_stakeable_assets(self, otp=None):
"""Get list of stakeable assets and staking details.
Expand Down Expand Up @@ -2548,11 +2548,11 @@ def get_stakeable_assets(self, otp=None):
assets = pd.json_normalize(data=res['result']).set_index('asset')

return assets

def get_pending_staking_transactions(self, otp=None):
"""Get list of pending staking transactions.
Returns a ``pd.DataFrame`` of pending staking transactions.
Returns a ``pd.DataFrame`` of pending staking transactions.
Parameters
----------
Expand Down Expand Up @@ -2608,12 +2608,12 @@ def get_pending_staking_transactions(self, otp=None):
return None

return transactions

def get_staking_transactions(self, otp=None):
"""Returns the list of 1000 recent staking transactions from past
90 days.
Returns a ``pd.DataFrame`` of staking transactions.
Returns a ``pd.DataFrame`` of staking transactions.
Parameters
----------
Expand Down Expand Up @@ -2674,7 +2674,7 @@ def stake_asset(self, asset, amount, method, otp=None):
"""Stake an asset from your spot wallet. This operation requires an
API key with `Withdraw funds` permission.
Returns a ``str`` of the transaction Reference ID.
Returns a ``str`` of the transaction Reference ID.
Parameters
----------
Expand Down Expand Up @@ -2718,12 +2718,12 @@ def stake_asset(self, asset, amount, method, otp=None):
raise KrakenAPIError(res['error'])

return res['result']

def unstake_asset(self, asset, amount, otp=None):
"""Unstake an asset from your staking wallet. This operation requires
an API key with `Withdraw funds` permission.
Returns a ``str`` of the transaction Reference ID.
Returns a ``str`` of the transaction Reference ID.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author="Dominik Traxl",
author_email="[email protected]",
url='https://github.com/dominiktraxl/pykrakenapi/',
download_url='https://github.com/dominiktraxl/pykrakenapi/tarball/v0.2.3',
download_url='https://github.com/dominiktraxl/pykrakenapi/tarball/v0.2.4',
description=("A Python implementation of the Kraken API."),
long_description=open('README.rst').read(),
python_requires='>=3',
Expand Down

0 comments on commit 8a1aef6

Please sign in to comment.