# Generated by contracts/export_public_catalog.py from contracts/public_sources/sec-edgar.yaml -- do not edit by hand.
# Open Data Contract Standard v3.2.0 (https://bitol-io.github.io/open-data-contract-standard/).
apiVersion: v3.2.0
kind: DataContract
id: urn:alphaswarm:datacontract:sec-edgar:full-index
name: Quarterly Filing Index
version: 0.1.0
status: draft
domain: regulatory-disclosures
tags:
- sec-edgar
- filings
description:
  purpose: Discover archived filings by form, filer, and filing date across a calendar quarter.
  usage: Parse the five fixed-width fields and derive accession_no from the submission filename. Retain
    the archive path to resolve the filing. Automated requests must identify the client in User-Agent
    and follow the SEC fair-access limit of 10 requests per second. The read APIs require no key.
  limitations: The open quarter grows during the quarter. Index history begins in 1994 Q3 and later refreshes
    can reflect SEC corrections or removals. Consult the underlying filing for authoritative disclosures
    and the SEC access policy before automating requests.
  authoritativeDefinitions:
  - type: documentation
    url: https://www.sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data
    description: Dataset documentation
servers:
- server: sec-edgar-archive
  type: custom
  environment: vendor
  location: https://www.sec.gov/Archives/edgar/full-index/{year}/QTR{quarter}/form.idx
  description: Form-sorted fixed-width text. Skip the header and dashed separator before decoding filing
    rows.
  customProperties:
  - property: channel
    value: archive
schema:
- name: full-index
  description: Discover archived filings by form, filer, and filing date across a calendar quarter.
  dataGranularityDescription: One entry from the quarterly filing index.
  properties:
  - name: form_type
    logicalType: string
    required: true
    description: Form type in the index
    primaryKey: true
    primaryKeyPosition: 3
  - name: company_name
    logicalType: string
    required: true
    description: Filer name in the index
  - name: cik
    logicalType: string
    required: true
    description: Central Index Key for the filer
    primaryKey: true
    primaryKeyPosition: 2
  - name: date_filed
    logicalType: date
    required: true
    description: Filing date in the index
  - name: filename
    logicalType: string
    required: true
    description: Path of the full submission text relative to the SEC Archives root
  - name: accession_no
    logicalType: string
    required: true
    description: Filing accession derived from filename
    primaryKey: true
    primaryKeyPosition: 1
  quality:
  - id: primary_key_unique
    metric: duplicateValues
    mustBe: 0
    arguments:
      properties:
      - accession_no
      - cik
      - form_type
    dimension: uniqueness
    severity: error
    description: Check duplicate keys within a consistent source extract.
customProperties:
- property: vendorDataGroup
  value: filings
- property: licensedData
  value: false
- property: knownIssues
  value:
  - Primary key is inferred for the documented row grain.
