Vincent Trade Manager
Skill by glitch003
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/glitch003/vincent-trade-managerTrade Manager - Automated Stop-Loss, Take-Profit, and Trailing Stops
Use this skill to create automated trading rules (stop-loss, take-profit, trailing stop) for your Polymarket positions. The Trade Manager runs as part of the Vincent backend and automatically executes trades when price conditions are met.
All commands use the @vincentai/cli package.
How It Works
Trade Manager is a companion to the Polymarket skill:
- Use the Polymarket skill to browse markets and place bets
- Use Trade Manager to set automated exit rules on those positions
- The Trade Manager monitors prices in real-time via WebSocket (with polling as fallback) and executes trades through the same Polymarket infrastructure when triggers are met
Architecture:
- Integrated into the Vincent backend (no separate service to run)
- API endpoints under
/api/skills/polymarket/rules/... - Uses the same API key as the Polymarket skill
- Stores rules and events in the Vincent database
- Executes trades through the same policy-enforced Polymarket pipeline
- All Vincent policies (spending limits, approvals) still apply
Quick Start
1. Check Worker Status
Before creating rules, verify the monitoring worker is running:
npx @vincentai/cli@latest trade-manager health
# Expected: {"status":"ok","version":"0.1.0"}
npx @vincentai/cli@latest trade-manager status --key-id <KEY_ID>
# Returns: worker status, active rules count, last sync time, circuit breaker state
2. Create a Stop-Loss Rule
Automatically sell a position if price drops below a threshold:
npx @vincentai/cli@latest trade-manager create-rule --key-id <KEY_ID> \
--market-id 0x123... --token-id 456789 \
--rule-type STOP_LOSS --trigger-price 0.40
Parameters:
--market-id: The Polymarket condition ID (from market data)--token-id: The outcome token ID you hold (from market data — use the token ID you bought)--rule-type:STOP_LOSS(sells if price <= trigger),TAKE_PROFIT(sells if price >= trigger), orTRAILING_STOP--trigger-price: Price threshold between 0 and 1 (e.g., 0.40 = 40 cents)
The CLI automatically passes {"type": "SELL_ALL"} as the action (only supported type in MVP).
3. Create a Take-Profit Rule
Automatically sell a position if price rises above a threshold:
npx @vincentai/cli@latest trade-manager create-rule --key-id <KEY_ID> \
--market-id 0x123... --token-id 456789 \
--rule-type TAKE_PROFIT --trigger-price 0.75
Pro tip: Create both a stop-loss AND take-profit on the same position to bracket your trade.
4. Create a Trailing Stop Rule
A trailing stop starts with a stop price, then automatically moves that stop price up as price rises.
npx @vincentai/cli@latest trade-manager create-rule --key-id <KEY_ID> \
--market-id 0x123... --token-id 456789 \
--rule-type TRAILING_STOP --trigger-price 0.45 --trailing-percent 5
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-glitch003-vincent-trade-manager": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Vincent - Brave Search for agents
Web and news search powered by Brave Search. Use this skill when users want to search the web, find news articles, or look up current information. Pay-per-call via Vincent credit system. Triggers on "search the web", "web search", "brave search", "search news", "find information", "look up", "current events".
Vincent - A wallet for agents
Use this skill to safely create a wallet the agent can use for transfers, swaps, and any EVM chain transaction. Also supports raw signing and polymarket betting.
Vincent - A wallet for agents
The agent's wallet for EVM chain transactions and raw signing. Use this skill when users want to create a wallet, transfer tokens, swap on DEXs, interact with smart contracts, or sign messages. Triggers on "wallet", "create wallet", "transfer ETH", "swap tokens", "send transaction", "check balance", "EVM wallet", "raw signer", "sign message".
Vincent - Trading Engine for agents
Strategy-driven automated trading for Polymarket. Use this skill when users want to create trading strategies, set stop-loss/take-profit/trailing stop rules, or manage automated trading. Triggers on "trading strategy", "stop loss", "take profit", "trailing stop", "automated trading", "trading engine", "trade rules", "strategy monitor".
Agent Wallet
The agent's wallet. Use this skill to safely create a wallet the agent can use for transfers, swaps, and any EVM chain transaction.