danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 737 forks source link

Is there a way to check if AuthenticatedClient() worked? #290

Closed nitrocode closed 6 years ago

mcardillo55 commented 6 years ago

What do you mean by "worked"?

nitrocode commented 6 years ago

How do I know if AuthenticatedClient() failed to authenticate?

mcardillo55 commented 6 years ago

From my quick tests, if authentication is unsuccessful, the method will return the JSON: {u'message': u'invalid signature'}

It looks like #260 will improve this error handling, by raising HTTPStatus exceptions.

nitrocode commented 6 years ago

Thanks! I agree, throwing raising an error would be ideal.

I'll use the technique you provided until that issue is closed.