Get a minimum amount
posthttps://api.criptointercambio.com/v2/#getMinAmountRetrieves 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:
| Name | Type | Required | Description |
|---|---|---|---|
from | string | true | The payin currency code. Enter in lowercase. |
to | string | true | The 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:
| Name | Type | Description |
|---|---|---|
result | string | The 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
| Code | Message | Description |
|---|---|---|
-32600 | Error: You reached requests limit {limit} rps | RPS is out of the limit. |
-32602 | Invalid currency: {currency} temporary disabled | Cripto InterCambio temporarily disabled this currency. |
Invalid currency: {currency} is temporary disabled on API as input currency | Cripto InterCambio temporarily disabled this currency for payin. | |
Invalid currency: {currency} is temporary disabled on API as output currency | Cripto InterCambio temporarily disabled this currency for payout. | |
Invalid currency: {currency} not found |
| |
Parameter {param} is invalid | The specified request param is invalid. | |
-32603 |
| Mostly, this is a technical issue on our side. Requires further investigation. |