fix: Python install python-okx --upgrade error && Error in file name
This commit is contained in:
parent
cc2d1f74fc
commit
7fd4543190
|
|
@ -2,4 +2,4 @@
|
|||
Python SDK for the OKX API v5
|
||||
|
||||
"""
|
||||
__version__="0.2.3"
|
||||
__version__="0.2.6"
|
||||
|
|
@ -49,6 +49,6 @@ class Client(object):
|
|||
request_path = c.API_URL + c.SERVER_TIMESTAMP_URL
|
||||
response = self.client.get(request_path)
|
||||
if response.status_code == 200:
|
||||
return response.json()['ts']
|
||||
return response.json()['data'][0]['ts']
|
||||
else:
|
||||
return ""
|
||||
2
setup.py
2
setup.py
|
|
@ -1,6 +1,6 @@
|
|||
import setuptools
|
||||
import okx
|
||||
with open("README.md", "r") as fh:
|
||||
with open("README.md", "r",encoding="utf-8") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import asyncio
|
||||
|
||||
from okx.websocket.WsPprivateAsync import WsPrivateAsync
|
||||
from okx.websocket.WsPrivateAsync import WsPrivateAsync
|
||||
|
||||
|
||||
def privateCallback(message):
|
||||
|
|
|
|||
Loading…
Reference in New Issue