diff --git a/okx/Funding.py b/okx/Funding.py index 4f2e905..f504133 100644 --- a/okx/Funding.py +++ b/okx/Funding.py @@ -8,6 +8,11 @@ class FundingAPI(OkxClient): def __init__(self, api_key='-1', api_secret_key='-1', passphrase='-1', use_server_time=False, flag='1', domain = 'https://www.okx.com',debug = True, proxy=None): OkxClient.__init__(self, api_key, api_secret_key, passphrase, use_server_time, flag, domain, debug, proxy) + # Get Non Tradable Assets + def get_non_tradable_assets(self, ccy: str = ''): + params = {'ccy': ccy} + return self._request_with_params(GET, NON_TRADABLE_ASSETS, params) + # Get Deposit Address def get_deposit_address(self, ccy): params = {'ccy': ccy} diff --git a/okx/consts.py b/okx/consts.py index 8551bea..7d40594 100644 --- a/okx/consts.py +++ b/okx/consts.py @@ -56,6 +56,7 @@ ACTIVSTE_OPTION = '/api/v5/account/activate-option' POSITION_BUILDER = '/api/v5/account/position-builder' # funding-complete-testcomplete +NON_TRADABLE_ASSETS = '/api/v5/asset/non-tradable-assets' DEPOSIT_ADDRESS = '/api/v5/asset/deposit-address' GET_BALANCES = '/api/v5/asset/balances' FUNDS_TRANSFER = '/api/v5/asset/transfer'