Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

1020 B
Raw Blame

Perps Close Position Workflow

Use this workflow when the user wants to close a perpetual position.

Reference command syntax in references/perps.md.

Flow

  1. Check open positions.
  2. Dry run the close.
  3. Confirm with the user and close.

Confirm Symbol

If the user does not mention a token symbol, list open positions and confirm with the user:

mm perps positions

Check Positions

--venue defaults to hyperliquid. It can be omitted.

mm perps positions

Dry Run

Preview the close before executing:

mm perps close --symbol BTC --dry-run

For partial close, include --size <amount>.

Close

Remove --dry-run only after explicit user confirmation:

mm perps close --symbol BTC
mm perps close --symbol BTC --size 0.005

--all closes every open position. Require explicit confirmation that the user wants all positions closed.

mm perps close --all

Do not add --yes unless the user explicitly asked for unattended execution.