From 0572d972a2e98bf71daa57522052b4fe4d6102af Mon Sep 17 00:00:00 2001 From: Mike Marzigliano Date: Fri, 27 Oct 2017 21:42:01 -0400 Subject: [PATCH 1/5] setup for v0.0.4 --- changelog | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 7d531d3..1d080d1 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,7 @@ # Geminipy Changelog +# v0.0.4 + # v0.0.3 Added "pubticker" function for the public ticker API endpoint Added "auction" and "auction_history" functions for auction data diff --git a/setup.py b/setup.py index 384b9ce..e0eb96d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='geminipy', - version='0.0.3', + version='0.0.4', packages=['geminipy'], url='https://github.com/geminipy/geminipy', license='GNU GPL', From 77f8fa21f4f72e4e88857ffdb01878550e3eec13 Mon Sep 17 00:00:00 2001 From: Mike Marzigliano Date: Tue, 1 Oct 2019 11:56:52 -0400 Subject: [PATCH 2/5] added api call for fees --- geminipy/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/geminipy/__init__.py b/geminipy/__init__.py index 93a1c19..bb0373f 100644 --- a/geminipy/__init__.py +++ b/geminipy/__init__.py @@ -283,6 +283,17 @@ def newAddress(self, currency='btc', label=''): return requests.post(url, headers=self.prepare(params)) + def fees(self): + """Send a request to get your trade volume, return the response.""" + request = '/v1/notionalvolume' + url = self.base_url + request + params = { + 'request': request, + 'nonce': self.get_nonce() + } + + return requests.post(url, headers=self.prepare(params)) + def heartbeat(self): """Send a heartbeat message, return the response.""" request = '/v1/heartbeat' From 72d8acb6366ff967180ab1f0b269ca013d2b81ea Mon Sep 17 00:00:00 2001 From: Mike Marzigliano Date: Tue, 1 Oct 2019 12:07:52 -0400 Subject: [PATCH 3/5] fixed comments for new fee api call --- geminipy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geminipy/__init__.py b/geminipy/__init__.py index bb0373f..20c0a3c 100644 --- a/geminipy/__init__.py +++ b/geminipy/__init__.py @@ -284,7 +284,7 @@ def newAddress(self, currency='btc', label=''): return requests.post(url, headers=self.prepare(params)) def fees(self): - """Send a request to get your trade volume, return the response.""" + """Send a request to get fee and notional volume, return the response.""" request = '/v1/notionalvolume' url = self.base_url + request params = { From 399213fa29bc7211f3f9a3a96b72f0075353dd12 Mon Sep 17 00:00:00 2001 From: Mike Marzigliano Date: Tue, 1 Oct 2019 12:23:10 -0400 Subject: [PATCH 4/5] change version info and changelog for v0.0.4 --- changelog | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 7d531d3..274a0ad 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,8 @@ # Geminipy Changelog +# v0.0.4 +Added "fees" function for the fee and notional volume API endpoint + # v0.0.3 Added "pubticker" function for the public ticker API endpoint Added "auction" and "auction_history" functions for auction data diff --git a/setup.py b/setup.py index 6de423b..e0eb96d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='geminipy', - version='0.0.2', + version='0.0.4', packages=['geminipy'], url='https://github.com/geminipy/geminipy', license='GNU GPL', From 92b49fbb4a5b29abb04b98ce4740593a8068bae5 Mon Sep 17 00:00:00 2001 From: Mike Marzigliano Date: Tue, 1 Oct 2019 13:56:39 -0400 Subject: [PATCH 5/5] twine didn't like the triple tick-mark in the README file, so I'm removing it when uploading to pypi --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e0eb96d..c9d0387 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup with open('README.md') as f: - readme = f.read() + readme = f.read().replace('```', '') setup( name='geminipy',