# Trading Service Latency Instrumentation and Diagnosis

> Add a per-trade timing ledger (signal to order to fill to protected) to a crypto trading service, then diagnose jumpy RTT, slow feed hops and single slow fills with playbooks and dependency-free probes.

Trading Service Latency Instrumentation and Diagnosis is a paid AI agent skill on Agensi by Claude Workflow Lab, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Claude Workflow Lab](https://www.agensi.io/creators/creator-1578)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/trading-service-latency-instrumentation-and-diagnosis
- Tags: trading, testing, api, latency, instrumentation, websocket, diagnostics, go

## What it does

- Adds a per-trade timing ledger: signal, order, accept, fill, protected
- Playbooks for jumpy round trips, slow feed hops and single slow fills
- Dependency-free WebSocket and packet-capture probes with clock-offset checks

## About this skill

Answer the question that averages cannot: for this trade, where did the time go?

What is inside:
- `SKILL.md`: how to build a per-trade ledger in a trading service and its exchange client, in an order where partial work is shippable (additive stamps first, ack capture last because it touches live order flow). It lists the five traps that give confident but wrong numbers, such as mixing clocks and mixing accept with ack.
- `references/`: five playbooks. Latency jumps (per-flow path pinning versus queueing), feed-ingress attribution (clock offset, network, your read path or the vendor), socket warmth, single-fill diagnosis from logs plus the exchange's fill history, and live-box measurement pitfalls.
- `scripts/ws_probe.py`: dependency-free WebSocket ping/pong probe with percentiles and clock offset.
- `scripts/pcap_turnaround.py`: reads a packet capture to measure how fast a peer answers, with its jitter bound.

It is for developers who run their own crypto execution code and want evidence before blaming the exchange, the network or themselves. It needs a codebase you can edit, a way to restart the service, and Python 3 for the probes. The ledger work is done inline in one thread, since the risk sits in one message-router function.

This skill is also part of the Crypto Listing & Announcement Research Kit pack at a lower per-skill price.

## Requires

- Python 3 (standard library only) for the probes

A trading service and exchange client you can edit (examples are Go-flavoured, rules apply to any language with a monotonic clock). tcpdump on your box for the packet-capture script.

## 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 Trading Service Latency Instrumentation and Diagnosis 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 Trading Service Latency Instrumentation and Diagnosis do?

Add a per-trade timing ledger (signal to order to fill to protected) to a crypto trading service, then diagnose jumpy RTT, slow feed hops and single slow fills with playbooks and dependency-free probes.

### Which AI agents support Trading Service Latency Instrumentation and Diagnosis?

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 Trading Service Latency Instrumentation and Diagnosis?

Connect your AI agent to Agensi through MCP, then ask it to use Trading Service Latency Instrumentation and Diagnosis 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.
