fix: Python install python-okx --upgrade error && Error in file name

This commit is contained in:
007live 2024-01-08 15:59:18 +08:00
parent cc2d1f74fc
commit 7fd4543190
5 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@
Python SDK for the OKX API v5
"""
__version__="0.2.3"
__version__="0.2.6"

View File

@ -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 ""

View File

@ -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(

View File

@ -1,6 +1,6 @@
import asyncio
from okx.websocket.WsPprivateAsync import WsPrivateAsync
from okx.websocket.WsPrivateAsync import WsPrivateAsync
def privateCallback(message):