Skip to main content

Get available pairs

Method returns all enabled currency pairs. You can filter them by payin currency, payout currency, or transaction type using the request params.

HTTP request

post
/v2/#getPairs

Request

Header parameters

Requires authentification.

Body parameters

Requires JSON-RPC 2.0 protocol request body.

The params parameter schema:

NameTypeRequiredDescription
fromstringfalsePayin currency ticker (in lowercase).
tostringfalsePayout currency ticker (in lowercase).
txTypestringfalseType of transaction. If not specified, the method returns all available pairs regardless of type.
Enum: float/fixed
Sample request payload
application/json
{
"jsonrpc": "2.0",
"id": "test",
"method": "getPairs",
"params":
{
"from": "eth",
"txType": "fixed"
}
}
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": "getPairs",
"params":
{
"from": "eth",
"txType": "fixed"
}
}'

Response

Response parameters

Requires JSON-RPC 2.0 protocol response body.

The result parameter schema:

NameTypeDescription
fromstringPayin currency ticker.
tostringPayout currency ticker.
Sample response
application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"from": "eth",
"to": "btc"
},
{
"from": "eth",
"to": "usdt"
},
{
"from": "eth",
"to": "xmr"
}
]
}

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} 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.