AgentSkillsCN

smart-order-routing

适用于量化研究、系统实施及生产管控的智能订单路由工作流。当任务涉及指令设计、规模节奏,以及逆向选择控制时,可选用此类工作流。

SKILL.md
--- frontmatter
name: smart-order-routing
description: "Smart Order Routing workflows for quantitative research, implementation, and production controls. use when tasks involve instruction design, sizing cadence, and adverse-selection control."

Smart Order Routing

objective

Execute smart order routing work with reproducible research, explicit controls, and deployable outputs.

workflow

  1. define execution benchmark, urgency, and participation limits.
  2. profile venue liquidity, queue dynamics, and spread behavior before routing.
  3. configure order instructions and routing logic with deterministic safeguards.
  4. attribute slippage into spread, impact, timing, and opportunity components.
  5. deploy only after stable execution quality through stressed market windows.

required diagnostics

  • benchmark-relative slippage by venue, session, and order urgency.
  • fill-rate and queue-position decay under volatility shocks.
  • latency tail behavior with packet loss and feed-delay scenarios.
  • fee, rebate, and borrow assumptions reflected in net execution cost.
  • venue routing drift and missed-fill attribution

risk controls

  • enforce max participation, max order size, and max tolerated slippage.
  • enforce kill-switch conditions for stale books, feed gaps, and venue disconnects.
  • enforce escalation paths for sustained degradation in fill quality.

outputs

  • run python scripts/smart_order_routing_diagnostics.py input.csv --output diagnostics.json and keep the json artifact.
  • write an implementation memo using references/smart-order-routing-playbook.md with assumptions, tests, limits, and rollout plan.

resources

  • use scripts/smart_order_routing_diagnostics.py for deterministic diagnostics.
  • use references/smart-order-routing-playbook.md for the domain-specific checklist and delivery structure.