getCryptoLoanCommonMaxCollateralAmount
Retrieve the maximum collateral amount safely redeemable for a currency while maintaining a healthy loan-to-value ratio. Returns 0 if any withdrawal would cause liquidation.
Instructions
Query the maximum amount of collateral that can be redeemed (withdrawn) for a specific currency.
Features:
Private endpoint (authentication required)
Calculate safe withdrawal amount that maintains healthy LTV
Prevents accidental liquidation by showing maximum safe withdrawal
Rate limit: 5 requests per time window per UID
Use Cases:
Check how much collateral can be safely withdrawn
Ensure sufficient collateral remains after redemption
Prevent liquidation by validating withdrawal amounts
Important:
Returns 0 if withdrawing any amount would cause liquidation
Amount is calculated to maintain LTV below liquidation threshold
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "<currency>"
},
"name": "getCryptoLoanCommonMaxCollateralAmount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes |