Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix get_withdrawal_quotas args #103

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
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
9 changes: 7 additions & 2 deletions kucoin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,17 +761,20 @@ def get_withdrawals(self, currency=None, status=None, start=None, end=None, page

return self._get('withdrawals', True, data=data)

def get_withdrawal_quotas(self, currency):
def get_withdrawal_quotas(self, currency, chain=None):
"""Get withdrawal quotas for a currency

https://docs.kucoin.com/#get-withdrawal-quotas

:param currency: Name of currency
:type currency: string
:param chain: Name of chain
:type chain: string

.. code:: python

quotas = client.get_withdrawal_quotas('ETH')
quotas = client.get_withdrawal_quotas('ETH', 'ERC20')

:returns: ApiResponse

Expand All @@ -794,8 +797,10 @@ def get_withdrawal_quotas(self, currency):
"""

data = {
'currency': currency
'currency': currency,
}
if chain:
data['chain'] = chain

return self._get('withdrawals/quotas', True, data=data)

Expand Down