# Pre-Trade Market Impact Fit (Square-Root Law)

> Identify if specific trading algorithms or clients are moving market prices more than their trade size justifies.

Pre-Trade Market Impact Fit (Square-Root Law) is a paid AI agent skill on Agensi by Theodosios Dimitrasopoulos (Theo), in Research & Analysis. 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: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- 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/pre-trade-market-impact-fit-square-root-law
- Tags: trading, python, data-analysis, finance, research

## What it does

- Calculates the expected price move for every order based on size and market volume
- Fits a market impact score to each algorithm or client to see who trades most efficiently
- Provides confidence intervals to prove if a group really is worse than the desk average
- Flags specific outlier orders that had an unusually large effect on the market price
- Estimates the extra cost paid in basis points due to above-average market impact

## Who it's for

- **Trading desk managers monitoring performance:** Identify which algorithms or clients are moving market prices more than they should for their size. Try: "Find out if any of our algos have a higher market impact than their peers."
- **Quantitative researchers analyzing trade costs:** Apply standard market impact models to your trade data to separate size effects from execution quality. Try: "Estimate the square-root law impact coefficient for my latest trades."
- **Compliance officers spotting unusual trading patterns:** Flag specific large orders that moved the price significantly more than predicted by the market average. Try: "Show me the outlier orders from yesterday where the price move was much larger than expected."

## About this skill

If your trades are moving market prices, you are paying an invisible tax. This skill helps you figure out if those price moves are a fair result of your order size or if a specific client or algorithm is trading poorly. It uses math based on trade volume and volatility to put every order on a level playing field.

### How it works
1. **Prepare your data.** You provide files containing your parent orders, child fills, and market price data.
2. **Calculate expected impact.** Your AI agent uses the square-root law to estimate how much the price should have moved based on how big your order was compared to the daily volume.
3. **Compare groups.** The skill groups trades by client or algorithm to see who moves the market more than their peers, providing a clear score for each.
4. **Identify outliers.** It flags specific orders where the price response was much higher than the model predicted.
5. **Estimate costs.** You get a report showing the extra cost in basis points caused by trading with higher impact than the rest of the desk.

### Frameworks & tools
This skill works with DuckDB database files containing your trade and market data. It uses Python scripts to perform the statistical fitting and bootstrap calculations.

### Why this beats prompting it yourself
Plain AI agents cannot perform the complex statistical fitting and "bootstrap" confidence intervals required to prove that a price move is statistically significant. This skill uses specific math formulas designed for market impact that go beyond simple averages, ensuring you don't chase noise or luck.

### Use cases
- Compare the execution quality of two different trading algorithms.
- See if a specific client's trading style is costing the desk extra money.
- Find the 10 most unusual orders from the past month for a manual review.
- Predict how much a large new order is likely to move the market before you trade.

### Known limitations
You need at least 100 parent orders for a group to get a conclusive result. It assumes standard trading hours and works best with liquid markets where volume data is available.

## Requires

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

## Technical details

Built on a bundled Python package (tcakit) over DuckDB. Reads parent_orders, child_fills, nbbo_1s (1-second quotes), market_trades and venue_fees from data/desk.duckdb. Estimates daily volatility from 5-minute quote mids and ADV from market trades, measures each parent order's impact from short-window mid moves around its own fills, and fits the square-root-law coefficient Y by weighted least squares, with bootstrap confidence intervals against the rest of the desk and a control for urgent orders. Also gives square-root-law pre-trade estimates and Almgren-Chriss schedules.

## 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 Pre-Trade Market Impact Fit (Square-Root Law) 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 Pre-Trade Market Impact Fit (Square-Root Law) do?

Identify if specific trading algorithms or clients are moving market prices more than their trade size justifies.

### Which AI agents support Pre-Trade Market Impact Fit (Square-Root Law)?

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 Pre-Trade Market Impact Fit (Square-Root Law)?

Connect your AI agent to Agensi through MCP, then ask it to use Pre-Trade Market Impact Fit (Square-Root Law) 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.
