From e2e7b4f8af382a937797350ea4338f3b2659a16e Mon Sep 17 00:00:00 2001 From: Dalton Date: Wed, 15 Nov 2023 17:20:11 +0000 Subject: [PATCH] updated typo in constant and reference --- okx/Funding.py | 4 ++-- okx/consts.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/okx/Funding.py b/okx/Funding.py index f504133..6fb9a22 100644 --- a/okx/Funding.py +++ b/okx/Funding.py @@ -44,12 +44,12 @@ class FundingAPI(OkxClient): def get_deposit_history(self, ccy='', state='', after='', before='', limit='', txId='', depId='', fromWdId=''): params = {'ccy': ccy, 'state': state, 'after': after, 'before': before, 'limit': limit, 'txId': txId, 'depId': depId, 'fromWdId': fromWdId} - return self._request_with_params(GET, DEPOSIT_HISTORIY, params) + return self._request_with_params(GET, DEPOSIT_HISTORY, params) # Get Withdrawal History def get_withdrawal_history(self, ccy='', wdId='', state='', after='', before='', limit='',txId=''): params = {'ccy': ccy, 'wdId': wdId, 'state': state, 'after': after, 'before': before, 'limit': limit,'txId':txId} - return self._request_with_params(GET, WITHDRAWAL_HISTORIY, params) + return self._request_with_params(GET, WITHDRAWAL_HISTORY, params) # Get Currencies def get_currencies(self, ccy=''): diff --git a/okx/consts.py b/okx/consts.py index ee1e96b..76ac660 100644 --- a/okx/consts.py +++ b/okx/consts.py @@ -62,14 +62,14 @@ GET_BALANCES = '/api/v5/asset/balances' FUNDS_TRANSFER = '/api/v5/asset/transfer' TRANSFER_STATE = '/api/v5/asset/transfer-state' WITHDRAWAL_COIN = '/api/v5/asset/withdrawal' -DEPOSIT_HISTORIY = '/api/v5/asset/deposit-history' +DEPOSIT_HISTORY = '/api/v5/asset/deposit-history' CURRENCY_INFO = '/api/v5/asset/currencies' PURCHASE_REDEMPT = '/api/v5/asset/purchase_redempt' BILLS_INFO = '/api/v5/asset/bills' DEPOSIT_LIGHTNING = '/api/v5/asset/deposit-lightning' WITHDRAWAL_LIGHTNING = '/api/v5/asset/withdrawal-lightning' CANCEL_WITHDRAWAL = '/api/v5/asset/cancel-withdrawal' #need add -WITHDRAWAL_HISTORIY = '/api/v5/asset/withdrawal-history' +WITHDRAWAL_HISTORY = '/api/v5/asset/withdrawal-history' CONVERT_DUST_ASSETS = '/api/v5/asset/convert-dust-assets' #need add ASSET_VALUATION = '/api/v5/asset/asset-valuation' #need add SET_LENDING_RATE = '/api/v5/asset/set-lending-rate'