lordkebab / gemini-python-unoffc

Python library for the Gemini Exchange API
MIT License
16 stars 11 forks source link

error.py list of errors out of date #11

Open onyxcoyote opened 4 years ago

onyxcoyote commented 4 years ago

Issue: Some error codes in error.py - api_error_map have changed. Any codes that don't match or don't exist throw a secondary error instead of showing useful information from the api response message.

Details: ClientOrderIDTooLong changed to ClientOrderIdTooLong (lower case 'd') ClientOrderIDMustBeString changed to ClientOrderIDMustBeString (lower case 'd')

From the web site, it also appears there are new error codes (maybe 10-20 new ones)

https://docs.gemini.com/rest-api/#http-error-codes

How to recreate: Can recreate by submitting an order with very long client_order_id. Crashes on error.py ln 80 return error(err_txt) with error TypeError: 'NoneType' object is not callable