<< All versions
Skill v1.0.0
currentAutomated scan100/100deonmenezes/opentradex/sell
──Details
PublishedApril 28, 2026 at 10:52 AM
Content Hashsha256:dcc934f47b87eea1...
Git SHAacd9962b42db
──Files
Files (1 file, 1.1 KB)
SKILL.md1.1 KBactive
SKILL.md · 29 lines · 1.1 KB
version: "1.0.0" name: opentradex-sell description: 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. allowed-tools: Bash(node tradex.js sell:), Bash(node tradex.js positions:) argument-hint: <position-id> [price]
OpenTradex — Close Position
Close an open paper position and book realized P&L.
User arguments: $ARGUMENTS — <position-id> [price].
Flow
- 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.
- Close it:
!node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" sell $ARGUMENTS
- 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.