# Implementation Shortfall Cost Breakdown

> Find where your trades lose money by breaking down costs into delay, impact, fees, and missed opportunities.

Implementation Shortfall Cost Breakdown is a paid AI agent skill on Agensi by Theodosios Dimitrasopoulos (Theo), in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Theodosios Dimitrasopoulos (Theo)](https://www.agensi.io/creators/theodim)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/implementation-shortfall-cost-breakdown
- Tags: trading, finance-accounting, research-analysis, python, database

## What it does

- Calculates the total cost gap between trade decisions and actual execution results
- Breaks down costs into delay, market impact, timing, fees, and opportunity cost pieces
- Groups performance by client, algorithm, or symbol to identify high cost areas
- Provides confidence intervals to show if cost differences are real or just luck
- Flags results as inconclusive when there are not enough orders to be sure

## Who it's for

- **Trading desk managers monitoring performance:** See exactly why certain orders are costing more than they should. Try: "Analyze implementation shortfall for my desk to see which clients pay the most in fees."
- **Quantitative analysts studying market impact:** Break down trading costs into timing, impact, and opportunity costs with statistical confidence. Try: "Run a shortfall analysis grouped by algorithm and show me the confidence intervals."
- **Institutional traders reviewing execution quality:** Find out if your orders are slow to reach the desk or if you are paying too much to cross the spread. Try: "Compare my execution cost against the rest of the desk for symbol AAPL."

## About this skill

If you are losing money on trades but do not know why, this skill helps you find the leak. It measures the gap between your decision to trade and the final result, known as implementation shortfall. Instead of just giving you one number, it breaks the cost down into five specific pieces: delay, market impact, timing, fees, and the cost of orders that never filled.

### How it works
1. You provide your trading data, including parent orders, child fills, and market quotes.
2. The skill calculates the shortfall for every order, comparing your fill prices to the market mid price when you made the decision.
3. It groups these costs by client, trading algorithm, or symbol to find patterns.
4. You receive a report showing where costs are highest and whether those differences are statistically significant.

### Frameworks & tools
This skill uses Python scripts to process data stored in DuckDB database files. It generates reports in plain text or tables showing basis point costs and confidence intervals.

### Why this beats prompting it yourself
A standard AI agent cannot perform complex financial math like Perold implementation shortfall or bootstrap confidence intervals on its own. This skill adds specific financial logic that correctly handles buys, sells, and unfilled orders while ensuring the math sums up perfectly across different cost categories.

### Use cases
- Identify which trading algorithms are causing the most market impact.
- Determine if slow order receipt is creating a delay cost for specific clients.
- Check if your venue routing is resulting in high exchange fees compared to peers.
- Measure the true cost of unexecuted orders when the market moves away from you.

### Known limitations
Results for groups with fewer than 100 parent orders are marked as inconclusive to avoid making decisions based on too little data.

## Requires

- Python 3.10+
- numpy, pandas, duckdb
- Order and fill data in DuckDB

## Technical details

Built using a Python library (tcakit) that interfaces with DuckDB for high-performance financial data processing. It requires a specific schema including tables for parent_orders, child_fills, nbbo_1s, market_trades, and venue_fees. The skill performs notional-weighted aggregation and uses bootstrapping to generate 95% confidence intervals for cost differences. It follows the Perold implementation shortfall methodology, measuring performance against a decision-time mid price.

## 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 Implementation Shortfall Cost Breakdown 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 Implementation Shortfall Cost Breakdown do?

Find where your trades lose money by breaking down costs into delay, impact, fees, and missed opportunities.

### Which AI agents support Implementation Shortfall Cost Breakdown?

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 Implementation Shortfall Cost Breakdown?

Connect your AI agent to Agensi through MCP, then ask it to use Implementation Shortfall Cost Breakdown 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.
