diff --git a/dydx3/modules/public.py b/dydx3/modules/public.py index 90316fa..ecb5ecf 100644 --- a/dydx3/modules/public.py +++ b/dydx3/modules/public.py @@ -237,3 +237,14 @@ def get_time(self): ''' uri = '/v3/time' return self._get(uri) + + def get_global_configuration(self): + ''' + Get any global configuration variables for the exchange as a whole. + + :returns: Configuration information for the entire exchange + + :raise: DydxAPIError + ''' + uri = '/v3/config' + return self._get(uri) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index ff19dee..2e7b737 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ eth-account>=0.4.0,<0.6.0 mpmath==1.0.0 pytest>=4.4.0,<5.0.0 requests-mock==1.6.0 -requests==2.22.0 +requests==2.23.0 setuptools==50.3.2 six==1.12 sympy==1.6 diff --git a/setup.py b/setup.py index 250f45c..abbe92a 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ 'mpmath==1.0.0', 'pytest>=4.4.0,<5.0.0', 'requests-mock==1.6.0', - 'requests==2.22.0', + 'requests>2.0.0', 'setuptools==50.3.2', 'sympy==1.6', 'tox==3.13.2', @@ -18,8 +18,8 @@ ] setup( - name='dydx-v3-python', - version='1.0.10', + name='dydx-v3-python-pundix', + version='1.0.13', packages=find_packages(), package_data={ 'dydx3': [ diff --git a/tests/test_public.py b/tests/test_public.py index 00841bb..7433ca4 100644 --- a/tests/test_public.py +++ b/tests/test_public.py @@ -59,3 +59,8 @@ def test_get_fast_withdrawal(self): public = Client(API_HOST).public json = public.get_fast_withdrawal() assert json != {} + + def test_get_global_configuration(self): + public = Client(API_HOST).public + json = public.get_global_configuration() + assert json != {} \ No newline at end of file