gemini-python-unoffc icon indicating copy to clipboard operation
gemini-python-unoffc copied to clipboard

error.py list of errors out of date

Open onyxcoyote opened this issue 5 years ago • 0 comments

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

onyxcoyote avatar Apr 03 '20 23:04 onyxcoyote