Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 91
  • 39k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-model

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install execution-model in Claude Code

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

A

No 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 →

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.

execution-model Install

Add to stack

Loading.