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.
- {python-okx-0.2.9 → python-okx-0.3.0}/PKG-INFO +1 -1
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/Account.py +6 -2
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/Trade.py +2 -2
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/__init__.py +1 -1
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/consts.py +1 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/PKG-INFO +1 -1
- {python-okx-0.2.9 → python-okx-0.3.0}/README.md +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/BlockTrading.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/Convert.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/CopyTrading.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/Earning.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/FDBroker.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/Funding.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/Grid.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/MarketData.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/NDBroker.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/PublicData.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/SpreadTrading.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/Status.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/SubAccount.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/TradingData.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/exceptions.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/okxclient.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/utils.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WebSocketFactory.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WsPrivateAsync.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WsPublicAsync.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/WsUtils.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/okx/websocket/__init__.py +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/SOURCES.txt +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/dependency_links.txt +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/requires.txt +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/python_okx.egg-info/top_level.txt +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/setup.cfg +0 -0
- {python-okx-0.2.9 → python-okx-0.3.0}/setup.py +0 -0
|
@@ -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
|
|
@@ -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'
|
|
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
|
|
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
|