Skip to main content

optionctl

Opinionated CLI for finding unusual options activity in S&P 500 tickers.

What This Tool Does

optionctl scans all S&P 500 tickers by default.

It ranks contracts using an unusual-flow score weighted toward:

  • Vol/OI (new opening activity signal)
  • raw contract volume
  • distance to the underlying (proximity)
  • IV (small weight)

Defaults (Opinionated)

The default scan is tuned for unusual flow, not penny-option lottery tickets:

  • max_price: 0.01
  • min_volume: 250
  • min_vol_oi: 1.0
  • DTE: 0-15

Quick Start

uv run optionctl scan

This runs the default unusual-flow scan across the full S&P 500 universe.

Common Commands

# Tighten unusual threshold
uv run optionctl scan --min-vol-oi 2.0 --min-volume 500

# JSON / CSV output
uv run optionctl scan --output json
uv run optionctl scan --output csv

Scan Flags

Flag Default Purpose
--min-dte 0 Minimum days to expiration
--max-dte 15 Maximum days to expiration
--max-price 0.05 Max contract ask/last
--min-volume 250 Minimum contract volume
--min-vol-oi 1.0 Minimum volume/open-interest ratio
--output table table, json, csv
--limit 20 Max rows to display
--all false Show all rows
--refresh false Bypass chain cache

Cache Commands

# Warm S&P 500 universe
uv run optionctl cache warm

# Warm all expirations
uv run optionctl cache warm --all

# Inspect / clear cache
uv run optionctl cache status
uv run optionctl cache clear

# Prune volume-history files
uv run optionctl cache prune-history --max-age 30

Development

make format
make check # static checks and package build
make test  # live SPY scan; requires Yahoo Finance access

make test uses the installed CLI and current market data. It updates the normal local cache and prediction history. It does not place trades. CI runs static checks and package checks without live services. Unit and mock suites are not part of this project.

optionctl version and optionctl --version print the package version. JSON scans write an array to stdout, including [] when no contract matches. Human tables also use stdout; progress and diagnostics use stderr.

Metadata

Release files for optionctl 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for optionctl 0.1.0
File Size Uploaded Provenance Actions
optionctl-0.1.0.tar.gz 26.7 kB With provenance Details for optionctl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for optionctl 0.1.0
File Interpreter ABI Platform Actions
optionctl-0.1.0-py3-none-any.whl Python 3 none any Details for optionctl-0.1.0-py3-none-any.whl

Total release size: 60.3 kB

Release files / optionctl-0.1.0.tar.gz

Download URL optionctl-0.1.0.tar.gz
Size 26.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a5a8b4f2441a699d6b10052d36ce56dde3a047ff9c119b3d2d0b8968b6b41047
BLAKE2b-256 checksum
How to use checksums
a33a894e39b083d4029dc0cbae387b20b6870bcbde3959dc1762e54dfe75495e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / optionctl-0.1.0-py3-none-any.whl

Download URL optionctl-0.1.0-py3-none-any.whl
Size 33.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
136a7f69c437ac866925a6679b2530285a5c0c48f70331b5bb402a1d5b5803b5
BLAKE2b-256 checksum
How to use checksums
cf62a50b30de40b82e82779cde770229272dd57ed7f61d943c7c0c2f5da3582c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Security for optionctl 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for optionctl-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page