# 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:filings
name: Filing Submissions
version: 0.1.0
status: draft
domain: regulatory-disclosures
tags:
- sec-edgar
- filings
description:
  purpose: Identify public submissions and their primary documents for a given EDGAR filer.
  usage: Zero-pad CIK to 10 digits in the request. Zip parallel arrays by position, carry the filer CIK
    into each row, and read older shards for full coverage. 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 recent block is a rolling window. Amendments have separate accession numbers. 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-application-programming-interfaces
    description: Dataset documentation
  - type: documentation
    url: https://www.sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data
    description: SEC fair access and EDGAR indexes
servers:
- server: sec-edgar-api
  type: api
  environment: vendor
  location: https://data.sec.gov/submissions/CIK{cik}.json
  description: JSON with parallel arrays at filings.recent. The filings.files array references older history
    shards.
  customProperties:
  - property: channel
    value: api
schema:
- name: filings
  description: Identify public submissions and their primary documents for a given EDGAR filer.
  dataGranularityDescription: One filing accession per filer in the flattened submission history.
  properties:
  - name: cik
    logicalType: string
    required: true
    description: Filer CIK from the requested entity
    primaryKey: true
    primaryKeyPosition: 1
  - name: accessionNumber
    logicalType: string
    required: true
    description: Hyphenated EDGAR filing identifier
    primaryKey: true
    primaryKeyPosition: 2
  - name: filingDate
    logicalType: date
    required: true
    description: SEC filing date
  - name: reportDate
    logicalType: date
    required: false
    description: Filing report or period date when supplied
  - name: acceptanceDateTime
    logicalType: timestamp
    required: false
    description: Submission acceptance timestamp when supplied
  - name: act
    logicalType: string
    required: false
    description: Associated securities act code
  - name: form
    logicalType: string
    required: true
    description: EDGAR form type including amendment suffixes
  - name: fileNumber
    logicalType: string
    required: false
    description: Associated SEC file number
  - name: filmNumber
    logicalType: string
    required: false
    description: EDGAR film number
  - name: items
    logicalType: string
    required: false
    description: Item numbers reported for applicable forms
  - name: core_type
    logicalType: string
    required: false
    description: Core filing type carried in the SEC response
  - name: size
    logicalType: integer
    required: false
    description: Submission size in bytes
  - name: isXBRL
    logicalType: integer
    required: false
    description: XBRL availability flag
  - name: isInlineXBRL
    logicalType: integer
    required: false
    description: Inline XBRL availability flag
  - name: primaryDocument
    logicalType: string
    required: false
    description: Filename of the primary filing document
  - name: primaryDocDescription
    logicalType: string
    required: false
    description: Description of the primary filing document
  quality:
  - id: primary_key_unique
    metric: duplicateValues
    mustBe: 0
    arguments:
      properties:
      - cik
      - accessionNumber
    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.
