Skip to content

Commit 8176c77

Browse files
authored
Merge pull request #16 from WindChild/master
set account level
2 parents 40778a4 + ca09303 commit 8176c77

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

okex/Account_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ def set_auto_loan(self, auto_loan):
9595
params = {'autoLoan': auto_loan}
9696
return self._request_with_params(POST, AUTO_LOAN, params)
9797

98+
def set_account_level(self, account_level):
99+
params = {'acctLv': account_level}
100+
return self._request_with_params(POST, ACCOUNT_LEVEL, params)
101+
98102
# Get Fee Rates
99103
def get_fee_rates(self, instType, instId=None, uly=None, category=None):
100104
params = {'instType': instType, 'instId': instId, 'uly': uly, 'category': category}

okex/consts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
ADJUST_LEVERAGE_INFO = '/api/v5/account/adjust-leverage-info'
3535
MAX_LOAN = '/api/v5/account/max-loan'
3636
AUTO_LOAN = '/api/v5/account/set-auto-loan'
37+
ACCOUNT_LEVEL = '/api/v5/account/set-account-level'
3738
FEE_RATES = '/api/v5/account/trade-fee'
3839
BORROW_REPAY = '/api/v5/account/borrow-repay'
3940
BORROW_REPAY_HISTORY = '/api/v5/account/borrow-repay-history'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='okex-api-v5',
6-
version='1.1.13',
6+
version='1.1.15',
77
packages=['okex'],
88
install_requires=['httpx[http2]'],
99
author='zerodivision',

0 commit comments

Comments
 (0)