Skip to main content

Get fixed rate (deprecated)

POST getFixRate
note

The method is deprecated. Use getFixRateForAmount instead.

HTTP request

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

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.
paramsobject or array of objectstrueRequest parameters.

params object:

NameTypeRequiredDescription
fromstringtruePayin currency code (in lowercase).
tostringtruePayout currency code (in lowercase).

Response

Sample response

application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": [
{
"id": "f4dd43106d63b65b88955a0b362645ce960987c7ffb7a8480dd32e799431177f",
"result": "0.02556948",
"networkFee": "0.000175",
"from": "eth",
"to": "btc",
"max": "50.000000000000000000",
"maxFrom": "50.000000000000000000",
"maxTo": "1.27847400",
"min": "0.148414210000000000",
"minFrom": "0.148414210000000000",
"minTo": "0.00379488",
"expiredAt": 1664890979
},
{
"id": "f4dd43107876ad5b88955a0b362645ce960a87c0fdb7ab540ed635799230107e830d3f",
"result": "22.1818471906",
"networkFee": "0.00153797",
"from": "eth",
"to": "ltc",
"max": "58.60648073",
"maxFrom": "58.60648073",
"maxTo": "1299.99999994",
"min": "0.09280000",
"minFrom": "0.09280000",
"minTo": "2.05847542",
"expiredAt": 1664890978
}
]
}