- Home
- Skills
- Research & Analysis
- Pre-Trade Market Impact Fit (Square-Root Law)
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.
$19
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 asking: “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 asking: “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 asking: “Show me the outlier orders from yesterday where the price move was much larger than expected.”
Pre-Trade Market Impact Fit (Square-Root Law)
Example session with this skill installed
Do any of our clients or algos move prices more than their order sizes justify?
- Read your context and instructions
- Compiled the pre-trade market impact
Real output on a synthetic test desk (1,783 parent orders). Desk-wide impact coefficient Y = 0.93 (CI 0.87 to 0.99).
| client | n | Y | Y rest of desk | diff CI |
|---|---|---|---|---|
| C1 | 274 | 1.78 | 0.84 | 0.78 to 1.09 |
| C5 | 292 | 0.94 | 0.92 | -0.13 to 0.15 |
| C2 | 301 | 0.78 | 0.95 | -0.31 to -0.02 |
- C1 moves prices about twice as much per unit of size as the rest of the desk, and the difference CI is well above zero. That is a finding.
- C2 is slightly below the desk, but only marginally significant, so not worth acting on alone.
- No algo differs from the rest of the desk: every algo's difference CI includes zero.
- Next step: cost of C1's above-peer impact is about (Y_C1 - Y_rest) times C1's mean size term x, in bps of C1's notional.
Connects securely to your tools. The creator never sees your data.
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
- Prepare your data. You provide files containing your parent orders, child fills, and market price data.
- 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.
- 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.
- Identify outliers. It flags specific orders where the price response was much higher than the model predicted.
- 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.
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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3.10+numpy, pandas, duckdbOrder and fill data in DuckDB
Permissions
File Scopes
What's inside
Frequently Asked Questions
New in Research & Analysis
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.