Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Accomodate error code along with error string in api #44

Open
mascot6699 opened this issue Sep 26, 2018 · 0 comments
Open

Accomodate error code along with error string in api #44

mascot6699 opened this issue Sep 26, 2018 · 0 comments

Comments

@mascot6699
Copy link

Hi,

While using the 'trade' api many times the order is not fulfilled as the order for which it was signed is no longer valid or is partially filled and the returns 400 status code.
As the string may change I don't want to rely upon it can we have error code to sent in the apis too as a improvement?

Example response:

{
    "error": "The order you are trying to match has been partially or fully matched. Please refresh to clear it from the orderbook."
}
and
{
    "error": "Order no longer available."
}
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

No branches or pull requests

1 participant