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
|
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
|
request_path = c.API_URL + c.SERVER_TIMESTAMP_URL
|
||||||
response = self.client.get(request_path)
|
response = self.client.get(request_path)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()['ts']
|
return response.json()['data'][0]['ts']
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
2
setup.py
2
setup.py
|
|
@ -1,6 +1,6 @@
|
||||||
import setuptools
|
import setuptools
|
||||||
import okx
|
import okx
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r",encoding="utf-8") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from okx.websocket.WsPprivateAsync import WsPrivateAsync
|
from okx.websocket.WsPrivateAsync import WsPrivateAsync
|
||||||
|
|
||||||
|
|
||||||
def privateCallback(message):
|
def privateCallback(message):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue