Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

pair-trade-screener

Screen stocks for cointegrated pairs and output z-scores, hedge ratios, and entry/exit signals.

When to use it

You have a sector or ticker list and need statistically validated market-neutral pair candidates with current spread signals.

For example

You say

Use pair-trade-screener to find cointegrated pairs in the Technology sector over the past two years and flag any with a z-score beyond ±2.

You get
  • pairs.json with ranked pairs
  • Z-score and signal summary
  • Half-life and ADF results

How it works

  • Pairs are filtered by correlation ≥0.70 and ADF p-value <0.05 before signals are generated.
  • Dividend-adjusted prices are preferred; raw close is used with a warning when unavailable.

Before installing

Requires an FMP API key with company screener and historical-price access, plus Python 3.9+ and statsmodels 0.14.x.

This skill includes 11 scripts your assistant may run on your computer.