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/geminipy/__init__.py b/geminipy/__init__.py index 93a1c19..20c0a3c 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 fee and notional 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' diff --git a/setup.py b/setup.py index 384b9ce..c9d0387 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,11 @@ from setuptools import setup with open('README.md') as f: - readme = f.read() + readme = f.read().replace('```', '') setup( name='geminipy', - version='0.0.3', + version='0.0.4', packages=['geminipy'], url='https://github.com/geminipy/geminipy', license='GNU GPL',