From 3df42d68fbc3e5c8b92a36aa44c6e4023f23d40a Mon Sep 17 00:00:00 2001 From: lowjiansheng Date: Tue, 22 Jun 2021 15:43:09 +0800 Subject: [PATCH 1/3] add get_global_configuration to public endpoint --- dydx3/modules/public.py | 11 +++++++++++ tests/test_public.py | 5 +++++ 2 files changed, 16 insertions(+) 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/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 From 6db567ebce32fb4ff2860f94be693003a1bc535f Mon Sep 17 00:00:00 2001 From: lowjiansheng Date: Tue, 22 Jun 2021 15:55:25 +0800 Subject: [PATCH 2/3] modify setup.py to publish to pundix pypi --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 250f45c..717bbfc 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ ] setup( - name='dydx-v3-python', + name='dydx-v3-python-pundix', version='1.0.10', packages=find_packages(), package_data={ From 404dd737c97abd39216ee4d40a1140f5c611e261 Mon Sep 17 00:00:00 2001 From: lowjiansheng Date: Thu, 1 Jul 2021 17:20:39 +0800 Subject: [PATCH 3/3] updated version for requirements --- requirements.txt | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 717bbfc..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', @@ -19,7 +19,7 @@ setup( name='dydx-v3-python-pundix', - version='1.0.10', + version='1.0.13', packages=find_packages(), package_data={ 'dydx3': [