diff --git a/okx/client.py b/okx/client.py index fc9acd3..d8dc956 100644 --- a/okx/client.py +++ b/okx/client.py @@ -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 "" \ No newline at end of file + return ""