okxv5 1.8.11__py3-none-any.whl → 1.8.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- okxv5/Account_api.py +28 -489
- okxv5/Affiliate_api.py +4 -12
- okxv5/Broker_api.py +2 -179
- okxv5/Convert_api.py +1 -7
- okxv5/Copytrading_api.py +2 -309
- okxv5/FDBroker_api.py +6 -20
- okxv5/Finance_api.py +47 -40
- okxv5/Funding_api.py +26 -25
- okxv5/Market_api.py +29 -193
- okxv5/Public_api.py +20 -64
- okxv5/Recurring_api.py +0 -57
- okxv5/Rfq_api.py +0 -22
- okxv5/Singal_api.py +45 -100
- okxv5/SprdApi_api.py +8 -154
- okxv5/Trade_api.py +27 -459
- okxv5/TradingBot_api.py +27 -87
- okxv5/TradingData_api.py +6 -49
- okxv5/client.py +30 -84
- okxv5/consts.py +400 -399
- okxv5/exceptions.py +11 -44
- okxv5/status_api.py +0 -14
- okxv5/subAccount_api.py +1 -172
- okxv5/utils.py +14 -67
- okxv5-1.8.13.dist-info/METADATA +915 -0
- okxv5-1.8.13.dist-info/RECORD +28 -0
- okxv5/hunyuan_client.py +0 -74
- okxv5-1.8.11.dist-info/METADATA +0 -59
- okxv5-1.8.11.dist-info/RECORD +0 -29
- {okxv5-1.8.11.dist-info → okxv5-1.8.13.dist-info}/WHEEL +0 -0
- {okxv5-1.8.11.dist-info → okxv5-1.8.13.dist-info}/top_level.txt +0 -0
okxv5/Finance_api.py
CHANGED
@@ -1,182 +1,189 @@
|
|
1
|
-
# 从 .client 模块导入 Client 类
|
2
1
|
from .client import Client
|
3
|
-
# 从 .consts 模块导入所有常量
|
4
2
|
from .consts import *
|
5
3
|
|
6
4
|
|
7
|
-
# FinanceAPI 类继承自 Client 类
|
8
5
|
class FinanceAPI(Client):
|
9
6
|
|
10
|
-
# 构造函数,初始化 Client
|
11
7
|
def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, flag='1'):
|
12
8
|
Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, flag)
|
13
9
|
|
14
|
-
#
|
10
|
+
# View items
|
15
11
|
def staking_defi_offers(self, productId = '', protocolType = '', ccy = ''):
|
16
12
|
params = {'productId': productId, 'protocolType': protocolType, 'ccy': ccy}
|
17
13
|
return self._request_with_params(GET, STAKING_DEFI_OFFERS, params)
|
18
14
|
|
19
|
-
#
|
15
|
+
# Subscription items
|
20
16
|
def staking_defi_purchase(self, productId = '', investData = [], term= '',tag=''):
|
21
17
|
params = {'productId': productId, 'investData': investData, 'term': term,'tag':tag}
|
22
18
|
return self._request_with_params(POST, STAKING_DEFI_PURCHASE, params)
|
23
19
|
|
24
|
-
#
|
20
|
+
# Redemption items
|
25
21
|
def staking_defi_redeem(self, ordId = '', protocolType = '', allowEarlyRedeem= ''):
|
26
22
|
params = {'ordId': ordId, 'protocolType': protocolType, 'allowEarlyRedeem': allowEarlyRedeem}
|
27
23
|
return self._request_with_params(POST, STAKING_DEFI_REDEEM, params)
|
28
24
|
|
29
|
-
#
|
25
|
+
# Cancellation of project subscription / redemption
|
30
26
|
def staking_defi_cancel(self, ordId = '', protocolType = ''):
|
31
27
|
params = {'ordId': ordId, 'protocolType': protocolType}
|
32
28
|
return self._request_with_params(POST, STAKING_DEFI_CANCEL, params)
|
33
29
|
|
34
|
-
#
|
30
|
+
# View active orders
|
35
31
|
def staking_defi_orders_active(self, productId = '', protocolType = '', ccy = '', state = ''):
|
36
32
|
params = {'productId': productId, 'protocolType': protocolType, 'ccy': ccy, 'state':state}
|
37
33
|
return self._request_with_params(GET, STAKING_DEFI_ORDERS_ACTIVE, params)
|
38
34
|
|
39
|
-
#
|
35
|
+
# View active orders
|
40
36
|
def staking_defi_orders_history(self, productId = '', protocolType = '', ccy = '', after = '', before = '', limit = ''):
|
41
37
|
params = {'productId': productId, 'protocolType': protocolType, 'ccy': ccy, 'after':after, 'before':before, 'limit':limit}
|
42
38
|
return self._request_with_params(GET, STAKING_DEFI_ORDERS_HISTORY, params)
|
43
39
|
|
44
|
-
|
40
|
+
|
45
41
|
def staking_defi_eth_purcase(self, amt = ''):
|
46
42
|
params = {}
|
47
43
|
return self._request_with_params(POST, STAKING_DEFI_ETH_PURCASE, params)
|
48
44
|
|
49
|
-
|
45
|
+
|
50
46
|
def staking_defi_eth_redeem(self, amt = ''):
|
51
47
|
params = {}
|
52
48
|
return self._request_with_params(POST, STAKING_DEFI_ETH_REDEEM, params)
|
53
49
|
|
54
|
-
|
50
|
+
|
55
51
|
def staking_defi_eth_balance(self, ):
|
56
52
|
params = {}
|
57
53
|
return self._request_with_params(GET, STAKING_DEFI_ETH_BALANCE, params)
|
58
54
|
|
59
|
-
|
55
|
+
|
60
56
|
def staking_defi_eth_p_r_history(self,type='',status='',after='',before='',limit='', ):
|
61
57
|
params = {'type': type,'status': status,'after': after,'before': before,'limit': limit,}
|
62
58
|
return self._request_with_params(GET, STAKING_DEFI_ETH_P_R_HISTORY, params)
|
63
59
|
|
64
|
-
# 质押借贷 ETH APY 历史
|
65
60
|
def staking_defi_eth_apy_history(self,days='',):
|
66
61
|
params = {'days': days,}
|
67
62
|
return self._request_with_params(GET, STAKING_DEFI_ETH_APY_HISTORY, params)
|
68
63
|
|
69
|
-
# 质押借贷 ETH 产品信息
|
70
64
|
def staking_defi_eth_product_info(self):
|
71
65
|
params = {}
|
72
66
|
return self._request_with_params(GET, STAKING_DEFI_ETH_PRODUCT_INFO, params)
|
73
67
|
|
74
|
-
# POST /api/v5/finance/staking-defi/sol/purchase
|
68
|
+
# POST /api/v5/finance/staking-defi/sol/purchase
|
75
69
|
def staking_defi_sol_purcase(self, amt = ''):
|
76
70
|
params = {}
|
77
71
|
return self._request_with_params(POST, STAKING_DEFI_SOL_PURCASE, params)
|
78
72
|
|
79
|
-
# POST /api/v5/finance/staking-defi/sol/redeem
|
73
|
+
# POST /api/v5/finance/staking-defi/sol/redeem
|
80
74
|
def staking_defi_sol_redeem(self, amt = ''):
|
81
75
|
params = {}
|
82
76
|
return self._request_with_params(POST, STAKING_DEFI_SOL_REDEEM, params)
|
83
77
|
|
84
|
-
# GET /api/v5/finance/staking-defi/sol/balance
|
78
|
+
# GET /api/v5/finance/staking-defi/sol/balance
|
85
79
|
def staking_defi_sol_balance(self, ):
|
86
80
|
params = {}
|
87
|
-
return self._request_with_params(GET, STAKING_DEFI_SOL_BALANCE, params)
|
81
|
+
return self._request_with_params(GET, STAKING_DEFI_SOL_BALANCE, params)
|
88
82
|
|
89
|
-
# GET /api/v5/finance/staking-defi/sol/purchase-redeem-history
|
83
|
+
# GET /api/v5/finance/staking-defi/sol/purchase-redeem-history
|
90
84
|
def staking_defi_sol_p_r_history(self,type='',status='',after='',before='',limit='', ):
|
91
85
|
params = {'type': type,'status': status,'after': after,'before': before,'limit': limit,}
|
92
86
|
return self._request_with_params(GET, STAKING_DEFI_SOL_P_R_HISTORY, params)
|
93
87
|
|
94
|
-
# GET /api/v5/finance/staking-defi/sol/apy-history
|
88
|
+
# GET /api/v5/finance/staking-defi/sol/apy-history
|
95
89
|
def staking_defi_sol_apy_history(self,days='',):
|
96
90
|
params = {'days': days,}
|
97
91
|
return self._request_with_params(GET, STAKING_DEFI_SOL_APY_HISTORY, params)
|
98
92
|
|
99
|
-
|
93
|
+
|
94
|
+
|
100
95
|
def savings_lending_rate_summary(self,ccy='',):
|
101
96
|
params = {'ccy': ccy,}
|
102
97
|
return self._request_with_params(GET, SAVINGS_LENDING_RATE_SUM, params)
|
103
98
|
|
104
|
-
|
99
|
+
|
105
100
|
def savings_lending_rate_his(self,ccy='',after='',before='',limit='',):
|
106
101
|
params = {'ccy': ccy,'after': after,'before': before,'limit': limit,}
|
107
102
|
return self._request_with_params(GET, SAVINGS_LENDING_RATE_HIS, params)
|
108
103
|
|
109
|
-
|
104
|
+
|
110
105
|
def fixed_loan_lending_offers(self, ccy='', term='', ):
|
111
106
|
params = {'ccy': ccy, 'term': term, }
|
112
107
|
return self._request_with_params(GET, FIXED_LOAN_LENDING_OFFERS, params)
|
113
108
|
|
114
|
-
|
109
|
+
|
115
110
|
def fixed_loan_lending_apy_history(self, ccy='', term='', ):
|
116
111
|
params = {'ccy': ccy, 'term': term, }
|
117
112
|
return self._request_with_params(GET, FIXED_LOAN_LENDING_APY_HIS, params)
|
118
113
|
|
119
|
-
|
114
|
+
|
120
115
|
def fixed_loan_pending_lending_vol(self, ccy='', term='', ):
|
121
116
|
params = {'ccy': ccy, 'term': term, }
|
122
117
|
return self._request_with_params(GET, FIXED_LOAN_PENDING_LENDING_VOL, params)
|
123
118
|
|
124
|
-
# POST /api/v5/finance/fixed-loan/lending-order
|
119
|
+
# POST /api/v5/finance/fixed-loan/lending-order
|
125
120
|
def fixed_loan_lending_order(self, ccy = '', amt = '', rate = '', term = '', autoRenewal = ''):
|
126
121
|
params = {'ccy':ccy,'amt':amt,'rate':rate,'term':term,'autoRenewal':autoRenewal}
|
127
122
|
return self._request_with_params(POST, FIXED_LOAN_LENDING_ORDER, params)
|
128
123
|
|
129
|
-
# POST /api/v5/finance/fixed-loan/amend-lending-order
|
124
|
+
# POST /api/v5/finance/fixed-loan/amend-lending-order
|
130
125
|
def fixed_loan_amend_lending_order(self, ordId = '', changeAmt = '', rate = '', autoRenewal = ''):
|
131
126
|
params = {'ordId':ordId,'changeAmt':changeAmt,'rate':rate,'autoRenewal':autoRenewal}
|
132
127
|
return self._request_with_params(POST, FIXED_LOAN_AMEND_LENDING_ORDER, params)
|
133
128
|
|
134
|
-
# GET /api/v5/finance/fixed-loan/lending-orders-list
|
129
|
+
# GET /api/v5/finance/fixed-loan/lending-orders-list
|
135
130
|
def fixed_loan_lending_orders_list(self, ordId='', ccy='', state='', after='', before='', limit=''):
|
136
131
|
params = {'ordId': ordId, 'ccy': ccy, 'state':state, 'after':after, 'before':before, 'limit':limit}
|
137
132
|
return self._request_with_params(GET, FIXED_LOAN_LENDING_ORDERS_LIST, params)
|
138
133
|
|
139
|
-
# GET /api/v5/finance/fixed-loan/lending-sub-orders
|
134
|
+
# GET /api/v5/finance/fixed-loan/lending-sub-orders
|
140
135
|
def fixed_loan_lending_sub_orders(self, ordId='', state='', after='', before='', limit=''):
|
141
136
|
params = {'ordId': ordId, 'state':state, 'after':after, 'before':before, 'limit':limit}
|
142
137
|
return self._request_with_params(GET, FIXED_LOAN_LENDING_SUB_ORDERS, params)
|
143
138
|
|
144
|
-
# GET /api/v5/finance/flexible-loan/borrow-currencies
|
139
|
+
# GET /api/v5/finance/flexible-loan/borrow-currencies
|
145
140
|
def flexible_loan_borrow_currencies(self):
|
146
141
|
params = {}
|
147
142
|
return self._request_with_params(GET, FLEXIBLE_LOAN_BORROW_CURRENCIES, params)
|
148
143
|
|
149
|
-
# GET /api/v5/finance/flexible-loan/collateral-assets
|
144
|
+
# GET /api/v5/finance/flexible-loan/collateral-assets
|
150
145
|
def flexible_loan_collateral_assets(self, ccy = ''):
|
151
146
|
params = {'ccy':ccy}
|
152
147
|
return self._request_with_params(GET, FLEXIBLE_LOAN_COLLATERAL_ASSETS, params)
|
153
148
|
|
154
|
-
# POST /api/v5/finance/flexible-loan/max-loan
|
149
|
+
# POST /api/v5/finance/flexible-loan/max-loan
|
155
150
|
def flexible_loan_max_loan(self, borrowCcy = '', supCollateral = []):
|
156
151
|
params = {'borrowCcy':borrowCcy,'supCollateral':supCollateral}
|
157
152
|
return self._request_with_params(POST, FLEXIBLE_LOAN_MAX_LOAN, params)
|
158
153
|
|
159
|
-
# GET /api/v5/finance/flexible-loan/max-collateral-redeem-amount
|
154
|
+
# GET /api/v5/finance/flexible-loan/max-collateral-redeem-amount
|
160
155
|
def flexible_loan_max_c_r_a(self, borrowCcy = ''):
|
161
156
|
params = {'borrowCcy':borrowCcy}
|
162
157
|
return self._request_with_params(GET, FLEXIBLE_LOAN_MAX_C_R_A, params)
|
163
158
|
|
164
|
-
# POST /api/v5/finance/flexible-loan/adjust-collateral
|
159
|
+
# POST /api/v5/finance/flexible-loan/adjust-collateral
|
165
160
|
def flexible_loan_adj_coll(self, type = '', collateralCcy = '', collateralAmt = ''):
|
166
161
|
params = {'type':type,'collateralCcy':collateralCcy,'collateralAmt':collateralAmt}
|
167
162
|
return self._request_with_params(POST, FLEXIBLE_LOAN_ADJ_COLL, params)
|
168
163
|
|
169
|
-
# GET /api/v5/finance/flexible-loan/loan-info
|
164
|
+
# GET /api/v5/finance/flexible-loan/loan-info
|
170
165
|
def flexible_loan_loan_info(self):
|
171
166
|
params = {}
|
172
167
|
return self._request_with_params(GET, FLEXIBLE_LOAN_LOAN_INFO, params)
|
173
168
|
|
174
|
-
# GET /api/v5/finance/flexible-loan/loan-history
|
169
|
+
# GET /api/v5/finance/flexible-loan/loan-history
|
175
170
|
def flexible_loan_loan_history(self, type = '', after = '', before = '', limit = ''):
|
176
171
|
params = {'type':type, 'after':after,'before':before,'limit':limit}
|
177
172
|
return self._request_with_params(GET, FLEXIBLE_LOAN_LOAN_HISTORY, params)
|
178
173
|
|
179
|
-
# GET /api/v5/finance/flexible-loan/interest-accrued
|
174
|
+
# GET /api/v5/finance/flexible-loan/interest-accrued
|
180
175
|
def flexible_loan_interest_accrued(self, ccy = '', after = '', before = '', limit = ''):
|
181
176
|
params = {'ccy':ccy, 'after':after,'before':before,'limit':limit}
|
182
|
-
return self._request_with_params(GET, FLEXIBLE_LOAN_INT_ACC, params)
|
177
|
+
return self._request_with_params(GET, FLEXIBLE_LOAN_INT_ACC, params)
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
okxv5/Funding_api.py
CHANGED
@@ -7,63 +7,63 @@ class FundingAPI(Client):
|
|
7
7
|
def __init__(self, api_key, api_secret_key, passphrase, use_server_time=False, flag='1'):
|
8
8
|
Client.__init__(self, api_key, api_secret_key, passphrase, use_server_time, flag)
|
9
9
|
|
10
|
-
#
|
10
|
+
# Get Deposit Address
|
11
11
|
def get_deposit_address(self, ccy):
|
12
12
|
params = {'ccy': ccy}
|
13
13
|
return self._request_with_params(GET, DEPOSIT_ADDRESS, params)
|
14
14
|
|
15
|
-
#
|
15
|
+
# Get Balance
|
16
16
|
def get_balances(self, ccy=''):
|
17
17
|
params = {'ccy': ccy}
|
18
18
|
return self._request_with_params(GET, GET_BALANCES, params)
|
19
19
|
|
20
|
-
#
|
20
|
+
# POST Account Configuration
|
21
21
|
def funds_transfer(self, ccy, amt, froms, to, type='0', subAcct='', clientId='',loanTrans='',omitPosRisk=''):
|
22
22
|
params = {'ccy': ccy, 'amt': amt, 'from': froms, 'to': to, 'type': type, 'subAcct': subAcct,'clientId': clientId,'loanTrans':loanTrans,'omitPosRisk':omitPosRisk}
|
23
23
|
return self._request_with_params(POST, FUNDS_TRANSFER, params)
|
24
24
|
|
25
|
-
#
|
25
|
+
# Get Transfer State
|
26
26
|
def transfer_state(self, transId,type=''):
|
27
27
|
params = {'transId': transId, 'type': type}
|
28
28
|
return self._request_with_params(POST, TRANSFER_STATE, params)
|
29
29
|
|
30
|
-
#
|
30
|
+
# Withdrawal
|
31
31
|
def coin_withdraw(self, ccy, amt, dest, toAddr, fee,chain='',areaCode='',clientId=''):
|
32
32
|
params = {'ccy': ccy, 'amt': amt, 'dest': dest, 'toAddr': toAddr, 'fee': fee,'chain': chain,'areaCode':areaCode,'clientId':clientId}
|
33
33
|
return self._request_with_params(POST, WITHDRAWAL_COIN, params)
|
34
34
|
|
35
|
-
#
|
35
|
+
# Get Deposit History
|
36
36
|
def get_deposit_history(self, ccy='', state='', after='', before='', limit='',txId='',depId='',fromWdId=''):
|
37
37
|
params = {'ccy': ccy, 'state': state, 'after': after, 'before': before, 'limit': limit,'txId':txId,'depId':depId,'fromWdId':fromWdId}
|
38
38
|
return self._request_with_params(GET, DEPOSIT_HISTORIY, params)
|
39
39
|
|
40
|
-
#
|
40
|
+
# Get Withdrawal History
|
41
41
|
def get_withdrawal_history(self, ccy='', state='', after='', before='', limit='',txId='',depId='',wdId=''):
|
42
42
|
params = {'ccy': ccy, 'state': state, 'after': after, 'before': before, 'limit': limit,'txId':txId,'depId':depId,'wdId':wdId}
|
43
43
|
return self._request_with_params(GET, WITHDRAWAL_HISTORIY, params)
|
44
44
|
|
45
|
-
#
|
45
|
+
# Get Convert Dust Assets
|
46
46
|
def convert_dust_assets(self, ccy):
|
47
47
|
params = {'ccy': ccy}
|
48
48
|
return self._request_with_params(POST, CONVERT_DUST_ASSETS, params)
|
49
49
|
|
50
|
-
#
|
50
|
+
# Get Currencies
|
51
51
|
def get_currency(self,ccy=''):
|
52
52
|
params = {'ccy':ccy}
|
53
53
|
return self._request_with_params(GET, CURRENCY_INFO,params)
|
54
54
|
|
55
|
-
#
|
55
|
+
# PiggyBank Purchase/Redemption
|
56
56
|
def purchase_redempt(self, ccy, amt, side,rate):
|
57
57
|
params = {'ccy': ccy, 'amt': amt, 'side': side,'rate': rate}
|
58
58
|
return self._request_with_params(POST, PURCHASE_REDEMPT, params)
|
59
59
|
|
60
|
-
#
|
60
|
+
# Get Withdrawal History
|
61
61
|
def get_bills(self, ccy='', type='', after='', before='', limit=''):
|
62
62
|
params = {'ccy': ccy, 'type': type, 'after': after, 'before': before, 'limit': limit}
|
63
63
|
return self._request_with_params(GET, BILLS_INFO, params)
|
64
64
|
|
65
65
|
|
66
|
-
#
|
66
|
+
#Get Piggy Balance
|
67
67
|
def get_piggy_balance(self, ccy=''):
|
68
68
|
params = {}
|
69
69
|
if ccy:
|
@@ -71,65 +71,66 @@ class FundingAPI(Client):
|
|
71
71
|
return self._request_with_params(GET, PIGGY_BALANCE, params)
|
72
72
|
|
73
73
|
|
74
|
-
#
|
74
|
+
#Get Deposit Lightning
|
75
75
|
def get_deposit_lightning(self, ccy,amt,to=""):
|
76
76
|
params = {'ccy':ccy,'amt':amt}
|
77
77
|
if to:
|
78
78
|
params = {'to':to}
|
79
79
|
return self._request_with_params(GET, DEPOSIT_LIGHTNING, params)
|
80
80
|
|
81
|
-
#
|
81
|
+
# Withdrawal Lightning
|
82
82
|
def withdrawal_lightning(self, ccy,invoice,memo):
|
83
83
|
params = {'ccy':ccy, 'invoice':invoice,'memo':memo}
|
84
84
|
return self._request_with_params(POST, WITHDRAWAL_LIGHTNING, params)
|
85
85
|
|
86
|
-
#
|
86
|
+
# Withdrawal Lightning
|
87
87
|
def cancel_withdrawal(self, wdId):
|
88
88
|
params = {'wdId':wdId,}
|
89
89
|
return self._request_with_params(POST , CANCEL_WITHDRAWAL, params)
|
90
90
|
|
91
|
-
#
|
91
|
+
# GET Obtain account asset valuation
|
92
92
|
def get_asset_valuation(self, ccy):
|
93
93
|
params = {'ccy':ccy}
|
94
94
|
return self._request_with_params(GET, ASSET_VALUATION, params)
|
95
95
|
|
96
|
-
#
|
96
|
+
# POST SET LENDING RATE
|
97
97
|
def set_lending_rate(self, ccy,rate):
|
98
98
|
params = {'ccy':ccy,'rate':rate}
|
99
99
|
return self._request_with_params(POST, SET_LENDING_RATE, params)
|
100
100
|
|
101
101
|
|
102
|
-
#
|
102
|
+
# GET LENDING HISTORY
|
103
103
|
def get_lending_rate(self, ccy='',before='',after='',limit='',):
|
104
104
|
params = {'ccy': ccy, 'after': after, 'before': before, 'limit': limit,}
|
105
105
|
return self._request_with_params(GET, LENDING_HISTORY, params)
|
106
106
|
|
107
107
|
|
108
|
-
#
|
108
|
+
# GET LENDING RATE HISTORY
|
109
109
|
def get_lending_rate_history(self, ccy='',):
|
110
110
|
params = {'ccy': ccy,}
|
111
111
|
return self._request_with_params(GET, LENDING_RATE_HISTORY, params)
|
112
112
|
|
113
|
-
#
|
113
|
+
# GET LENDING RATE SUMMARY
|
114
114
|
def get_lending_rate_summary(self, ccy='',before='',after='',limit='',):
|
115
115
|
params = {'ccy': ccy, 'after': after, 'before': before, 'limit': limit,}
|
116
116
|
return self._request_with_params(GET,LENDING_RATE_SUMMARY, params)
|
117
117
|
|
118
|
-
#
|
118
|
+
# GET LENDING RATE SUMMARY
|
119
119
|
def deposit_withdraw_status(self, wdId = '', txId = '', ccy = '', to = '', chain = ''):
|
120
120
|
params = {'wdId': wdId, 'txId': txId, 'ccy': ccy, 'to': to, 'chain':chain}
|
121
121
|
return self._request_with_params(GET,DEPOSIT_WITHDRAW_STATUS, params)
|
122
122
|
|
123
|
-
#
|
123
|
+
# GET /api/v5/asset/exchange-list
|
124
124
|
def exchange_list(self):
|
125
125
|
return self._request_without_params(GET,EXCHANGE_LIST)
|
126
126
|
|
127
|
-
#
|
127
|
+
# POST /api/v5/asset/monthly-statement
|
128
128
|
def monthly_statement(self,month=''):
|
129
129
|
params = {'month':month}
|
130
130
|
return self._request_with_params(POST, MONTHLY_STATEMENT,params)
|
131
131
|
|
132
|
-
#
|
132
|
+
# GET /api/v5/asset/monthly-statement
|
133
133
|
def monthly_statement(self,month=''):
|
134
134
|
params = {'month':month}
|
135
|
-
return self._request_with_params(GET, MONTHLY_STATEMENTS,params)
|
135
|
+
return self._request_with_params(GET, MONTHLY_STATEMENTS,params)
|
136
|
+
|