python-okx 0.2.1__py3-none-any.whl → 0.2.3__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.
okx/NDBroker.py CHANGED
@@ -22,10 +22,9 @@ class NDBrokerAPI(Client):
22
22
  }
23
23
  return self._request_with_params(POST,DELETE_SUBACCOUNT,params)
24
24
 
25
- def get_subaccount_info(self,subAcct = '',uid = '',page = '',limit = ''):
25
+ def get_subaccount_info(self,subAcct = '',page = '',limit = ''):
26
26
  params = {
27
27
  'subAcct':subAcct,
28
- 'uid': uid,
29
28
  'page':page,
30
29
  'limit':limit
31
30
  }
@@ -149,9 +148,3 @@ class NDBrokerAPI(Client):
149
148
  }
150
149
  return self._request_with_params(POST,REBATE_PER_ORDERS,params)
151
150
 
152
- def set_nd_subaccount_asset_in_demo_trading(self,subAcct = '',ccy = ''):
153
- params = {
154
- 'subAcct':subAcct,
155
- 'ccy':ccy
156
- }
157
- return self._request_with_params(POST,SET_ND_SUB_ACCOUNT_ASSET_IN_DEMO_TRADING,params)
okx/SubAccount.py CHANGED
@@ -81,15 +81,3 @@ class SubAccountAPI(Client):
81
81
  'ccy': ccy
82
82
  }
83
83
  return self._request_with_params(GET, GET_SUB_ACCOUNT_BORROW_INTEREST_AND_LIMIT, params)
84
-
85
- def get_history_of_managed_subAccount_transfer(self, ccy='', type='', subAcct='', subUid='', after='', before='', limit=''):
86
- params = {
87
- 'ccy': ccy,
88
- 'type': type,
89
- 'subAcct': subAcct,
90
- 'subUid': subUid,
91
- 'after': after,
92
- 'before': before,
93
- 'limit': limit
94
- }
95
- return self._request_with_params(GET, GET_HISTORY_OF_MANAGED_SUB_ACCOUNT_TRANSFER, params)
okx/__init__.py CHANGED
@@ -2,4 +2,4 @@
2
2
  Python SDK for the OKX API v5
3
3
 
