API Reference

close a position

function closePosition(address amm, uint size, uint quoteLimit) external;

params

  • amm amm address
  • size size to close
  • quoteLimit min quote asset output expected (wei) (used for setting slippage, 0 to bypass slippage check)