---
updatedAt: 2026-10-17T19:54:23.000Z
agentTools:
  projectIndex: https://askedgar.readme.io/llms.txt
---

# AI Chart Analysis API — Historical Gap-Up Patterns & Runner/Fader Ratings

Get AI analysis of a small-cap ticker’s historical gap-up behavior, including whether it tends to hold gains, fade into the close, or hold VWAP.

## Research a runner’s history while it is moving

When a ticker reaches a 20% gain on the day, AskEdgar generates an analysis of how it performed on previous gap-up days. The analysis brings historical chart behavior into a readable summary, accompanied by a color rating and the number of historical gap days reviewed.

For short sellers researching a gap-and-fade setup, this provides a quick way to assess the ticker’s past behavior alongside its current catalyst, float, and dilution profile.

## Understand the ratings

The `rating` summarizes behavior across the historical gap days analyzed:

* **Green:** Closed strong more often.
* **Yellow:** Mixed performance.
* **Orange:** Usually faded.
* **Red:** Faded on every historical gap day included in the analysis.

Read `analysis_text` for the explanation and `chart_count` for the number of historical gap days behind it.

## Use it to build

* **A runner/fader watchlist:** Display each ticker’s historical rating alongside its analysis.
* **A gap research dashboard:** Bring the narrative, historical chart count, and generation time into your existing scanner.
* **A trading-journal companion:** Save the analysis available when you researched a setup, then compare it with the session’s outcome.
* **A company research panel:** Combine historical trading behavior with AskEdgar’s float, news, and dilution data.

## Availability and requests

Analysis is typically available within a few minutes of a ticker crossing a 20% gain on the day.

Provide a single `ticker` to retrieve its most recent analysis. Refresh through repeated API requests, using `created_at` to identify when the analysis was generated.

## What you receive

* **`rating`:** Historical gap-performance color.
* **`analysis_text`:** AI-generated explanation of the ticker’s historical behavior.
* **`chart_count`:** Number of historical gap days reviewed.
* **`gain_percentage`, `volume`, and `price`:** Market context at the time the analysis ran.
* **`created_at`:** Analysis generation timestamp.
* **`post_url`:** Link to the associated analysis post.

## Build with AI