4
4
  """
5
- __version__="0.2.1"
5
+ __version__="0.2.3"
okx/consts.py CHANGED
@@ -177,7 +177,6 @@ GET_ASSET_SUBACCOUNT_BALANCE = '/api/v5/asset/subaccount/balances' #need to add
177
177
  GET_THE_USER_AFFILIATE_REBATE = '/api/v5/users/partner/if-rebate'
178
178
  SET_SUB_ACCOUNTS_VIP_LOAN = '/api/v5/account/subaccount/set-loan-allocation'
179
179
  GET_SUB_ACCOUNT_BORROW_INTEREST_AND_LIMIT = '/api/v5/account/subaccount/interest-limits'
180
- GET_HISTORY_OF_MANAGED_SUB_ACCOUNT_TRANSFER = '/api/v5/asset/subaccount/managed-subaccount-bills'
181
180
 
182
181
  # Broker-all need to implmented-completed
183
182
  BROKER_INFO = '/api/v5/broker/nd/info'
@@ -197,7 +196,6 @@ GET_REBATE_PER_ORDERS = '/api/v5/broker/nd/rebate-per-orders'
197
196
  REBATE_PER_ORDERS = '/api/v5/broker/nd/rebate-per-orders'
198
197
  MODIFY_SUBACCOUNT_DEPOSIT_ADDRESS = '/api/v5/asset/broker/nd/modify-subaccount-deposit-address'
199
198
  GET_SUBACCOUNT_DEPOSIT='/api/v5/asset/broker/nd/subaccount-deposit-address'
200
- SET_ND_SUB_ACCOUNT_ASSET_IN_DEMO_TRADING='/api/v5/broker/nd/set-subaccount-assets'
201
199
 
202
200
  # Convert-Complete
203
201
  GET_CURRENCIES = '/api/v5/asset/convert/currencies'
@@ -279,7 +277,7 @@ GET_PROFIT_SHARING_DETAILS = '/api/v5/copytrading/profit-sharing-details'
279
277
  GET_TOTAL_PROFIT_SHARING = '/api/v5/copytrading/total-profit-sharing'
280
278
  GET_UNREALIZED_PROFIT_SHARING_DETAILS = '/api/v5/copytrading/unrealized-profit-sharing-details'
281
279
 
282
- # Spread Trading
280
+ # Spread Trading˚
283
281
  SPREAD_PLACE_ORDER= '/api/v5/sprd/order'
284
282
  SPREAD_CANAEL_ORDER = '/api/v5/sprd/cancel-order'
285
283
  SPREAD_CANAEL_ALL_ORDERS = '/api/v5/sprd/mass-cancel'
@@ -291,5 +289,3 @@ SPREAD_GET_SPREADS = '/api/v5/sprd/spreads'
291
289
  SPREAD_GET_ORDER_BOOK = '/api/v5/sprd/books'
292
290
  SPREAD_GET_TICKER = '/api/v5/sprd/ticker'
293
291
  SPREAD_GET_PUBLIC_TRADES = '/api/v5/sprd/public-trades'
294
-
295
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-okx
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
@@ -26,8 +26,8 @@ https://github.com/okxapi/python-okx
26
26
  #### OKX API Telegram
27
27
  https://t.me/OKXAPI
28
28
  #### API trading tutorials
29
- - Spot trading: https://www.okx.com/learn/spot-trading-with-jupyter-notebook
30
- - Derivative trading: https://www.okx.com/learn/derivatives-trading-with-jupyter-notebook
29
+ - Spot trading: https://www.okx.com/help/how-can-i-do-spot-trading-with-the-jupyter-notebook
30
+ - Derivative trading: https://www.okx.com/help/how-can-i-do-derivatives-trading-with-the-jupyter-notebook
31
31
 
32
32
  Make sure you update often and check the [Changelog](https://www.okx.com/docs-v5/log_en/) for new features and bug fixes.
33
33
 
@@ -7,16 +7,16 @@ okx/FDBroker.py,sha256=zMHKP9KHegKAOP3IUBnGHj9c0CtUo6qi7uMN-rsqOpw,756
7
7
  okx/Funding.py,sha256=X_GbczUkClXoQqp23fUCvbzWI5eOQoHFbbsjIN-sJw8,6058
8
8
  okx/Grid.py,sha256=BHfqVeedv8rIe9qALzlAFALpCfTAgiszsSulkPWP0e0,6659
9
9
  okx/MarketData.py,sha256=Bsn0f1-d4MY6yfzr8JmFaztAqON2aglGPcZ70rXmDUk,4896
10
- okx/NDBroker.py,sha256=H9cPY4YzqccFL_mQr7jfUH2jVqV1XCpGhbjFSFth-Sw,5317
10
+ okx/NDBroker.py,sha256=nPqODfTXiReq3_EdEO2xlcEezv3lHXHr2G4g90Ac3Fw,5031
11
11
  okx/PublicData.py,sha256=hnMrhhYlVaqWwdu_XsflhzSMUF5oXJjOt7KoJAfGsPY,5104
12
12
  okx/SpreadTrading.py,sha256=k-CzizhwShdTI8itieKoLoUjfcZdz1qMlEFWnf-T4lM,3195
13
13
  okx/Status.py,sha256=Q_J18XvEbet2EfZBBdAxbFtexxPzuzHdFOi1tY2gWqU,463
14
- okx/SubAccount.py,sha256=U8aCk-jL2iaA6GtaqPjNJYt8tDLFP1PCcMB8jwTqpL4,3950
14
+ okx/SubAccount.py,sha256=TPLpo_P7wJ0Y5Fq3AituPYEm1sDYI6bhm5op1lnRxH0,3496
15
15
  okx/Trade.py,sha256=rRsZ_9dtVwhFLa21zv7XEnW2L1fadlPBrJLfXgEoFa4,10459
16
16
  okx/TradingData.py,sha256=Gvjz5-dXysFK30NbRzJNJEsG1R6FJCw7CQdsweQuK8Y,2299
17
- okx/__init__.py,sha256=7MVhz3pXZs-bqg22iCIfEv8mm5WFBe5jrF-kWW49pgo,58
17
+ okx/__init__.py,sha256=lCmwaI88Ivdz8ERF2vobtVvuIQ495H895Z-uE9izbfA,58
18
18
  okx/client.py,sha256=kb-F-1pnszzt39ZVMbkBkWGhgnCIZ_qUC4yFemhjZGw,2120
19
- okx/consts.py,sha256=G8dX6mB-o3dqdmNJqC_42kcArMh4ehqPuDEpsjsBDgg,14458
19
+ okx/consts.py,sha256=bXk7k3jWdpiqYb0ehQDskGV2wSdIcSs_4iJSTiX1g_U,14277
20
20
  okx/exceptions.py,sha256=ERuCnvnudJNBNACh3LNE3km5GJy0BGC5C3OKjgHXFaU,1182
21
21
  okx/utils.py,sha256=SEohirvTJx_sJP94G6riVu59nWt3VEz9Zb8bSCPg-uo,1826
22
22
  okx/websocket/WsClientFactory.py,sha256=-bC5ASMJoMWl6zeC8lny3I6b1luMqJn131Zc3E3ydK0,2070
@@ -27,7 +27,7 @@ okx/websocket/WsPrivate.py,sha256=yZSwK_fztpkoYNBN7NwretNJ9Bh0decHX-VJu3uKIBg,92
27
27
  okx/websocket/WsPublic.py,sha256=T8BGsc4TWK3QdUkZjpNwepfzpVerg7-Lr9XTZSu_KNI,498
28
28
  okx/websocket/WsUtils.py,sha256=MSn6rSgUB-fs85owYAUJbx8TQgvdeYy3XZBh7zyob80,2234
29
29
  okx/websocket/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- python_okx-0.2.1.dist-info/METADATA,sha256=sCJ4h9gePpo_iDlJ7LucrZPHMFCOuVZGyZYMBPamw7A,3091
31
- python_okx-0.2.1.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
32
- python_okx-0.2.1.dist-info/top_level.txt,sha256=rrbhHZwiw4YlhG1LWWaAODvRxyZr3onxFnqwsHdikDc,4
33
- python_okx-0.2.1.dist-info/RECORD,,
30
+ python_okx-0.2.3.dist-info/METADATA,sha256=ZyMMcx6OyIj_L5aRTV7vK7RkcRbtVRFOQvsOF-CIXYE,3123
31
+ python_okx-0.2.3.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
32
+ python_okx-0.2.3.dist-info/top_level.txt,sha256=rrbhHZwiw4YlhG1LWWaAODvRxyZr3onxFnqwsHdikDc,4
33
+ python_okx-0.2.3.dist-info/RECORD,,