name: fx-microstructure description: "FX Microstructure workflows for quantitative research, implementation, and production controls. use when tasks involve cross-currency flow, session effects, and carry-adjusted signals."
FX Microstructure
objective
Execute fx microstructure work with reproducible research, explicit controls, and deployable outputs.
workflow
- define execution benchmark, urgency, and participation limits.
- profile venue liquidity, queue dynamics, and spread behavior before routing.
- configure order instructions and routing logic with deterministic safeguards.
- attribute slippage into spread, impact, timing, and opportunity components.
- 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.
- session handoff slippage between major trading hours
- carry exposure sensitivity to policy-rate surprises
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/fx_microstructure_diagnostics.py input.csv --output diagnostics.jsonand keep the json artifact. - write an implementation memo using
references/fx-microstructure-playbook.mdwith assumptions, tests, limits, and rollout plan.
resources
- use
scripts/fx_microstructure_diagnostics.pyfor deterministic diagnostics. - use
references/fx-microstructure-playbook.mdfor the domain-specific checklist and delivery structure.