# Opentradex Sell

> Close a paper position by id, booking realized P&L to the ledger. Invoke when the user says "sell", "close", "take profit", "cut it", or references a position id. Price is optional — defaults to the last mark.

- Skill: `deonmenezes/opentradex-sell` (Agent Skill)
- Install (CLI): `npx skillmds@latest add deonmenezes/opentradex-sell`
- Raw SKILL.md: https://api.skillmd.com/api/skills/deonmenezes/opentradex-sell/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: deonmenezes (https://skillmd.com/u/deonmenezes)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/deonmenezes/opentradex-sell

---


# OpenTradex — Close Position

Close an open paper position and book realized P&L.

User arguments: `$ARGUMENTS` — `<position-id> [price]`.

## Flow

1. If no id was given, show the user all open positions so they can pick:
   !`node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" positions`
   Then ask which one to close.
2. Close it:
   !`node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" sell $ARGUMENTS`
3. Report realized P&L and the new open-position count. If P&L is negative and large (abs > $50), offer a one-line coach note: "Want me to review what went wrong before the next trade?"

## Rules

- Never modify another user's position.
- If the id isn't found, say so clearly and re-show open positions.
- Don't re-enter a position automatically after a close.

