Skip to main content

Get available pairs

POST getPairs

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

HTTP request

https://api.changelly.com/v2/#getPairs

Request

Header parameters
NameTypeRequiredDescription
X-Api-KeystringtrueYour API key (SHA256 from Public Key)
X-Api-SignaturestringtrueThe query's serialized body signed by your private key according to the RSA-SHA256 method.

Body parameters

NameTypeRequiredDescription
jsonrpcstringtrueJSON-RPC version.
idstringtrueClient's custom ID.
methodstringtrueAPI method name.
paramsarray of objectstrueRequest parameters.

params schema:

NameTypeRequiredDescription
fromstringfalsePayin currency code (in lowercase).
tostringfalsePayout currency code (in lowercase).
txTypestringfalseType of transaction. If not specified, the method returns all available pairs regardless of type.
Enum: float/fixed

Response

Sample response

application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"from": "eth",
"to": "btc"
},
{
"from": "eth",
"to": "usdt"
},
{
"from": "eth",
"to": "xmr"
}
]
}