python-okx 0.2.4__tar.gz → 0.2.6__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.4 → python-okx-0.2.6}/PKG-INFO +1 -1
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/__init__.py +1 -1
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/client.py +4 -4
- python-okx-0.2.6/okx/websocket/__init__.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/PKG-INFO +1 -1
- {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/SOURCES.txt +2 -1
- {python-okx-0.2.4 → python-okx-0.2.6}/setup.py +1 -1
- {python-okx-0.2.4 → python-okx-0.2.6}/README.md +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/Account.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/BlockTrading.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/Convert.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/CopyTrading.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/Earning.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/FDBroker.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/Funding.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/Grid.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/MarketData.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/NDBroker.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/PublicData.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/SpreadTrading.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/Status.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/SubAccount.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/Trade.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/TradingData.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/consts.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/exceptions.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/utils.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/websocket/WebSocketFactory.py +0 -0
- /python-okx-0.2.4/okx/websocket/WsPprivateAsync.py → /python-okx-0.2.6/okx/websocket/WsPrivateAsync.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/websocket/WsPublicAsync.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/okx/websocket/WsUtils.py +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/dependency_links.txt +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/requires.txt +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/top_level.txt +0 -0
- {python-okx-0.2.4 → python-okx-0.2.6}/setup.cfg +0 -0
|
@@ -7,7 +7,7 @@ from . import consts as c, utils, exceptions
|
|
|
7
7
|
|
|
8
8
|
class Client(object):
|
|
9
9
|
|
|
10
|
-
def __init__(self, api_key = '-1', api_secret_key = '-1', passphrase = '-1', use_server_time=False, flag='1', base_api = c.API_URL,debug = 'True'
|
|
10
|
+
def __init__(self, api_key = '-1', api_secret_key = '-1', passphrase = '-1', use_server_time=False, flag='1', base_api = c.API_URL,debug = 'True'):
|
|
11
11
|
self.API_KEY = api_key
|
|
12
12
|
self.API_SECRET_KEY = api_secret_key
|
|
13
13
|
self.PASSPHRASE = passphrase
|
|
@@ -15,7 +15,7 @@ class Client(object):
|
|
|
15
15
|
self.flag = flag
|
|
16
16
|
self.domain = base_api
|
|
17
17
|
self.debug = debug
|
|
18
|
-
self.client = httpx.Client(base_url=base_api, http2=True
|
|
18
|
+
self.client = httpx.Client(base_url=base_api, http2=True)
|
|
19
19
|
|
|
20
20
|
def _request(self, method, request_path, params):
|
|
21
21
|
if method == c.GET:
|
|
@@ -49,6 +49,6 @@ class Client(object):
|
|
|
49
49
|
request_path = c.API_URL + c.SERVER_TIMESTAMP_URL
|
|
50
50
|
response = self.client.get(request_path)
|
|
51
51
|
if response.status_code == 200:
|
|
52
|
-
return response.json()['ts']
|
|
52
|
+
return response.json()['data'][0]['ts']
|
|
53
53
|
else:
|
|
54
|
-
return ""
|
|
54
|
+
return ""
|
|
File without changes
|
|
@@ -22,9 +22,10 @@ okx/consts.py
|
|
|
22
22
|
okx/exceptions.py
|
|
23
23
|
okx/utils.py
|
|
24
24
|
okx/websocket/WebSocketFactory.py
|
|
25
|
-
okx/websocket/
|
|
25
|
+
okx/websocket/WsPrivateAsync.py
|
|
26
26
|
okx/websocket/WsPublicAsync.py
|
|
27
27
|
okx/websocket/WsUtils.py
|
|
28
|
+
okx/websocket/__init__.py
|
|
28
29
|
python_okx.egg-info/PKG-INFO
|
|
29
30
|
python_okx.egg-info/SOURCES.txt
|
|
30
31
|
python_okx.egg-info/dependency_links.txt
|
|
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
|