“Using [AskEdgar’s AI Chart Analysis API](https://askedgar.readme.io/reference/get_ai_chart_analysis), add a historical gap-behavior panel to my small-cap watchlist. For each ticker, show its runner/fader color rating, analysis, number of historical gap days reviewed, and generation time. Label price, volume, and gain as values recorded when the analysis ran.”

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "AskEdgar API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://eapi.askedgar.io"
    }
  ],
  "paths": {
    "/v1/ai-chart-analysis": {
      "get": {
        "tags": [
          "AI Gap Analysis"
        ],
        "summary": "AI Chart Analysis API — Historical Gap-Up Patterns & Runner/Fader Ratings",
        "description": "Get AI analysis of a small-cap ticker’s historical gap-up behavior, including whether it tends to hold gains, fade into the close, or hold VWAP.",
        "operationId": "get_ai_chart_analysis",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticker"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 10,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success AiChartAnalysis",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AiChartAnalysisResponse"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Insufficient credits",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Endpoint not allowed for your organization or API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EndpointNotAllowedErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit or trial ticker limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyHeader": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AiChartAnalysis": {
        "properties": {
          "ticker": {
            "type": "string",
            "title": "Ticker"
          },
          "gain_percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gain Percentage"
          },
          "chart_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chart Count"
          },
          "analysis_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Analysis Text"
          },
          "volume": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Volume"
          },
          "price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price"
          },
          "rating": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rating"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "last_updated": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Updated"
          },
          "post_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Post Url"
          }
        },
        "type": "object",
        "required": [
          "ticker"
        ],
        "title": "AiChartAnalysis"
      },
      "AiChartAnalysisResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "has_more": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has More"
          },
          "page": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page"
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/AiChartAnalysis"
            },
            "type": "array",
            "title": "Results"
          }
        },
        "type": "object",
        "required": [
          "status",
          "count",
          "results"
        ],
        "title": "AiChartAnalysisResponse",
        "examples": [
          {
            "status": "success",
            "count": 1,
            "message": null,
            "has_more": true,
            "page": 1,
            "limit": 2,
            "results": [
              {
                "ticker": "DVLT",
                "gain_percentage": 30.58,
                "chart_count": 3,
                "analysis_text": "1. 🔴 Red Circle  \n• All 3 sessions are classic “gap-and-fade” moves – strong volume/sizable gaps followed by steady sell-offs.  \n• Zero charts meet the ‘strong-day’ definition, while every chart (3/3) closes below VWAP and in the bottom half of the intraday range, giving us 3 clear faders and no winners.\n\n2. Pattern Analysis  \nDVLT repeatedly gaps up on headline-driven pre-market momentum, spikes during the first 30-60 minutes, and then spends the rest of the session unwinding back under VWAP, closing weak each time. The high float (100-150 M shares) appears to make sustaining moves difficult, and the stock gives back most of the news-based gains even when volume is heavy. Overall, recent price action favors short-biased “pop-then-drop” trading rather than expecting multi-day follow-through.",
                "volume": 48570021,
                "price": 0.78,
                "rating": "red",
                "created_at": "2026-03-17T16:34:28.942863-05:00",
                "last_updated": "2026-03-17T16:34:28.942863-05:00",
                "post_url": "https://discord.com/channels/1249146793464430633/1308024400884531302/1483579299029057741"
              }
            ],
            "usage": {
              "response_bytes": 2806,
              "billed_bytes": 0,
              "cost_microdollars": 0,
              "cost_dollars": "$0.000000",
              "credits_remaining_microdollars": null,
              "credits_remaining_dollars": null,
              "cached": false
            }
          }
        ]
      },
      "ApiKeyErrorResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "title": "ApiKeyErrorResponse",
        "examples": [
          {
            "error": {
              "code": "missing_api_key",
              "details": {},
              "message": "API key is required. Pass it in the API-KEY header."
            },
            "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
            "status": "error"
          },
          {
            "error": {
              "code": "invalid_api_key",
              "details": {},
              "message": "Invalid API key."
            },
            "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
            "status": "error"
          }
        ]
      },
      "EndpointNotAllowedErrorResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "title": "EndpointNotAllowedErrorResponse",
        "examples": [
          {
            "error": {
              "code": "endpoint_not_allowed",
              "details": {},
              "message": "Your organization does not have access to this endpoint."
            },
            "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
            "status": "error"
          }
        ]
      },
      "ErrorDetail": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "details": {
            "additionalProperties": true,
            "type": "object",
            "title": "Details",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "title": "ErrorDetail"
      },
      "InsufficientCreditsErrorResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "title": "InsufficientCreditsErrorResponse",
        "examples": [
          {
            "error": {
              "code": "insufficient_credits",
              "details": {
                "balance": 500000,
                "estimated_cost": 1000000,
                "unit": "microdollars"
              },
              "message": "Insufficient credits to process this request."
            },
            "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
            "status": "error"
          }
        ]
      },
      "RateLimitErrorResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "title": "RateLimitErrorResponse",
        "examples": [
          {
            "error": {
              "code": "rate_limit_exceeded",
              "details": {
                "limit": 200,
                "retry_after": 42,
                "window": "1m"
              },
              "message": "Rate limit exceeded."
            },
            "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
            "status": "error"
          }
        ]
      },
      "RequestStatus": {
        "type": "string",
        "enum": [
          "success",
          "error"
        ],
        "title": "RequestStatus"
      },
      "ValidationErrorResponse": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "title": "ValidationErrorResponse",
        "examples": [
          {
            "error": {
              "code": "validation_error",
              "details": {
                "fields": [
                  {
                    "field": "ticker",
                    "reason": "Value error, Field 'ticker' must contain only uppercase letters, numbers, dots, hyphens, or carets."
                  }
                ]
              },
              "message": "Request validation failed."
            },
            "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
            "status": "error"
          }
        ]
      }
    },
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "API-KEY"
      }
    }
  }
}
```