Check a collateral size against Keel
check_collateral_sizeCompare a proposed collateral amount to Keel's recommended max safe size. Returns within, exceeds, or unknown, and which limit binds: liquidation or manipulation.
Instructions
Compares a proposed collateral amount with Keel's recommended maximum safe collateral size for the asset, and says which limit binds: liquidation (the book cannot absorb a forced sale) or manipulation (pushing the price up is cheaper than the loan it would unlock). Answers within, exceeds, or unknown. Unknown is not safe and not unsafe. This is a comparison with published figures, not a credit decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote | No | Optional quote asset id. Omit it: every monitored asset is measured against USDC, and every notional in the answer is in that quote asset. | |
| amount | Yes | A plain decimal amount in the quote asset (USDC unless quote is given), for example "500000" or "1250.5". A string, not a number, so no precision is lost. | |
| assetId | Yes | Keel asset id: CODE:ISSUER for an issued asset (for example USTRY:GCRYUGD5NVARGXT56XEZI5CIFCQETYHAPQQTHO2O3IQZTHDH4LATMYWC), or XLM. An asset is the (code, issuer) pair, never the ticker alone: use find_asset first when only a code is known. |