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.
Files changed (35) hide show
  1. {python-okx-0.2.4 → python-okx-0.2.6}/PKG-INFO +1 -1
  2. {python-okx-0.2.4 → python-okx-0.2.6}/okx/__init__.py +1 -1
  3. {python-okx-0.2.4 → python-okx-0.2.6}/okx/client.py +4 -4
  4. python-okx-0.2.6/okx/websocket/__init__.py +0 -0
  5. {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/PKG-INFO +1 -1
  6. {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/SOURCES.txt +2 -1
  7. {python-okx-0.2.4 → python-okx-0.2.6}/setup.py +1 -1
  8. {python-okx-0.2.4 → python-okx-0.2.6}/README.md +0 -0
  9. {python-okx-0.2.4 → python-okx-0.2.6}/okx/Account.py +0 -0
  10. {python-okx-0.2.4 → python-okx-0.2.6}/okx/BlockTrading.py +0 -0
  11. {python-okx-0.2.4 → python-okx-0.2.6}/okx/Convert.py +0 -0
  12. {python-okx-0.2.4 → python-okx-0.2.6}/okx/CopyTrading.py +0 -0
  13. {python-okx-0.2.4 → python-okx-0.2.6}/okx/Earning.py +0 -0
  14. {python-okx-0.2.4 → python-okx-0.2.6}/okx/FDBroker.py +0 -0
  15. {python-okx-0.2.4 → python-okx-0.2.6}/okx/Funding.py +0 -0
  16. {python-okx-0.2.4 → python-okx-0.2.6}/okx/Grid.py +0 -0
  17. {python-okx-0.2.4 → python-okx-0.2.6}/okx/MarketData.py +0 -0
  18. {python-okx-0.2.4 → python-okx-0.2.6}/okx/NDBroker.py +0 -0
  19. {python-okx-0.2.4 → python-okx-0.2.6}/okx/PublicData.py +0 -0
  20. {python-okx-0.2.4 → python-okx-0.2.6}/okx/SpreadTrading.py +0 -0
  21. {python-okx-0.2.4 → python-okx-0.2.6}/okx/Status.py +0 -0
  22. {python-okx-0.2.4 → python-okx-0.2.6}/okx/SubAccount.py +0 -0
  23. {python-okx-0.2.4 → python-okx-0.2.6}/okx/Trade.py +0 -0
  24. {python-okx-0.2.4 → python-okx-0.2.6}/okx/TradingData.py +0 -0
  25. {python-okx-0.2.4 → python-okx-0.2.6}/okx/consts.py +0 -0
  26. {python-okx-0.2.4 → python-okx-0.2.6}/okx/exceptions.py +0 -0
  27. {python-okx-0.2.4 → python-okx-0.2.6}/okx/utils.py +0 -0
  28. {python-okx-0.2.4 → python-okx-0.2.6}/okx/websocket/WebSocketFactory.py +0 -0
  29. /python-okx-0.2.4/okx/websocket/WsPprivateAsync.py → /python-okx-0.2.6/okx/websocket/WsPrivateAsync.py +0 -0
  30. {python-okx-0.2.4 → python-okx-0.2.6}/okx/websocket/WsPublicAsync.py +0 -0
  31. {python-okx-0.2.4 → python-okx-0.2.6}/okx/websocket/WsUtils.py +0 -0
  32. {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/dependency_links.txt +0 -0
  33. {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/requires.txt +0 -0
  34. {python-okx-0.2.4 → python-okx-0.2.6}/python_okx.egg-info/top_level.txt +0 -0
  35. {python-okx-0.2.4 → python-okx-0.2.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-okx
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
@@ -2,4 +2,4 @@
2
2
  Python SDK for the OKX API v5
3
3
 
4
4
  """
5
- __version__="0.2.4"
5
+ __version__="0.2.6"
@@ -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', proxies = None):
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, proxies=proxies)
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-okx
3
- Version: 0.2.4
3
+ Version: 0.2.6
4
4
  Summary: Python SDK for OKX
5
5
  Home-page: https://okx.com/docs-v5/
6
6
  Author: okxv5api
@@ -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/WsPprivateAsync.py
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
@@ -1,6 +1,6 @@
1
1
  import setuptools
2
2
  import okx
3
- with open("README.md", "r") as fh:
3
+ with open("README.md", "r",encoding="utf-8") as fh:
4
4
  long_description = fh.read()
5
5
 
6
6
  setuptools.setup(
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