Quote a position and build the transactions that open it
quote_positionFor an amount of USDG and a range around the current price in one of LoomDesk's own pools: the 1% fee to open, the stock the desk would buy, the ticks, what the position would have earned per week at the pool's measured rate, and the two transactions (USDG approve, EarnDeskV4.open) that open it, minted to the sender's wallet. Nothing is sent: the caller signs and sends them from its own wallet within 20 minutes. Keep a deposit under maxSensibleDepositUsdg: in a shallow pool a larger buy of the stock side moves the price against you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | Symbol or pool id of a LoomDesk pool | |
| usdg | Yes | USDG to put in, fee included, e.g. 250 | |
| range_pct | No | Half-width of the range around the current price, in percent |