Get limits
posthttps://api.criptointercambio.com/v2/#getPairsParamsRetrieves limits for floating and fixed-rate transactions.
warning
A deprecated method. Use the getFixRateForAmount or getExchangeAmount instead.
A full-fledged replacement of the getPairsParams method is available soon.
Request
Header parameters
Requires authentication headers.
Body parameters
Consists of a JSON-RPC 2.0 protocol request object.
The params schema:
| Name | Type | Required | Description |
|---|---|---|---|
from | string | true | The payin currency code. Enter in lowercase. |
to | string | true | The payout currency code. Enter in lowercase. |
Sample request
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"method": "getPairsParams",
"params": [
{
"from": "xrp",
"to": "atom"
},
{
"from": "atom",
"to": "xrp"
}
]
}
Response
Successful response
The result schema:
| Name | Type | Description |
|---|---|---|
from | string | The payin currency code. |
maxAmountFixed | string | The maximum exchangeable amount for fixed-rate transactions. |
maxAmountFloat | string | The maximum exchangeable amount for float-rate transactions. |
minAmountFixed | string | The minimum exchangeable amount for fixed-rate transactions. |
minAmountFloat | string | The minimum exchangeable amount for float-rate transactions. |
to | string | The payout currency code. |
Sample successfull reponse
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"result": [
{
"from": "xrp",
"to": "atom",
"minAmountFloat": "2.9154",
"maxAmountFloat": "23699.434294",
"minAmountFixed": "37.896732",
"maxAmountFixed": "3725.500033"
},
{
"from": "atom",
"to": "xrp",
"minAmountFloat": "2.429832",
"maxAmountFloat": "19686.589495",
"minAmountFixed": "31.533987",
"maxAmountFixed": "3100.000000"
}
]
}
Error response
Consists of a JSON-RPC 2.0 protocol error response object.
Sample error response
{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"error": {
"code": -32600,
"message": "Error: You reached requests limit 10 rps"
}
}
Error codes
| Code | Message | Description |
|---|---|---|
-32600 | Error: You reached requests limit {limit} rps | RPS is out of the limit. |
-32602 | Invalid currency: {currency} temporary disabled | Cripto InterCambio temporarily disabled this currency. |
Invalid currency: {currency} is temporary disabled on API as input currency | Cripto InterCambio temporarily disabled this currency for payin. | |
Invalid currency: {currency} is temporary disabled on API as output currency | Cripto InterCambio temporarily disabled this currency for payout. | |
Invalid currency: {currency} not found |
| |
Parameter {param} is invalid | The specified request param is invalid. | |
-32603 |
| Mostly, this is a technical issue on our side. Requires further investigation. |