Skip to main content

Get enabled currency pairs


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

Retrieves all enabled currency pairs. To filter them, use the request body params.


Request

Header parameters

Requires authentication headers.

Body parameters

Consists of a JSON-RPC 2.0 protocol request object.

The params schema:

NameTypeRequiredDescription
fromstringfalseThe payin currency ticker. Enter in lowercase.
tostringfalseThe payout currency ticker. Enter in lowercase.
txTypestringfalseThe transaction type.
Enums: float/fixed Info
If not specified, the method retrieves all available pairs.

Sample request

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"method": "getPairs",
"params": {
"from": "btc",
"txType": "float"
}
}

Response

Successful response

Consists of a JSON-RPC 2.0 protocol response object.

The result schema:

NameTypeDescription
fromstringThe payin currency ticker.
tostringPayout currency ticker.

Sample successful response

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"result": [
{
"from": "btc",
"to": "btg"
},
{
"from": "btc",
"to": "dgb"
},
{
"from": "btc",
"to": "vib"
},
{
"from": "btc",
"to": "tusd"
}
]
}

Error response

Consists of a JSON-RPC 2.0 protocol error response object.

Sample error response

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"error": {
"code": -32603,
"message": "Internal Error"
}
}

Error codes

CodeMessageDescription
-32600Error: You reached requests limit {limit} rpsRPS is out of the limit.
-32602Invalid currency: {currency} not found
  • Cripto InterCambio does not list this currency.
  • The currency ticker is invalid.
Parameter {param} is invalidThe specified request address is invalid.
-32603
  • Internal Error
  • Error
Mostly, this is a technical issue on our side. Requires further investigation.