Venue Markouts and Adverse Selection

    by Theodosios Dimitrasopoulos (Theo)

    1

    Identify which trading venues and algorithms cost you the most by analyzing price moves around your fills.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Calculates price moves before and after trades to find hidden execution costs
    • Compares specific venues or algos against your desk average to spot outliers
    • Uses statistical confidence checks to ignore random noise in small data samples
    • Breaks down costs by liquidity type like maker, taker, or mid fills
    • Estimates the total money lost in basis points for each underperforming venue

    Who it's for

    Trading desk managers overseeing multiple venues

    See which venues cost you money through adverse selection on your fills.

    Try asking: “Analyze our venue performance using the desk data.”

    Quantitative traders optimizing execution algos

    Find out whether the market moves against your orders before they fill.

    Try asking: “Check if our high urgency orders are causing price leakage.”

    Compliance officers monitoring execution quality

    Get clear evidence of adverse selection across different liquidity types.

    Try asking: “Run a markout report to check for adverse selection on our taker fills.”

    Venue Markouts and Adverse Selection

    Example session with this skill installed

    Check our venues for adverse selection on taker fills.

    • Read your context and instructions
    • Compiled the venue markouts

    Real output on a synthetic test desk, taker fills, each venue relative to the rest of the desk (bps, positive = bad for us):

    venue-60s-10s+10s+60s+600s
    V1-2.91-3.04-0.31-2.32-2.23
    V2-2.80-3.02-0.23-2.16-2.12
    V44.224.480.403.313.22
    • V4: +3.31 bps at 60 s (CI 3.15 to 3.46, 1,778 parent orders), consistent from 10 s to 600 s. Taker fills on V4 see more adverse selection than the rest of the desk.
    • V4 also shows the price running against us before its fills (+4.2 to +4.5 bps from -60 s to -10 s), which is worth checking for information leakage.
    • V1 and V2 are better than the desk at every horizon after the fill.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    When you trade, the price moves. This skill helps you understand if those moves happen because you are being "picked off" or because your orders are leaking information to the market. It looks at the market price seconds before and minutes after your trades to see if you are getting a raw deal from specific venues or brokers.

    How it works

    1. You provide your trading data, including parent orders and individual fills.
    2. Your AI agent loads the data and checks the market prices around every single fill.
    3. It calculates "markouts," which show how much the price moved against you at different time steps.
    4. You receive a report showing which venues or algorithms have high costs compared to the rest of your trading desk.

    Frameworks & tools

    The skill uses Python and a DuckDB database to process trade and market quote data efficiently.

    Why this beats prompting it yourself

    Standard AI prompts cannot perform the complex math required to "sign" price moves based on whether you bought or sold, nor can they handle thousands of rows of market data. This skill uses a specific statistical method called bootstrapping to make sure a bad result isn't just a random fluke, ensuring you only act on real problems.

    Use cases

    • Identify which stock exchange is giving you the worst "toxic" fills.
    • See if your "buy" orders are making the price jump before you even get filled.
    • Compare the true cost of different trading algorithms including fees and rebates.
    • Detect if a specific client's flow is causing unusual market impact.

    Known limitations

    The skill requires at least 100 distinct parent orders to give a reliable result. It is currently set up for US equity market hours.

    Built with a custom tcakit Python library. It requires a DuckDB file (data/desk.duckdb) containing parent_orders, child_fills, nbbo_1s, market_trades, and venue_fees tables. It performs signed markout calculations with bootstrap confidence intervals to ensure statistical significance. Default horizons are a log grid from -60s to +600s.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files

    File Scopes

    data/desk.duckdb
    Listedtoday

    What's inside

    Frequently Asked Questions

    Identify which trading venues and algorithms cost you the most by analyzing price moves around your fills.

    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.

    Connect your AI agent to Agensi through MCP, then ask it to use Venue Markouts and Adverse Selection 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.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.