Skip to content

Commit

Permalink
Merge branch 'release/0.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
man-c committed Aug 20, 2019
2 parents 2548171 + 1cfd880 commit 864bb42
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ https://www.coingecko.com/api/docs/v3
```python
cg.get_exchanges_status_updates_by_id()
```
- /exchanges/{id}/volume_chart (Get volume_chart data for a given exchange (beta))
```python
cg.get_exchanges_volume_chart_by_id()
```
- status_updates (beta)
- /status_updates (List all status_updates with data (description, category, created_at, user, user_title and pin))
```python
Expand Down
12 changes: 12 additions & 0 deletions pycoingecko/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,18 @@ def get_exchanges_status_updates_by_id(self, id, **kwargs):
return self.__request(api_url)


@list_args_to_comma_separated
def get_exchanges_volume_chart_by_id(self, id, days, **kwargs):
"""Get volume chart data for a given exchange"""

kwargs['days'] = days

api_url = '{0}exchanges/{1}/volume_chart'.format(self.api_base_url, id)
api_url = self.__api_url_params(api_url, kwargs)

return self.__request(api_url)


#---------- STATUS UPDATES ----------#
@list_args_to_comma_separated
def get_status_updates(self, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setuptools.setup(
name='pycoingecko',
version='0.3.0',
version='0.4.0',
packages=['pycoingecko',],
license='MIT',
description = 'Python wrapper around the CoinGecko API',
Expand Down

0 comments on commit 864bb42

Please sign in to comment.