# execution-cost-tca

> Measure and forecast trading costs: implementation shortfall, impact modeling, algo choice, CEX/DEX slippage, capacity.

execution-cost-tca is a paid AI agent skill on Agensi by BanditXBT. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $29 (one-time purchase)
- Creator: [BanditXBT](https://www.agensi.io/creators/banditxbt)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/execution-cost-tca
- Tags: trading-investing, web3-crypto, research-analysis

## About this skill

Gross alpha minus realistic cost is the only alpha. Measure cost against a benchmark fixed *before* the order, then model it forward to size capacity.

- **Implementation shortfall (Perold 1988):** paper portfolio at decision price vs. realized fills. IS = delay + trading (impact/spread) + opportunity (unfilled) + explicit fees, all in bps of notional, signed so positive = cost.
- **Arrival price:** mid at order arrival at the desk/algo. Best default for alpha-bearing flow.
- **Interval VWAP / TWAP:** gameable (a slow order that is itself the volume looks good) and blind to your own impact. Use for passive, non-urgent flow only.
- **Close / open:** for benchmarked index or MOC/MOO flow.
- For crypto, define mid on the *execution venue's* book at arrival, and record the index price too; cross-venue basis otherwise contaminates slippage.

`IS_bps = side * (P_fill_vwap - P_decision)/P_decision * 1e4 + fees_bps`
- Delay: decision to arrival. Spread: arrival mid to touch (half-spread for marketable). Temporary impact: your average fill vs. post-trade mid. Permanent impact: mid drift that persists after you stop (reversion window 5-30 min equities; shorter in liquid crypto). Opportunity cost: unfilled qty x (end price - decision price).
- Compute at the parent level, with child fills as evidence. Report mean, median, and p90; costs are fat-tailed and mean-dominated by few orders.

- **Square-root law:** `impact ≈ Y * sigma * sqrt(Q / V)`, sigma = daily vol, V = daily volume, Q = order size, Y a constant of order 1 (heuristic; calibrate per market, do not assume). This is the per-unit (bps) impact of a large metaorder; Toth et al. (2011, PRX; abstract confirms the square-root law for large metaorders) and Almgren, Thum, Hauptmann, Li (2005, "Direct estimation of equity market impact", Risk) are the usual references, and fitted exponents differ across studies. Treat it as unreliable for very small orders (spread-dominated) and for Q/V far beyond your data; the valid Q/V range is not established here, so state the range in your own sample.
- Per-unit impact is concave in size, but total dollar cost = size x per-unit impact grows like Q^1.5 under the square-root law (a heuristic; this is the "1.5 power" often quoted). Impact decays after completion; model transient (propagator) impact, not one number per order.
- Almgren-Chriss (2000): optimal schedule trades off variance of cost vs. expected impact; higher risk aversion front-loads.

## Requires

- Python 3
- pandas

## Known limitations

Educational analysis, not investment advice. Impact constants must be calibrated on your own fills; fee schedules change.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the execution-cost-tca skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does execution-cost-tca do?

Measure and forecast trading costs: implementation shortfall, impact modeling, algo choice, CEX/DEX slippage, capacity.

### Which AI agents support execution-cost-tca?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use execution-cost-tca?

Connect your AI agent to Agensi through MCP, then ask it to use execution-cost-tca on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
