Borrow quote
gage_borrow_quoteThe largest loan the partner vaults fund now for at most maxCollateral of a token, or one exact loan (collateral and principal) priced as gage.cash prices it, in USDG or the lend asset named, with a prepare object for gage_prepare_borrow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | Loan term in seconds, one of the terms gage_capabilities lists | |
| token | Yes | ||
| wallet | No | ||
| lendAsset | No | The asset the loan is paid in and repaid in: USDG when omitted, or a lend asset gage_capabilities lists (its token address) | |
| principal | No | With collateral: the exact amount to borrow, raw units of the loan's asset; priced as the borrow card prices it | |
| collateral | No | With principal: the exact pledge of one chosen loan, raw units | |
| maxCollateral | No | Most of the token to pledge, raw units: quotes the largest loan the vaults fund for it |