Skip to main content

Get a minimum amount


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

Retrieves the minimum amount for floating rate transactions.

warning

A deprecated method. Use the getFixRateForAmount or getExchangeAmount instead.

A full-fledged replacement of the getMinAmount method is available soon.


Request

Header parameters

Requires authentication headers.

Body parameters

Consists of a JSON-RPC 2.0 protocol request object.

The params schema:

NameTypeRequiredDescription
fromstringtrueThe payin currency code. Enter in lowercase.
tostringtrueThe payout currency code. Enter in lowercase.

Sample request

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"method": "getMinAmount",
"params": {
"from": "xrp",
"to": "atom"
}
}

Response

Successful response

Consists of a JSON-RPC 2.0 protocol response object.

The result schema:

NameTypeDescription
resultstringThe minimum exchangeable amount for a currency pair.

Sample successful response

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"result": "2.9154"
}

Error response

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

Sample error response

{
"jsonrpc": "2.0",
"id": "exampleCustomIdValue",
"error": {
"code": -32600,
"message": "Error: You reached requests limit 10 rps"
}
}

Error codes

CodeMessageDescription
-32600Error: You reached requests limit {limit} rpsRPS is out of the limit.
-32602Invalid currency: {currency} temporary disabledCripto InterCambio temporarily disabled this currency.
Invalid currency: {currency} is temporary disabled on API as input currencyCripto InterCambio temporarily disabled this currency for payin.
Invalid currency: {currency} is temporary disabled on API as output currencyCripto InterCambio temporarily disabled this currency for payout.
Invalid currency: {currency} not found
  • Cripto InterCambio does not list this currency.
  • The currency ticker is invalid.
Parameter {param} is invalidThe specified request param is invalid.
-32603
  • Internal Error
  • Error
Mostly, this is a technical issue on our side. Requires further investigation.