update Funding non_tradable_assets

This commit is contained in:
alexcore-starlabs 2023-05-23 12:02:33 +02:00 committed by okxapi
parent 7d43159161
commit d95d1aea74
2 changed files with 6 additions and 0 deletions

View File

@ -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}

View File

@ -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'