execution-model
Skill by HKUDS
Models trade execution costs for backtests, including slippage, square-root market impact and execution delay. It is for quant researchers who want more realistic backtest results. It does not place live orders.
Install execution-model
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.claude/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/execution-model ~/.claude/skills/execution-modelRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/execution-model ~/.gemini/antigravity-cli/skills/execution-modelAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant execution assumptions for backtests. It covers fixed slippage in basis points, a linear impact model, and a square-root impact model. It also covers delayed execution, such as T+1 for China A-shares, and a cost breakdown with commissions, stamp duty and spread. The source says the four models are implemented and tested in src/quantlib/impact.py, and the skill tells the assistant to import them rather than retype them.
The skill also describes VWAP and TWAP execution logic and gives reference slippage, impact and cost figures by market. It includes a sensitivity table template and a cost analysis output format. The source says the skill is for backtest simulation only and is aimed at quantitative strategy developers who want more realistic backtests.
Written from the project's SKILL.md and checked against it.
What it can do
- Fixed slippage modelApplies a basis-point slippage so buys pay up and sells receive less.
- Linear impact modelEstimates price impact as a coefficient times volume traded divided by average daily volume.
- Square-root impact modelEstimates market impact using volatility, participation rate and a calibration parameter eta.
- Delayed executionShifts signals by a set number of bars, such as T+1, to avoid look-ahead bias.
- VWAP and TWAP logicDescribes time-sliced and volume-weighted order execution for backtests.
- Transaction cost breakdownLists explicit and implicit trading costs and reference costs by market.
- Execution cost analysisProvides a template for estimating annual cost drag on strategy returns.
What you need
- Access to the src/quantlib/impact.py module in the same repository
Try asking
- Apply a square-root impact model to my backtest for a 250k order on a 1M ADV stock
- Add a T+1 execution delay to my China A-share signals before backtesting
- Estimate annual cost drag for a strategy that rebalances monthly at 0.1% one-way cost
Good to know
- Backtest only. It does not execute live trades.
- The linear impact model uses constant marginal impact, which can overstate the cost of very large orders.
- The square-root impact term is not Almgren-Chriss optimal execution and computes no optimal schedule.
- Order size should stay within about 5-10% of daily volume, or the impact model becomes invalid.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agent/src/skills/execution-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md11 KB
Alternatives to execution-model
All alternatives →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
Compare with meme-rush, okx-market or saas-metrics-coach
execution-model: common questions
Does execution-model place live trades?
No. The source says the skill is for backtest simulation only and does not involve live order execution.
Which slippage models are included?
The source lists fixed slippage, linear impact and square-root impact models, all implemented in src/quantlib/impact.py.
Does it compute an optimal execution schedule?
No. The source says the square-root impact term is not Almgren-Chriss optimal execution and no trading trajectory is computed.
How do I install execution-model?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is execution-model free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is execution-model safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to execution-model?
Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.
