From 9006434660e6034a558d09a2d7622010c30f9f61 Mon Sep 17 00:00:00 2001 From: kkathena <66248106+kkathena@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:52:32 +0800 Subject: [PATCH] Update getting ts from _get_timestamp() (#33) --- okx/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ""