Skip to main content

Get limits

Get limits for floating and fixed rate transactions

warning

The method is deprecated. To get the limits, you need to use getFixRateForAmount/getExchangeAmount, but the transaction amount must be within limits.

A full-fledged replacement of this method is also coming soon. getPairsParams still will be available for some time.

HTTP request

post
/v2/#getPairsParams

Request

Header parameters

Requires authentification.

Body parameters

Requires JSON-RPC 2.0 protocol request body.

The params parameter schema:

NameTypeRequiredDescription
fromstringtruePayin currency code (in lowercase).
tostringtruePayout currency code (in lowercase).
Sample request payload
application/json
{
"jsonrpc": "2.0",
"id": "test",
"method": "getPairsParams",
"params": [
{
"from": "eth",
"to": "btc"
},
{
"from": "btc",
"to": "eth"
}
]
}
Sample cURL
curl --location --request POST 'https://api.changelly.com/v2' \
--header 'X-Api-Key: {{apiKey}}' \
--header 'X-Api-Signature: {{sign}}' \
--data-raw '{
"id": "test",
"jsonrpc": "2.0",
"method": "getPairsParams",
"params": [
{
"from": "eth",
"to": "btc"
},
{
"from": "btc",
"to": "eth"
}
]
}'

Response

Response parameters

Requires JSON-RPC 2.0 protocol response body.

The result parameter schema:

NameTypeDescription
fromstringPayin currency code.
tostringPayout currency code.
minAmountFloatstringMinimum exchangeable amount for float rate transactions.
maxAmountFloatstringMaximum exchangeable amount for float rate transactions.
minAmountFixedstringMinimum exchangeable amount for fixed rate transactions.
maxAmountFixedstringMaximum exchangeable amount for fixed rate transactions.
Sample response
application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"from": "eth",
"to": "btc",
"minAmountFloat": "0.0465",
"maxAmountFloat": "449172.45240999997",
"minAmountFixed": "0.0775",
"maxAmountFixed": "100"
},
{
"from": "btc",
"to": "eth",
"minAmountFloat": "0.0015",
"maxAmountFloat": "25629.527850432485",
"minAmountFixed": "0.0025",
"maxAmountFixed": "3.2138"
}
]
}

Error response

Error response parameters

Check the error response schema.

Error codes

CodeMessageDescription
-32600Error: You reached requests limit {limit} rpsYou have been sending more than 10 requests per second.
-32602Invalid currency: {currency} temporary disabledThis currency is currently disabled.
-32602Invalid currency: {currency} is temporary disabled on API as output currencyThis currency is currently disabled on API as an output currency.
-32602Invalid currency: {currency} is temporary disabled on API as input currencyThis currency is currently disabled on API as an input currency.
-32602Invalid currency: {currency} not foundThis currency is not listed on Changelly or the ticker is invalid.
-32602Parameter {param} is invalidYou've specified an invalid parameter.
-32603Internal Error or ErrorMost likely, the problem is on our side. Further investigation is required.