Skip to main content
Previews the exact position that opening would produce. Deterministic and read-only — identical for ETH and ERC-20 pay tokens, with no on-chain call and no wallet.

Input

string
required
Morpho market id of the strategy.
string
required
Token you pay in. The collateral (opened directly) or any other token (zapped to collateral first). Native ETH = the zero address.
string
required
Amount of payToken in human units, e.g. "10000".
number
Target leverage, e.g. 3. Provide this or desiredLtv.
string
Target LTV percent, e.g. "66.67". Provide this or leverage.
number
default:"0.005"
Ratio; capped at 0.01.
integer
default:"1"

Output

Example

Always simulate before building. The preview comes from a live swap quote, so numbers move with prices — treat it as current, not fixed.