
Trading Automation
Vincent - Trading Engine for agents
Vincent Trading Engine is a strategy-driven automation Skill for Polymarket prediction markets that combines driver-based monitoring (web search, Twitter, newswire, price feeds) with a scored signal pipeline and LLM-powered decisioning.
Overview
Vincent Trading Engine is a strategy-driven automation Skill for Polymarket prediction markets that combines driver-based monitoring (web search, Twitter, newswire, price feeds) with a scored signal pipeline and LLM-powered decisioning.
Vincent Trading Engine is a strategy-driven automation Skill for Polymarket prediction markets that combines driver-based monitoring (web search, Twitter, newswire, price feeds) with a scored signal pipeline and LLM-powered decisioning. Use it to create versioned strategies that encode a structured thesis, weighted drivers, escalation policies, and automated protective behavior. When driver signals meet thresholds they’re batched and evaluated by an LLM (via OpenRouter/Claude) which can place trades, update the thesis, or set protective orders; standalone stop-loss, take-profit, and trailing-stop rules also run autonomously without LLM involvement. Integrated into the Vincent backend (no separate service), it exposes strategy and rule endpoints (/api/skills/polymarket/strategies and /rules) and uses the same Polymarket API key. Core advantages: multi-source signal fusion, LLM-driven tactical judgment, strict policy enforcement on all trades, full audit trails for LLM calls and cost metering, and CLI management via @vincentai/cli.
Skill.md
How this skill works
Vincent Trading Engine is a strategy-driven automation Skill for Polymarket prediction markets that combines driver-based monitoring (web search, Twitter, newswire, price feeds) with a scored signal pipeline and LLM-powered decisioning.
Vincent Trading Engine - Strategy-Driven Automated Trading
Use this skill to create and manage automated trading strategies for Polymarket prediction markets. The Trading Engine combines driver-based monitoring (web search, Twitter, newswire, price feeds) with a signal pipeline and LLM-powered decision-making to automatically trade based on your thesis. It also includes standalone stop-loss, take-profit, and trailing stop rules that work without the LLM.
All commands use the @vincentai/cli package.
How It Works
The Trading Engine is a unified system with two modes:
- LLM-Powered Strategies — Create a versioned strategy with a structured thesis, weighted drivers (web search keywords, Twitter accounts, newswire topics, price triggers), and an escalation policy. When drivers detect new information, signals are scored and batched. When the escalation threshold is met, an LLM (Claude via OpenRouter) evaluates the signals against your thesis and decides whether to trade, update the thesis, set protective orders, or alert you.
- Standalone Trade Rules — Set stop-loss, take-profit, and trailing stop rules on positions. These execute automatically when price conditions are met — no LLM involved.
Architecture:
- Integrated into the Vincent backend (no separate service to run)
- Strategy endpoints under
/api/skills/polymarket/strategies/... - Trade rule endpoints under
/api/skills/polymarket/rules/... - Uses the same API key as the Polymarket skill
- All trades go through Vincent's policy-enforced pipeline
- LLM costs are metered and deducted from the user's credit balance
- Every LLM invocation is recorded with full audit trail (tokens, cost, actions, duration)
Security Model
- LLM cannot bypass policies — all trades go through
polymarketSkill.placeBet()which enforces spending limits, approval thresholds, and allowlists - Backend-side LLM key — the OpenRouter API key never leaves the server. Agents and users cannot invoke the LLM directly
- Credit gating — no LLM invocation without sufficient credit balance
- Tool constraints — the LLM's available tools are controlled by the strategy's
config.toolssettings. IfcanTrade: false, the trade tool is not provided - Rate limiting — max concurrent LLM invocations is capped to prevent runaway costs
- Audit trail — every invocation is recorded with full prompt, response, actions, cost, and duration
- No private keys — the Trading Engine uses the Vincent API for all trades. Private keys stay on Vincent's servers
Part 1: LLM-Powered Strategies
Core Concepts
- Instrument: A tradeable asset on a venue. Defined by
id,type(stock, perp, swap, binary, option),venue, and optional constraints (leverage, margin, liquidity, fees). - Thesis: Your directional view —
estimate(target price/value),direction(long/short/neutral),confidence(0–1), andreasoning. - Driver: A named information source that feeds the signal pipeline. Each driver has a
weight,direction(bullish/bearish/contextual), andmonitoringconfig (entities, keywords, embedding anchor, sources, polling interval). - Escalation Policy: Controls when the LLM is woken up.
signalScoreThreshold(minimum score to batch),highConfidenceThreshold(score that triggers immediate wake),maxWakeFrequency(e.g. "1 per 15m"),batchWindow(e.g. "5m"). - Trade Rules: Entry rules (min edge, order type), exit rules (thesis invalidation triggers), auto-actions (stop-loss, take-profit, trailing stop, price delta triggers), and sizing rules (method, max position, portfolio %, max trades/day).
Signal Pipeline
Strategies process information through a 6-layer pipeline:
- Ingest — Raw data from driver sources (web search, Twitter, newswire, price feeds, RSS, Reddit, on-chain, filings, options flow)
- Filter — Deduplication and relevance filtering. Drops signals already seen or below quality threshold
- Score — Each signal is scored (0–1) based on driver weight, embedding similarity to the anchor, and entity/keyword matches
- Escalate — Scored signals are batched according to the escalation policy. Low-score signals accumulate in a batch window; high-confidence signals trigger immediate LLM wake
- LLM — The LLM evaluates batched signals against the current thesis. It can update the thesis, issue trade decisions, update driver states, or take no action
- Execute — Trade decisions pass through policy enforcement and are routed to the appropriate venue adapter for execution
Strategy Lifecycle
Strategies follow a versioned lifecycle: DRAFT → ACTIVE → PAUSED → ARCHIVED
- DRAFT: Can be edited. Not yet monitoring or invoking the LLM.
- ACTIVE: Drivers are running. New signals trigger the pipeline.
- PAUSED: Monitoring is stopped. Can be resumed.
- ARCHIVED: Permanently stopped. Cannot be reactivated.
To iterate on a strategy, duplicate it as a new version (creates a new DRAFT with incremented version number and the same config).
Create a Strategy
npx @vincentai/cli@latest trading-engine create-strategy \
--key-id <KEY_ID> \
--name "BTC Momentum" \
--config '{
"instruments": [
{ "id": "btc-usd-perp", "type": "perp", "venue": "polymarket" }
],
"thesis": {
"estimate": 105000,
"direction": "long",
"confidence": 0.7,
"reasoning": "ETF inflows accelerating, halving supply shock imminent"
},
"drivers": [
{
"name": "ETF Flow Monitor",
"weight": 2.0,
"direction": "bullish",
"monitoring": {
"entities": ["BlackRock", "Fidelity"],
"keywords": ["bitcoin ETF", "BTC inflow"],
"embeddingAnchor": "Bitcoin ETF institutional inflows",
"sources": ["web_search", "newswire"]
}
},
{
"name": "Crypto Twitter",
"weight": 1.0,
"direction": "contextual",
"monitoring": {
"entities": ["@BitcoinMagazine", "@saborskycnbc"],
"keywords": ["bitcoin", "BTC"],
"sources": ["twitter"]
}
}
],
"escalation": {
"signalScoreThreshold": 0.3,
"highConfidenceThreshold": 0.8,
"maxWakeFrequency": "1 per 15m",
"batchWindow": "5m"
},
"tradeRules": {
"entry": { "minEdge": 0.05, "orderType": "limit", "limitOffset": 0.01 },
"autoActions": { "stopLoss": -0.10, "takeProfit": 0.25, "trailingStop": -0.05 },
"exit": { "thesisInvalidation": ["ETF outflows exceed $500M/week"] },
"sizing": {
"method": "edgeScaled",
"maxPosition": 500,
"maxPortfolioPct": 20,
"maxTradesPerDay": 5,
"minTimeBetweenTrades": "30m"
}
},
"notifications": {
"onTrade": true,
"onThesisChange": true,
"channel": "none"
}
}'
Parameters:
--name: Strategy name--config: Full strategy config JSON (see Core Concepts above for structure)--data-source-secret-id: Optional DATA_SOURCES secret ID for driver monitoring API calls--poll-interval: Polling interval in minutes for driver monitoring (default: 15)
List Strategies
npx @vincentai/cli@latest trading-engine list-strategies --key-id <KEY_ID>
Get Strategy Details
npx @vincentai/cli@latest trading-engine get-strategy --key-id <KEY_ID> --strategy-id <STRATEGY_ID>
Update a Strategy
Update a DRAFT strategy. Pass only the fields you want to change — config is a partial object.
npx @vincentai/cli@latest trading-engine update-strategy --key-id <KEY_ID> --strategy-id <STRATEGY_ID> \
--name "Updated Name" --config '{ "thesis": { "confidence": 0.8, "reasoning": "Updated reasoning" } }'
Parameters:
Best used for
When to use it
Vincent Trading Engine is a strategy-driven automation Skill for Polymarket prediction markets that combines driver-based monitoring (web search, Twitter, newswire, price feeds) with a scored signal pipeline and LLM-powered decisioning.

01 · PRE-MEETING
Prepare a decision brief
Turn scattered evidence into a structured case before an investment committee meeting.

02 · TEAM WORKFLOW
Standardize handoffs
Create consistent research outputs across analysts, portfolio managers, and agents.

03 · LIVE UPDATE
Refresh the thesis
Update scenarios after a new catalyst, KPI release, or earnings result.
Community notes
Built to improve with use.
Feedback will appear here as this skill is used and reviewed.
Discover more
Related skills
View allquant-analysis
Quantitative Analysis Skill provides an end-to-end toolkit for quantitative finance research and production analysis. It automates data ingestion, interactive analysis in Jupyter (jupyter_execute,…
bankr
Bankr enables executing crypto trading and DeFi operations via natural-language commands. It offers two integration options: a batteries-included Bankr CLI and a REST API at https://api.bankr.bot,…
pine-backtester
pine-backtester provides comprehensive backtesting for Pine Script indicators and strategies. Use it to append performance metrics, analyze trades, generate equity curves, compute win rates, track…