Gap Stats Advanced API — Historical Gap Screening & Backtesting

Search recorded small-cap gap-ups dating back to 2015 across tickers, with filters for date, gap percentage, premarket activity, trading volume, market cap, and whether the stock closed above VWAP.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Build a historical gap dataset around the conditions you want to study.

Gap Stats Advanced searches the same recorded events as the basic Gap Stats API, with additional filters and an optional ticker. Omit the ticker to search across companies, or provide one to narrow that company’s history.

For small-cap traders researching gap-and-fade behavior, this makes it easier to compare groups of events: larger versus smaller gaps, heavier versus lighter premarket activity, or different market-cap ranges.

Each result includes opening and closing prices, session highs and lows with timestamps, volume, and associated news and filing tags. Results are ordered with the most recent dates first.

What you can build

  • A historical gap screener: Find recorded gap-ups within a date range that match your gap-size, volume, and market-cap criteria.
  • A gap-and-fade backtesting dataset: Collect matching events across tickers and calculate your own open-to-close returns and moves above or below the opening price.
  • A premarket-activity comparison: Compare subsequent trading behavior across different premarket volume and dollar-volume ranges.
  • A float-enriched research dataset: Combine gap records with the Historical Float API to investigate how outcomes differ across historical float ranges.

Build with AI

“Using AskEdgar’s Gap Stats Advanced API, build a historical small-cap gap research dashboard. Let me select a date range and filter by gap percentage, premarket volume, premarket dollar volume, daily volume, and market cap. Make ticker optional and load all matching result pages. Show the event prices, high and low timestamps, and associated news and filing tags. Calculate open-to-close returns, moves from the open to the session high and low, and the percentage of matching events that closed below the open. Show the sample size for every comparison.”

Key parameters

  • ticker: Optional. Omit it to search across tickers.
  • date_from / date_to: Inclusive event-date range in YYYY-MM-DD format.
  • min_gap_percentage / max_gap_percentage: Narrow the recorded events by opening-gap percentage.
  • Premarket filters: Minimum and maximum values for premarket_volume and premarket_dollar_volume.
  • Session-volume filters: Minimum and maximum values for volume and dollar_volume.
  • Market-cap filters: min_market_cap and max_market_cap.
  • closed_over_vwap: Filter by whether the stock closed above its calculated VWAP.
  • Range validation: A minimum cannot exceed its corresponding maximum; invalid ranges return a 422 response.

Response highlights

Returns the same fields as Gap Stats:

  • date, market_open, previous_day_close, gap_percentage, market_close — the event date, prices, and opening gap.
  • high_price, low_price, high_time, low_time — regular-session extremes and the timestamps of their one-minute bars.
  • premarket_vwap, premarket_volume, premarket_dollar_volume — premarket activity.
  • volume, dollar_volume, market_cap — trading activity and company size.
  • closed_over_vwap, afterhours_close — whether the stock closed above the calculated VWAP, and its after-hours closing price.
  • all_tags, filing_types — associated news tags and SEC filing types.

Understanding the dataset

Advanced searches the same filtered dataset as Gap Stats.

The current scanner selects opening gaps of at least 20%, with at least $5 million in daily dollar volume, volume at least 10 times the historical median, a daily low of at least $0.10, and market cap below $1 billion under its market-cap checks.

Prices reflect the event-date trading prices rather than adjustments for subsequent splits. On recorded reverse-split dates, the prior close is converted to its post-split equivalent for the gap calculation. High and low timestamps use U.S. Eastern Time, including daylight-saving changes.

Backtesting context

Historical event coverage: Research a defined sample of small-cap gap-ups meeting the collection criteria above. Compare trading behavior across gap sizes, volume levels, and company sizes, and show the number of events in each comparison.

Using the data in backtests: Event selection uses completed-day volume and dollar volume. Use these records for historical event comparisons. When simulating an entry at the open, distinguish information available at entry from completed-session selection criteria and outcomes.

News and filing context: Use associated tags to group events and explore the news and filings surrounding each move.

For historical float comparisons, use the most recent reported-date checkpoint before each gap date from the Historical Float API.

Query Params
integer
Defaults to 1
integer
Defaults to 10
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json