Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatecoin: error handling, cancelOrder and createOrder fixes #2932

Merged
merged 6 commits into from
May 31, 2018
Merged

gatecoin: error handling, cancelOrder and createOrder fixes #2932

merged 6 commits into from
May 31, 2018

Conversation

egorFiNE
Copy link
Contributor

  • support more exceptions and error codes
  • support more of the order statuses
  • cancelOrder returns proper order status
  • createOrder returns proper order status

(@kroitor, you were right in the first place. Turns out responseStatus.message is indeed returned for all requests and so the way to go is to handle it in handleErrors()).

* added more exceptions to throw
* added more proper errorCodes to parse
* removed redundant successful case check in request() as it has been already verified in handleErrors()
* throw PermissionDenied  for  "not authorized" response
@kroitor kroitor merged commit e738f3f into ccxt:master May 31, 2018
@egorFiNE egorFiNE deleted the ef-gatecoin6 branch June 4, 2018 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants