Anomaly Detector

Detect real-time execution anomalies in live trading systems using statistical and machine-learning methods.

38|9|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/IgorGanapolsky/trading --skill anomaly-detector-igorganapolsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Anomaly Detector
Source: https://github.com/IgorGanapolsky/trading/tree/main/.claude/skills/anomaly_detector
Command: npx skills add https://github.com/IgorGanapolsky/trading --skill anomaly-detector-igorganapolsky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires alpaca-py, pandas, numpy, and includes scripts (resource) components.

What problem does it solve?

This Skill detects execution anomalies, price gaps, and liquidity issues to protect trading quality and alert for unusual activity.

Core Features & Use Cases

  • Execution anomalies: monitor slippage and fill quality.
  • Price gaps: identify significant gaps and potential catalysts.
  • Volume and liquidity: detect abnormal volume and spread conditions.
  • Alerts: trigger warnings for suspected manipulation or mispricings.

Quick Start

Use the anomaly detector to analyze an order execution and evaluate slippage and cost impact.

Frequently Asked Questions about Anomaly Detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect execution anomalies in live trading?

Execution anomaly detection monitors slippage, fill quality, price gaps, and volume irregularities in real-time trading systems. This Skill applies statistical methods (z-score, moving-average deviation) and machine-learning models (isolation forest, LSTM autoencoders, one-class SVM) to identify unusual activity across multiple symbols and produce decision-ready signals.

Can I use anomaly detection to monitor slippage and spread conditions?

Yes. Slippage and spread monitoring are core features. The Skill detects abnormal volume, liquidity issues, and spread conditions to alert for suspected market manipulation, mispricings, or unusual fill behavior that impacts execution quality.

What methods does this anomaly detector use?

The Skill implements three detection approaches: statistical methods (z-score, moving-average deviation, quantile-based checks), machine-learning models (isolation forest, LSTM autoencoders, one-class SVM), and rule-based checks to analyze execution quality and identify price gaps and volume anomalies.

How do I analyze order execution quality and cost impact?

Use the anomaly detector to analyze an order execution in real-time, evaluating slippage and cost impact. The Skill produces structured anomaly analyses and performance metrics that flag unusual activity and market conditions affecting your fill.

What dependencies does this Skill require?

The Skill requires alpaca-py for market data and trading integration, pandas for data manipulation, and numpy for numerical computation. These handle data ingestion, preprocessing, and the statistical and ML-based anomaly detection logic.

Can I detect price gaps and potential market catalysts?

Yes. Price gap detection is a core feature. The Skill identifies significant gaps and flags potential catalysts, helping you distinguish normal market moves from execution issues or manipulation risk.