- Home
- Skills
- Research & Analysis
- Trade Execution Data Quality Checks
Trade Execution Data Quality Checks
Find errors in trading data like clock drifts and wrong prices before they bias your cost analysis.
$12
What it does
- Matches fill timestamps against market quotes to find clock timing errors
- Calculates the bias in reported costs caused by wrong benchmark prices
- Identifies duplicate trade entries that could lead to double counting costs
- Flags trades that happened outside the best market prices per venue
- Verifies if algorithms are following their assigned participation targets over time
- Flags prints at auction times that carry the wrong session label
Who it's for
Hedge fund analysts checking trade data
Find hidden data errors that make your trading cost reports look better or worse than they really are.
Try asking: “Check my trading data for clock issues and bad benchmark prices.”
Compliance officers monitoring algorithms
Verify if your trading bots are actually following the instructions you gave them.
Try asking: “Are our algos following their participation targets?”
Quantitative researchers building models
Clean your historical trade data so your models are not biased by duplicates or wrong timestamps.
Try asking: “Look for duplicate fills and auction labels that might be wrong.”
Trade Execution Data Quality Checks
Example session with this skill installed
Check our desk data for clock problems and bad session labels before we run TCA.
- Read your context and instructions
- Compiled the trade execution data
Real output on a synthetic test desk.
Clock alignment (share of passive fills not at their quote):
| venue | n | off at 0 ms | best lag | off at best lag |
|---|---|---|---|---|
| V1 | 31,844 | 0.000 | 0 ms | 0.000 |
| V3 | 31,716 | 0.000 | 0 ms | 0.000 |
| V5 | 31,813 | 0.998 | -1,800 ms | 0.046 |
Auction prints
| venue | prints in auction seconds | labelled continuous |
|---|---|---|
| V1 | 117 | 0 |
| V3 | 143 | 143 |
- V5's fill clock is about 1.8 s off: almost none of its passive fills match a quote as stamped, and 95% match after shifting by -1,800 ms. Every markout or impact number for V5 is wrong until this is fixed.
- All 143 of V3's auction prints are labelled continuous. tcakit treats them as auctions anyway, but any tool that trusts the label will mix auction prints into continuous trading.
- The other venues pass both checks.
Connects securely to your tools. The creator never sees your data.
About this skill
When you look at how much your trades cost, a tiny mistake in your data can make a huge difference. This skill looks through your trading records to find these hidden errors before they ruin your reports. It checks if your timestamps match the market quotes, if your benchmark prices are honest, and if your trading bots are doing what they were told.
How it works
- Provide your data. You give your AI agent access to your trading files, including parent orders, fills, and market quotes.
- The skill runs checks. It automatically tests for six major data problems, such as mismatched clocks, duplicate entries, and incorrect session labels.
- Analyze the bias. The skill calculates exactly how much these errors are lying to you about your costs.
- Get a report. You receive a list of confirmed findings, which venues or clients have the most issues, and the script used to find them.
Frameworks & tools
This skill uses Python and a specialized toolkit to read DuckDB database files. It compares your private trade data against public market quotes and trade volumes.
Why this beats prompting it yourself
A normal AI agent doesn't know the specific math needed to detect millisecond clock drifts or how to calculate benchmark bias. This skill uses a precise set of tests that catch systematic errors a human or a general AI would miss by just looking at the rows.
Use cases
- Finding out if a specific exchange has a slow clock that ruins your timing.
- Checking if your reported shortfall is higher or lower than the truth.
- Making sure trades made during an auction aren't labeled as normal trading.
- Proving that your trading algorithms stayed within their participation limits.
Known limitations
This skill needs at least 100 rows of data to call something a real finding. It assumes a standard US trading day from 9:30 AM to 4:00 PM.
Built to interface with tcakit and DuckDB. It specifically queries parent_orders, child_fills, nbbo_1s, and market_trades tables. Uses quote_alignment and arrival_px_check functions to identify systematic bias in basis points (bps). Requires exchange-local timestamps and adheres to a 100-row minimum significance threshold (MIN_N).
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.