Errors
Error response schema
The error response schema is the same for each API method.
| Name | Type | Required | Description |
|---|---|---|---|
| jsonrpc | string | true | JSON-RPC version. |
| id | string | true | Client's custom ID. |
| error | object | true | Possible errors. |
The error object schema:
| Name | Type | Required | Description |
|---|---|---|---|
| code | integer | True | Error code. |
| message | string | True | Error message. |
| data | object | False | Object with additional error data. |
Sample error response
application/json
{
"jsonrpc": "2.0",
"id": "test",
"error": {
"code": -32602,
"message": "Invalid amount for pair btc->ltc. Maximum amount is 1.02533854 btc",
"data": {
"limits": {
"max": {
"from": "1.02533854",
"to": "1300.00000000"
},
"min": {
"from": "0.00113160",
"to": "1.43472023"
}
}
}
}
}
Error codes
Each API method contains a list of all possible errors in the Error codes section.