gage_leverage_quote · Leverage quote
read-onlyPreview a leveraged loop for a pledge and a multiple: amounts, cost and the most the purchase costs. Signs nothing.
Input schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"token": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"own": {
"type": "string",
"pattern": "^[1-9]\\d{0,77}$",
"description": "The tokens you put in, raw units"
},
"multiple": {
"type": "number",
"minimum": 1.1,
"maximum": 3,
"description": "Leverage, 1.1 to 3 with at most two decimals (2 = twice the pledge held for the loan)"
},
"term": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Loan term in seconds, one of the terms gage_capabilities lists"
},
"wallet": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"lendAsset": {
"description": "USDG only: leverage lends USDG (a loop in a lend asset is refused; a lend asset's puts open with put_open)",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"required": [
"token",
"own",
"multiple",
"term"
],
"additionalProperties": false
}