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') 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"] )