File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,27 @@ time.sleep(10)
315315order_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
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ Leonard Lin
33Jeff Gibson
44David Caseria
55Paul Mestemaker
6- Drew Rice
6+ Drew Rice
7+ Benjamin Ross
Original file line number Diff line number Diff line change 1616
1717setup (
1818 name = 'gdax' ,
19- version = '1 .0.6 ' ,
19+ version = '2 .0.0 ' ,
2020 author = 'Daniel Paquin' ,
21212222 license = 'MIT' ,
You can’t perform that action at this time.
0 commit comments