Skip to main content

Get limits


posthttps://api.criptointercambio.com/v2/#getPairsParams

Retrieves 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:

NameTypeRequiredDescription
fromstringtrueThe payin currency code. Enter in lowercase.
tostringtrueThe 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:

NameTypeDescription
fromstringThe payin currency code.
maxAmountFixedstringThe maximum exchangeable amount for fixed-rate transactions.
maxAmountFloatstringThe maximum exchangeable amount for float-rate transactions.
minAmountFixedstringThe minimum exchangeable amount for fixed-rate transactions.
minAmountFloatstringThe minimum exchangeable amount for float-rate transactions.
tostringThe 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

CodeMessageDescription
-32600Error: You reached requests limit {limit} rpsRPS is out of the limit.
-32602Invalid currency: {currency} temporary disabledCripto InterCambio temporarily disabled this currency.
Invalid currency: {currency} is temporary disabled on API as input currencyCripto InterCambio temporarily disabled this currency for payin.
Invalid currency: {currency} is temporary disabled on API as output currencyCripto InterCambio temporarily disabled this currency for payout.
Invalid currency: {currency} not found
  • Cripto InterCambio does not list this currency.
  • The currency ticker is invalid.
Parameter {param} is invalidThe specified request param is invalid.
-32603
  • Internal Error
  • Error
Mostly, this is a technical issue on our side. Requires further investigation.