python-okx 0.2.9__tar.gz → 0.3.0__tar.gz

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.
Files changed (35) hide show
  1. {python-okx-0.2.9 → python-okx-0.3.0}/PKG-INFO +1 -1
  2. {python-okx-0.2.9 → python-okx-0.3.0}/okx/Account.py +6 -2
  3. {python-okx-0.2.9 → python-okx-0.3.0}/okx/Trade.py +2 -2
  4. {python-okx-0.2.9 → python-okx-0.3.0}/okx/__init__.py +1 -1
  5. {python-okx-0.2.9 → python-okx-0.3.0}/okx/consts.py +1 -0
  6. {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/PKG-INFO +1 -1
  7. {python-okx-0.2.9 → python-okx-0.3.0}/README.md +0 -0
  8. {python-okx-0.2.9 → python-okx-0.3.0}/okx/BlockTrading.py +0 -0
  9. {python-okx-0.2.9 → python-okx-0.3.0}/okx/Convert.py +0 -0
  10. {python-okx-0.2.9 → python-okx-0.3.0}/okx/CopyTrading.py +0 -0
  11. {python-okx-0.2.9 → python-okx-0.3.0}/okx/Earning.py +0 -0
  12. {python-okx-0.2.9 → python-okx-0.3.0}/okx/FDBroker.py +0 -0
  13. {python-okx-0.2.9 → python-okx-0.3.0}/okx/Funding.py +0 -0
  14. {python-okx-0.2.9 → python-okx-0.3.0}/okx/Grid.py +0 -0
  15. {python-okx-0.2.9 → python-okx-0.3.0}/okx/MarketData.py +0 -0
  16. {python-okx-0.2.9 → python-okx-0.3.0}/okx/NDBroker.py +0 -0
  17. {python-okx-0.2.9 → python-okx-0.3.0}/okx/PublicData.py +0 -0
  18. {python-okx-0.2.9 → python-okx-0.3.0}/okx/SpreadTrading.py +0 -0
  19. {python-okx-0.2.9 → python-okx-0.3.0}/okx/Status.py +0 -0
  20. {python-okx-0.2.9 → python-okx-0.3.0}/okx/SubAccount.py +0 -0
  21. {python-okx-0.2.9 → python-okx-0.3.0}/okx/TradingData.py +0 -0
  22. {python-okx-0.2.9 → python-okx-0.3.0}/okx/exceptions.py +0 -0
  23. {python-okx-0.2.9 → python-okx-0.3.0}/okx/okxclient.py +0 -0
  24. {python-okx-0.2.9 → python-okx-0.3.0}/okx/utils.py +0 -0
  25. {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WebSocketFactory.py +0 -0
  26. {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WsPrivateAsync.py +0 -0
  27. {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WsPublicAsync.py +0 -0
  28. {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WsUtils.py +0 -0
  29. {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/__init__.py +0 -0
  30. {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/SOURCES.txt +0 -0
  31. {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/dependency_links.txt +0 -0
  32. {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/requires.txt +0 -0
  33. {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/top_level.txt +0 -0
  34. {python-okx-0.2.9 → python-okx-0.3.0}/setup.cfg +0 -0
  35. {python-okx-0.2.9 → python-okx-0.3.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-okx
3
- Version: 0.2.9
3
+ Version: 0.3.0
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
@@ -49,9 +49,9 @@ class AccountAPI(OkxClient):
49
49
 
50
50
  # Get Bills Details (recent 3 months)
51
51
  def get_account_bills_archive(self, instType='', ccy='', mgnMode='', ctType='', type='', subType='', after='', before='',
52
- limit=''):
52
+ limit='',begin='',end=''):
53
53
  params = {'instType': instType, 'ccy': ccy, 'mgnMode': mgnMode, 'ctType': ctType, 'type': type,
54
- 'subType': subType, 'after': after, 'before': before, 'limit': limit}
54
+ 'subType': subType, 'after': after, 'before': before, 'limit': limit,'begin':begin,'end':end}
55
55
  return self._request_with_params(GET, BILLS_ARCHIVE, params)
56
56
 
57
57
  # Get Account Configuration
@@ -88,6 +88,10 @@ class AccountAPI(OkxClient):
88
88
  def get_leverage(self, instId, mgnMode):
89
89
  params = {'instId': instId, 'mgnMode': mgnMode}
90
90
  return self._request_with_params(GET, GET_LEVERAGE, params)
91
+ # Get instruments
92
+ def get_instruments(self, instType='', ugly = '',instFamily='',instId=''):
93
+ params = {'instType': instType, 'ugly': ugly, 'instFamily': instFamily, 'instId': instId}
94
+ return self._request_with_params(GET,GET_INSTRUMENTS,params)
91
95
 
92
96
  # Get the maximum loan of isolated MARGIN
93
97
  def get_max_loan(self, instId, mgnMode, mgnCcy):
@@ -86,9 +86,9 @@ class TradeAPI(OkxClient):
86
86
  return self._request_with_params(GET, ORDERS_HISTORY_ARCHIVE, params)
87
87
 
88
88
  # Get Transaction Details
89
- def get_fills(self, instType='', uly='', instId='', ordId='', after='', before='', limit='', instFamily=''):
89
+ def get_fills(self, instType='', uly='', instId='', ordId='', after='', before='', limit='', instFamily='',begin='',end=''):
90
90
  params = {'instType': instType, 'uly': uly, 'instId': instId, 'ordId': ordId, 'after': after, 'before': before,
91
- 'limit': limit, 'instFamily': instFamily}
91
+ 'limit': limit, 'instFamily': instFamily,'begin': begin, 'end' :end}
92
92
  return self._request_with_params(GET, ORDER_FILLS, params)
93
93
 
94
94
  # Place Algo Order
@@ -2,4 +2,4 @@
2
2
  Python SDK for the OKX API v5
3
3
 
4
4
  """
5
- __version__="0.2.9"
5
+ __version__="0.3.0"
@@ -54,6 +54,7 @@ SET_RISK_OFFSET_TYPE = '/api/v5/account/set-riskOffset-type'
54
54
  SET_AUTO_LOAN = '/api/v5/account/set-auto-loan'
55
55
  ACTIVSTE_OPTION = '/api/v5/account/activate-option'
56
56
  POSITION_BUILDER = '/api/v5/account/position-builder'
57
+ GET_INSTRUMENTS = '/api/v5/account/instruments'
57
58
 
58
59
  # funding-complete-testcomplete
59
60
  NON_TRADABLE_ASSETS = '/api/v5/asset/non-tradable-assets'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-okx
3
- Version: 0.2.9
3
+ Version: 0.3.0
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes