Skip to content

Commit 16981b3

Browse files
committed
Added README info, added self to contributors, bumped version
1 parent aa5abc6 commit 16981b3

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,27 @@ time.sleep(10)
315315
order_book.close()
316316
```
317317

318+
### Error Handling
319+
Error handling has been added in version 2.0. Currently, the only HTTP error codes that
320+
are handled are the ones documented on the GDAX API error section: [here](https://docs.gdax.com/?python#errors)
321+
322+
HTTP STATUS CODE 400: Raises InvalidGdaxRequest
323+
HTTP STATUS CODE 401: Raises UnauthorizedGdaxRequest
324+
HTTP STATUS CODE 403: Raises ForbiddenGdaxRequest
325+
HTTP STATUS CODE 404: Raises NotFoundGdaxRequest
326+
HTTP STATUS CODE 4XX: Raises UnknownGDAXClientRequest
327+
HTTP STATUS CODE 5XX: Raises InternalErrorGdaxRequest
328+
329+
All HTTP requests from both the public client and authenticated client run through `_determine_response`, which
330+
either returns the JSON body or raises the appropriate error.
331+
332+
Please consider creating new Exception classes and mapping as Gdax error states are discovered.
333+
334+
318335
## Change Log
336+
*2.0*
337+
- Added error handling to all HTTP requests [Error Handling Docs](#Error Handling)
338+
319339
*1.0* **Current PyPI release**
320340
- The first release that is not backwards compatible
321341
- Refactored to follow PEP 8 Standards

contributors.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Leonard Lin
33
Jeff Gibson
44
David Caseria
55
Paul Mestemaker
6-
Drew Rice
6+
Drew Rice
7+
Benjamin Ross

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
setup(
1818
name='gdax',
19-
version='1.0.6',
19+
version='2.0.0',
2020
author='Daniel Paquin',
2121
author_email='[email protected]',
2222
license='MIT',

0 commit comments

Comments
 (0)