python-okx 0.3.6__tar.gz → 0.3.7__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.3.6 → python_okx-0.3.7}/PKG-INFO +1 -1
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Account.py +5 -3
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/MarketData.py +0 -4
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Trade.py +0 -4
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/__init__.py +1 -1
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/consts.py +1 -3
- {python_okx-0.3.6 → python_okx-0.3.7}/python_okx.egg-info/PKG-INFO +1 -1
- {python_okx-0.3.6 → python_okx-0.3.7}/README.md +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/BlockTrading.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Convert.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/CopyTrading.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/FDBroker.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Finance/EthStaking.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Finance/Savings.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Finance/SolStaking.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Finance/StakingDefi.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Finance/__init__.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Funding.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Grid.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/PublicData.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/SimpleEarnFixed.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/SpreadTrading.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/Status.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/SubAccount.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/TradingData.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/exceptions.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/okxclient.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/utils.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/websocket/WebSocketFactory.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/websocket/WsPrivateAsync.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/websocket/WsPublicAsync.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/websocket/WsUtils.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/okx/websocket/__init__.py +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/python_okx.egg-info/SOURCES.txt +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/python_okx.egg-info/dependency_links.txt +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/python_okx.egg-info/requires.txt +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/python_okx.egg-info/top_level.txt +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/setup.cfg +0 -0
- {python_okx-0.3.6 → python_okx-0.3.7}/setup.py +0 -0
|
@@ -27,13 +27,15 @@ class AccountAPI(OkxClient):
|
|
|
27
27
|
params = {'instType': instType, 'instId': instId}
|
|
28
28
|
return self._request_with_params(GET, POSITION_INFO, params)
|
|
29
29
|
|
|
30
|
-
def position_builder(self, inclRealPosAndEq=False,
|
|
30
|
+
def position_builder(self, acctLv=None,inclRealPosAndEq=False, lever=None, greeksType=None, simPos=None,
|
|
31
31
|
simAsset=None):
|
|
32
32
|
params = {}
|
|
33
|
+
if acctLv is not None:
|
|
34
|
+
params['acctLv'] = acctLv
|
|
33
35
|
if inclRealPosAndEq is not None:
|
|
34
36
|
params['inclRealPosAndEq'] = inclRealPosAndEq
|
|
35
|
-
if
|
|
36
|
-
params['spotOffsetType'] =
|
|
37
|
+
if lever is not None:
|
|
38
|
+
params['spotOffsetType'] = lever
|
|
37
39
|
if greeksType is not None:
|
|
38
40
|
params['greksType'] = greeksType
|
|
39
41
|
if simPos is not None:
|
|
@@ -60,10 +60,6 @@ class MarketAPI(OkxClient):
|
|
|
60
60
|
def get_volume(self):
|
|
61
61
|
return self._request_without_params(GET, VOLUMNE)
|
|
62
62
|
|
|
63
|
-
# Get Oracle
|
|
64
|
-
def get_oracle(self):
|
|
65
|
-
return self._request_without_params(GET, ORACLE)
|
|
66
|
-
|
|
67
63
|
# Get Tier
|
|
68
64
|
def get_tier(self, instType='', tdMode='', uly='', instId='', ccy='', tier=''):
|
|
69
65
|
params = {'instType': instType, 'tdMode': tdMode, 'uly': uly, 'instId': instId, 'ccy': ccy, 'tier': tier}
|
|
@@ -115,10 +115,6 @@ class TradeAPI(OkxClient):
|
|
|
115
115
|
def cancel_algo_order(self, params):
|
|
116
116
|
return self._request_with_params(POST, CANCEL_ALGOS, params)
|
|
117
117
|
|
|
118
|
-
# Cancel Advance Algos
|
|
119
|
-
def cancel_advance_algos(self, params):
|
|
120
|
-
return self._request_with_params(POST, Cancel_Advance_Algos, params)
|
|
121
|
-
|
|
122
118
|
# Get Algo Order List
|
|
123
119
|
def order_algos_list(self, ordType='', algoId='', instType='', instId='', after='', before='', limit='',
|
|
124
120
|
algoClOrdId=''):
|
|
@@ -104,8 +104,7 @@ HISTORY_CANDLES = '/api/v5/market/history-candles'
|
|
|
104
104
|
INDEX_CANSLES = '/api/v5/market/index-candles'
|
|
105
105
|
MARKPRICE_CANDLES = '/api/v5/market/mark-price-candles'
|
|
106
106
|
MARKET_TRADES = '/api/v5/market/trades'
|
|
107
|
-
VOLUMNE = '/api/v5/market/platform-24-volume'
|
|
108
|
-
ORACLE = '/api/v5/market/open-oracle' #need to update? if it is open oracle
|
|
107
|
+
VOLUMNE = '/api/v5/market/platform-24-volume' #need to update? if it is open oracle
|
|
109
108
|
INDEX_COMPONENTS = '/api/v5/market/index-components' #need to add
|
|
110
109
|
EXCHANGE_RATE = '/api/v5/market/exchange-rate' #need to add
|
|
111
110
|
HISTORY_TRADES = '/api/v5/market/history-trades' #need to add
|
|
@@ -165,7 +164,6 @@ ORDER_FILLS = '/api/v5/trade/fills'
|
|
|
165
164
|
ORDERS_FILLS_HISTORY = '/api/v5/trade/fills-history'
|
|
166
165
|
PLACE_ALGO_ORDER = '/api/v5/trade/order-algo'
|
|
167
166
|
CANCEL_ALGOS = '/api/v5/trade/cancel-algos'
|
|
168
|
-
Cancel_Advance_Algos = '/api/v5/trade/cancel-advance-algos'
|
|
169
167
|
ORDERS_ALGO_PENDING = '/api/v5/trade/orders-algo-pending'
|
|
170
168
|
ORDERS_ALGO_HISTORY = '/api/v5/trade/orders-algo-history'
|
|
171
169
|
GET_ALGO_ORDER_DETAILS = '/api/v5/trade/order-algo'
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|