From 42f6783b7b71cc859ca583c982faecb5b627e3ca Mon Sep 17 00:00:00 2001 From: Zeebrow Date: Sat, 8 Jan 2022 14:42:30 -0500 Subject: [PATCH 1/2] use setuptools instead of distutils for installation --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 151ed9a..b74a35c 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ # ----- Imports --------------------------------------------------------------- -from distutils.core import setup +from setuptools import setup # ----- Instructions ---------------------------------------------------------- @@ -22,5 +22,6 @@ 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules', - ] + ], + install_requires = ["requests"] ) From 61dc80d8381bd36ff640d2eec4a6df4ad73c59a1 Mon Sep 17 00:00:00 2001 From: Zeebrow Date: Sat, 8 Jan 2022 15:05:11 -0500 Subject: [PATCH 2/2] Should fix https://github.com/resy/coinbase_python3/issues/7, but there are no tests. --- coinbase/CoinbaseRPC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coinbase/CoinbaseRPC.py b/coinbase/CoinbaseRPC.py index 42b13d8..976bdeb 100644 --- a/coinbase/CoinbaseRPC.py +++ b/coinbase/CoinbaseRPC.py @@ -66,7 +66,7 @@ def request(self, method, url, params=None): headers['ACCESS_KEY'] = auth['api_key'] headers['ACCESS_SIGNATURE'] = signature - headers['ACCESS_NONCE'] = self.__nonce + headers['ACCESS_NONCE'] = str(self.__nonce) headers['Accept'] = 'application/json' else: raise CoinbaseAPIException('Invalid authentication mechanism')