Skip to main content

Adjust margin

Deposit lowers effective leverage and moves the liquidation price away; withdraw does the opposite.
Preview the effect before committing with compute.estimate_liquidation_price.

Increase position size

Adds collateral at a chosen leverage; the position’s average open price is re-weighted.

Increase sized in coin units

Targets added coin exposure; fill leverage floats within bounds (all three leverage arguments are required):
To reduce size, use a partial market close. There is no separate decrease method.