openapi: "3.1.1"
jsonSchemaDialect: "https://json-schema.org/draft/2020-12/schema"
info:
  title: "Darvas Data API"
  version: "0.9.0"
  summary: "Company, filing, insider, institutional, market and macro data for every SEC filer, US stocks, UK and French companies and crypto markets."
  description: "Every value names its source. Field names follow the common financial data API shapes, so an existing client reads these answers unchanged; extra fields come after them. Send the API key in the X-API-KEY header or as a Bearer token. Dates are ISO 8601 and times are RFC 3339 in UTC. Billing: 1 credit = 1 successful call. A page holds at most 1,000 rows and costs one credit however many it holds; an empty answer, a refusal, an error and every FINRA /short-volume call cost 0 credits."
  termsOfService: "https://darvas.app/terms"
  contact:
    name: "Darvas data"
    url: "https://darvas.app"
    email: "support@darvas.app"
  license:
    name: "Proprietary"
    identifier: "LicenseRef-Darvas-Proprietary"
externalDocs:
  description: "Market coverage"
  url: "https://docs.darvas.app/market-coverage"
servers:
  - url: "https://api.darvas.app/v1"
    description: "Production."
  - url: "https://darvas.app/api/data/v1"
    description: "Production, on the darvas.app host."
security:
  - apiKey: []
  - bearerKey: []
tags:
  - name: "company"
    description: "Company profiles from SEC submissions."
  - name: "crypto"
    description: "Candles, trades, order books, order flow, derivatives, options, screens and market structure of crypto instruments from Darvas's own market data."
  - name: "defi"
    description: "Multi-chain DeFi protocol TVL, stablecoin supply, yield pools, and on-chain DEX liquidity."
  - name: "earnings"
    description: "Each filing that reports a period, the 8-K earnings release, then the 10-Q or 10-K, and the KPIs, guidance and non-GAAP metrics of the releases."
  - name: "filings"
    description: "SEC filing lists, the items of 10-K, 10-Q and 8-K filings, and search over them."
  - name: "financials"
    description: "Standardized income statements, balance sheets and cash flow statements from XBRL filings."
  - name: "funds"
    description: "Holdings of registered funds and ETFs from Form N-PORT."
  - name: "insiders"
    description: "Insider trades and holdings from Forms 3, 4 and 5, and sale notices from Form 144."
  - name: "institutions"
    description: "Positions of investment managers from Form 13F reports."
  - name: "ipos"
    description: "Registration statements and prospectuses of companies going public."
  - name: "macro"
    description: "Policy rates, the Treasury yield curve, inflation, jobs and GDP from their publishers."
  - name: "markets"
    description: "Market structure data: the shares that failed to settle each day, from SEC, and futures positions by trader group, from the CFTC."
  - name: "news"
    description: "Company 8-K filings and the press releases of the Federal Reserve, the SEC, the BEA and the BLS."
  - name: "ownership"
    description: "Owners of more than 5% from Schedules 13D and 13G."
  - name: "prediction-markets"
    description: "Binary event contract odds and series across Polymarket, Kalshi and OKX plus cross-venue arbitrage spreads."
  - name: "tokenized-stocks"
    description: "Coinbase stock tokens on Base, priced by their USDC pools, and the stock instruments of OKX and Bybit."
  - name: "webhooks"
    description: "Destinations that receive a signed event when new filings, statements, insider forms or macro releases arrive."
paths:
  "/company/facts":
    get:
      operationId: "getCompanyFacts"
      tags:
        - "company"
      summary: "Read a company profile"
      description: "The current SEC profile of a company, found by ticker or CIK, with every ticker it has been listed under."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
      responses:
        "200":
          description: "Read a company profile: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CompanyFactsResponse"
              example:
                company_facts:
                  ticker: "AAPL"
                  name: "Apple Inc."
                  cik: "0000320193"
                  industry: "Electronic Computers"
                  sector: "Technology"
                  exchange: "Nasdaq"
                  is_active: true
                  location: "CUPERTINO, CA"
                  sec_filings_url: "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193"
                  sic_code: "3571"
                  sic_industry: "Electronic Computers"
                  sic_sector: "Manufacturing"
                  entity_type: "operating"
                  category: "Large accelerated filer"
                  fiscal_year_end: "0925"
                  state_of_incorporation: "CA"
                  ein: "942404110"
                  lei: null
                  website_url: null
                  investor_website_url: null
                  phone: "(408) 996-1010"
                  addresses:
                    business:
                      city: "CUPERTINO"
                      stateOrCountry: "CA"
                  former_names:
                    - name: "APPLE COMPUTER INC"
                      from: "1994-01-26T00:00:00.000Z"
                      to: "2007-01-04T00:00:00.000Z"
                  tickers:
                    - ticker: "AAPL"
                      exchange: "Nasdaq"
                      first_seen: "2026-11-25"
                      last_seen: "2026-11-25"
                  profile_updated_at: "2026-11-25 10:40:00.000"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/company/facts/tickers":
    get:
      operationId: "listCompanyFactsTickers"
      tags:
        - "company"
      summary: "List tickers with company profiles"
      description: "Sorted ticker symbols available for GET /company/facts."
      parameters: []
      responses:
        "200":
          description: "List tickers with company profiles: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CompanyFactsTickersResponse"
              example:
                resource: "company_facts"
                tickers:
                  - "AAPL"
                  - "MSFT"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/company/facts/ciks":
    get:
      operationId: "listCompanyFactsCiks"
      tags:
        - "company"
      summary: "List CIKs with company profiles"
      description: "Sorted ten-digit zero-padded CIK codes of operating and listed SEC filers available for GET /company/facts."
      parameters: []
      responses:
        "200":
          description: "List CIKs with company profiles: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CompanyFactsCiksResponse"
              example:
                resource: "company_facts"
                ciks:
                  - "0000320193"
                  - "0000789019"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings":
    get:
      operationId: "listFilings"
      tags:
        - "filings"
      summary: "List a company's filings"
      description: "SEC filings of one company, newest first. limit counts across pages; each page holds at most 100 filings and links the next one in next_page_url."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/FilingType"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List a company's filings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingsResponse"
              example:
                filings:
                  - cik: 320193
                    accession_number: "0000320193-26-000105"
                    filing_type: "10-K"
                    report_date: "2026-09-26"
                    filing_date: "2026-10-31"
                    ticker: "AAPL"
                    url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/aapl-20260926.htm"
                    accepted_at: "2026-10-31T06:01:05Z"
                    act: "34"
                    file_number: "001-36743"
                    film_number: "261234567"
                    items: []
                    size_bytes: 9876543
                    is_xbrl: true
                    is_inline_xbrl: true
                    primary_document: "aapl-20260926.htm"
                    primary_document_description: "10-K"
                    index_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/tickers":
    get:
      operationId: "listFilingsTickers"
      tags:
        - "filings"
      summary: "List tickers with SEC filings"
      description: "Sorted ticker symbols available for GET /filings."
      parameters: []
      responses:
        "200":
          description: "List tickers with SEC filings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingsTickersResponse"
              example:
                resource: "filings"
                tickers:
                  - "AAPL"
                  - "MSFT"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/ciks":
    get:
      operationId: "listFilingsCiks"
      tags:
        - "filings"
      summary: "List CIKs with SEC filings"
      description: "Sorted ten-digit zero-padded CIK codes of operating and listed SEC filers available for GET /filings."
      parameters: []
      responses:
        "200":
          description: "List CIKs with SEC filings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingsCiksResponse"
              example:
                resource: "filings"
                ciks:
                  - "0000320193"
                  - "0000789019"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/types":
    get:
      operationId: "listFilingTypes"
      tags:
        - "filings"
      summary: "List SEC filing types"
      description: "Sorted list of SEC form types held by GET /filings, such as 10-K, 10-Q and 8-K."
      parameters: []
      responses:
        "200":
          description: "List SEC filing types: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingTypesResponse"
              example:
                filing_types:
                  - "10-K"
                  - "10-Q"
                  - "8-K"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/items":
    get:
      operationId: "getFilingItems"
      tags:
        - "filings"
      summary: "Read a filing's items"
      description: "The text of each item of one 10-K, 10-Q or 8-K, such as Item 1A Risk Factors or Item 2.02 Results of Operations. A 10-K and a 10-Q are found by fiscal year and quarter, an 8-K by its accession number. Darvas reads every new filing as EDGAR lists it; an older one is read when a request asks for it, and the request waits up to 8 seconds before answering 202 with a result_url to poll."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ItemsFilingType"
        - $ref: "#/components/parameters/ItemsYear"
        - $ref: "#/components/parameters/ItemsQuarter"
        - $ref: "#/components/parameters/Item"
        - $ref: "#/components/parameters/ItemsAccessionNumber"
        - $ref: "#/components/parameters/IncludeExhibits"
      responses:
        "200":
          description: "The filing's items."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingItemsResponse"
              example:
                resource: "filing-items"
                ticker: "AAPL"
                cik: 320193
                filing_type: "8-K"
                accession_number: "0000320193-26-000024"
                year: 2026
                quarter: null
                filing_date: "2026-10-30"
                report_period: "2026-10-30"
                filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm"
                items:
                  - number: "Item-2.02"
                    name: "Results of Operations and Financial Condition"
                    text: "On October 30, 2026, Apple Inc. issued a press release regarding its financial results."
                    exhibits:
                      - number: "99.1"
                        description: "EX-99.1"
                        url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991q4202609262026.htm"
                        text: "Apple reports fourth quarter results"
        "202":
          description: "Darvas is still reading the filing."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
            Retry-After:
              $ref: "#/components/headers/RetryAfter"
            Location:
              description: "The result_url of the answer."
              schema:
                type: "string"
                format: "uri"
                maxLength: 200
              example: "https://api.darvas.app/v1/filings/items/requests/6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingItemsAccepted"
              example:
                status: "processing"
                request_id: "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
                accession_number: "0000320193-26-000024"
                estimated_ready_at: "2026-11-25T18:30:45.000Z"
                result_url: "https://api.darvas.app/v1/filings/items/requests/6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
                message: "Darvas is reading this filing from SEC EDGAR. Poll result_url after Retry-After seconds, or send this request again."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/items/requests/{request_id}":
    get:
      operationId: "getFilingItemsRequest"
      tags:
        - "filings"
      summary: "Read a filing items request"
      description: "The result of a /filings/items request that answered 202: processing while Darvas reads the filing, the items once it has, or failed when SEC EDGAR did not serve it. A failed request is tried again by sending the first request again."
      parameters:
        - $ref: "#/components/parameters/RequestId"
      responses:
        "200":
          description: "The request's status, or the filing's items."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
            Retry-After:
              $ref: "#/components/headers/RetryAfter"
          content:
            "application/json":
              schema:
                description: "Processing, the items, or failed."
                oneOf:
                  - $ref: "#/components/schemas/FilingItemsRequestProcessing"
                  - $ref: "#/components/schemas/FilingItemsResponse"
                  - $ref: "#/components/schemas/FilingItemsRequestFailed"
              example:
                status: "processing"
                request_id: "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
                accession_number: "0000320193-26-000024"
                estimated_ready_at: "2026-11-25T18:30:45.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/items/types":
    get:
      operationId: "listFilingItemTypes"
      tags:
        - "filings"
      summary: "List filing item types"
      description: "The items each form can have, with their titles. A 10-K item names its number, a 10-Q item its part too, an 8-K item its number with two decimals."
      parameters:
        - $ref: "#/components/parameters/ItemTypesFilingType"
      responses:
        "200":
          description: "Each form's items."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingItemTypesResponse"
              example:
                "10-K":
                  - name: "Item-1A"
                    title: "Risk Factors"
                    description: "The material risks to the company and its securities."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/earnings":
    get:
      operationId: "listEarnings"
      tags:
        - "earnings"
      summary: "List earnings"
      description: "With a ticker or cik, each filing that reports one of the company's newest periods: the 8-K earnings release first, then the 10-Q or 10-K, sorted by report period, newest first, and filing date. limit counts periods across pages; each page holds up to 10 filings. Without either, the newest earnings filings of every company, each period once with its most complete filing, newest first."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/EarningsLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List earnings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/EarningsResponse"
              example:
                earnings:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-Q4"
                    currency: "USD"
                    source_type: "8-K"
                    filing_date: "2026-10-30"
                    filing_datetime: "2026-10-30T16:30:21-04:00"
                    filing_window: "AFTER_HOURS"
                    signals:
                      - type: "REVENUE_INCREASE"
                        importance: "MEDIUM"
                        metric: "revenue"
                        period: "2026-Q4"
                        headline: "Revenue up 11.7% year over year"
                        details:
                          current: 114477000000
                          yoy_chg: 0.117229
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm"
                    accession_number: "0000320193-26-000024"
                    quarterly:
                      revenue: 114477000000
                      earnings_per_share: 2.11
                      earnings_per_share_diluted: 2.1
                      gross_profit: null
                      operating_income: null
                      net_income: 30711000000
                      weighted_average_shares: null
                      weighted_average_shares_diluted: null
                      cash_and_equivalents: null
                      change_in_cash_and_equivalents: null
                      total_debt: null
                      total_assets: null
                      total_liabilities: null
                      shareholders_equity: null
                      net_cash_flow_from_operations: null
                      net_cash_flow_from_investing: null
                      net_cash_flow_from_financing: null
                      capital_expenditure: null
                      free_cash_flow: null
                      revenue_chg: 0.217374
                      revenue_yoy_chg: 0.117229
                      gross_margin: 0.478856
                      gross_margin_yoy_chg_bps: 113.2
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/earnings/tickers":
    get:
      operationId: "listEarningsTickers"
      tags:
        - "earnings"
      summary: "List earnings tickers"
      description: "The tickers of companies with earnings filed in the last two years."
      parameters: []
      responses:
        "200":
          description: "List earnings tickers: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/EarningsTickersResponse"
              example:
                resource: "earnings"
                tickers:
                  - "AAPL"
                  - "MSFT"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/kpi/metrics":
    get:
      operationId: "listKpiMetrics"
      tags:
        - "earnings"
      summary: "List KPI metrics"
      description: "Sector KPIs a company reports in its earnings releases, such as load factor, CET1 ratio, net interest margin, same-store sales or FFO per share, newest release first. Darvas reads them by rules from the press release furnished with each 8-K under Item 2.02, and keeps a release's values when its earnings figures agree with the company's XBRL. limit counts releases across pages; each page holds up to 10 records."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/MetricName"
        - $ref: "#/components/parameters/KpiPeriod"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/KpiLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List KPI metrics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/KpiMetricsResponse"
              example:
                kpi_metrics:
                  - ticker: "ASB"
                    metric_name: "cet1_ratio"
                    value: 10.47
                    unit: "%"
                    period: "Q2 2026"
                    period_type: "quarterly"
                    sector: "banks"
                    source_text: "Capital The Company’s capital position remains strong, with a CET1 capital ratio of 10.47% at June 30, 2026."
                    source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/kpi/metrics/tickers":
    get:
      operationId: "listKpiTickers"
      tags:
        - "earnings"
      summary: "List KPI tickers"
      description: "The tickers of companies with KPIs."
      parameters: []
      responses:
        "200":
          description: "List KPI tickers: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/KpiTickersResponse"
              example:
                resource: "kpi_metrics"
                tickers:
                  - "ASB"
                  - "DAL"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/kpi/metrics/sectors":
    get:
      operationId: "listKpiSectors"
      tags:
        - "earnings"
      summary: "List KPI sectors"
      description: "The sectors KPIs are listed under."
      parameters: []
      responses:
        "200":
          description: "List KPI sectors: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/KpiSectorsResponse"
              example:
                resource: "kpi_metrics"
                sectors:
                  - "airlines"
                  - "banks"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/kpi/guidance":
    get:
      operationId: "listKpiGuidance"
      tags:
        - "earnings"
      summary: "List forward guidance"
      description: "The guidance a company gives in its earnings releases: ranges, point estimates and revisions, for the period they name, newest release first. Darvas reads them by rules from the press release furnished with each 8-K under Item 2.02, and keeps a release's values when its earnings figures agree with the company's XBRL. limit counts releases across pages; each page holds up to 10 records."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/MetricName"
        - $ref: "#/components/parameters/KpiPeriod"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/KpiLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List forward guidance: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/KpiGuidanceResponse"
              example:
                kpi_guidance:
                  - ticker: "NVDA"
                    metric_name: "revenue"
                    value: 108000000000
                    unit: "dollars"
                    period: "Q3 2027"
                    period_type: "quarterly"
                    low: 105840000000
                    high: 110160000000
                    raw_text: "Revenue is expected to be $108.0 billion, plus or minus 2%."
                    source_text: "Revenue is expected to be $108.0 billion, plus or minus 2%."
                    source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/kpi/non-gaap":
    get:
      operationId: "listKpiNonGaap"
      tags:
        - "earnings"
      summary: "List non-GAAP metrics"
      description: "The non-GAAP metrics of a company's earnings release reconciliations, with the GAAP line each starts from and the adjustments between, newest release first. Darvas reads them by rules from the press release furnished with each 8-K under Item 2.02, and keeps a release's values when its earnings figures agree with the company's XBRL. limit counts releases across pages; each page holds up to 10 records."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/MetricName"
        - $ref: "#/components/parameters/KpiPeriod"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/KpiLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List non-GAAP metrics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/KpiNonGaapResponse"
              example:
                kpi_non_gaap:
                  - ticker: "HLT"
                    metric_name: "adjusted_ebitda"
                    value: 1054000000
                    unit: "dollars"
                    period: "Q2 2026"
                    period_type: "quarterly"
                    gaap_equivalent: "Net income"
                    key_adjustments: "Interest expense; Income tax expense; Depreciation and amortization expenses"
                    source_text: "Adjusted EBITDA: 1054"
                    source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/news":
    get:
      operationId: "listNews"
      tags:
        - "news"
      summary: "List news"
      description: "With a ticker or cik, the company's 8-K filings, newest first, titled by the press release they furnish when Darvas has read it and by their items otherwise. Without either, the newest press releases of the Federal Reserve Board, the SEC, the Bureau of Economic Analysis and the Bureau of Labor Statistics. When more items remain, next_page_url links the next page."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/NewsLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List news: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/NewsResponse"
              example:
                news:
                  - ticker: "AAPL"
                    title: "Apple reports fourth quarter results"
                    source: "sec.gov"
                    date: "2026-10-30"
                    url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991.htm"
                    published_at: "2026-10-30T20:30:21Z"
                    accession_number: "0000320193-26-000024"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/search":
    post:
      operationId: "searchDocuments"
      tags:
        - "filings"
      summary: "Search filings"
      description: "The passages of 10-K, 10-Q and 8-K items and 8-K press releases that answer a question, one result per filing, best first, each passage with a link that opens the filing at it. The search matches the question's words, not their meaning. Without a company, the last two years are searched. A company named in the filters whose filings Darvas has not read yet has its newest 10-K and 10-Q read, and warnings says so."
      requestBody:
        required: true
        description: "The question and the filings to search."
        content:
          "application/json":
            schema:
              $ref: "#/components/schemas/SearchRequest"
            example:
              query: "What supply chain risks does Apple face?"
              filters:
                identifiers:
                  ticker:
                    - "AAPL"
              limit: 3
      responses:
        "200":
          description: "The filings that answer, best first."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/SearchResponse"
              example:
                search_id: "3120038d-9620-4b43-9412-a01b4a99d2a3"
                results:
                  - title: "Apple Inc. · 10-K 2025-10-31"
                    url: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm"
                    date: "2025-10-31"
                    source: "sec.gov"
                    excerpts:
                      - text: "The Company depends on component suppliers in its supply chain."
                        citation:
                          document: "0000320193-25-000079"
                          date: "2025-10-31"
                          section: "Item 1A. Risk Factors"
                          link: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company%20depends%20on%20component%20suppliers"
                        attributes:
                          kind: "text"
                    entities:
                      - name: "Apple Inc."
                        identifiers:
                          cik: "0000320193"
                          ticker: "AAPL"
                    attributes:
                      document_type: "10-K"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/tokenized-stocks/prices/snapshot":
    get:
      operationId: "getTokenizedStockSnapshot"
      tags:
        - "tokenized-stocks"
      summary: "Read a tokenized stock price"
      description: "The latest price of one instrument that tracks a US stock, the stock's own price and the gap between the two. ticker may be the instrument in any case (NVDAx is Bybit's NVDAX), its pair (NVDAXUSDT, NVDA-USDT), a Base address, or the stock itself (NVDA), which picks OKX, then Bybit, then Base unless venue names one; resolved_from then echoes what was sent. OKX's stock perpetual swaps, such as NVDA-USDT-SWAP, are priced by their last one-minute close, Bybit's xStocks tokens, such as NVDAX, by their last trade; both trade at any hour, and the stock's price is /prices/snapshot's. A Coinbase stock token on Base, such as NVDAc, is priced from its USDC pool on Aerodrome or Uniswap v3 that holds the most USDC, with its last trade and pool, and its stock's price is the token's published net asset value per share, which pauses outside market hours."
      parameters:
        - $ref: "#/components/parameters/TokenTicker"
        - $ref: "#/components/parameters/TokenVenue"
      responses:
        "200":
          description: "Read a tokenized stock price: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/TokenizedStockSnapshotResponse"
              example:
                snapshot:
                  ticker: "NVDAc"
                  venue: "base"
                  market_type: "token"
                  instrument: "0xb20000000000000000000078ee7ce2fe4908108c"
                  chain: "base"
                  address: "0xb20000000000000000000078ee7ce2fe4908108c"
                  name: "NVIDIA"
                  isin: "US67066G1040"
                  price: 148.62
                  time: "2026-11-26T09:41:13Z"
                  time_milliseconds: 1795686073000
                  last_trade:
                    price: 148.7
                    size_usd: 1250.5
                    side: "buy"
                    transaction: "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
                  pool:
                    address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
                    venue: "aerodrome"
                    usdc: 557129.41
                    fee_percent: 0.1122
                  shares_per_token: 1.0005379395763694
                  price_per_share: 148.54
                  stock:
                    ticker: "NVDA"
                    price: 149.11517182
                    time: "2026-11-25T21:00:00.000Z"
                    source: "nav"
                  gap_percent: -0.3856
                  observed_at: "2026-11-26T09:42:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/tokenized-stocks":
    get:
      operationId: "listTokenizedStocks"
      tags:
        - "tokenized-stocks"
      summary: "List tokenized stocks"
      description: "OKX's stock perpetual swaps and Bybit's xStocks tokens as each exchange lists them, and the Coinbase stock tokens on Base with a price in the last day, by ticker, with the shares each token stands for. They cover US stocks and ETFs only; crypto pairs are under /crypto."
      parameters: []
      responses:
        "200":
          description: "List tokenized stocks: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/TokenizedStocksResponse"
              example:
                resource: "tokenized_stocks"
                tokens:
                  - ticker: "NVDAX"
                    venue: "bybit"
                    market_type: "spot"
                    instrument: "NVDAXUSDT"
                    stock: "NVDA"
                    shares_per_token: 1.0017
                    chain: null
                    address: null
                    name: null
                    isin: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/gpu-prices":
    get:
      operationId: "listGpuPrices"
      tags:
        - "macro"
      summary: "List GPU rental prices"
      description: "One GPU model's daily price of a GPU hour, newest first, in US dollars, with the spread of its offers, the spot price of the same reading and the 1, 7 and 30 day changes. Each day's value is the median of its newest hourly reading of cloud on-demand list prices across sizes and regions, Windows and low priority prices left out. series is a model id, h100, h200, gb200, a100 or mi300x, in any case, or a name with one such as NVIDIA H100, H100-SXM or h100_80gb; resolved_from then echoes what was sent. Without dates, the last 90 days; each page holds up to 10 days."
      parameters:
        - $ref: "#/components/parameters/GpuSeriesRequired"
        - $ref: "#/components/parameters/StartDate"
        - $ref: "#/components/parameters/EndDate"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List GPU rental prices: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/GpuPricesResponse"
              example:
                series: "h100"
                gpu_prices:
                  - series: "h100"
                    title: "NVIDIA H100 rental price"
                    units: "USD per GPU hour"
                    frequency: "daily"
                    source: "darvas_gpu_index"
                    date: "2026-11-26"
                    value: 10.365
                    stability_band: 0.385
                    min: 6.98
                    p25: 8.725
                    p75: 14.3793
                    max: 23.326
                    offer_count: 101
                    region_count: 34
                    spot:
                      value: 2.4526
                      min: 1.4183
                      max: 5.4606
                      offer_count: 97
                    change_1d: -0.02
                    change_1d_pct: -0.19
                    change_7d_pct: null
                    change_30d_pct: null
                    as_of: "2026-11-26T10:00:00Z"
                attribution: "Darvas GPU index."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/gpu-prices/snapshot":
    get:
      operationId: "getGpuPricesSnapshot"
      tags:
        - "macro"
      summary: "Read GPU rental prices"
      description: "Each GPU model's newest day, or one model's with series, refreshed hourly, with its title and units, its offers' spread, its spot price and its changes. series takes a model as /macro/gpu-prices does."
      parameters:
        - $ref: "#/components/parameters/GpuSeriesOptional"
      responses:
        "200":
          description: "Read GPU rental prices: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/GpuPricesSnapshotResponse"
              example:
                gpu_prices:
                  - series: "h100"
                    title: "NVIDIA H100 rental price"
                    units: "USD per GPU hour"
                    frequency: "daily"
                    source: "darvas_gpu_index"
                    date: "2026-11-26"
                    value: 10.365
                    stability_band: 0.385
                    min: 6.98
                    p25: 8.725
                    p75: 14.3793
                    max: 23.326
                    offer_count: 101
                    region_count: 34
                    spot:
                      value: 2.4526
                      min: 1.4183
                      max: 5.4606
                      offer_count: 97
                    change_1d: -0.02
                    change_1d_pct: -0.19
                    change_7d_pct: null
                    change_30d_pct: null
                    as_of: "2026-11-26T10:00:00Z"
                attribution: "Darvas GPU index."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/gpu-prices/series":
    get:
      operationId: "listGpuPriceSeries"
      tags:
        - "macro"
      summary: "List GPU price series"
      description: "The GPU models priced, h100, h200, gb200, a100, mi300x, with their title, units, frequency and first day."
      parameters: []
      responses:
        "200":
          description: "List GPU price series: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/GpuPricesSeriesResponse"
              example:
                resource: "gpu_prices"
                series:
                  - series_id: "h100"
                    title: "NVIDIA H100 rental price"
                    units: "USD per GPU hour"
                    frequency: "daily"
                    first_date: "2026-11-26"
                attribution: "Darvas GPU index."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/webhooks":
    get:
      operationId: "listWebhooks"
      tags:
        - "webhooks"
      summary: "List webhook destinations"
      description: "The destinations of the API key's account, newest first, without their secrets."
      responses:
        "200":
          description: "The account's destinations."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/WebhooksResponse"
              example:
                webhooks:
                  - id: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
                    url: "https://hooks.example.com/darvas"
                    events:
                      - "earnings.created"
                      - "income_statements.created"
                    active: true
                    consecutive_failures: 0
                    created_at: "2026-11-26T10:00:00.000Z"
                    disabled_at: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
    post:
      operationId: "createWebhook"
      tags:
        - "webhooks"
      summary: "Create a webhook destination"
      description: "An HTTPS URL that receives the chosen event types, each delivery a POST of the event signed in Darvas-Signature. The answer carries the signing secret, shown this once. The account's plan sets how many destinations can be active: none in the trial, 10 in Developer and 50 in Business; the URL must reach a public address."
      requestBody:
        required: true
        description: "The destination's URL and event types."
        content:
          "application/json":
            schema:
              $ref: "#/components/schemas/WebhookCreate"
            example:
              url: "https://hooks.example.com/darvas"
              events:
                - "earnings.created"
                - "income_statements.created"
      responses:
        "201":
          description: "The new destination with its secret."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/WebhookCreatedResponse"
              example:
                webhook:
                  id: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
                  url: "https://hooks.example.com/darvas"
                  events:
                    - "earnings.created"
                    - "income_statements.created"
                  active: true
                  consecutive_failures: 0
                  created_at: "2026-11-26T10:00:00.000Z"
                  disabled_at: null
                secret: "whsec_4hY2k9vQ8mTzR1pL0sN3xW6bC7dE5fG8hJ2kL4mN6pQ"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/webhooks/{webhook_id}":
    delete:
      operationId: "deleteWebhook"
      tags:
        - "webhooks"
      summary: "Delete a webhook destination"
      description: "Removes the destination and the deliveries still waiting for it."
      parameters:
        - $ref: "#/components/parameters/WebhookId"
      responses:
        "200":
          description: "The destination is gone."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/WebhookDeletedResponse"
              example:
                id: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
                deleted: true
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/webhooks/{webhook_id}/test":
    post:
      operationId: "testWebhook"
      tags:
        - "webhooks"
      summary: "Send a test webhook event"
      description: "Queues a test event of the destination's first event type, with livemode false, delivered within a minute. A destination gets one test event a minute."
      parameters:
        - $ref: "#/components/parameters/WebhookId"
      responses:
        "202":
          description: "The test event is queued."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/WebhookTestResponse"
              example:
                id: "evt_test_9c1f2e3d4b5a69788796a5b4c3d2e1f0"
                type: "earnings.created"
                livemode: false
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/events":
    get:
      operationId: "listFilingEvents"
      tags:
        - "filings"
      summary: "List 8-K events"
      description: "Every 8-K and 8-K/A with the events its items report, such as executive_change (Item 5.02), acquisition_or_disposition (2.01), bankruptcy (1.03) or auditor_change (4.01), newest first. SEC numbers the items since August 2004. Without ticker, cik or dates, the last 30 days of every company; type keeps the filings that report one of the types named. A page holds up to 100 filings."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/EventType"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/EventLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List 8-K events: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingEventsResponse"
              example:
                events:
                  - ticker: "AAPL"
                    cik: 320193
                    accession_number: "0000320193-26-000200"
                    form_type: "8-K"
                    filing_date: "2026-11-25"
                    accepted_at: "2026-11-25T21:05:00Z"
                    events:
                      - "executive_change"
                      - "financial_exhibits"
                    items:
                      - "5.02"
                      - "9.01"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000200/0000320193-26-000200-index.htm"
                    items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000200"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/events/types":
    get:
      operationId: "listFilingEventTypes"
      tags:
        - "filings"
      summary: "List 8-K event types"
      description: "The event types of /filings/events, each with its 8-K item and what the item reports."
      parameters: []
      responses:
        "200":
          description: "List 8-K event types: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingEventTypesResponse"
              example:
                event_types:
                  - type: "executive_change"
                    item: "5.02"
                    description: "Departure or appointment of directors and officers"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/fails-to-deliver":
    get:
      operationId: "listFailsToDeliver"
      tags:
        - "markets"
      summary: "List fails to deliver"
      description: "Shares that failed to settle, by settlement day, with the closing price of the day before, from the files SEC publishes twice a month, the latest about two weeks after its days. With ticker, the security's days newest first; with settlement_date alone, that day's securities by the value of their fails, largest first. Since 16 September 2008 SEC lists every security with a balance of fails on a day, so a day missing from the answer had none. Fails are not necessarily short sales."
      parameters:
        - $ref: "#/components/parameters/FtdTicker"
        - $ref: "#/components/parameters/SettlementDate"
        - $ref: "#/components/parameters/SettlementDateGte"
        - $ref: "#/components/parameters/SettlementDateLte"
        - $ref: "#/components/parameters/SettlementDateGt"
        - $ref: "#/components/parameters/SettlementDateLt"
        - $ref: "#/components/parameters/FtdLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List fails to deliver: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FailsToDeliverResponse"
              example:
                fails_to_deliver:
                  - ticker: "GME"
                    cusip: "36467W109"
                    description: "GAMESTOP CORP CL A"
                    settlement_date: "2026-10-15"
                    quantity: 120500
                    price: 20.5
                    value: 2470250
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/cot":
    get:
      operationId: "listCot"
      tags:
        - "markets"
      summary: "List Commitments of Traders"
      description: "One futures market's weekly positions by trader group, newest week first, from the CFTC's futures-only Commitments of Traders: legacy (noncommercial, commercial, non_reportables) since 1986, disaggregated (producer_merchant, swap_dealers, managed_money, other_reportables, non_reportables) and tff (dealer, asset_manager, leveraged_funds, other_reportables, non_reportables) since 2006. Accepts 6-character CFTC codes or common futures aliases (ES, NQ, GC, CL, BTC, 6E, ZN). Includes open interest shares, trader counts, and top-4/top-8 concentration ratios."
      parameters:
        - $ref: "#/components/parameters/CotMarketCode"
        - $ref: "#/components/parameters/CotSymbol"
        - $ref: "#/components/parameters/CotReport"
        - $ref: "#/components/parameters/CotReportDate"
        - $ref: "#/components/parameters/CotReportDateGte"
        - $ref: "#/components/parameters/CotReportDateLte"
        - $ref: "#/components/parameters/CotReportDateGt"
        - $ref: "#/components/parameters/CotReportDateLt"
        - $ref: "#/components/parameters/CotLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List Commitments of Traders: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CotResponse"
              example:
                cot:
                  - report: "tff"
                    market_code: "133741"
                    market: "BITCOIN"
                    exchange: "CHICAGO MERCANTILE EXCHANGE"
                    commodity: "BITCOIN"
                    report_date: "2026-11-17"
                    open_interest: 19257
                    change_in_open_interest: -300
                    traders_total: 112
                    traders_reportable_long: 58
                    traders_reportable_short: 78
                    concentration:
                      top_4_gross_long_pct: 57.3
                      top_4_gross_short_pct: 33.8
                      top_8_gross_long_pct: 70.7
                      top_8_gross_short_pct: 49.6
                      top_4_net_long_pct: 54.7
                      top_4_net_short_pct: 30.9
                      top_8_net_long_pct: 64.3
                      top_8_net_short_pct: 43.4
                      max_top_4_net_pct: 54.7
                      crowding_flag: true
                    groups:
                      leveraged_funds:
                        long: 6264
                        short: 9875
                        spread: 412
                        net: -3611
                        change_long: 120
                        change_short: -85
                        change_spread: 10
                        pct_of_oi_long: 32.5
                        pct_of_oi_short: 51.3
                        pct_of_oi_spread: 2.1
                        net_pct_of_oi: -18.75
                        traders_long: 31
                        traders_short: 36
                        traders_spread: 15
                next_expected_release_day: "Friday 15:30 ET"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/cot/markets":
    get:
      operationId: "listCotMarkets"
      tags:
        - "markets"
      summary: "List Commitments of Traders markets"
      description: "Active (by default, last 90 days) or all CFTC futures markets with their latest official market name, exchange, commodity, macro asset class, supported reports, and date span. Supports substring and futures-symbol alias search."
      parameters:
        - $ref: "#/components/parameters/CotSearch"
        - $ref: "#/components/parameters/CotActiveOnly"
        - $ref: "#/components/parameters/CotReport"
        - $ref: "#/components/parameters/CotAssetClass"
        - $ref: "#/components/parameters/CotMarketsLimit"
      responses:
        "200":
          description: "List Commitments of Traders markets: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CotMarketsResponse"
              example:
                active_only: true
                count: 1
                total_markets: 1
                markets:
                  - market_code: "133741"
                    market: "BITCOIN"
                    exchange: "CHICAGO MERCANTILE EXCHANGE"
                    commodity: "BITCOIN"
                    asset_class: "crypto"
                    reports:
                      - "legacy"
                      - "tff"
                    first_date: "2017-12-19"
                    last_date: "2026-11-17"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/cot/analytics":
    get:
      operationId: "getCotAnalytics"
      tags:
        - "markets"
      summary: "Compute COT positioning index, Z-scores, and extreme screener"
      description: "Single-market rolling COT analytics (when market_code or symbol is supplied) or cross-market extreme positioning screener (when omitted). Computes 52-week and 156-week COT Index (0 to 100), empirical percentiles, sample Z-scores, top-4/top-8 crowding flags, and hedger-vs-speculator extreme divergence flags."
      parameters:
        - $ref: "#/components/parameters/CotAnalyticsMarketCode"
        - $ref: "#/components/parameters/CotSymbol"
        - $ref: "#/components/parameters/CotReport"
        - $ref: "#/components/parameters/CotAnalyticsWeeks"
        - $ref: "#/components/parameters/CotAnalyticsGroup"
        - $ref: "#/components/parameters/CotAnalyticsLookback"
        - $ref: "#/components/parameters/CotAssetClass"
        - $ref: "#/components/parameters/CotSearch"
        - $ref: "#/components/parameters/CotMinIndex"
        - $ref: "#/components/parameters/CotMaxIndex"
        - $ref: "#/components/parameters/CotMinOpenInterest"
        - $ref: "#/components/parameters/CotExtremesOnly"
        - $ref: "#/components/parameters/CotDivergencesOnly"
        - $ref: "#/components/parameters/CotActiveOnly"
        - $ref: "#/components/parameters/CotAnalyticsSort"
        - $ref: "#/components/parameters/CotAnalyticsOrder"
        - $ref: "#/components/parameters/CotAnalyticsLimit"
      responses:
        "200":
          description: "Compute COT positioning index, Z-scores, and extreme screener: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CotAnalyticsResponse"
              example:
                mode: "market"
                report: "tff"
                market_code: "133741"
                latest:
                  report: "tff"
                  market_code: "133741"
                  market: "BITCOIN"
                  exchange: "CHICAGO MERCANTILE EXCHANGE"
                  commodity: "BITCOIN"
                  asset_class: "crypto"
                  report_date: "2026-11-17"
                  open_interest_contracts: 19257
                  change_open_interest_contracts: -300
                  traders_total_count: 112
                  traders_reportable_long_count: 58
                  traders_reportable_short_count: 78
                  concentration:
                    top_4_gross_long_pct: 57.3
                    top_4_gross_short_pct: 33.8
                    top_8_gross_long_pct: 70.7
                    top_8_gross_short_pct: 49.6
                    top_4_net_long_pct: 54.7
                    top_4_net_short_pct: 30.9
                    top_8_net_long_pct: 64.3
                    top_8_net_short_pct: 43.4
                    max_top_4_net_pct: 54.7
                    crowding_flag: true
                  divergence:
                    hedger_group: "asset_manager"
                    speculator_group: "leveraged_funds"
                    hedger_state: "extreme_long"
                    speculator_state: "extreme_short"
                    extreme_divergence: true
                    divergence_direction: "hedger_bullish_speculator_bearish"
                    divergence_z_spread: 3.15
                  groups:
                    leveraged_funds:
                      long_contracts: 6264
                      short_contracts: 9875
                      spread_contracts: 412
                      net_contracts: -3611
                      change_long_contracts: 120
                      change_short_contracts: -85
                      change_spread_contracts: 10
                      change_net_contracts: 205
                      long_pct_of_oi: 32.5
                      short_pct_of_oi: 51.3
                      spread_pct_of_oi: 2.1
                      net_pct_of_oi: -18.75
                      traders_long_count: 31
                      traders_short_count: 36
                      traders_spread_count: 15
                      cot_index_52w: 18.4
                      cot_index_156w: 22.1
                      percentile_52w_pct: 15.38
                      percentile_156w_pct: 19.23
                      z_score_52w: -1.62
                      z_score_156w: -1.34
                      positioning_state: "extreme_short"
                  history_weeks_available: 156
                history:
                  - report: "tff"
                    market_code: "133741"
                    market: "BITCOIN"
                    exchange: "CHICAGO MERCANTILE EXCHANGE"
                    commodity: "BITCOIN"
                    asset_class: "crypto"
                    report_date: "2026-11-17"
                    open_interest_contracts: 19257
                    change_open_interest_contracts: -300
                    traders_total_count: 112
                    traders_reportable_long_count: 58
                    traders_reportable_short_count: 78
                    concentration:
                      top_4_gross_long_pct: 57.3
                      top_4_gross_short_pct: 33.8
                      top_8_gross_long_pct: 70.7
                      top_8_gross_short_pct: 49.6
                      top_4_net_long_pct: 54.7
                      top_4_net_short_pct: 30.9
                      top_8_net_long_pct: 64.3
                      top_8_net_short_pct: 43.4
                      max_top_4_net_pct: 54.7
                      crowding_flag: true
                    divergence:
                      hedger_group: "asset_manager"
                      speculator_group: "leveraged_funds"
                      hedger_state: "extreme_long"
                      speculator_state: "extreme_short"
                      extreme_divergence: true
                      divergence_direction: "hedger_bullish_speculator_bearish"
                      divergence_z_spread: 3.15
                    groups:
                      leveraged_funds:
                        long_contracts: 6264
                        short_contracts: 9875
                        spread_contracts: 412
                        net_contracts: -3611
                        change_long_contracts: 120
                        change_short_contracts: -85
                        change_spread_contracts: 10
                        change_net_contracts: 205
                        long_pct_of_oi: 32.5
                        short_pct_of_oi: 51.3
                        spread_pct_of_oi: 2.1
                        net_pct_of_oi: -18.75
                        traders_long_count: 31
                        traders_short_count: 36
                        traders_spread_count: 15
                        cot_index_52w: 18.4
                        cot_index_156w: 22.1
                        percentile_52w_pct: 15.38
                        percentile_156w_pct: 19.23
                        z_score_52w: -1.62
                        z_score_156w: -1.34
                        positioning_state: "extreme_short"
                    history_weeks_available: 156
                count: 1
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prices":
    get:
      operationId: "listPrices"
      tags:
        - "markets"
      summary: "List stock prices"
      description: "One US stock's bars between two days: daily sessions unless interval names weeks, months or years, 100 to a page unless limit asks for up to 1000. Without start_date the newest bar comes first, so the first page holds the latest sessions; with start_date the oldest comes first. order sets either explicitly, and the answer names the one it used. Bars are adjusted for splits; adjusted_close is also adjusted for dividends. Prices are in US dollars. A week, month or year bar opens at its first session and closes at its last, and its time is its first session. Each day's bar appears after its session closes."
      parameters:
        - $ref: "#/components/parameters/PriceTicker"
        - $ref: "#/components/parameters/PriceInterval"
        - $ref: "#/components/parameters/PriceStartDate"
        - $ref: "#/components/parameters/PriceEndDate"
        - $ref: "#/components/parameters/PriceOrder"
        - $ref: "#/components/parameters/PriceLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List stock prices: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PricesResponse"
              example:
                ticker: "AAPL"
                interval: "day"
                order: "desc"
                prices:
                  - open: 350.1
                    close: 354.07
                    high: 356
                    low: 349.2
                    volume: 48000000
                    adjusted_close: 353.8
                    time: "2026-11-24"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prices/snapshot":
    get:
      operationId: "getPriceSnapshot"
      tags:
        - "markets"
      summary: "Read a stock price"
      description: "One US stock's latest price in US dollars and its change since the previous session's close. In the session the price is read every half hour, so it is up to 30 minutes old, and price_source is session; otherwise it is the last close, timed at 16:00 New York time or 13:00 on an early close such as the day after Thanksgiving, and price_source is close."
      parameters:
        - $ref: "#/components/parameters/PriceTicker"
      responses:
        "200":
          description: "Read a stock price: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PriceSnapshotResponse"
              example:
                snapshot:
                  price: 355.58
                  ticker: "AAPL"
                  previous_close: 354.07
                  day_change: 1.51
                  day_change_percent: 0.4265
                  price_source: "session"
                  time: "2026-11-25T20:55:00Z"
                  time_milliseconds: 1795640100000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prices/snapshot/market":
    get:
      operationId: "getMarketSnapshot"
      tags:
        - "markets"
      summary: "Read every stock price"
      description: "The latest price of every US stock with a positive price and a bar in the last ten days, as /prices/snapshot gives each, or of the stocks tickers names. Pages hold 100 stocks unless limit asks for up to 1000, in sort order: by ticker unless sort names the biggest or smallest change or price first. Follow next_page_url for the rest; each page is one call and costs one credit."
      parameters:
        - $ref: "#/components/parameters/MarketTickers"
        - $ref: "#/components/parameters/MarketSort"
        - $ref: "#/components/parameters/MarketLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "Read every stock price: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/MarketSnapshotResponse"
              example:
                sort: "ticker"
                snapshots:
                  - price: 355.58
                    ticker: "AAPL"
                    previous_close: 354.07
                    day_change: 1.51
                    day_change_percent: 0.4265
                    price_source: "session"
                    time: "2026-11-25T20:55:00Z"
                    time_milliseconds: 1795640100000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prices/tickers":
    get:
      operationId: "listPriceTickers"
      tags:
        - "markets"
      summary: "List stocks with prices"
      description: "The tickers /prices answers: the Nasdaq, NYSE, Cboe and OTC stocks with daily bars."
      parameters: []
      responses:
        "200":
          description: "List stocks with prices: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PriceTickersResponse"
              example:
                tickers:
                  - "AAPL"
                  - "MSFT"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/dividends":
    get:
      operationId: "listDividends"
      tags:
        - "markets"
      summary: "List a stock's dividends"
      description: "One US stock's cash dividends per share between two days, oldest first, by ex-dividend date. amount is what one share received then; adjusted_amount divides it by every later split, so it compares with today's share. A stock's whole history fits in one answer, and a new dividend appears after its ex-dividend session closes. A stock that has paid none answers an empty list."
      parameters:
        - $ref: "#/components/parameters/PriceTicker"
        - $ref: "#/components/parameters/PriceStartDate"
        - $ref: "#/components/parameters/PriceEndDate"
      responses:
        "200":
          description: "List a stock's dividends: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DividendsResponse"
              example:
                ticker: "AAPL"
                dividends:
                  - ex_date: "2020-08-07"
                    amount: 0.82
                    adjusted_amount: 0.205
                    currency: "USD"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/splits":
    get:
      operationId: "listSplits"
      tags:
        - "markets"
      summary: "List a stock's splits"
      description: "One US stock's splits between two days, oldest first: from date on, a holder has numerator shares for every denominator held, so a reverse split has the smaller numerator. A new split appears after its first session closes. A stock that has never split answers an empty list."
      parameters:
        - $ref: "#/components/parameters/PriceTicker"
        - $ref: "#/components/parameters/PriceStartDate"
        - $ref: "#/components/parameters/PriceEndDate"
      responses:
        "200":
          description: "List a stock's splits: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/SplitsResponse"
              example:
                ticker: "AAPL"
                splits:
                  - date: "2020-08-31"
                    numerator: 4
                    denominator: 1
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prices/snapshot/tickers":
    get:
      operationId: "listPriceSnapshotTickers"
      tags:
        - "markets"
      summary: "List stocks with a snapshot"
      description: "The tickers /prices/snapshot answers; every stock with bars has a snapshot, its last close at least."
      parameters: []
      responses:
        "200":
          description: "List stocks with a snapshot: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PriceTickersResponse"
              example:
                tickers:
                  - "AAPL"
                  - "MSFT"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/economic-calendar":
    get:
      operationId: "listEconomicCalendar"
      tags:
        - "macro"
      summary: "List global economic calendar events"
      description: "Scheduled and released macroeconomic events, consensus forecasts, numeric values, prior readings, revisions, surprise z-scores, per-series surprise summaries, and optional RFC 5545 iCalendar export across major global economies and central bank calendars."
      parameters:
        - $ref: "#/components/parameters/CalStartDate"
        - $ref: "#/components/parameters/CalEndDate"
        - $ref: "#/components/parameters/CalFrom"
        - $ref: "#/components/parameters/CalTo"
        - $ref: "#/components/parameters/CalCountry"
        - $ref: "#/components/parameters/CalCurrencies"
        - $ref: "#/components/parameters/CalCurrency"
        - $ref: "#/components/parameters/CalImportance"
        - $ref: "#/components/parameters/CalImpact"
        - $ref: "#/components/parameters/CalEventName"
        - $ref: "#/components/parameters/CalSeriesKey"
        - $ref: "#/components/parameters/CalSearch"
        - $ref: "#/components/parameters/CalUpcomingOnly"
        - $ref: "#/components/parameters/CalUpdatedSince"
        - $ref: "#/components/parameters/CalFormat"
        - $ref: "#/components/parameters/CalLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List global economic calendar events: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/EconomicCalendarResponse"
              example:
                economic_calendar:
                  - id: "6f1c2a9e-1b2c-4d3e-8f4a-5b6c7d8e9f01"
                    series_key: "united-states/cpi-yoy"
                    event_name: "US CPI YoY"
                    canonical_event_name: "Consumer Price Index YoY"
                    currency: "USD"
                    country_code: 840
                    country_iso2: "US"
                    country_name: "United States"
                    importance: "high"
                    event_type: "indicator"
                    event_type_code: 1
                    time_mode: "exact"
                    time_mode_code: 0
                    status: "released"
                    release_at: "2026-11-13T13:30:00.000Z"
                    updated_at: "2026-11-13T13:31:00.000Z"
                    actual: "2.7%"
                    forecast: "2.6%"
                    previous: "2.6%"
                    old_previous: null
                    actual_numeric: 2.7
                    forecast_numeric: 2.6
                    previous_numeric: 2.6
                    old_previous_numeric: null
                    unit: "%"
                    surprise: 0.1
                    surprise_pct: 3.8462
                    surprise_z_score: 1.42
                    surprise_direction: "beat"
                count: 1
                has_more: false
                sources:
                  - id: "darvas_economic_calendar"
                    name: "Darvas Global Macroeconomic Release Schedule"
                    url: "https://api.darvas.app/v1/macro/economic-calendar"
                    coverage: "Central bank decisions, inflation, labor, GDP, trade, and Treasury releases across major global economies and central bank calendars"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/economic-calendar/countries":
    get:
      operationId: "listEconomicCalendarCountries"
      tags:
        - "macro"
      summary: "List economic calendar countries"
      description: "Every country code, ISO-2 code, country name, release count, and currency covered by the calendar."
      parameters: []
      responses:
        "200":
          description: "List economic calendar countries: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/EconomicCalendarCountriesResponse"
              example:
                countries:
                  - country_code: 840
                    country_iso2: "US"
                    country_name: "United States"
                    release_count: 1450
                    currencies:
                      - "USD"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/etf-flows":
    get:
      operationId: "listCryptoEtfFlows"
      tags:
        - "crypto"
      summary: "List spot crypto ETF flows"
      description: "Daily, weekly, or monthly institutional net inflows and outflows in USD millions for US spot BTC, ETH, and SOL ETFs, with issuer breakdowns, aggregate summaries, and optional start_date and end_date range filters."
      parameters:
        - $ref: "#/components/parameters/EtfAsset"
        - $ref: "#/components/parameters/EtfInterval"
        - $ref: "#/components/parameters/EtfDays"
        - $ref: "#/components/parameters/EtfStartDate"
        - $ref: "#/components/parameters/EtfEndDate"
        - $ref: "#/components/parameters/EtfIncludeProviders"
      responses:
        "200":
          description: "List spot crypto ETF flows: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoEtfFlowsResponse"
              example:
                unit: "USD millions"
                interval: "day"
                summaries:
                  - asset: "BTC"
                    latest_flow_date: "2026-11-27"
                    latest_total_flow_usd_m: 312.4
                    latest_pending: false
                    period_net_flow_usd_m: 1840.2
                    positive_days: 15
                    negative_days: 5
                etf_flows:
                  - asset: "BTC"
                    flow_date: "2026-11-27"
                    provider: "IBIT"
                    flow_usd_m: 245.1
                    is_total: false
                    is_pending: false
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/derivatives":
    get:
      operationId: "listCryptoDerivatives"
      tags:
        - "crypto"
      summary: "List crypto derivative positioning metrics"
      description: "Time series of perpetual open interest, stored contract open interest snapshots (oi-snapshots), futures-spot basis, long/short account ratios, top-trader positioning, taker buy/sell volume, and funding rates across OKX, Binance USDⓈ-M, Bybit linear, and Hyperliquid perpetuals. OKX serves all seven metrics; Binance serves oi-volume, long-short, top-trader, taker-volume, and funding-history; Bybit serves oi-volume, long-short, and funding-history; Hyperliquid serves funding-history. Unsupported exchange-metric pairs answer 400."
      parameters:
        - $ref: "#/components/parameters/DerivExchange"
        - $ref: "#/components/parameters/VenueTicker"
        - $ref: "#/components/parameters/DerivMetric"
        - $ref: "#/components/parameters/DerivPeriod"
        - $ref: "#/components/parameters/LookbackHours"
        - $ref: "#/components/parameters/IntelLimit"
      responses:
        "200":
          description: "List crypto derivative positioning metrics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoDerivativesResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                metric: "funding-history"
                period: "1H"
                points:
                  - time: "2026-11-28T12:00:00.000Z"
                    instId: "BTC-USDT-SWAP"
                    fundingRate: 0.00012
                    realizedRate: 0.00011
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/large-trades":
    get:
      operationId: "listCryptoLargeTrades"
      tags:
        - "crypto"
      summary: "List high-notional crypto executions"
      description: "High-notional aggressive executions filtered by minimum USD notional: OKX perpetual and futures fills summed per taker order, and single trades of OKX spot, Binance, Bybit and Hyperliquid markets quoted in USD, USDT or USDC (Binance and Bybit since 23 November 2026). Another quote answers 400."
      parameters:
        - $ref: "#/components/parameters/CryptoTradeExchange"
        - $ref: "#/components/parameters/VenueTicker"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/MinNotionalUsd"
        - $ref: "#/components/parameters/ShortLookbackHours"
        - $ref: "#/components/parameters/LargeTradeLimit"
      responses:
        "200":
          description: "List high-notional crypto executions: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoLargeTradesResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                min_notional_usd: 100000
                large_trades:
                  - id: "BTC-USDT-SWAP:123456:1795870000000"
                    ticker: "BTC-USDT-SWAP"
                    base_currency: "BTC"
                    side: "buy"
                    price: 97811.4
                    size_base: 5.2
                    notional_usd: 508619.28
                    time: "2026-11-28T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/liquidations":
    get:
      operationId: "listCryptoLiquidations"
      tags:
        - "crypto"
      summary: "List forced crypto liquidations"
      description: "Forced long and short liquidation fills for one perpetual futures contract or across the entire market when ticker is omitted, with optional exchange, side, and minimum USD notional filters."
      parameters:
        - $ref: "#/components/parameters/LiqExchange"
        - $ref: "#/components/parameters/DerivTicker"
        - $ref: "#/components/parameters/LiqSide"
        - $ref: "#/components/parameters/LiqMinNotionalUsd"
        - $ref: "#/components/parameters/ShortLookbackHours"
        - $ref: "#/components/parameters/IntelLimit"
      responses:
        "200":
          description: "List forced crypto liquidations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoLiquidationsResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                side: null
                min_notional_usd: null
                liquidations:
                  - ticker: "BTC-USDT-SWAP"
                    side: "short"
                    price: 97950
                    size_base: 1.85
                    notional_usd: 181207.5
                    source_quality: "okx_ws"
                    time: "2026-11-28T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/hyperliquid/markets":
    get:
      operationId: "listHyperliquidMarkets"
      tags:
        - "crypto"
      summary: "List live Hyperliquid perpetual markets"
      description: "Live perpetual contract directory from Hyperliquid with mark price, oracle price, hourly funding rate, USD open interest, and 24-hour notional volume."
      parameters:
        - $ref: "#/components/parameters/HlTicker"
        - $ref: "#/components/parameters/HlSort"
        - $ref: "#/components/parameters/IntelLimit200"
      responses:
        "200":
          description: "List live Hyperliquid perpetual markets: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/HyperliquidMarketsResponse"
              example:
                exchange: "hyperliquid"
                markets:
                  - ticker: "BTC"
                    mark_price: 97810.5
                    oracle_price: 97805.2
                    prev_day_price: 96500
                    day_change_pct: 1.36
                    funding_rate: 0.0000125
                    open_interest: 18420.5
                    open_interest_usd: 1801718315.25
                    volume_24h_usd: 4215000000
                    premium: 0.00005
                    max_leverage: 40
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prices/technicals":
    get:
      operationId: "getStockTechnicals"
      tags:
        - "company"
      summary: "Read stock technical indicators"
      description: "Server-computed SMA (20/50/200), EMA (12/26), RSI-14, MACD, 20-period Bollinger Bands, ATR-14, 52-week high/low distance, relative volume, and multi-horizon returns from stored split-adjusted bars."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/TechInterval"
      responses:
        "200":
          description: "Read stock technical indicators: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/StockTechnicalsResponse"
              example:
                ticker: "AAPL"
                interval: "day"
                technicals:
                  latest_date: "2026-11-27"
                  latest_close: 235.12
                  bars_analyzed: 280
                  sma_20: 229.4
                  sma_50: 222.8
                  sma_200: 205.6
                  ema_12: 232.1
                  ema_26: 228.5
                  rsi_14: 61.4
                  macd: 3.6
                  macd_signal: 2.9
                  macd_histogram: 0.7
                  bollinger_upper: 241.2
                  bollinger_middle: 229.4
                  bollinger_lower: 217.6
                  atr_14: 4.15
                  high_52w: 237.49
                  low_52w: 164.08
                  pct_from_52w_high: -1
                  avg_volume_20d: 44120300
                  relative_volume: 1.12
                  return_1d_pct: 0.85
                  return_1w_pct: 2.41
                  return_1m_pct: 5.12
                  return_3m_pct: 12.3
                  return_6m_pct: 19.4
                  return_1y_pct: 31.8
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/peer-comparison":
    get:
      operationId: "compareFinancialPeers"
      tags:
        - "financials"
      summary: "Compare financial peers and group medians"
      description: "Side-by-side trailing valuation multiples, profitability margins, growth rates, leverage, and latest share prices across 2 to 20 US tickers plus peer group medians."
      parameters:
        - $ref: "#/components/parameters/PeerTickers"
      responses:
        "200":
          description: "Compare financial peers and group medians: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PeerComparisonResponse"
              example:
                tickers:
                  - "AAPL"
                  - "MSFT"
                peers:
                  - ticker: "AAPL"
                    status: "ok"
                    price: 235.12
                    day_change_percent: 0.85
                    market_cap: 3560000000000
                    price_to_earnings_ratio: 31.4
                    gross_margin: 0.462
                    operating_margin: 0.318
                    return_on_equity: 1.45
                medians:
                  market_cap: 3300000000000
                  price_to_earnings_ratio: 31.4
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/company/dossier":
    get:
      operationId: "getCompanyDossier"
      tags:
        - "company"
      summary: "Read unified company dossier"
      description: "Single-call equity dossier uniting SEC company profile, latest share price, technical indicators, TTM valuation metrics, recent earnings, Form 4 insider trades, Form 13F institutional holders, and Form 8-K events."
      parameters:
        - $ref: "#/components/parameters/Ticker"
      responses:
        "200":
          description: "Read unified company dossier: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CompanyDossierResponse"
              example:
                ticker: "AAPL"
                dossier:
                  profile:
                    ticker: "AAPL"
                    name: "Apple Inc."
                  price:
                    price: 235.12
                  technicals:
                    latest_date: "2026-11-27"
                    latest_close: 235.12
                    bars_analyzed: 280
                    sma_20: 229.4
                    sma_50: 222.8
                    sma_200: 205.6
                    ema_12: 232.1
                    ema_26: 228.5
                    rsi_14: 61.4
                    macd: 3.6
                    macd_signal: 2.9
                    macd_histogram: 0.7
                    bollinger_upper: 241.2
                    bollinger_middle: 229.4
                    bollinger_lower: 217.6
                    atr_14: 4.15
                    high_52w: 237.49
                    low_52w: 164.08
                    pct_from_52w_high: -1
                    avg_volume_20d: 44120300
                    relative_volume: 1.12
                    return_1d_pct: 0.85
                    return_1w_pct: 2.41
                    return_1m_pct: 5.12
                    return_3m_pct: 12.3
                    return_6m_pct: 19.4
                    return_1y_pct: 31.8
                  valuation:
                    market_cap: 3560000000000
                  latest_earnings: []
                  recent_insider_trades: []
                  top_institutions: []
                  recent_events: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/short-volume":
    get:
      operationId: "listShortVolume"
      tags:
        - "markets"
      summary: "List FINRA daily short sale volume"
      description: "Official FINRA consolidated NMS daily short sale volume, short-exempt share count, total reported volume, and short volume ratio per US equity ticker."
      parameters:
        - $ref: "#/components/parameters/OptionalTicker"
        - $ref: "#/components/parameters/ShortDate"
        - $ref: "#/components/parameters/MinShortRatio"
        - $ref: "#/components/parameters/ShortSort"
        - $ref: "#/components/parameters/IntelLimit200"
      responses:
        "200":
          description: "List FINRA daily short sale volume: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/ShortVolumeResponse"
              example:
                date: "2026-11-25"
                short_volume:
                  - ticker: "GME"
                    date: "2026-11-25"
                    short_volume: 4200000
                    short_exempt_volume: 12000
                    total_volume: 6000000
                    short_ratio: 0.7
                    markets: "B,Q,N"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prediction-markets":
    get:
      operationId: "listPredictionMarkets"
      tags:
        - "prediction-markets"
      summary: "List Polymarket, Kalshi and OKX prediction markets"
      description: "Normalized binary event contract probabilities, YES/NO prices, bid-ask spreads, liquidity, and 24-hour trading volume across Polymarket, Kalshi and OKX Event Contracts."
      parameters:
        - $ref: "#/components/parameters/PmVenue"
        - $ref: "#/components/parameters/PmQuery"
        - $ref: "#/components/parameters/PmCategory"
        - $ref: "#/components/parameters/PmMinVolume"
        - $ref: "#/components/parameters/PmSort"
        - $ref: "#/components/parameters/IntelLimit200"
      responses:
        "200":
          description: "List Polymarket, Kalshi and OKX prediction markets: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PredictionMarketsResponse"
              example:
                prediction_markets:
                  - venue: "polymarket"
                    market_id: "559651"
                    ticker: "fed-rate-cut-december"
                    question: "Will the Fed cut interest rates at its December meeting?"
                    category: "Economics"
                    yes_price: 0.64
                    no_price: 0.36
                    implied_probability: 64
                    best_bid: 0.63
                    best_ask: 0.65
                    spread: 0.02
                    volume_24h: 1250000
                    volume_total: 8400000
                    liquidity: 420000
                    open_interest: null
                    end_date: "2026-12-18T19:00:00Z"
                    url: "https://polymarket.com/event/fed-rate-cut-december"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prediction-markets/arbitrage":
    get:
      operationId: "scanPredictionMarketArbitrage"
      tags:
        - "prediction-markets"
      summary: "Scan cross-venue prediction market arbitrage"
      description: "Matches active Polymarket and Kalshi contracts by normalized question overlap and ranks complementary YES/NO pairs where combined cost falls below 1.00."
      parameters:
        - $ref: "#/components/parameters/ArbMinSimilarity"
        - $ref: "#/components/parameters/ArbMinEdgePct"
        - $ref: "#/components/parameters/ArbMinLiquidity"
        - $ref: "#/components/parameters/ArbLimit"
      responses:
        "200":
          description: "Scan cross-venue prediction market arbitrage: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PredictionArbitrageResponse"
              example:
                arbitrage_opportunities:
                  - edge_percent: 4.5
                    combined_cost: 0.955
                    buy_yes_venue: "polymarket"
                    buy_yes_price: 0.455
                    buy_no_venue: "kalshi"
                    buy_no_price: 0.5
                    similarity: 0.72
                    min_liquidity: 18500
                    polymarket_market_id: "559651"
                    kalshi_ticker: "FED-26DEC-CUT"
                    polymarket_question: "Federal Reserve cuts rates in December 2026?"
                    kalshi_question: "Federal Reserve cut rates December 2026 meeting?"
                    polymarket_url: "https://polymarket.com/event/fed-rate-cut-december"
                    kalshi_url: "https://kalshi.com/markets/FED-26DEC-CUT"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/defi/protocols":
    get:
      operationId: "listDefiProtocols"
      tags:
        - "defi"
      summary: "List DeFi protocols by TVL"
      description: "Multi-chain decentralized finance protocols ranked by total value locked (TVL), 1-day and 7-day TVL momentum, chain footprints, and category."
      parameters:
        - $ref: "#/components/parameters/DefiChain"
        - $ref: "#/components/parameters/DefiCategory"
        - $ref: "#/components/parameters/DefiQuery"
        - $ref: "#/components/parameters/DefiMinTvl"
        - $ref: "#/components/parameters/IntelLimit200"
      responses:
        "200":
          description: "List DeFi protocols by TVL: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DefiProtocolsResponse"
              example:
                protocols:
                  - slug: "aave"
                    name: "Aave"
                    symbol: "AAVE"
                    category: "Lending"
                    chain: "Multi-Chain"
                    chains:
                      - "Ethereum"
                      - "Arbitrum"
                      - "Base"
                    tvl_usd: 21450000000
                    change_1d_pct: 1.4
                    change_7d_pct: 4.8
                    mcap_usd: 3200000000
                    url: "https://aave.com"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/defi/stablecoins":
    get:
      operationId: "listStablecoinSupply"
      tags:
        - "defi"
      summary: "List circulating stablecoin supply"
      description: "Global stablecoin circulating supply, day/week supply deltas, peg prices, collateral mechanisms, and active blockchains."
      parameters:
        - $ref: "#/components/parameters/StableSymbol"
        - $ref: "#/components/parameters/StablePegType"
        - $ref: "#/components/parameters/IntelLimit200"
      responses:
        "200":
          description: "List circulating stablecoin supply: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DefiStablecoinsResponse"
              example:
                stablecoins:
                  - id: "1"
                    name: "Tether"
                    symbol: "USDT"
                    peg_type: "peggedUSD"
                    peg_mechanism: "fiat-backed"
                    price: 1
                    circulating_usd: 138000000000
                    circulating_prev_day_usd: 137850000000
                    circulating_prev_week_usd: 136900000000
                    chains:
                      - "Ethereum"
                      - "Tron"
                      - "Arbitrum"
                      - "Solana"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/defi/yields":
    get:
      operationId: "listDefiYields"
      tags:
        - "defi"
      summary: "List DeFi liquidity and lending yields"
      description: "On-chain lending, liquid staking, and AMM liquidity pool APY yields with base vs reward split, TVL, stablecoin flag, and impermanent loss classification."
      parameters:
        - $ref: "#/components/parameters/DefiChain"
        - $ref: "#/components/parameters/YieldProject"
        - $ref: "#/components/parameters/YieldSymbol"
        - $ref: "#/components/parameters/YieldStableOnly"
        - $ref: "#/components/parameters/YieldMinTvl"
        - $ref: "#/components/parameters/YieldMinApy"
        - $ref: "#/components/parameters/IntelLimit200"
      responses:
        "200":
          description: "List DeFi liquidity and lending yields: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DefiYieldsResponse"
              example:
                pools:
                  - pool_id: "aa70268e-4d52-4298-a97a-8782d16522e1"
                    chain: "Ethereum"
                    project: "lido"
                    symbol: "STETH"
                    tvl_usd: 15973473405
                    apy: 2.95
                    apy_base: 2.95
                    apy_reward: 0
                    stablecoin: false
                    il_risk: "no"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/defi/dex-tokens":
    get:
      operationId: "listDexTokens"
      tags:
        - "defi"
      summary: "List on-chain DEX token liquidity"
      description: "Live decentralized exchange pairs by symbol search or top boosted on-chain tokens across Solana, Ethereum, Base, Arbitrum, and BSC with USD liquidity and 24h volume."
      parameters:
        - $ref: "#/components/parameters/DexQuery"
        - $ref: "#/components/parameters/DefiChain"
        - $ref: "#/components/parameters/DexLimit"
      responses:
        "200":
          description: "List on-chain DEX token liquidity: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DefiDexTokensResponse"
              example:
                dex_tokens:
                  - chain: "solana"
                    dex: "raydium"
                    pair_address: "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
                    base_symbol: "SOL"
                    base_address: "So11111111111111111111111111111111111111112"
                    quote_symbol: "USDC"
                    price_usd: 242.15
                    liquidity_usd: 45200000
                    volume_24h_usd: 185000000
                    price_change_24h_pct: 3.12
                    fdv_usd: 141000000000
                    market_cap_usd: 115000000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/order-book":
    get:
      operationId: "getCryptoOrderBook"
      tags:
        - "crypto"
      summary: "Read a live crypto order book"
      description: "The live L2 order book of an OKX, Binance, Bybit or Hyperliquid market, or with exchange darvas, the default, the books of every exchange a Darvas pair combines read at once and merged level by level. Sizes are in the base asset everywhere: OKX contracts are turned into coins. The answer carries the best bid and ask, the spread, the size and notional resting within 0.25, 0.5, 1 and 2 percent of the mid, the five largest levels a side and each exchange's status; grouping merges levels onto a coarser price grid, bids rounded down and asks up. Hyperliquid serves 20 levels a side."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/OrderBookExchange"
        - $ref: "#/components/parameters/SpotSwapMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/OrderBookDepth"
        - $ref: "#/components/parameters/OrderBookIncludeLevels"
        - $ref: "#/components/parameters/OrderBookGrouping"
      responses:
        "200":
          description: "Read a live crypto order book: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOrderBookResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "darvas"
                market_type: "swap"
                constituents:
                  - "binance"
                  - "bybit"
                  - "hyperliquid"
                  - "okx"
                venues: null
                as_of: "2026-11-28T12:00:00.180Z"
                size_unit: "base"
                grouping: null
                best_bid: 97810.4
                best_ask: 97810.5
                mid_price: 97810.45
                spread: 0.1
                spread_percent: 0.000102
                depth:
                  - percent: 0.5
                    bid_size: 182.4
                    ask_size: 141.9
                    bid_notional: 17752000.5
                    ask_notional: 13961000.2
                    bid_share: 0.5624
                bid_walls:
                  - price: 97500
                    size: 38.6
                ask_walls:
                  - price: 98200
                    size: 31.2
                bid_levels: 50
                ask_levels: 50
                sources:
                  - exchange: "okx"
                    ticker: "BTC-USDT-SWAP"
                    status: "ok"
                    as_of: "2026-11-28T12:00:00.120Z"
                    best_bid: 97810.4
                    best_ask: 97810.5
                    bid_levels: 50
                    ask_levels: 50
                bids:
                  - price: 97810.5
                    size: 4.21
                    notional: 411782.2
                asks:
                  - price: 97810.5
                    size: 2.05
                    notional: 200511.53
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/order-book/heatmap":
    get:
      operationId: "getCryptoOrderBookHeatmap"
      tags:
        - "crypto"
      summary: "Read a crypto order book heatmap"
      description: "The order book over time: for each bar and price row, the time-weighted average size resting on the bid and the ask and the largest size one sample saw, from one-second samples of the OKX, Binance and Bybit books Darvas records. Rows are at least the stored band (1 basis point for 1m and 5m bars, 5 for 15m and 30m, 10 above) and grow until the price range fits 400 rows. Without low and high the range is the window's candles plus half a percent. bid_walls and ask_walls rank the rows by their average over the window, liquidity that stayed rather than one bar's spike. A window holds at most 600 bars and 120,000 cells, the newest kept."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/BookHeatmapExchange"
        - $ref: "#/components/parameters/SpotSwapMarketType"
        - $ref: "#/components/parameters/BookHeatmapInterval"
        - $ref: "#/components/parameters/BookHeatmapStartTime"
        - $ref: "#/components/parameters/BookHeatmapEndTime"
        - $ref: "#/components/parameters/BookHeatmapLow"
        - $ref: "#/components/parameters/BookHeatmapHigh"
        - $ref: "#/components/parameters/BookHeatmapRowSize"
      responses:
        "200":
          description: "Read a crypto order book heatmap: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOrderBookHeatmapResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                market_type: "swap"
                interval: "15m"
                start_time: "2026-11-27T00:00:00.000Z"
                end_time: "2026-11-28T12:00:00.000Z"
                low: 95210.4
                high: 99120.8
                row_size: 10
                limited: false
                bid_walls:
                  - price: 97500
                    average_size: 18.9
                ask_walls:
                  - price: 98500
                    average_size: 15.2
                cells:
                  - time: "2026-11-28T11:45:00.000Z"
                    time_milliseconds: 1795866300000
                    price: 97500
                    bid_size: 21.4
                    ask_size: 0
                    bid_max: 44.8
                    ask_max: 0
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/volume-profile":
    get:
      operationId: "getCryptoVolumeProfile"
      tags:
        - "crypto"
      summary: "Read crypto session volume profiles"
      description: "Session volume profiles of an OKX perpetual from every trade Darvas records: the taker buy and sell notional, delta and trade count of each price bucket of a UTC day, week or month, with each session's point of control and 70 percent value area. Buckets scale with the market's volatility; fine, medium and coarse pick their size. periods returns that many sessions ending with the one holding period_start, now without it, and include_live_tail adds the open session's newest trades the stored buckets do not hold yet."
      parameters:
        - $ref: "#/components/parameters/PerpetualTicker"
        - $ref: "#/components/parameters/SessionProfilePeriod"
        - $ref: "#/components/parameters/SessionProfileResolution"
        - $ref: "#/components/parameters/SessionProfilePeriodStart"
        - $ref: "#/components/parameters/SessionProfilePeriods"
        - $ref: "#/components/parameters/SessionProfileLiveTail"
      responses:
        "200":
          description: "Read crypto session volume profiles: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoVolumeProfileResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                market_type: "swap"
                period: "1D"
                resolution: "medium"
                value_area_percent: 70
                profiles:
                  - period_start: "2026-11-28T00:00:00.000Z"
                    period_end: "2026-11-29T00:00:00.000Z"
                    bucket_size: 50
                    buy_notional_usd: 1820500000.4
                    sell_notional_usd: 1790200000.1
                    total_notional_usd: 3610700000.5
                    delta_notional_usd: 30300000.3
                    trade_count: 912400
                    poc_price: 97525
                    value_area_high: 98150
                    value_area_low: 96900
                    buckets:
                      - price_from: 97500
                        price_to: 97550
                        buy_notional_usd: 18250000.5
                        sell_notional_usd: 16120000.2
                        total_notional_usd: 34370000.7
                        delta_notional_usd: 2130000.3
                        trade_count: 8412
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/volume-profile/fixed-range":
    get:
      operationId: "getCryptoFixedRangeVolumeProfile"
      tags:
        - "crypto"
      summary: "Read a crypto fixed range volume profile"
      description: "A volume profile of any time range of a served market or of a Darvas aggregated pair, the default: each candle's quote volume spread evenly over its high to low range, summed per price row, with the point of control and value area. Timeframes from 1m to 1H read one-minute candles, 4H and 1D hourly ones; a range reads at most 100,000 of them, or 20,000 for a Darvas pair or a Binance or Bybit market. quality and coverage_percent say how many of the expected candles Darvas holds."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/ProfileExchange"
        - $ref: "#/components/parameters/SpotSwapMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/FixedRangeStartTime"
        - $ref: "#/components/parameters/FixedRangeEndTime"
        - $ref: "#/components/parameters/FixedRangeTimeframe"
        - $ref: "#/components/parameters/FixedRangeRows"
        - $ref: "#/components/parameters/ProfileValueAreaPercent"
        - $ref: "#/components/parameters/FixedRangeTickSize"
      responses:
        "200":
          description: "Read a crypto fixed range volume profile: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoFixedRangeVolumeProfileResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "darvas"
                market_type: "swap"
                constituents:
                  - "binance"
                  - "bybit"
                  - "okx"
                venues: null
                start_time: "2026-11-27T00:00:00.000Z"
                end_time: "2026-11-28T00:00:00.000Z"
                rows: 48
                value_area_percent: 70
                bucket_size: 50
                price_low: 95210.4
                price_high: 99120.8
                total_volume: 9812000000.4
                volume_unit: "quote"
                poc:
                  price: 97525
                  price_from: 97500
                  price_to: 97550
                  volume: 412000000.5
                value_area_high:
                  price: 98175
                  price_from: 98150
                  price_to: 98200
                  volume: 151000000.2
                value_area_low:
                  price: 96925
                  price_from: 96900
                  price_to: 96950
                  volume: 138000000.9
                quality: "complete"
                coverage_percent: 100
                source_candles: 1440
                expected_source_candles: 1440
                buckets:
                  - price_from: 97500
                    price_to: 97550
                    price: 97525
                    volume: 412000000.5
                    in_value_area: true
                    is_poc: true
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/tpo":
    get:
      operationId: "getCryptoTpo"
      tags:
        - "crypto"
      summary: "Read crypto TPO market profiles"
      description: "TPO (market profile) sessions of a served market or a Darvas aggregated pair, the default, computed as the TPO chart draws them: each price row's TPO count and volume, the point of control, value area, volume point of control, initial balance, tails, poor highs and lows, single prints and high and low volume nodes, and where the last price sits against the newest session's value area. Without session_period and block_size, the timeframe's own: daily sessions of 30-minute blocks up to 1H, weekly of 4-hour blocks up to 1D, monthly of daily blocks above."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/ProfileExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/TpoTimeframe"
        - $ref: "#/components/parameters/TpoSessionPeriod"
        - $ref: "#/components/parameters/TpoBlockSize"
        - $ref: "#/components/parameters/TpoProfiles"
        - $ref: "#/components/parameters/ProfileValueAreaPercent"
        - $ref: "#/components/parameters/TpoRowsTarget"
        - $ref: "#/components/parameters/TpoTimezone"
      responses:
        "200":
          description: "Read crypto TPO market profiles: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoTpoResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "darvas"
                market_type: "swap"
                constituents:
                  - "binance"
                  - "bybit"
                  - "okx"
                venues: null
                timeframe: "30m"
                session_period: "daily"
                block_size: "30m"
                value_area_percent: 70
                rows_target: 60
                timezone: "UTC"
                last_price: 97811.4
                last_bar_time: "2026-11-28T11:30:00.000Z"
                current:
                  value_area_position: "inside_value_area"
                  poc_change: 350
                  value_area_overlap_percent: 64
                sessions:
                  - session: "D:2026-11-28"
                    start_time: "2026-11-28T00:00:00.000Z"
                    end_time: "2026-11-29T00:00:00.000Z"
                    open: 96820.1
                    high: 98240
                    low: 96410.2
                    close: 97811.4
                    poc_price: 97500
                    value_area_high: 98050
                    value_area_low: 96950
                    volume_poc_price: 97450
                    row_size: 50
                    tpo_count: 412
                    blocks: 24
                    initial_balance:
                      high: 97210.5
                      low: 96410.2
                    high_tail_rows: 2
                    low_tail_rows: 0
                    poor_high: false
                    poor_low: true
                    single_prints:
                      - low: 97650
                        high: 97750
                    high_volume_nodes:
                      - price: 97450
                        tpo_count: 13
                    low_volume_nodes:
                      - price: 97700
                        tpo_count: 2
                    rows:
                      - price: 97500
                        tpo_count: 14
                        volume: 2412.5
                        buy_volume: 1250.1
                        sell_volume: 1162.4
                        in_value_area: true
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/liquidations/heatmap":
    get:
      operationId: "getCryptoLiquidationHeatmap"
      tags:
        - "crypto"
      summary: "Read a crypto liquidation heatmap"
      description: "Where leveraged positions of an OKX perpetual would be liquidated: for each bar of the lookback, the long and short exposure Darvas estimates per price band from the open interest the bar added, its long/short and top-trader ratios, taker volume and funding, spread over the usual leverage levels, decayed with time and swept when price trades through it, and calibrated by the liquidations OKX reported. levels lists the newest bar's bands with the most exposure and their distance from the last price; cells holds every bar's bands that pass threshold, at most 20,000, the newest kept. coverage says what backs the estimate: calibrated with reported liquidations, estimated with open interest, fallback with candles alone."
      parameters:
        - $ref: "#/components/parameters/PerpetualTicker"
        - $ref: "#/components/parameters/LiquidationHeatmapInterval"
        - $ref: "#/components/parameters/LiquidationHeatmapLookbackBars"
        - $ref: "#/components/parameters/LiquidationHeatmapThreshold"
        - $ref: "#/components/parameters/LiquidationHeatmapBucketPercent"
        - $ref: "#/components/parameters/LiquidationHeatmapLeverageSensitivity"
      responses:
        "200":
          description: "Read a crypto liquidation heatmap: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoLiquidationHeatmapResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                market_type: "swap"
                interval: "1H"
                start_time: "2026-11-21T00:00:00.000Z"
                end_time: "2026-11-28T12:00:00.000Z"
                lookback_bars: 180
                threshold: 15
                price_bucket_percent: 0.25
                leverage_sensitivity: 1
                coverage: "calibrated"
                bucket_size: 244.53
                max_usd: 58100000.2
                last_price: 97811.4
                inputs:
                  open_interest_points: 180
                  long_short_points: 180
                  top_trader_points: 180
                  taker_volume_points: 180
                  funding_points: 23
                  liquidation_events: 412
                levels:
                  - price_low: 95120.5
                    price_high: 95365.3
                    long_usd: 41200000.5
                    short_usd: 0
                    total_usd: 41200000.5
                    event_usd: 2100000.2
                    score: 0.94
                    confidence: "high"
                    side: "below_price"
                    distance_percent: -2.62
                limited: false
                cells:
                  - time: "2026-11-28T11:00:00.000Z"
                    time_milliseconds: 1795863600000
                    end_time_milliseconds: 1795867200000
                    price_low: 95120.5
                    price_high: 95365.3
                    long_usd: 41200000.5
                    short_usd: 0
                    total_usd: 41200000.5
                    event_usd: 2100000.2
                    score: 0.94
                    confidence: "high"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/large-trades/zones":
    get:
      operationId: "listCryptoLargeTradeZones"
      tags:
        - "crypto"
      summary: "List crypto whale trade zones"
      description: "The price zones of an OKX perpetual where the most notional traded over the last day, week or month, ranked by notional: each zone's taker buy and sell notional, delta, trade count, last trade and whether buyers or sellers pressed it (a delta of at least 8 percent of the zone's notional either way). Zones are the fine buckets of the session volume profile, sized to the market's volatility, with the newest trades the stored buckets do not hold yet added."
      parameters:
        - $ref: "#/components/parameters/PerpetualTicker"
        - $ref: "#/components/parameters/TradeZoneExchange"
        - $ref: "#/components/parameters/TradeZoneWindow"
        - $ref: "#/components/parameters/TradeZoneLimit"
      responses:
        "200":
          description: "List crypto whale trade zones: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoLargeTradeZonesResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                market_type: "swap"
                window: "1D"
                since: "2026-11-27T12:00:00.000Z"
                bucket_size: 50
                zones:
                  - price_from: 97500
                    price_to: 97550
                    mid_price: 97525
                    buy_notional_usd: 182500000.5
                    sell_notional_usd: 141200000.2
                    total_notional_usd: 323700000.7
                    delta_notional_usd: 41300000.3
                    trade_count: 48210
                    last_trade_time: "2026-11-28T11:59:58.120Z"
                    pressure: "buy_pressure"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/screener":
    post:
      operationId: "screenCryptoMarkets"
      tags:
        - "crypto"
      summary: "Screen crypto markets across 77 real-time metrics"
      description: "Evaluates up to 12 conditions on composite technical ratings, momentum, trend, volatility, volume, performance, and derivatives metrics across live USDT spot, perpetual swap, and futures snapshots. A condition compares a metric with a number, a range, or another metric with an optional multiplier, detects crossovers, and can read its own timeframe; tickers limits the scan to a watchlist. Call GET /crypto/screener/metrics first to inspect all 77 valid metric IDs."
      requestBody:
        required: true
        description: "The query of screen crypto markets across 77 real-time metrics."
        content:
          "application/json":
            schema:
              $ref: "#/components/schemas/CryptoScreenerRequest"
            example:
              market_type: "swap"
              timeframe: "1H"
              universe: "all"
              combine: "AND"
              conditions:
                - metric: "technicalRating"
                  operator: "gte"
                  value: 0.5
                - metric: "rsi14"
                  operator: "between"
                  value: 50
                  upper_value: 70
                - metric: "price"
                  operator: "gt"
                  right_metric: "ema200"
                  right_multiplier: 1.05
                - metric: "macd.macd"
                  operator: "crosses_above"
                  right_metric: "macd.signal"
                - metric: "rsi14"
                  operator: "gt"
                  value: 50
                  timeframe: "1D"
              sort:
                metric: "technicalRating"
                direction: "desc"
              limit: 50
      responses:
        "200":
          description: "Screen crypto markets across 77 real-time metrics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoScreenerResponse"
              example:
                market_type: "swap"
                timeframe: "1H"
                universe: "all"
                combine: "AND"
                total_scanned: 240
                matched: 18
                returned: 1
                complete: true
                as_of: "2026-11-28T12:04:10.000Z"
                results:
                  - ticker: "BTC-USDT-SWAP"
                    price: 97811.4
                    candle_time: "2026-11-28T12:00:00.000Z"
                    updated_at: "2026-11-28T12:04:10.000Z"
                    metrics:
                      price: 97811.4
                      technicalRating: 0.62
                      rsi14: 64.2
                      ema200: 91200.5
                      macd.macd: 412.8
                      macd.signal: 377.1
                    mtf_metrics:
                      "1D":
                        rsi14: 58.7
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/screener/metrics":
    get:
      operationId: "listCryptoScreenerMetrics"
      tags:
        - "crypto"
      summary: "List crypto screener metrics and valid options"
      description: "Discovery catalog of all 77 rating, technical, volume, performance, and derivatives metric IDs with display hints, plus the comparison operators, timeframes, universes, and market types accepted by POST /crypto/screener."
      parameters: []
      responses:
        "200":
          description: "List crypto screener metrics and valid options: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoScreenerMetricsResponse"
              example:
                total_metrics: 77
                market_types:
                  - "spot"
                  - "swap"
                  - "futures"
                timeframes:
                  - "5m"
                  - "15m"
                  - "1H"
                  - "4H"
                  - "1D"
                universes:
                  - "all"
                  - "altcoins"
                combine_modes:
                  - "AND"
                  - "OR"
                operators:
                  - "lt"
                  - "lte"
                  - "gt"
                  - "gte"
                  - "eq"
                  - "between"
                  - "outside"
                  - "crosses_above"
                  - "crosses_below"
                categories:
                  - "ratings"
                  - "market"
                  - "performance"
                  - "derivatives"
                  - "momentum"
                  - "trend"
                  - "volatility"
                  - "volume"
                metrics:
                  - id: "rsi14"
                    category: "momentum"
                    label: "RSI (14)"
                    derivatives_only: false
                    decimals: 2
                    compact: false
                    percent: false
                    rating: false
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/derivatives/oi-scan":
    post:
      operationId: "scanCryptoOiChange"
      tags:
        - "crypto"
      summary: "Scan crypto perpetuals and futures by open interest change"
      description: "Ranks OKX perpetual swap or dated futures contracts by open interest buildup or decay over a selected bar window with minimum open interest, 24-hour volume, and percentage delta thresholds. Tickers are OKX instrument ids; the answer names the exchange and scope it scanned."
      requestBody:
        required: true
        description: "The query of scan crypto perpetuals and futures by open interest change."
        content:
          "application/json":
            schema:
              $ref: "#/components/schemas/CryptoOiScanRequest"
            example:
              market_type: "swap"
              timeframe: "1H"
              min_oi_usd: 10000000
              min_vol_usd_24h: 25000000
              min_abs_oi_delta_pct: 1.5
              sort_by: "oi_delta_pct"
              sort_order: "desc"
              limit: 25
      responses:
        "200":
          description: "Scan crypto perpetuals and futures by open interest change: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOiScanResponse"
              example:
                exchange: "okx"
                scope: "every OKX perpetual swap"
                market_type: "swap"
                timeframe: "1H"
                sort_by: "oi_delta_pct"
                sort_order: "desc"
                as_of: "2026-11-28T12:05:00.000Z"
                results:
                  - ticker: "BTC-USDT-SWAP"
                    oi_usd: 3450000000
                    oi_delta_usd: 125000000
                    oi_delta_pct: 3.76
                    vol_usd_24h: 18500000000
                    last: 97811.4
                    direction: "accumulation"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/derivatives/option-chain":
    get:
      operationId: "listCryptoOptionsChain"
      tags:
        - "crypto"
      summary: "List live crypto options chain with Greeks"
      description: "Joins live option contract specifications, best bid/ask/last quotes, 24-hour volume, open interest, and option Greeks (delta, gamma, vega, theta, mark/bid/ask implied volatility, and forward price) for a USD crypto option family such as BTC-USD, ETH-USD, or SOL-USD."
      parameters:
        - $ref: "#/components/parameters/CryptoOptUnderlying"
        - $ref: "#/components/parameters/CryptoOptExpiry"
        - $ref: "#/components/parameters/CryptoOptType"
        - $ref: "#/components/parameters/CryptoOptMinStrike"
        - $ref: "#/components/parameters/CryptoOptMaxStrike"
        - $ref: "#/components/parameters/CryptoOptIncludeGreeks"
        - $ref: "#/components/parameters/CryptoOptLimit"
      responses:
        "200":
          description: "List live crypto options chain with Greeks: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOptionsChainResponse"
              example:
                underlying: "BTC-USD"
                exchange: "okx"
                include_greeks: true
                total_matched: 42
                expiries:
                  - "261204"
                  - "261225"
                  - "270326"
                as_of: "2026-11-28T12:00:00.000Z"
                contracts:
                  - ticker: "BTC-USD-261225-100000-C"
                    expiry: "261225"
                    expiry_time: "2026-12-25T08:00:00.000Z"
                    strike: 100000
                    option_type: "call"
                    last: 0.042
                    bid_price: 0.0415
                    ask_price: 0.043
                    bid_size: 25
                    ask_size: 30
                    volume_24h: 412
                    open_interest: 1850
                    contract_value: 0.01
                    lot_size: 1
                    tick_size: 0.0005
                    delta: 0.482
                    gamma: 0.000024
                    vega: 98.4
                    theta: -84.2
                    mark_iv: 0.54
                    bid_iv: 0.532
                    ask_iv: 0.548
                    forward_price: 98450.5
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/derivatives/iv-skew":
    get:
      operationId: "getCryptoOptionsIvSkew"
      tags:
        - "crypto"
      summary: "Compute crypto options IV skew, term structure, and IV-RV spread"
      description: "Computes per-expiry ATM implied volatility, 25-delta call and put IV, 25-delta risk reversal (RR25), 25-delta butterfly (BF25), ATM term structure slope and regime, plus 7-day, 30-day, and 90-day annualized realized volatility and IV minus RV spreads in consistent annualized decimal units."
      parameters:
        - $ref: "#/components/parameters/CryptoOptUnderlying"
        - $ref: "#/components/parameters/CryptoOptIncludeRealizedVol"
      responses:
        "200":
          description: "Compute crypto options IV skew, term structure, and IV-RV spread: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOptionsIvSkewResponse"
              example:
                underlying: "BTC-USD"
                exchange: "okx"
                vol_unit: "annualized_decimal"
                as_of: "2026-11-28T12:00:00.000Z"
                expiries:
                  - expiry: "261225"
                    expiry_date: "2026-12-25"
                    days_to_expiry: 26.83
                    atm_iv: 0.54
                    atm_strike: 98000
                    call_25d_iv: 0.565
                    put_25d_iv: 0.59
                    rr25: -0.025
                    bf25: 0.0375
                    forward_price: 98450.5
                    contract_count: 68
                term_structure:
                  front_expiry: "261204"
                  front_atm_iv: 0.51
                  back_expiry: "270326"
                  back_atm_iv: 0.58
                  slope: 0.07
                  regime: "contango"
                  points:
                    - expiry: "261225"
                      expiry_date: "2026-12-25"
                      days_to_expiry: 26.83
                      atm_iv: 0.54
                realized_vol:
                  spot_ticker: "BTC-USDT"
                  rv_7d: 0.44
                  rv_30d: 0.48
                  rv_90d: 0.51
                  reference_expiry: "261225"
                  reference_days_to_expiry: 26.83
                  reference_atm_iv: 0.54
                  iv_rv_spread_7d: 0.1
                  iv_rv_spread_30d: 0.06
                  iv_rv_spread_90d: 0.03
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/market-structure":
    get:
      operationId: "getCryptoMarketStructure"
      tags:
        - "crypto"
      summary: "Read a crypto market's structure"
      description: "Darvas's market structure engines over the newest candles of an instrument, a Darvas aggregated pair (exchange darvas, the default) or a formula over listed crypto instruments (exchange formula), such as USDTBTC, BTCUSDT*USDTETH or BTCUSDT/NVDAUSDT: Smart Money Concepts (breaks of structure, changes of character, order blocks, equal highs and lows, fair value gaps, premium and discount zones, strong and weak extremes), swing order and breaker blocks nearest the price, the first fair value gap of each UTC session (1H and finer frames), zigzag swings labelled HH, HL, LH and LL with the trend regime, high-volume support and resistance zones, and a shuffled Monte Carlo range of the next 50 bars. modules picks the engines, smc and swings without it; the answer holds one object per engine named."
      parameters:
        - $ref: "#/components/parameters/CryptoCandleTicker"
        - $ref: "#/components/parameters/StructureExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/StructureTimeframe"
        - $ref: "#/components/parameters/StructureModules"
        - $ref: "#/components/parameters/StructureLookback"
        - $ref: "#/components/parameters/StructureSwingLength"
        - $ref: "#/components/parameters/StructureDeviation"
      responses:
        "200":
          description: "Read a crypto market's structure: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoMarketStructureResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "darvas"
                market_type: "swap"
                constituents:
                  - "binance"
                  - "bybit"
                  - "okx"
                venues: null
                timeframe: "1H"
                bars: 300
                from: "2026-11-16T01:00:00.000Z"
                to: "2026-11-28T12:00:00.000Z"
                price: 97811.4
                modules:
                  - "smc"
                  - "swings"
                smc:
                  structures:
                    - scope: "swing"
                      bias: "bullish"
                      tag: "BOS"
                      level: 97250.5
                      start_time: "2026-11-27T08:00:00.000Z"
                      end_time: "2026-11-28T03:00:00.000Z"
                  order_blocks:
                    - scope: "internal"
                      bias: "bullish"
                      top: 96980
                      bottom: 96610.5
                      midpoint: 96795.25
                      start_time: "2026-11-27T14:00:00.000Z"
                      mitigated: false
                  fair_value_gaps:
                    - bias: "bearish"
                      top: 98120
                      bottom: 97960.4
                      midpoint: 98040.2
                      start_time: "2026-11-28T06:00:00.000Z"
                      mitigated: false
                  equal_levels:
                    - type: "EQH"
                      bias: "bearish"
                      level: 98240
                      start_time: "2026-11-26T19:00:00.000Z"
                      end_time: "2026-11-28T05:00:00.000Z"
                  zones:
                    - type: "premium"
                      top: 98240
                      bottom: 97790.6
                      midpoint: 98015.3
                      start_time: "2026-11-25T10:00:00.000Z"
                  strong_weak_levels:
                    - type: "high"
                      bias: "bearish"
                      strength: "weak"
                      level: 98240
                      start_time: "2026-11-26T19:00:00.000Z"
                  swing_points:
                    - type: "HL"
                      bias: "bullish"
                      level: 95910.2
                      time: "2026-11-27T02:00:00.000Z"
                swings:
                  deviation_pct: 1
                  regime: "uptrend"
                  last_bos:
                    type: "BOS"
                    direction: "up"
                    level: 97250.5
                    time: "2026-11-27T08:00:00.000Z"
                    confirmed_at: "2026-11-28T03:00:00.000Z"
                  last_choch: null
                  points:
                    - type: "high"
                      label: "HH"
                      price: 98240
                      time: "2026-11-28T05:00:00.000Z"
                      change_pct: 2.43
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/prices/snapshot/market":
    get:
      operationId: "getCryptoMarketSnapshot"
      tags:
        - "crypto"
      summary: "Read every crypto pair's price"
      description: "The latest price, 24-hour change and 24-hour traded value of every pair one exchange lists, or of every Darvas aggregated pair (exchange darvas, the default), from a copy Darvas keeps current every few seconds. Filter by market_type and quote, then sort and cut to limit. quote_volume_24h is in each pair's own quote currency, so a sort by volume compares pairs of one quote best."
      parameters:
        - $ref: "#/components/parameters/OverviewExchange"
        - $ref: "#/components/parameters/SnapshotMarketType"
        - $ref: "#/components/parameters/SnapshotQuote"
        - $ref: "#/components/parameters/SnapshotSort"
        - $ref: "#/components/parameters/SnapshotOrder"
        - $ref: "#/components/parameters/SnapshotLimit"
      responses:
        "200":
          description: "Read every crypto pair's price: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoMarketSnapshotResponse"
              example:
                exchange: "darvas"
                market_type: null
                quote: null
                sort: "volume_24h"
                order: "desc"
                snapshots:
                  - ticker: "BTC-USDT-SWAP"
                    base: "BTC"
                    quote: "USDT"
                    market_type: "swap"
                    price: 97811.4
                    change_24h_percent: 1.3378
                    quote_volume_24h: 18412093311.4
                    time: "2026-11-28T11:59:00.000Z"
                    time_milliseconds: 1795867140000
                    constituents:
                      - "binance"
                      - "bybit"
                      - "okx"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/volume/aggregated":
    get:
      operationId: "getCryptoAggregatedVolume"
      tags:
        - "crypto"
      summary: "Read a perpetual's volume across exchanges"
      description: "A perpetual's 24-hour traded value in US dollars and in its base asset on OKX, Binance, Bybit and Hyperliquid, with each exchange's share. Only the exchanges that answered count toward the totals; complete is false while one of them is unavailable."
      parameters:
        - $ref: "#/components/parameters/AggregatedTicker"
      responses:
        "200":
          description: "Read a perpetual's volume across exchanges: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoAggregatedVolumeResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                base_asset: "BTC"
                quote_asset: "USDT"
                market_type: "swap"
                notional_volume_usd_24h: 28331904120.8
                base_volume_24h: 289662.1
                complete: true
                time: "2026-11-28T12:00:00.000Z"
                time_milliseconds: 1795867200000
                exchanges:
                  - exchange: "binance"
                    symbol: "BTCUSDT"
                    status: "ok"
                    notional_volume_usd_24h: 14820331201.5
                    base_volume_24h: 151524.3
                    share_percent: 52.31
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/context":
    get:
      operationId: "getCryptoMarketContext"
      tags:
        - "crypto"
      summary: "Read a crypto market's context"
      description: "One instrument or Darvas aggregated pair in a single call: the last price, the change, high and low of the trailing hour, four hours and day from five-minute candles, the day as hourly bars, the funding rate, next funding time and open interest with its 1-hour, 4-hour and 24-hour change on every exchange that lists the perpetual (each one a Darvas pair combines), and the high-impact macro releases from a day before to two days after now. A part a venue cannot answer is null."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/OverviewExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/ContextHourlyBars"
        - $ref: "#/components/parameters/ContextMacro"
      responses:
        "200":
          description: "Read a crypto market's context: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoMarketContextResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "okx"
                market_type: "swap"
                observed_at: "2026-11-28T12:00:00.000Z"
                price:
                  last: 97811.4
                  time: "2026-11-28T11:55:00.000Z"
                  time_milliseconds: 1795866900000
                  bar_interval: "5m"
                  last_bar_closed: false
                windows:
                  last_1h:
                    from: "2026-11-28T11:00:00.000Z"
                    to: "2026-11-28T11:55:00.000Z"
                    bars: 12
                    change_percent: 0.42
                    high: 97990
                    high_time: "2026-11-28T11:35:00.000Z"
                    low: 97302.6
                    low_time: "2026-11-28T11:05:00.000Z"
                  last_4h:
                    from: "2026-11-28T08:00:00.000Z"
                    to: "2026-11-28T11:55:00.000Z"
                    bars: 12
                    change_percent: 0.42
                    high: 97990
                    high_time: "2026-11-28T11:35:00.000Z"
                    low: 97302.6
                    low_time: "2026-11-28T11:05:00.000Z"
                  last_24h:
                    from: "2026-11-27T12:00:00.000Z"
                    to: "2026-11-28T11:55:00.000Z"
                    bars: 12
                    change_percent: 0.42
                    high: 97990
                    high_time: "2026-11-28T11:35:00.000Z"
                    low: 97302.6
                    low_time: "2026-11-28T11:05:00.000Z"
                hourly_bars:
                  - time: "2026-11-28T11:00:00.000Z"
                    open: 97401.2
                    high: 97990
                    low: 97302.6
                    close: 97811.4
                    volume: 1204.36
                derivatives:
                  total_open_interest_usd: 3120440211.2
                  venues:
                    - exchange: "okx"
                      ticker: "BTC-USDT-SWAP"
                      funding_rate: 0.0001
                      next_funding_rate: null
                      next_funding_time: "2026-11-28T16:00:00.000Z"
                      funding_interval_hours: null
                      open_interest_usd: 3120440211.2
                      open_interest_time: "2026-11-28T11:00:00.000Z"
                      open_interest_change_pct_1h: 0.35
                      open_interest_change_pct_4h: 1.12
                      open_interest_change_pct_24h: -2.08
                macro:
                  past_hours: 24
                  future_hours: 48
                  releases:
                    - event_name: "Nonfarm Payrolls"
                      currency: "USD"
                      country_name: "United States"
                      importance: "high"
                      release_at: "2026-12-04T13:30:00.000Z"
                      released: false
                      actual: null
                      forecast: "180K"
                      previous: "150K"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/index/prices":
    get:
      operationId: "listCryptoIndexPrices"
      tags:
        - "crypto"
      summary: "List crypto index candles"
      description: "Candles of a composite spot index, such as BTC-USD: one price combined from several major spot exchanges, the reference perpetual and futures contracts mark against. Oldest first, the candle in progress included; days and weeks are UTC buckets."
      parameters:
        - $ref: "#/components/parameters/IndexName"
        - $ref: "#/components/parameters/IndexInterval"
        - $ref: "#/components/parameters/IndexLimit"
      responses:
        "200":
          description: "List crypto index candles: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoIndexPricesResponse"
              example:
                index: "BTC-USD"
                interval: "1H"
                prices:
                  - open: 97401.2
                    high: 97990
                    low: 97302.6
                    close: 97811.4
                    confirmed: false
                    time: "2026-11-28T11:00:00.000Z"
                    time_milliseconds: 1795863600000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/index/snapshot":
    get:
      operationId: "getCryptoIndexSnapshot"
      tags:
        - "crypto"
      summary: "Read crypto index prices"
      description: "The latest price of one composite spot index, or of every index in a quote currency, with its 24-hour range and its change over 24 hours and since the UTC day began. Without index or quote_currency, every USD index."
      parameters:
        - $ref: "#/components/parameters/IndexSnapshotName"
        - $ref: "#/components/parameters/IndexQuote"
      responses:
        "200":
          description: "Read crypto index prices: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoIndexSnapshotResponse"
              example:
                index: null
                quote_currency: "USD"
                indices:
                  - index: "BTC-USD"
                    price: 97811.4
                    open_24h: 96520.1
                    high_24h: 98240
                    low_24h: 95910.2
                    change_24h_percent: 1.34
                    open_utc_day: 97020.5
                    change_utc_day_percent: 0.82
                    time: "2026-11-28T12:00:00.000Z"
                    time_milliseconds: 1795867200000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/derivatives/snapshot":
    get:
      operationId: "getCryptoDerivativesSnapshot"
      tags:
        - "crypto"
      summary: "Read a crypto derivatives snapshot"
      description: "Live current and predicted next funding rate, funding interval and countdown, live contract open interest in contracts, base units, and USD, mark price, spot index price, and mark-index basis for one perpetual or futures contract on OKX, Binance, Bybit, or Hyperliquid."
      parameters:
        - $ref: "#/components/parameters/DerivSnapshotExchange"
        - $ref: "#/components/parameters/DerivSnapshotTicker"
      responses:
        "200":
          description: "Read a crypto derivatives snapshot: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoDerivativesSnapshotResponse"
              example:
                snapshot:
                  ticker: "BTC-USDT-SWAP"
                  exchange: "okx"
                  market_type: "swap"
                  funding_rate: 0.00012
                  next_funding_rate: 0.00014
                  funding_interval_hours: 8
                  next_funding_time: "2026-11-29T16:00:00.000Z"
                  next_funding_time_milliseconds: 1795968000000
                  funding_countdown_seconds: 5400
                  open_interest_contracts: 3150000
                  open_interest_base: 31500
                  open_interest_usd: 3081015000
                  mark_price: 97810
                  index_price: 97795.5
                  basis: 14.5
                  basis_bps: 1.4827
                  observed_at: "2026-11-29T14:30:00.000Z"
                  observed_at_milliseconds: 1795962600000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/tokenized-stocks/prices":
    get:
      operationId: "listTokenizedStockPrices"
      tags:
        - "tokenized-stocks"
      summary: "List historical tokenized stock prices"
      description: "Historical price observations of a tokenized stock newest first, with per-share pricing, pool liquidity, and reference NAV gap for Base tokens, or 1-minute closes for OKX and Bybit stock instruments with the gap to the stock's last close outside US regular hours. ticker resolves as /tokenized-stocks/prices/snapshot's does. Paginates with next_page_url."
      parameters:
        - $ref: "#/components/parameters/TokenTicker"
        - $ref: "#/components/parameters/TokenVenue"
        - $ref: "#/components/parameters/TokenStartTime"
        - $ref: "#/components/parameters/TokenEndTime"
        - $ref: "#/components/parameters/TokenHistoryLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List historical tokenized stock prices: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/TokenizedStockPricesResponse"
              example:
                ticker: "NVDAc"
                venue: "base"
                market_type: "token"
                instrument: "0xb20000000000000000000078ee7ce2fe4908108c"
                chain: "base"
                address: "0xb20000000000000000000078ee7ce2fe4908108c"
                name: "NVIDIA"
                isin: "US67066G1040"
                prices:
                  - time: "2026-11-26T09:42:00.000Z"
                    time_milliseconds: 1795686120000
                    price: 148.62
                    shares_per_token: 1.000538
                    price_per_share: 148.54
                    nav_price: 149.115172
                    nav_updated_at: "2026-11-25T21:00:00.000Z"
                    gap_percent: -0.3856
                    pool_address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
                    pool_venue: "aerodrome"
                    pool_usdc: 557129.41
                    pool_fee_percent: 0.1122
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/tokenized-stocks/trades":
    get:
      operationId: "listTokenizedStockTrades"
      tags:
        - "tokenized-stocks"
      summary: "List historical tokenized stock trades"
      description: "Historical swap and order-book executions of a tokenized stock newest first, filterable by time range, trade side, and minimum USD size. ticker resolves as /tokenized-stocks/prices/snapshot's does; crypto pairs such as BTCUSDT are under /crypto/trades. Paginates with next_page_url."
      parameters:
        - $ref: "#/components/parameters/TokenTicker"
        - $ref: "#/components/parameters/TokenVenue"
        - $ref: "#/components/parameters/TokenStartTime"
        - $ref: "#/components/parameters/TokenEndTime"
        - $ref: "#/components/parameters/TokenTradeSide"
        - $ref: "#/components/parameters/TokenTradeMinSizeUsd"
        - $ref: "#/components/parameters/TokenHistoryLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List historical tokenized stock trades: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/TokenizedStockTradesResponse"
              example:
                ticker: "NVDAc"
                venue: "base"
                market_type: "token"
                instrument: "0xb20000000000000000000078ee7ce2fe4908108c"
                chain: "base"
                address: "0xb20000000000000000000078ee7ce2fe4908108c"
                name: "NVIDIA"
                isin: "US67066G1040"
                trades:
                  - time: "2026-11-26T09:41:13.000Z"
                    time_milliseconds: 1795686073000
                    side: "buy"
                    price: 148.7
                    size_usd: 1250.5
                    pool_address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
                    transaction: "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
                    log_index: 42
                    block: 23456789
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/xbrl-facts":
    get:
      operationId: "listXbrlFacts"
      tags:
        - "financials"
      summary: "List raw SEC XBRL company facts"
      description: "Raw non-dimensional SEC EDGAR XBRL facts for one company across us-gaap, ifrs-full, and dei taxonomies, newest period_end first. Supports exact tag names or trailing wildcard prefixes such as LongTermDebt*, unit and form filters, date bounds, and cursor pagination."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/XbrlTaxonomy"
        - $ref: "#/components/parameters/XbrlTag"
        - $ref: "#/components/parameters/XbrlUnit"
        - $ref: "#/components/parameters/XbrlForm"
        - $ref: "#/components/parameters/XbrlPeriodEndGte"
        - $ref: "#/components/parameters/XbrlPeriodEndLte"
        - $ref: "#/components/parameters/XbrlLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List raw SEC XBRL company facts: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/XbrlFactsResponse"
              example:
                ticker: "AAPL"
                cik: "0000320193"
                facts:
                  - cik: "0000320193"
                    taxonomy: "us-gaap"
                    tag: "LongTermDebtNoncurrent"
                    unit: "USD"
                    period_start: null
                    period_end: "2026-09-26"
                    value: 68208000000
                    accession_number: "0000320193-26-000105"
                    fiscal_year: 2026
                    fiscal_period: "FY"
                    form: "10-K"
                    filed: "2026-10-31"
                    frame: "CY2026Q3I"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/debt-schedule":
    get:
      operationId: "getDebtSchedule"
      tags:
        - "financials"
      summary: "Read 5-year debt maturity schedule"
      description: "Standardized 5-year plus thereafter principal debt maturity ladder computed directly from SEC XBRL debt disclosures, including short-term, long-term, and total debt balances, midpoint weighted-average maturity years, maturity shares, and exact source XBRL tags."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/DebtSchedulePeriod"
        - $ref: "#/components/parameters/DebtScheduleLimit"
      responses:
        "200":
          description: "Read 5-year debt maturity schedule: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DebtScheduleResponse"
              example:
                ticker: "AAPL"
                cik: "0000320193"
                period: "latest"
                debt_schedules:
                  - accession_number: "0000320193-26-000105"
                    form: "10-K"
                    filed: "2026-10-31"
                    report_date: "2026-09-26"
                    currency: "USD"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
                    year_1: 9906000000
                    year_2: 11200000000
                    year_3: 10500000000
                    year_4: 8750000000
                    year_5: 7500000000
                    thereafter: 30258000000
                    total_maturities: 78114000000
                    short_term_debt: 13824000000
                    long_term_debt: 68208000000
                    total_debt: 82032000000
                    weighted_average_maturity_years: 4.42
                    share_by_year:
                      year_1: 12.68
                      year_2: 14.34
                      year_3: 13.44
                      year_4: 11.2
                      year_5: 9.6
                      thereafter: 38.74
                    source_tags:
                      year_1: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"
                      year_2: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"
                      year_3: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"
                      year_4: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"
                      year_5: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"
                      thereafter: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"
                      short_term_debt: "us-gaap:CommercialPaper+us-gaap:LongTermDebtCurrent"
                      long_term_debt: "us-gaap:LongTermDebtNoncurrent"
                      total_debt: "computed:short_term_debt+long_term_debt"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prediction-markets/series":
    get:
      operationId: "listPredictionMarketSeries"
      tags:
        - "prediction-markets"
      summary: "List prediction market event series"
      description: "Normalized event contract series across OKX Event Contracts (native series with settlement metadata and underlying index) plus active category groupings from Polymarket and Kalshi."
      parameters:
        - $ref: "#/components/parameters/PmVenue"
        - $ref: "#/components/parameters/PmSeriesCategory"
        - $ref: "#/components/parameters/PmSeriesQuery"
        - $ref: "#/components/parameters/PmSeriesLimit"
      responses:
        "200":
          description: "List prediction market event series: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PredictionMarketSeriesResponse"
              example:
                series:
                  - venue: "okx"
                    series_id: "BTC_USD_DAILY"
                    title: "BTC daily price range"
                    category: "Crypto"
                    frequency: "daily"
                    underlying: "BTC-USD"
                    settlement_method: "expiry_price"
                    settlement_source: "OKX Index"
                    close_early: false
                    market_count: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/form-d":
    get:
      operationId: "listSecFormDOfferings"
      tags:
        - "filings"
      summary: "List Form D private offerings"
      description: "SEC Form D notices of private offerings, newest filing first: startup funding rounds, venture and private equity fund raises, real estate and debt offerings sold under Regulation D (Rule 504, 506(b), 506(c)), Section 4(a)(5) or an Investment Company Act exclusion. Every Form D and D/A filed since 2008 is listed; details_available tells whether the notice's XML has been read for amounts, exemptions, industry and related persons. Filters on those details match only notices already read. With no ticker or cik, every issuer's notices come."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/FormDIssuerName"
        - $ref: "#/components/parameters/FormDQuery"
        - $ref: "#/components/parameters/FormDIndustryGroup"
        - $ref: "#/components/parameters/FormDState"
        - $ref: "#/components/parameters/FormDExemption"
        - $ref: "#/components/parameters/FormDMinAmountSold"
        - $ref: "#/components/parameters/FormDMaxAmountSold"
        - $ref: "#/components/parameters/FormDIsAmendment"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/FormDStartDate"
        - $ref: "#/components/parameters/FormDEndDate"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List Form D private offerings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FormDOfferingsResponse"
              example:
                form_d_offerings:
                  - ticker: null
                    issuer_name: "Lumen Grid Robotics, Inc."
                    issuer_cik: "0009990001"
                    co_issuer_ciks: []
                    form_type: "D"
                    is_amendment: false
                    replaces_accession_number: null
                    filing_date: "2026-11-25"
                    accession_number: "0009990001-26-000001"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/9990001/000999000126000001/0009990001-26-000001-index.htm"
                    details_available: true
                    entity_type: "Corporation"
                    jurisdiction_of_incorporation: "DELAWARE"
                    incorporation_age: "within_five_years"
                    year_of_incorporation: 2023
                    issuer_city: "San Francisco"
                    issuer_state_or_country: "CA"
                    issuer_state_or_country_name: "CALIFORNIA"
                    industry_group: "Other Technology"
                    industry_group_id: "other_technology"
                    industry_sector: "technology"
                    investment_fund_type: null
                    revenue_range: "Decline to Disclose"
                    net_asset_value_range: null
                    federal_exemptions:
                      - code: "06b"
                        name: "Rule 506(b)"
                    securities_offered:
                      - "equity"
                      - "option_to_acquire"
                      - "security_to_be_acquired"
                    other_securities_description: null
                    is_business_combination: false
                    first_sale_date: "2026-11-10"
                    first_sale_yet_to_occur: false
                    offering_more_than_one_year: false
                    minimum_investment_usd: 0
                    total_offering_amount_usd: 12000000
                    total_offering_amount_indefinite: false
                    total_amount_sold_usd: 9500000
                    total_remaining_usd: 2500000
                    amount_sold_percent: 79.17
                    has_non_accredited_investors: false
                    non_accredited_investor_count: null
                    investor_count: 14
                    sales_commissions_usd: 0
                    finders_fees_usd: 0
                    proceeds_to_related_persons_usd: 0
                    related_persons:
                      - name: "Avery J. Quill"
                        relationships:
                          - "Executive Officer"
                          - "Director"
                        clarification: "Chief Executive Officer"
                    sales_recipients: []
                    signature_date: "2026-11-24"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/liquidity":
    get:
      operationId: "getMacroLiquidity"
      tags:
        - "macro"
      summary: "Get US and Federal Reserve net liquidity and overnight rates"
      description: "Combines Federal Reserve H.4.1 total assets (WALCL), SOMA holdings, and bank reserve balances with daily US Treasury General Account (TGA) balances, daily NY Fed Overnight Reverse Repo (ON RRP), derived Fed Net Liquidity (WALCL - TGA - ON RRP) with 1-week/4-week deltas and regime classification, and NY Fed overnight reference rates (SOFR, EFFR, OBFR, TGCR, BGCR) with funding-stress spreads."
      parameters:
        - $ref: "#/components/parameters/MacroLiquidityDays"
        - $ref: "#/components/parameters/MacroLiquidityStartDate"
        - $ref: "#/components/parameters/MacroLiquidityEndDate"
        - $ref: "#/components/parameters/MacroLiquidityIncludeHistory"
      responses:
        "200":
          description: "Get US and Federal Reserve net liquidity and overnight rates: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/MacroLiquidityResponse"
              example:
                as_of: "2026-11-27"
                fetched_at: "2026-11-30T00:00:00.000Z"
                stale_fallback: false
                snapshot:
                  as_of: "2026-11-27"
                  fed_total_assets_billions_usd: 6895.4
                  fed_total_assets_as_of: "2026-11-25"
                  fed_balance_sheet_basis: "fed_h41_walcl"
                  securities_held_outright_billions_usd: 6520.1
                  soma_treasuries_billions_usd: 4290.5
                  soma_mbs_billions_usd: 2229.6
                  reserve_balances_billions_usd: 3240.8
                  reserve_balances_as_of: "2026-11-25"
                  tga_billions_usd: 812.3
                  tga_as_of: "2026-11-27"
                  tga_source: "us_treasury_dts"
                  on_rrp_billions_usd: 145.6
                  on_rrp_as_of: "2026-11-27"
                  on_rrp_award_rate_pct: 4.55
                  on_rrp_counterparties_count: 42
                  on_rrp_source: "ny_fed_rrp_results"
                  net_liquidity_billions_usd: 5937.5
                  net_liquidity_change_1w_billions_usd: 42.1
                  net_liquidity_change_1w_pct: 0.71
                  net_liquidity_change_4w_billions_usd: 85.4
                  net_liquidity_change_4w_pct: 1.46
                  liquidity_regime: "expanding"
                reference_rates:
                  sofr:
                    rate_pct: 4.58
                    effective_date: "2026-11-27"
                    volume_billions_usd: 2140
                    percentile_1_pct: 4.5
                    percentile_25_pct: 4.55
                    percentile_75_pct: 4.62
                    percentile_99_pct: 4.72
                    target_from_pct: 4.5
                    target_to_pct: 4.75
                    avg_30d_pct: 4.59
                    avg_90d_pct: 4.71
                    avg_180d_pct: 4.95
                  effr:
                    rate_pct: 4.58
                    effective_date: "2026-11-27"
                    volume_billions_usd: 2140
                    percentile_1_pct: 4.5
                    percentile_25_pct: 4.55
                    percentile_75_pct: 4.62
                    percentile_99_pct: 4.72
                    target_from_pct: 4.5
                    target_to_pct: 4.75
                    avg_30d_pct: 4.59
                    avg_90d_pct: 4.71
                    avg_180d_pct: 4.95
                  obfr: null
                  tgcr: null
                  bgcr: null
                  spreads:
                    sofr_minus_effr_bps: 0
                    effr_minus_target_mid_bps: -4.5
                    sofr_minus_target_upper_bps: -17
                    obfr_minus_effr_bps: 0
                    funding_stress_flag: false
                history:
                  - date: "2026-11-27"
                    fed_total_assets_billions_usd: 6895.4
                    fed_total_assets_as_of: "2026-11-25"
                    tga_billions_usd: 812.3
                    tga_as_of: "2026-11-27"
                    on_rrp_billions_usd: 145.6
                    on_rrp_as_of: "2026-11-27"
                    net_liquidity_billions_usd: 5937.5
                    reserve_balances_billions_usd: 3240.8
                    sofr_pct: 4.58
                    effr_pct: 4.58
                    obfr_pct: 4.58
                    sofr_minus_effr_bps: 0
                count: 1
                source_status:
                  fed_h41: "ok"
                  treasury_tga: "ok"
                  ny_fed_rrp: "ok"
                  ny_fed_reference_rates: "ok"
                sources:
                  - id: "federal_reserve_h41"
                    name: "Federal Reserve Board H.4.1 Statistical Release"
                    url: "https://www.federalreserve.gov/releases/h41/"
                    series:
                      - "RESPPMA_N.WW (WALCL Total Assets)"
                    frequency: "weekly_wednesday"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/spreads":
    get:
      operationId: "getMacroSpreads"
      tags:
        - "macro"
      summary: "Get US Treasury yield curve spreads and Sahm Rule indicator"
      description: "Computes US Treasury yield curve spreads (2s10s, 3m10y, 2s5s, 5s30s, 10y minus Fed funds target midpoint), curve regime, inversion streak durations, and the Sahm Rule real-time recession indicator directly from Darvas's stored US Treasury, BIS, and BLS macro tables."
      parameters:
        - $ref: "#/components/parameters/MacroSpreadsDays"
        - $ref: "#/components/parameters/MacroSpreadsMonths"
        - $ref: "#/components/parameters/MacroSpreadsStartDate"
        - $ref: "#/components/parameters/MacroSpreadsEndDate"
        - $ref: "#/components/parameters/MacroSpreadsIncludeHistory"
      responses:
        "200":
          description: "Get US Treasury yield curve spreads and Sahm Rule indicator: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/MacroSpreadsResponse"
              example:
                as_of: "2026-11-27"
                computed_at: "2026-11-30T00:00:00.000Z"
                yield_curve_spreads:
                  date: "2026-11-27"
                  yield_3m_pct: 4.55
                  yield_2y_pct: 4.21
                  yield_5y_pct: 4.18
                  yield_10y_pct: 4.32
                  yield_30y_pct: 4.51
                  fed_funds_target_mid_pct: 4.625
                  spread_2s10s_bps: 11
                  spread_2s10s_pct: 0.11
                  spread_3m10y_bps: -23
                  spread_3m10y_pct: -0.23
                  spread_2s5s_bps: -3
                  spread_5s30s_bps: 33
                  spread_10y_minus_fed_bps: -30.5
                  is_2s10s_inverted: false
                  is_3m10y_inverted: true
                  inversion_2s10s_streak_days: 0
                  inversion_3m10y_streak_days: 14
                  curve_regime: "flat"
                  change_1w_2s10s_bps: 4.2
                  change_1m_2s10s_bps: 9.5
                  change_1w_3m10y_bps: -2.1
                  change_1m_3m10y_bps: 12.4
                  last_2s10s_inversion_date: "2024-09-05"
                  last_3m10y_inversion_date: "2026-11-27"
                sahm_rule:
                  date: "2026-10-01"
                  unemployment_rate_pct: 4.1
                  first_published_unemployment_rate_pct: 4.1
                  unemployment_ma3_pct: 4.13
                  prior_12m_min_ma3_pct: 3.9
                  sahm_rule_indicator_pct_pts: 0.23
                  recession_signal_triggered: false
                  distance_to_trigger_pct_pts: 0.27
                spreads_history:
                  - date: "2026-11-27"
                    yield_3m_pct: 4.55
                    yield_2y_pct: 4.21
                    yield_5y_pct: 4.18
                    yield_10y_pct: 4.32
                    yield_30y_pct: 4.51
                    fed_funds_target_mid_pct: 4.625
                    spread_2s10s_bps: 11
                    spread_2s10s_pct: 0.11
                    spread_3m10y_bps: -23
                    spread_3m10y_pct: -0.23
                    spread_2s5s_bps: -3
                    spread_5s30s_bps: 33
                    spread_10y_minus_fed_bps: -30.5
                    is_2s10s_inverted: false
                    is_3m10y_inverted: true
                    inversion_2s10s_streak_days: 0
                    inversion_3m10y_streak_days: 14
                sahm_history:
                  - date: "2026-10-01"
                    unemployment_rate_pct: 4.1
                    first_published_unemployment_rate_pct: 4.1
                    unemployment_ma3_pct: 4.13
                    prior_12m_min_ma3_pct: 3.9
                    sahm_rule_indicator_pct_pts: 0.23
                    recession_signal_triggered: false
                    distance_to_trigger_pct_pts: 0.27
                spreads_count: 1
                sahm_count: 1
                sources:
                  - id: "us_treasury_yield_curve"
                    name: "US Department of the Treasury Daily Par Yield Curve Rates"
                    series:
                      - "3_month"
                      - "2_year"
                      - "5_year"
                      - "10_year"
                      - "30_year"
                    frequency: "daily_business_day"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/insider-trades/screener":
    get:
      operationId: "screenInsiderTrades"
      tags:
        - "insiders"
      summary: "Screen market-wide insider trades"
      description: "Screen SEC Form 4 and Form 5 insider transactions across all companies (or one ticker/cik) by transaction type, USD value range, executive role, 10b5-1 plan status, sector, and date range, enriched with holding_change_pct and filing_delay_days."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/InsiderScreenerTransactionType"
        - $ref: "#/components/parameters/InsiderScreenerMinValueUsd"
        - $ref: "#/components/parameters/InsiderScreenerMaxValueUsd"
        - $ref: "#/components/parameters/InsiderScreenerRole"
        - $ref: "#/components/parameters/InsiderScreenerIs10b51"
        - $ref: "#/components/parameters/InsiderScreenerSector"
        - $ref: "#/components/parameters/InsiderScreenerStartDate"
        - $ref: "#/components/parameters/InsiderScreenerEndDate"
        - $ref: "#/components/parameters/InsiderScreenerSortBy"
        - $ref: "#/components/parameters/OwnershipSortOrder"
        - $ref: "#/components/parameters/OwnershipAnalyticsLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "Screen market-wide insider trades: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InsiderScreenerResponse"
              example:
                filters:
                  ticker: null
                  cik: null
                  transaction_type:
                    - "buy"
                  role: "ceo"
                  is_10b5_1: false
                  sector: "Technology"
                  min_value_usd: 100000
                  max_value_usd: null
                  start_date: "2026-11-01"
                  end_date: "2026-11-30"
                  sort_by: "value_usd"
                  sort_order: "desc"
                units:
                  transaction_shares: "shares"
                  transaction_price_usd: "USD/share"
                  transaction_value_usd: "USD"
                  shares_owned_before: "shares"
                  shares_owned_after: "shares"
                  holding_change_pct: "percent (%)"
                  filing_delay_days: "calendar days"
                methodology: "Market-wide SEC Form 4 and Form 5 non-holding transactions."
                returned: 1
                insider_trades:
                  - ticker: "AAPL"
                    issuer_cik: "0000320193"
                    issuer_name: "Apple Inc."
                    sector: "Technology"
                    industry: "Electronic Computers"
                    owner_cik: "0001214156"
                    owner_name: "Cook Timothy D"
                    owner_title: "Chief Executive Officer"
                    roles:
                      - "ceo"
                      - "officer"
                      - "director"
                    is_ceo: true
                    is_cfo: false
                    is_officer: true
                    is_director: true
                    is_ten_percent_owner: false
                    form_type: "4"
                    accession_number: "0000320193-26-000101"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000101/0000320193-26-000101-index.htm"
                    filing_date: "2026-11-26"
                    transaction_date: "2026-11-24"
                    filing_delay_days: 2
                    is_late_filing: false
                    transaction_code: "P"
                    transaction_type: "Purchase"
                    transaction_category: "buy"
                    acquired_or_disposed: "A"
                    is_derivative: false
                    is_10b5_1_plan: false
                    security_title: "Common Stock"
                    transaction_shares: 10000
                    transaction_price_usd: 220
                    transaction_value_usd: 2200000
                    shares_owned_before: 100000
                    shares_owned_after: 110000
                    holding_change_pct: 10
                    direct_or_indirect: "D"
                    nature_of_ownership: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/insider-trades/clusters":
    get:
      operationId: "listInsiderClusters"
      tags:
        - "insiders"
      summary: "Detect insider cluster buys"
      description: "Detect companies where at least min_insiders distinct reporting owners executed open-market non-derivative Form 4/5 purchases within window_days, scored with buy_sell_dollar_ratio and net_insider_sentiment_score on [-100, +100]."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/InsiderClusterWindowDays"
        - $ref: "#/components/parameters/InsiderClusterAsOf"
        - $ref: "#/components/parameters/InsiderClusterMinInsiders"
        - $ref: "#/components/parameters/InsiderClusterMinValueUsd"
        - $ref: "#/components/parameters/InsiderClusterExclude10b51"
        - $ref: "#/components/parameters/InsiderScreenerSector"
        - $ref: "#/components/parameters/InsiderClusterSortBy"
        - $ref: "#/components/parameters/OwnershipAnalyticsLimit"
      responses:
        "200":
          description: "Detect insider cluster buys: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InsiderClustersResponse"
              example:
                window_days: 30
                window_start: "2026-10-31"
                window_end: "2026-11-30"
                min_insiders: 3
                min_cluster_value_usd: 0
                exclude_10b5_1: false
                sector: null
                sort_by: "total_buy_value_usd"
                units:
                  window_days: "calendar days"
                  cluster_span_days: "calendar days"
                  total_buy_shares: "shares"
                  total_sell_shares: "shares"
                  net_shares: "shares"
                  total_buy_value_usd: "USD"
                  total_sell_value_usd: "USD"
                  net_value_usd: "USD"
                  avg_buy_price_usd: "USD/share"
                  buy_sell_dollar_ratio: "ratio (buy_usd / sell_usd, null if sell_usd is 0)"
                  buy_share_of_total_value_pct: "percent (%)"
                  net_insider_sentiment_score: "score (-100 to +100)"
                methodology: "Detects issuers with at least min_insiders distinct primary reporting owners executing open-market purchases."
                returned: 1
                clusters:
                  - ticker: "AAPL"
                    issuer_cik: "0000320193"
                    issuer_name: "Apple Inc."
                    sector: "Technology"
                    industry: "Electronic Computers"
                    distinct_buyers: 3
                    distinct_sellers: 0
                    buy_trade_count: 3
                    sell_trade_count: 0
                    total_buy_shares: 18000
                    total_sell_shares: 0
                    net_shares: 18000
                    total_buy_value_usd: 3960000
                    total_sell_value_usd: 0
                    net_value_usd: 3960000
                    avg_buy_price_usd: 220
                    buy_sell_dollar_ratio: null
                    buy_share_of_total_value_pct: 100
                    net_insider_sentiment_score: 100
                    sentiment_label: "strong_bullish"
                    has_ceo_buyer: true
                    has_cfo_buyer: true
                    insider_roles:
                      - "ceo"
                      - "cfo"
                      - "director"
                      - "officer"
                    earliest_buy_date: "2026-11-20"
                    latest_buy_date: "2026-11-25"
                    latest_filing_date: "2026-11-26"
                    cluster_span_days: 5
                    buyers:
                      - owner_cik: "0001214156"
                        owner_name: "Cook Timothy D"
                        owner_title: "Chief Executive Officer"
                        roles:
                          - "ceo"
                          - "officer"
                          - "director"
                        buy_shares: 10000
                        buy_value_usd: 2200000
                        trade_count: 1
                        first_buy_date: "2026-11-20"
                        last_buy_date: "2026-11-20"
                        accession_numbers:
                          - "0000320193-26-000101"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/institutional-ownership/changes":
    get:
      operationId: "listInstitutionalChanges"
      tags:
        - "institutions"
      summary: "List 13F quarter-over-quarter changes"
      description: "Compare each 13F institution's in-force holdings between report_period and prior_report_period, classifying positions as new_position, added, reduced, sold_out, or unchanged with shares_change, shares_change_pct, value_change_usd, and pct_of_shares_outstanding."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/FilerCik"
        - $ref: "#/components/parameters/InstChangeInvestor"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/InstChangeAction"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/InstChangePutCall"
        - $ref: "#/components/parameters/InsiderScreenerMinValueUsd"
        - $ref: "#/components/parameters/InstChangeSortBy"
        - $ref: "#/components/parameters/OwnershipSortOrder"
        - $ref: "#/components/parameters/OwnershipAnalyticsLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List 13F quarter-over-quarter changes: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InstitutionalChangesResponse"
              example:
                report_period: "2026-09-30"
                prior_report_period: "2026-06-30"
                filters:
                  ticker: "AAPL"
                  filer_cik: null
                  filer_name: null
                  action:
                    - "added"
                  put_call: "all"
                  min_value_usd: null
                  sort_by: "abs_value_change_usd"
                  sort_order: "desc"
                units:
                  current_shares: "shares"
                  prior_shares: "shares"
                  shares_change: "shares"
                  shares_change_pct: "percent (%)"
                  current_value_usd: "USD"
                  prior_value_usd: "USD"
                  value_change_usd: "USD"
                  value_change_pct: "percent (%)"
                  pct_of_shares_outstanding: "percent (%)"
                  prior_pct_of_shares_outstanding: "percent (%)"
                  ownership_change_pct_points: "percentage points (pp)"
                  shares_outstanding_reference: "shares"
                methodology: "Compares in-force SEC Form 13F reports between report_period and prior_report_period."
                returned: 1
                changes:
                  - ticker: "AAPL"
                    cusip: "037833100"
                    figi: "BBG000B9XRY4"
                    issuer_name: "APPLE INC"
                    title_of_class: "COM"
                    put_call: null
                    filer_cik: "0001067983"
                    filer_name: "BERKSHIRE HATHAWAY INC"
                    action: "added"
                    report_period: "2026-09-30"
                    prior_report_period: "2026-06-30"
                    filing_date: "2026-11-14"
                    accession_number: "0001067983-26-000010"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/1067983/000106798326000010/0001067983-26-000010-index.htm"
                    prior_accession_number: "0001067983-26-000005"
                    current_shares: 4500000
                    prior_shares: 4000000
                    shares_change: 500000
                    shares_change_pct: 12.5
                    current_value_usd: 990000000
                    prior_value_usd: 800000000
                    value_change_usd: 190000000
                    value_change_pct: 23.75
                    pct_of_shares_outstanding: 0.03
                    prior_pct_of_shares_outstanding: 0.0267
                    ownership_change_pct_points: 0.0033
                    shares_outstanding_reference: 15000000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/institutional-ownership/top-bought":
    get:
      operationId: "listInstitutionalTopBought"
      tags:
        - "institutions"
      summary: "Rank most-bought or most-sold 13F stocks"
      description: "Rank common equity securities by net 13F institutional accumulation or distribution in a quarter using price-adjusted net_flow_value_usd, net_value_change_usd, net_shares_change, buyer/seller counts, and institutional_ownership_pct."
      parameters:
        - $ref: "#/components/parameters/InstTopBoughtDirection"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/InstTopBoughtMinHolders"
        - $ref: "#/components/parameters/InstTopBoughtSortBy"
        - $ref: "#/components/parameters/OwnershipAnalyticsLimit"
      responses:
        "200":
          description: "Rank most-bought or most-sold 13F stocks: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InstitutionalTopBoughtResponse"
              example:
                direction: "bought"
                report_period: "2026-09-30"
                prior_report_period: "2026-06-30"
                min_holders: 1
                sort_by: "net_flow_value_usd"
                units:
                  total_shares_current: "shares"
                  total_shares_prior: "shares"
                  net_shares_change: "shares"
                  total_value_current_usd: "USD"
                  total_value_prior_usd: "USD"
                  net_value_change_usd: "USD"
                  net_flow_value_usd: "USD (price-adjusted share change * implied period-end share price)"
                  institutional_ownership_pct: "percent (%)"
                  net_shares_change_pct_of_outstanding: "percent (%)"
                  shares_outstanding_reference: "shares"
                methodology: "Ranks common equity positions across all in-force 13F filers."
                returned: 1
                stocks:
                  - rank: 1
                    ticker: "AAPL"
                    cusip: "037833100"
                    figi: "BBG000B9XRY4"
                    issuer_name: "APPLE INC"
                    total_holders_current: 4200
                    total_holders_prior: 4050
                    net_holders_change: 150
                    buyers_count: 1850
                    sellers_count: 1420
                    net_buyers_count: 430
                    new_positions_count: 240
                    added_positions_count: 1610
                    reduced_positions_count: 1330
                    sold_out_positions_count: 90
                    total_shares_current: 9200000000
                    total_shares_prior: 9050000000
                    net_shares_change: 150000000
                    total_value_current_usd: 2024000000000
                    total_value_prior_usd: 1900500000000
                    net_value_change_usd: 123500000000
                    net_flow_value_usd: 33000000000
                    institutional_ownership_pct: 61.3333
                    net_shares_change_pct_of_outstanding: 1
                    shares_outstanding_reference: 15000000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/ownership/summary":
    get:
      operationId: "getOwnershipSummary"
      tags:
        - "institutions"
      summary: "Get unified company ownership summary"
      description: "Unified per-company ownership snapshot combining Form 13F institutional ownership and QoQ changes, Schedule 13D activist and 13G passive stakes, recent Form 4/5 open-market insider net buying and sentiment, and Form N-PORT ETF/mutual fund holders."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/OwnershipSummaryInsiderWindowDays"
      responses:
        "200":
          description: "Get unified company ownership summary: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/OwnershipSummaryResponse"
              example:
                ticker: "AAPL"
                cik: "0000320193"
                company_name: "Apple Inc."
                sector: "Technology"
                industry: "Electronic Computers"
                cusips:
                  - "037833100"
                shares_outstanding_reference:
                  shares_outstanding: 15000000000
                  report_period: "2026-09-26"
                  accession_number: "0000320193-26-000105"
                as_of: "2026-11-30T00:00:00.000Z"
                units:
                  shares_outstanding: "shares"
                  total_institutional_shares: "shares"
                  prior_institutional_shares: "shares"
                  shares_change_qoq: "shares"
                  shares_change_qoq_pct: "percent (%)"
                  total_institutional_value_usd: "USD"
                  institutional_ownership_pct: "percent (%)"
                  top_10_concentration_pct: "percent (%)"
                  put_call_share_ratio: "ratio (put_shares / call_shares)"
                  activist_combined_pct: "percent (%)"
                  passive_combined_pct: "percent (%)"
                  percent_of_class_pct: "percent (%)"
                  insider_window_days: "calendar days"
                  total_buy_shares: "shares"
                  total_sell_shares: "shares"
                  net_shares: "shares"
                  total_buy_value_usd: "USD"
                  total_sell_value_usd: "USD"
                  net_value_usd: "USD"
                  buy_sell_dollar_ratio: "ratio (buy_usd / sell_usd)"
                  buy_share_of_total_value_pct: "percent (%)"
                  net_insider_sentiment_score: "score (-100 to +100)"
                  total_fund_shares: "shares"
                  total_fund_value_usd: "USD"
                  fund_ownership_pct: "percent (%)"
                  weight_pct: "percent (% of fund net assets)"
                methodology: "Combines Form 13F, Schedule 13D/13G, Form 4/5, and Form N-PORT datasets against XBRL shares outstanding."
                institutional_13f:
                  report_period: "2026-09-30"
                  prior_report_period: "2026-06-30"
                  institutional_holders_count: 4200
                  prior_holders_count: 4050
                  holders_change_qoq: 150
                  total_institutional_shares: 9200000000
                  prior_institutional_shares: 9050000000
                  shares_change_qoq: 150000000
                  shares_change_qoq_pct: 1.66
                  total_institutional_value_usd: 2024000000000
                  prior_institutional_value_usd: 1900500000000
                  value_change_qoq_usd: 123500000000
                  institutional_ownership_pct: 61.3333
                  top_10_concentration_pct: 32.5
                  put_call_share_ratio: 0.625
                  position_changes:
                    new_positions_count: 240
                    added_positions_count: 1610
                    reduced_positions_count: 1330
                    sold_out_positions_count: 90
                  top_holders: []
                beneficial_13d_13g:
                  total_beneficial_filers_count: 2
                  activist_stakes_count: 0
                  passive_stakes_count: 2
                  activist_combined_pct: 0
                  passive_combined_pct: 16.4
                  activist_stakes: []
                  top_passive_stakes: []
                insider_activity:
                  insider_window_days: 90
                  window_start: "2026-09-01"
                  window_end: "2026-11-30"
                  distinct_buyers: 2
                  distinct_sellers: 1
                  buy_trade_count: 2
                  sell_trade_count: 1
                  total_buy_shares: 15000
                  total_sell_shares: 5000
                  net_shares: 10000
                  total_buy_value_usd: 3300000
                  total_sell_value_usd: 1100000
                  net_value_usd: 2200000
                  buy_sell_dollar_ratio: 3
                  buy_share_of_total_value_pct: 75
                  net_insider_sentiment_score: 52.5
                  sentiment_label: "bullish"
                  recent_trades: []
                etf_and_fund_holders:
                  total_funds_holding_count: 420
                  total_fund_shares: 2100000000
                  total_fund_value_usd: 462000000000
                  fund_ownership_pct: 14
                  top_funds: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/filings/feed":
    get:
      operationId: "listFilingsFeed"
      tags:
        - "filings"
      summary: "List SEC filings of every company"
      description: "SEC filings of every company, newest first, one row per accession number with every party (filer, issuer, reporting owner, subject company). forms keeps the forms named (SC 13D and SCHEDULE 13D find both names of a schedule), items the 8-Ks that report one of these item numbers, sector the companies an SEC office reviews. Without ticker, cik or start_date, the last 30 days. A page holds up to 100 filings."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/FeedForms"
        - $ref: "#/components/parameters/FeedItems"
        - $ref: "#/components/parameters/FeedSector"
        - $ref: "#/components/parameters/RangeStartDate"
        - $ref: "#/components/parameters/RangeEndDate"
        - $ref: "#/components/parameters/FeedLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List SEC filings of every company: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FilingsFeedResponse"
              example:
                filings:
                  - accession_number: "0000320193-26-000300"
                    form_type: "8-K"
                    filing_date: "2026-11-27"
                    accepted_at: "2026-11-27T21:05:00Z"
                    cik: 320193
                    ticker: "AAPL"
                    company_name: "Apple Inc."
                    sector: "Technology"
                    item_codes:
                      - "5.02"
                      - "9.01"
                    item_descriptions:
                      - "Departure or appointment of directors and officers"
                      - "Financial statements and exhibits"
                    parties:
                      - cik: 320193
                        ticker: "AAPL"
                        name: "Apple Inc."
                    sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
                    items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300"
                as_of: "2026-11-30T12:00:00.000Z"
                source:
                  provider: "SEC EDGAR"
                  dataset: "EDGAR filing index and daily feed"
                  methodology: "One row per accession number."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/events/8k-structured":
    get:
      operationId: "listStructuredEightKEvents"
      tags:
        - "filings"
      summary: "List structured 8-K material events"
      description: "8-Ks of every company that report an executive change (Item 5.02), a shareholder vote (5.07), an auditor change (4.01), non-reliance on financial statements (4.02) or a material cybersecurity incident (1.05), each with fields read from the item's text and the sentences they come from. A filing not read yet answers extraction_status reading, and Darvas reads it within a minute. Without ticker, cik or start_date, the last 30 days. limit counts filings; a page holds up to 100."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/MaterialEventCategory"
        - $ref: "#/components/parameters/RangeStartDate"
        - $ref: "#/components/parameters/RangeEndDate"
        - $ref: "#/components/parameters/MaterialEventLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List structured 8-K material events: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/MaterialEventsResponse"
              example:
                events:
                  - category: "auditor_change"
                    item_code: "4.01"
                    item_description: "Change of the certifying accountant"
                    ticker: "AAPL"
                    cik: 320193
                    company_name: "Apple Inc."
                    accession_number: "0000320193-26-000300"
                    form_type: "8-K"
                    is_amendment: false
                    filing_date: "2026-11-27"
                    accepted_at: "2026-11-27T21:05:00Z"
                    extraction_status: "extracted"
                    details:
                      former_auditor: "Deloitte & Touche LLP"
                      new_auditor: "Ernst & Young LLP"
                      change_type: "dismissed"
                      event_date: "2026-11-23"
                      no_disagreements_stated: true
                      mentions_going_concern: false
                      mentions_material_weakness: false
                    source_text: "On November 23, 2026, the audit committee approved the engagement of Ernst & Young LLP."
                    sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
                    items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300&item=Item-4.01"
                as_of: "2026-11-30T12:00:00.000Z"
                source:
                  provider: "SEC EDGAR"
                  dataset: "EDGAR filing index and daily feed"
                  methodology: "One row per accession number."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/sec/rule-10b5-1":
    get:
      operationId: "listTradingArrangements"
      tags:
        - "insiders"
      summary: "List Rule 10b5-1 trading arrangements"
      description: "Insiders' Rule 10b5-1 and non-Rule 10b5-1 trading arrangements from three SEC sources, one row per filing, newest first: the adoptions and terminations 10-K Item 9B and 10-Q Part II Item 5 disclose (Regulation S-K Item 408(a)), Forms 4 with the Rule 10b5-1(c) box checked, and Form 144 notices of sales under a plan. With ticker or cik, the first page adds the company's restatement flags: non-reliance 8-Ks (Item 4.02), restatement facts and amended reports. Without a company or start_date, the last 90 days."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ArrangementSource"
        - $ref: "#/components/parameters/RangeStartDate"
        - $ref: "#/components/parameters/RangeEndDate"
        - $ref: "#/components/parameters/ArrangementLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List Rule 10b5-1 trading arrangements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/TradingArrangementsResponse"
              example:
                filings:
                  - source: "periodic_report"
                    form_type: "10-Q"
                    accession_number: "0000320193-26-000300"
                    filing_date: "2026-11-27"
                    ticker: "AAPL"
                    cik: 320193
                    company_name: "Apple Inc."
                    sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
                    none_reported: false
                    xbrl_aggregate_available_shares: 20661
                    arrangements:
                      - insider_name: "Rebecca Pearce"
                        insider_title: "Executive Vice President and Chief People Officer"
                        action: "adopted"
                        rule_10b5_1: true
                        adoption_date: "2026-09-30"
                        action_date: "2026-09-30"
                        plan_end_date: "2027-12-31"
                        shares: 20661
                        shares_basis: "plan_aggregate"
                        value_usd: null
                        source_text: "On September 30, 2026, Rebecca Pearce, our Executive Vice President, adopted a Rule 10b5-1 trading arrangement."
                as_of: "2026-11-30T12:00:00.000Z"
                source:
                  provider: "SEC EDGAR"
                  dataset: "EDGAR filing index and daily feed"
                  methodology: "One row per accession number."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/sec/crypto-treasuries":
    get:
      operationId: "listCryptoTreasuries"
      tags:
        - "financials"
      summary: "List public companies' crypto holdings"
      description: "The crypto assets public companies hold from the us-gaap tags of FASB ASU 2023-08 in their 10-K and 10-Q XBRL: fair value, cost, unrealized gain and units by the asset the unit names, each value cited to its filing. Without a company, each company's latest period, largest fair value first; with ticker or cik, that company's history."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/TreasuryAsset"
        - $ref: "#/components/parameters/TreasuryLimit"
      responses:
        "200":
          description: "List public companies' crypto holdings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoTreasuriesResponse"
              example:
                treasuries:
                  - ticker: "MSTR"
                    cik: 1050446
                    company_name: "Strategy Inc"
                    sector: "Technology"
                    asset_filter: "BTC"
                    period_end: "2026-09-30"
                    form_type: "10-Q"
                    accession_number: "0001050446-26-000060"
                    filed: "2026-11-03"
                    fair_value_usd: 70824007000
                    fair_value_current_usd: null
                    fair_value_noncurrent_usd: null
                    cost_basis_usd: 63945036000
                    unrealized_gain_usd: 6878971000
                    holdings:
                      - asset: "BTC"
                        units: 847666
                        unit_as_reported: "Bitcoin"
                        implied_usd_per_unit: 83552.68
                        quality_flags: []
                        accession_number: "0001050446-26-000060"
                    facts:
                      - concept: "us-gaap:CryptoAssetFairValue"
                        value: 70824007000
                        unit: "USD"
                        form_type: "10-Q"
                        accession_number: "0001050446-26-000060"
                        filed: "2026-11-03"
                        sec_filing_url: "https://www.sec.gov/Archives/edgar/data/1050446/000105044626000060/0001050446-26-000060-index.htm"
                as_of: "2026-11-30T12:00:00.000Z"
                source:
                  provider: "SEC EDGAR"
                  dataset: "EDGAR filing index and daily feed"
                  methodology: "One row per accession number."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/government/contracts":
    get:
      operationId: "listGovernmentContracts"
      tags:
        - "company"
      summary: "List a company's federal contracts"
      description: "US federal prime contract awards of a company from USASpending.gov, largest first. The company's SEC name without its legal suffix finds the USASpending recipients of the same name, and their UEIs find the awards, those of subsidiaries filed under a parent included. recipient searches another name. Awards with actions in the last 365 days by default; start_date reaches back to 2007-10-01."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ContractRecipient"
        - $ref: "#/components/parameters/RangeStartDate"
        - $ref: "#/components/parameters/RangeEndDate"
        - $ref: "#/components/parameters/ContractLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List a company's federal contracts: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/GovernmentContractsResponse"
              example:
                ticker: "PLTR"
                cik: 1321655
                company_name: "PALANTIR TECHNOLOGIES INC."
                recipient_match:
                  method: "sec_company_name"
                  search_text: "PALANTIR TECHNOLOGIES"
                  recipients:
                    - name: "PALANTIR TECHNOLOGIES INC."
                      uei: "FSY4LVSBGWB7"
                      level: "P"
                      trailing_12_month_amount_usd: 1772714097
                period:
                  start_date: "2025-11-30"
                  end_date: "2026-11-30"
                contracts:
                  - award_id: "12314426F0126"
                    generated_internal_id: "CONT_AWD_12314426F0126_1205_12314426A0009_1205"
                    award_url: "https://www.usaspending.gov/award/CONT_AWD_12314426F0126_1205_12314426A0009_1205"
                    recipient_name: "PALANTIR TECHNOLOGIES INC."
                    recipient_uei: "FSY4LVSBGWB7"
                    award_amount_usd: 94687811.42
                    total_outlays_usd: 94687811.42
                    awarding_agency: "Department of Agriculture"
                    awarding_sub_agency: "Office of the Chief Financial Officer"
                    award_type: "BPA CALL"
                    start_date: "2026-04-18"
                    end_date: "2027-05-31"
                    base_obligation_date: "2026-04-17"
                    last_modified_date: "2026-11-20"
                    naics_code: "513210"
                    naics_description: "SOFTWARE PUBLISHERS"
                    psc_code: "DA10"
                    psc_description: "IT AND TELECOM - BUSINESS APPLICATION/APPLICATION DEVELOPMENT SOFTWARE AS A SERVICE"
                    description: "CENTRALIZE FARM PRODUCTION & CONSERVATION IT SYSTEMS"
                as_of: "2026-11-30T12:00:00.000Z"
                source:
                  provider: "USASpending.gov (US Department of the Treasury)"
                  dataset: "EDGAR filing index and daily feed"
                  methodology: "One row per accession number."
                  url: "https://api.usaspending.gov/docs/endpoints"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/defi/fees":
    get:
      operationId: "listDefiFees"
      tags:
        - "defi"
      summary: "List DeFi protocol fees and revenue"
      description: "Protocols ranked by the fees users paid, the revenue the protocol kept and the revenue paid to token holders over 24 hours, 7 and 30 days and a year, with annualized fees and revenue (trailing 30 days × 365 / 30) and TVL, price-to-fees and price-to-sales multiples. A chain filter ranks fees earned on that chain."
      parameters:
        - $ref: "#/components/parameters/DefiChain"
        - $ref: "#/components/parameters/DefiCategory"
        - $ref: "#/components/parameters/DefiQuery"
        - $ref: "#/components/parameters/FeeSort"
        - $ref: "#/components/parameters/DepthLimit500"
      responses:
        "200":
          description: "List DeFi protocol fees and revenue: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DefiFeesResponse"
              example:
                chain: null
                totals:
                  fees_24h_usd: 54621352.02
                  fees_7d_usd: 432003572.33
                  fees_30d_usd: 2011371328.57
                  fees_1y_usd: 23608393170.49
                  fees_change_1d_pct: -14.26
                  revenue_24h_usd: 33158185.14
                  revenue_30d_usd: 1114796900.6
                protocols:
                  - slug: "aave-v3"
                    name: "Aave V3"
                    protocol_type: "protocol"
                    category: "Lending"
                    chains:
                      - "ethereum"
                      - "base"
                    fees_24h_usd: 1420000
                    fees_7d_usd: 9800000
                    fees_30d_usd: 42574293
                    fees_1y_usd: 520000000
                    fees_all_time_usd: 2100000000
                    fees_change_1d_pct: 3.1
                    fees_change_7d_pct: -1.2
                    fees_change_30d_pct: -2.95
                    revenue_24h_usd: 190000
                    revenue_7d_usd: 1300000
                    revenue_30d_usd: 5600000
                    revenue_1y_usd: 70000000
                    holders_revenue_24h_usd: 40000
                    holders_revenue_30d_usd: 1200000
                    holders_revenue_1y_usd: 14000000
                    annualized_fees_usd: 517987898.17
                    annualized_revenue_usd: 68133333.33
                    tvl_usd: 15251055917
                    mcap_usd: 1400449180
                    tvl_to_annualized_fees: 29.4429
                    mcap_to_annualized_fees: 2.7036
                    mcap_to_annualized_revenue: 20.5545
                total_matched: 3355
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/defi/dex-volumes":
    get:
      operationId: "listDefiDexVolumes"
      tags:
        - "defi"
      summary: "List DEX, aggregator and options volume"
      description: "Trading volume by protocol for one market: spot DEXs, DEX aggregators, perpetuals routed through aggregators, or on-chain options by notional or premium. Each protocol carries its 24-hour, 7-day, 30-day, one-year and all-time volume, its changes and its share of the market's 24-hour volume."
      parameters:
        - $ref: "#/components/parameters/VolumeMarket"
        - $ref: "#/components/parameters/DefiChain"
        - $ref: "#/components/parameters/DefiCategory"
        - $ref: "#/components/parameters/DefiQuery"
        - $ref: "#/components/parameters/VolumeSort"
        - $ref: "#/components/parameters/DepthLimit500"
      responses:
        "200":
          description: "List DEX, aggregator and options volume: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DefiDexVolumesResponse"
              example:
                market: "spot"
                chain: null
                totals:
                  volume_24h_usd: 5255611335.92
                  volume_7d_usd: 49949786873.12
                  volume_30d_usd: 246818754062.08
                  change_1d_pct: -18.91
                  change_7d_pct: -38.43
                  change_30d_pct: -67.63
                protocols:
                  - slug: "uniswap-v3"
                    name: "Uniswap V3"
                    protocol_type: "protocol"
                    category: "Dexs"
                    chains:
                      - "ethereum"
                      - "arbitrum"
                      - "base"
                    volume_24h_usd: 522715503
                    volume_7d_usd: 5416018590
                    volume_30d_usd: 31282139501
                    volume_1y_usd: 410000000000
                    volume_all_time_usd: 3100000000000
                    change_1d_pct: -12.4
                    change_7d_pct: -30.1
                    change_30d_pct: -55.2
                    share_24h_pct: 9.9459
                total_matched: 1705
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/defi/protocols/{slug}":
    get:
      operationId: "getDefiProtocol"
      tags:
        - "defi"
      summary: "Get one DeFi protocol"
      description: "One protocol's profile, current TVL by chain with each chain's share, borrowed and staked TVL, fees and revenue, and its TVL history overall or on one chain, sampled by day, week or month (last 90 days unless dates are given)."
      parameters:
        - $ref: "#/components/parameters/ProtocolSlug"
        - $ref: "#/components/parameters/DefiChain"
        - $ref: "#/components/parameters/TvlInterval"
        - $ref: "#/components/parameters/TvlStartDate"
        - $ref: "#/components/parameters/TvlEndDate"
      responses:
        "200":
          description: "Get one DeFi protocol: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DefiProtocolDetailResponse"
              example:
                protocol:
                  slug: "aave-v3"
                  name: "Aave V3"
                  symbol: "AAVE"
                  category: "Lending"
                  chains:
                    - "ethereum"
                    - "base"
                    - "arbitrum"
                  description: "Earn interest, borrow assets, and build applications"
                  url: "https://aave.com"
                  twitter: "aave"
                  token_id: null
                  parent_protocol: "aave"
                  is_parent_protocol: false
                  related_protocols:
                    - "Aave"
                    - "Aave V3"
                    - "Aave V4"
                  mcap_usd: null
                  listed_at: "2022-04-01T01:34:37.000Z"
                  tvl_usd: 15251055917
                  borrowed_usd: 10568383417.17
                  staking_usd: null
                  pool2_usd: null
                chain_tvls:
                  - chain: "ethereum"
                    tvl_usd: 13116337024.28
                    share_pct: 86.0028
                fundamentals:
                  slug: "aave-v3"
                  name: "Aave V3"
                  protocol_type: "protocol"
                  category: "Lending"
                  chains:
                    - "ethereum"
                    - "base"
                  fees_24h_usd: 1420000
                  fees_7d_usd: 9800000
                  fees_30d_usd: 42574293
                  fees_1y_usd: 520000000
                  fees_all_time_usd: 2100000000
                  fees_change_1d_pct: 3.1
                  fees_change_7d_pct: -1.2
                  fees_change_30d_pct: -2.95
                  revenue_24h_usd: 190000
                  revenue_7d_usd: 1300000
                  revenue_30d_usd: 5600000
                  revenue_1y_usd: 70000000
                  holders_revenue_24h_usd: 40000
                  holders_revenue_30d_usd: 1200000
                  holders_revenue_1y_usd: 14000000
                  annualized_fees_usd: 517987898.17
                  annualized_revenue_usd: 68133333.33
                  tvl_usd: 15251055917
                  mcap_usd: 1400449180
                  tvl_to_annualized_fees: 29.4429
                  mcap_to_annualized_fees: 2.7036
                  mcap_to_annualized_revenue: 20.5545
                tvl_history:
                  chain: "ethereum"
                  interval: "week"
                  start_date: "2026-10-01"
                  end_date: "2026-11-30"
                  points:
                    - date: "2026-11-29"
                      tvl_usd: 13116337024
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prediction-markets/markets/{id}":
    get:
      operationId: "getPredictionMarket"
      tags:
        - "prediction-markets"
      summary: "Get one prediction market"
      description: "One Polymarket or Kalshi market by its id: resolution rules and sources, every outcome's price, the other outcomes of its event, quotes with the spread in basis points of the $1 payout, volume, open interest, the taker fee rate and the probability history over the chosen window."
      parameters:
        - $ref: "#/components/parameters/PmMarketId"
        - $ref: "#/components/parameters/PmDetailVenue"
        - $ref: "#/components/parameters/PmHistory"
      responses:
        "200":
          description: "Get one prediction market: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PredictionMarketDetailResponse"
              example:
                market:
                  venue: "kalshi"
                  market_id: "KXFEDDECISION-26DEC-H25"
                  event_id: "KXFEDDECISION-26DEC"
                  series_id: "KXFEDDECISION"
                  question: "Will the Federal Reserve Hike rates by 25bps at their December 2026 meeting?"
                  outcome: "Hike 25bps"
                  rules: "If the Federal Reserve does a Hike of 25bps on December 09, 2026, then the market resolves to Yes."
                  settlement_sources:
                    - name: "Federal Reserve"
                      url: "https://www.federalreserve.gov"
                  category: "Economics"
                  event:
                    id: "KXFEDDECISION-26DEC"
                    title: "Fed decision in Dec 2026?"
                    subtitle: "On Dec 9, 2026"
                    mutually_exclusive: true
                  status: "active"
                  result: null
                  can_close_early: true
                  probability_0_to_1: 0.935
                  implied_prob_pct: 93.5
                  best_bid: 0.93
                  best_ask: 0.94
                  spread_bps: 100
                  last_price: 0.94
                  outcomes:
                    - outcome: "Yes"
                      probability_0_to_1: 0.935
                      implied_prob_pct: 93.5
                    - outcome: "No"
                      probability_0_to_1: 0.065
                      implied_prob_pct: 6.5
                  strike:
                    type: "custom"
                    floor: null
                    cap: null
                  volume_24h_contracts: 66167.64
                  volume_total_contracts: 5568090.61
                  open_interest_contracts: 3312827.05
                  taker_fee_rate: 0.07
                  opens_at: "2025-09-29T14:00:00Z"
                  closes_at: "2026-12-09T18:59:00Z"
                  expected_expiration_at: "2026-12-09T19:05:00Z"
                  url: "https://kalshi.com/markets/kxfeddecision"
                  api_url: "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25"
                event_outcomes:
                  - market_id: "KXFEDDECISION-26DEC-H25"
                    outcome: "Hike 25bps"
                    probability_0_to_1: 0.935
                    implied_prob_pct: 93.5
                    yes_bid: 0.93
                    yes_ask: 0.94
                    volume_24h_contracts: 66167.64
                price_history:
                  window: "1w"
                  outcome: "Yes"
                  points:
                    - time: "2026-11-29T22:00:00.000Z"
                      probability_0_to_1: 0.935
                      implied_prob_pct: 93.5
                      yes_bid: 0.93
                      yes_ask: 0.94
                      volume_contracts: 1218.98
                      open_interest_contracts: 3312211.11
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prediction-markets/orderbook":
    get:
      operationId: "getPredictionMarketOrderBook"
      tags:
        - "prediction-markets"
      summary: "Get a prediction market order book"
      description: "The live book of one outcome of a Polymarket or Kalshi market, best price first, with each level's USD notional and running total, the spread, and the USD resting within 1, 5 and 10 cents of the best bid and ask."
      parameters:
        - $ref: "#/components/parameters/PmBookMarketId"
        - $ref: "#/components/parameters/PmDetailVenue"
        - $ref: "#/components/parameters/PmBookOutcome"
        - $ref: "#/components/parameters/PmBookDepth"
      responses:
        "200":
          description: "Get a prediction market order book: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PredictionOrderBookResponse"
              example:
                venue: "kalshi"
                market_id: "KXFEDDECISION-26DEC-H25"
                outcome: "yes"
                question: "Will the Federal Reserve Hike rates by 25bps at their December 2026 meeting?"
                token_id: null
                book_time: "2026-11-30T09:00:00.000Z"
                book_hash: null
                url: "https://kalshi.com/markets/kxfeddecision"
                api_url: "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25/orderbook"
                best_bid: 0.93
                best_ask: 0.94
                probability_0_to_1: 0.935
                implied_prob_pct: 93.5
                spread_0_to_1: 0.01
                spread_bps: 100
                bid_depth:
                  side: "bid"
                  within_1c_usd: 412889.73
                  within_5c_usd: 1120000
                  within_10c_usd: 1420000
                ask_depth:
                  side: "ask"
                  within_1c_usd: 412889.73
                  within_5c_usd: 1120000
                  within_10c_usd: 1420000
                bids:
                  - price_0_to_1: 0.93
                    size_contracts: 181437.6
                    notional_usd: 170551.34
                    cumulative_notional_usd: 170551.34
                asks:
                  - price_0_to_1: 0.94
                    size_contracts: 181437.6
                    notional_usd: 170551.34
                    cumulative_notional_usd: 170551.34
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prediction-markets/macro-odds":
    get:
      operationId: "listPredictionMacroOdds"
      tags:
        - "prediction-markets"
      summary: "List market-implied macro odds"
      description: "What Kalshi and Polymarket traders price for the next FOMC decisions, the Fed funds rate, rate cuts, CPI, core CPI, payrolls, unemployment, GDP and a US recession. Exclusive outcomes are normalized to sum to 100, a ladder of above-strike contracts gets its implied median, and FOMC meetings get hike, hold and cut odds with a consensus across both venues."
      parameters:
        - $ref: "#/components/parameters/MacroIndicator"
        - $ref: "#/components/parameters/MacroVenue"
        - $ref: "#/components/parameters/MacroEvents"
      responses:
        "200":
          description: "List market-implied macro odds: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PredictionMacroOddsResponse"
              example:
                macro_odds:
                  - indicator: "fed_decision"
                    indicator_label: "FOMC rate decision"
                    unit: null
                    venue: "kalshi"
                    event_id: "KXFEDDECISION-26DEC"
                    title: "Fed decision in Dec 2026? On Dec 9, 2026"
                    resolves_at: "2026-12-09T19:00:00Z"
                    distribution: "exclusive"
                    outcomes:
                      - label: "Hike 25bps"
                        market_id: "KXFEDDECISION-26DEC-H25"
                        probability_0_to_1: 0.935
                        implied_prob_pct: 93.5
                        normalized_prob_pct: 91.67
                        yes_bid: 0.93
                        yes_ask: 0.94
                        strike: null
                    probability_sum: 1.02
                    most_likely:
                      label: "Hike 25bps"
                      implied_prob_pct: 93.5
                    implied_median: null
                    decision_odds:
                      hike_prob_pct: 94.58
                      hold_prob_pct: 3.45
                      cut_prob_pct: 1.97
                    url: "https://kalshi.com/markets/kxfeddecision"
                    api_url: "https://api.elections.kalshi.com/trade-api/v2/events/KXFEDDECISION-26DEC"
                fed_consensus:
                  - meeting_month: "2026-12"
                    venues:
                      - "kalshi"
                      - "polymarket"
                    hike_prob_pct: 95.32
                    hold_prob_pct: 3.55
                    cut_prob_pct: 1.14
                source_status:
                  "kalshi:fed_decision": "ok"
                  "polymarket:fed_decision": "ok"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financial-metrics/extended":
    get:
      operationId: "listExtendedFinancialMetrics"
      tags:
        - "financials"
      summary: "List extended financial metrics"
      description: "All 157 metrics of one company per period, newest first, ten a page, grouped as valuation, profitability, returns, efficiency, liquidity, leverage, cash_flow, per_share, growth. Every null names its cause in null_reasons; GET /financial-metrics/catalog gives each metric's unit, formula and inputs."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/StatementPeriod"
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
        - $ref: "#/components/parameters/StatementIsin"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List extended financial metrics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/ExtendedFinancialMetricsResponse"
              example:
                financial_metrics:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    form_type: "10-K"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    filing_date: "2026-11-03"
                    filing_datetime: "2026-11-03T16:31:05-05:00"
                    valuation:
                      market_cap_usd: 3960000000000
                      price_to_earnings_ratio: 35.8
                    profitability:
                      gross_margin_pct: 46.9
                      free_cash_flow_margin_pct: 23.7
                    returns:
                      return_on_equity_pct: 151.9
                    efficiency: {}
                    liquidity:
                      current_ratio: 0.89
                    leverage:
                      debt_to_equity_ratio: 1.54
                    cash_flow: {}
                    per_share:
                      revenue_per_share_usd: 27.84
                    growth:
                      revenue_growth_1y_pct: 6.4
                    null_reasons:
                      dividend_yield_pct: "missing_input: dividends_paid not reported for this period"
                    assumptions: []
                    averages_basis: "opening_and_closing_balance"
                metric_count: 157
                units:
                  _usd: "US dollars; per-share values (names with per_share, price or graham) are US dollars per share"
                  _pct: "percent: 31.8 means 31.8%"
                  _ratio: "a plain multiple, such as 28.4 for a P/E of 28.4 times"
                  _days: "calendar days"
                  shares_outstanding: "a count of shares"
                methodology: "Each row is one period of the company's standardized SEC statements: annual (fiscal year), quarterly or ttm (trailing twelve months, the last four quarters). Flows (revenue, earnings, cash flows) are the period's; a quarterly row is not annualized. Balances are at the period end, and ratios of a flow to a balance use the average of the opening and closing balance (`averages_basis` says when only the closing one was known). Growth compares with the same kind of period one year earlier, and n-year CAGRs with the period about n years earlier. Valuation uses the last close at most ten days before the period end, applied to the share count of the row's filing; only US dollar statements are priced. A metric is null when an input is not reported, when its denominator is zero or negative (for example a P/E on a loss), or when Darvas holds no price or history for it; `null_reasons` names the cause, starting with one of missing_input, not_meaningful, no_price, not_usd or insufficient_history."
                definitions_url: "https://api.darvas.app/v1/financial-metrics/catalog"
                source: "Standardized SEC filings (10-K, 10-Q, 20-F, 40-F) as Darvas reads them, with daily closes of the US listing for valuation"
                as_of: "2026-11-30T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financial-metrics/catalog":
    get:
      operationId: "getFinancialMetricsCatalog"
      tags:
        - "financials"
      summary: "Read the financial metrics catalog"
      description: "Every metric of /financial-metrics/extended with its category, unit, formula, inputs and the inputs that must be above zero, and the meaning of every fact the formulas read. One answer, one credit."
      parameters: []
      responses:
        "200":
          description: "Read the financial metrics catalog: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FinancialMetricsCatalogResponse"
              example:
                catalog:
                  metric_count: 157
                  categories:
                    - "valuation"
                    - "profitability"
                    - "returns"
                    - "efficiency"
                    - "liquidity"
                    - "leverage"
                    - "cash_flow"
                    - "per_share"
                    - "growth"
                  units:
                    _usd: "US dollars; per-share values (names with per_share, price or graham) are US dollars per share"
                    _pct: "percent: 31.8 means 31.8%"
                    _ratio: "a plain multiple, such as 28.4 for a P/E of 28.4 times"
                    _days: "calendar days"
                    shares_outstanding: "a count of shares"
                  methodology: "Each row is one period of the company's standardized SEC statements: annual (fiscal year), quarterly or ttm (trailing twelve months, the last four quarters). Flows (revenue, earnings, cash flows) are the period's; a quarterly row is not annualized. Balances are at the period end, and ratios of a flow to a balance use the average of the opening and closing balance (`averages_basis` says when only the closing one was known). Growth compares with the same kind of period one year earlier, and n-year CAGRs with the period about n years earlier. Valuation uses the last close at most ten days before the period end, applied to the share count of the row's filing; only US dollar statements are priced. A metric is null when an input is not reported, when its denominator is zero or negative (for example a P/E on a loss), or when Darvas holds no price or history for it; `null_reasons` names the cause, starting with one of missing_input, not_meaningful, no_price, not_usd or insufficient_history."
                  facts:
                    revenue: "revenue (income statement)"
                  metrics:
                    - name: "market_cap_usd"
                      category: "valuation"
                      unit: "usd"
                      formula: "market_cap"
                      inputs:
                        - "market_cap"
                      must_be_positive: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/scores":
    get:
      operationId: "listFinancialScores"
      tags:
        - "financials"
      summary: "List financial quality scores"
      description: "Altman's Z-Score (its 1968 form and the Z'' form, with the model the SIC code recommends), Piotroski's F-Score with each of its nine tests and Beneish's M-Score with each of its eight indices, per annual or trailing year of one company, newest first, ten a page. Every component shows its value, so a score can be checked by hand."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ScorePeriod"
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
        - $ref: "#/components/parameters/StatementIsin"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List financial quality scores: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FinancialScoresResponse"
              example:
                quality_scores:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    form_type: "10-K"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    filing_date: "2026-11-03"
                    filing_datetime: "2026-11-03T16:31:05-05:00"
                    altman_z_score:
                      original:
                        model: "Altman Z-Score (1968), for public manufacturers"
                        formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
                        z_score: 8.912
                        zone: "safe"
                        zones:
                          safe_above: 2.99
                          distress_below: 1.81
                        components:
                          x1_working_capital_to_total_assets_ratio: -0.0485
                          x2_retained_earnings_to_total_assets_ratio: -0.0412
                          x3_ebit_to_total_assets_ratio: 0.3602
                          x4_market_equity_to_total_liabilities_ratio: 13.39
                          x5_revenue_to_total_assets_ratio: 1.1531
                        null_reason: null
                      non_manufacturer:
                        model: "Altman Z''-Score, for non-manufacturers"
                        formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
                        z_score: 8.912
                        zone: "safe"
                        zones:
                          safe_above: 2.99
                          distress_below: 1.81
                        components:
                          x1_working_capital_to_total_assets_ratio: -0.0485
                          x2_retained_earnings_to_total_assets_ratio: -0.0412
                          x3_ebit_to_total_assets_ratio: 0.3602
                          x4_market_equity_to_total_liabilities_ratio: 13.39
                          x5_revenue_to_total_assets_ratio: 1.1531
                        null_reason: null
                      recommended_model: "original"
                      recommended_reason: "SIC 3571 is manufacturing (2000 to 3999)"
                    piotroski_f_score:
                      f_score: 7
                      max_score: 9
                      partial_score: 7
                      components_evaluated: 9
                      interpretation: "average"
                      components:
                        roa_positive:
                          passed: true
                          value: 0.3118
                          compared_with: 0
                          rule: "return on assets above 0"
                          null_reason: null
                      null_reason: null
                    beneish_m_score:
                      m_score: -2.61
                      model: "Beneish (1999) eight-variable M-Score"
                      formula: "M = -4.84 + 0.92·DSRI + 0.528·GMI + 0.404·AQI + 0.892·SGI + 0.115·DEPI - 0.172·SGAI + 4.679·TATA - 0.327·LVGI"
                      threshold: -1.78
                      likely_manipulator: false
                      interpretation: "at or below -1.78: no manipulation signal"
                      components:
                        dsri:
                          value: 1.0213
                          weight: 0.92
                          name: "days sales in receivables index"
                          formula: "(receivables / revenue) / (prior receivables / prior revenue)"
                      null_reason: null
                methodology:
                  altman_z_score: "X1 to X5 over total assets and liabilities; zones from the model's thresholds."
                  piotroski_f_score: "Nine pass or fail tests, this year against last year."
                  beneish_m_score: "Eight indices of this year against last year; above -1.78 flags manipulation."
                  periods: "annual compares fiscal years; ttm compares the trailing twelve months."
                source: "Standardized SEC filings (10-K, 10-Q, 20-F, 40-F) as Darvas reads them, with daily closes of the US listing for valuation"
                as_of: "2026-11-30T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/prices/risk":
    get:
      operationId: "getPriceRisk"
      tags:
        - "markets"
      summary: "Read a stock's risk statistics"
      description: "A US stock's beta (raw and Blume adjusted), alpha, correlation and R² against a benchmark (SPY without one), with volatility, downside deviation, Sharpe, Sortino and Treynor ratios, tracking error, the information ratio, the largest drawdown and 95% historical value at risk and expected shortfall, over each lookback window. Returns are split-consistent price returns of daily closes, sampled by interval; the risk-free rate is the window's average 3-month Treasury par yield."
      parameters:
        - $ref: "#/components/parameters/RiskTicker"
        - $ref: "#/components/parameters/RiskBenchmark"
        - $ref: "#/components/parameters/RiskLookback"
        - $ref: "#/components/parameters/RiskInterval"
        - $ref: "#/components/parameters/RiskEndDate"
      responses:
        "200":
          description: "Read a stock's risk statistics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/PriceRiskResponse"
              example:
                ticker: "AAPL"
                benchmark: "SPY"
                interval: "day"
                as_of_date: "2026-11-27"
                risk_statistics:
                  - lookback: "1y"
                    interval: "day"
                    start_date: "2025-11-28"
                    end_date: "2026-11-27"
                    observations: 250
                    lookback_complete: true
                    risk_free_rate_annual_pct: 4.12
                    beta: 1.18
                    beta_adjusted: 1.12
                    beta_std_error: 0.06
                    alpha_annualized_pct: -2.4
                    correlation: 0.78
                    r_squared: 0.61
                    volatility_annualized_pct: 27.9
                    benchmark_volatility_annualized_pct: 18.4
                    downside_deviation_annualized_pct: 19.2
                    return_annualized_pct: 14.6
                    benchmark_return_annualized_pct: 15.1
                    total_return_pct: 14.4
                    sharpe_ratio: 0.38
                    sortino_ratio: 0.55
                    treynor_ratio: 0.09
                    tracking_error_annualized_pct: 17.5
                    information_ratio: -0.03
                    var_95_loss_pct: 2.6
                    cvar_95_loss_pct: 3.9
                    max_drawdown_pct: -18.8
                    max_drawdown_peak_date: "2026-01-05"
                    max_drawdown_trough_date: "2026-04-08"
                    null_reason: null
                price_type: "close_split_consistent_price_return"
                methodology:
                  fit: "beta is the OLS slope of the stock's returns on the benchmark's"
                units:
                  _pct: "percent: 12.5 means 12.5%"
                source: "Daily closes of US listings and the US Treasury par yield curve, as Darvas stores them"
                as_of: "2026-11-30T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/valuation/dcf":
    get:
      operationId: "getDcfValuation"
      tags:
        - "financials"
      summary: "Value a company with a DCF"
      description: "A two-stage unlevered free cash flow DCF of a US company from its trailing twelve months: each assumption with its value, where it came from and why, the yearly projection, terminal value, enterprise and equity value, the intrinsic value per share against today's price, a grid over WACC and terminal growth, and a reverse DCF that solves for the growth today's price implies. Any assumption can be set in the query."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/DcfWacc"
        - $ref: "#/components/parameters/DcfTerminalGrowth"
        - $ref: "#/components/parameters/DcfFcfGrowth"
        - $ref: "#/components/parameters/DcfEquityRiskPremium"
        - $ref: "#/components/parameters/DcfRiskFreeRate"
        - $ref: "#/components/parameters/DcfBeta"
        - $ref: "#/components/parameters/DcfCostOfDebt"
        - $ref: "#/components/parameters/DcfTaxRate"
        - $ref: "#/components/parameters/DcfProjectionYears"
      responses:
        "200":
          description: "Value a company with a DCF: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/DcfValuationResponse"
              example:
                dcf:
                  ticker: "AAPL"
                  report_period: "2026-09-26"
                  fiscal_period: "2026-Q4"
                  period: "ttm"
                  currency: "USD"
                  accession_number: "0000320193-26-000026"
                  form_type: null
                  filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                  filing_date: "2026-11-03"
                  filing_datetime: "2026-11-03T16:31:05-05:00"
                  model: "two-stage unlevered free cash flow (FCFF) DCF with a Gordon growth terminal value"
                  assumptions:
                    risk_free_rate_pct:
                      value: 4.18
                      source: "derived"
                      basis: "10-year Treasury par yield"
                    equity_risk_premium_pct:
                      value: 5
                      source: "default"
                      basis: "long-run premium"
                    beta:
                      value: 1.12
                      source: "derived"
                      basis: "5 years of monthly returns, Blume adjusted"
                    cost_of_equity_pct:
                      value: 9.78
                      source: "derived"
                      basis: "risk_free_rate + beta × equity_risk_premium"
                    pre_tax_cost_of_debt_pct:
                      value: 3.6
                      source: "derived"
                      basis: "interest / total debt"
                    tax_rate_pct:
                      value: 16.2
                      source: "derived"
                      basis: "effective tax rate"
                    after_tax_cost_of_debt_pct:
                      value: 3.02
                      source: "derived"
                      basis: "pre_tax_cost_of_debt × (1 - tax_rate)"
                    equity_weight_pct:
                      value: 97.4
                      source: "derived"
                      basis: "market_cap / (market_cap + total_debt)"
                    wacc_pct:
                      value: 9.6
                      source: "derived"
                      basis: "weighted cost of equity and debt"
                    fcf_growth_pct:
                      value: 7.1
                      source: "derived"
                      basis: "5-year revenue CAGR"
                    terminal_growth_pct:
                      value: 2.5
                      source: "default"
                      basis: "long-run nominal growth"
                    projection_years: 10
                  base_free_cash_flow_usd: 98770000000
                  base_fcff_usd: 101600000000
                  projection:
                    - year: 1
                      growth_pct: 7.1
                      free_cash_flow_usd: 108800000000
                      discount_factor: 0.912409
                      present_value_usd: 99270000000
                  present_value_of_projection_usd: 760000000000
                  terminal_value_usd: 2400000000000
                  present_value_of_terminal_value_usd: 960000000000
                  terminal_value_share_of_enterprise_value_pct: 55.8
                  enterprise_value_usd: 1720000000000
                  net_debt_usd: 35000000000
                  equity_value_usd: 1685000000000
                  shares_outstanding: 14840000000
                  intrinsic_value_per_share_usd: 113.55
                  current_price_usd: 266.9
                  upside_pct: -57.46
                  sensitivity:
                    rows: "wacc_pct"
                    columns: "terminal_growth_pct"
                    wacc_pct:
                      - 7.6
                      - 8.6
                      - 9.6
                      - 10.6
                      - 11.6
                    terminal_growth_pct:
                      - 1.5
                      - 2
                      - 2.5
                      - 3
                      - 3.5
                    intrinsic_value_per_share_usd:
                      - - 150.2
                        - 160.4
                        - 172.9
                        - 188.6
                        - 208.8
                  reverse_dcf:
                    implied_fcf_growth_pct: 21.4
                    market_cap_usd: 3960000000000
                    solves_for: "year-one fcf_growth at which equity value equals market capitalization"
                    null_reason: null
                  null_reason: null
                  price_time: "2026-11-27T21:00:00.000Z"
                  methodology: "Free cash flow to the firm, grown and faded to terminal growth, discounted at WACC."
                  units:
                    _usd: "US dollars"
                    _pct: "percent: 8.5 means 8.5%"
                    beta: "a plain number"
                  source: "Standardized SEC filings, daily closes of the US listing and the US Treasury par yield curve, as Darvas stores them"
                  as_of: "2026-11-30T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/valuation/history":
    get:
      operationId: "listValuationHistory"
      tags:
        - "financials"
      summary: "List a stock's valuation history"
      description: "A US stock's market capitalization, enterprise value and valuation multiples on every trading day, or the last of each week or month, oldest first, 250 a page. Each day rests on the trailing twelve months the company had filed by that day, so a later restatement never changes an earlier day. Without dates, the last 365 days; a request spans at most 40 years."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ValuationInterval"
        - $ref: "#/components/parameters/StartDate"
        - $ref: "#/components/parameters/EndDate"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List a stock's valuation history: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/ValuationHistoryResponse"
              example:
                ticker: "AAPL"
                cik: "0000320193"
                interval: "day"
                start_date: "2025-11-30"
                end_date: "2026-11-30"
                valuation_history:
                  - date: "2026-11-27"
                    close_usd: 266.9
                    shares_outstanding: 14840000000
                    market_cap_usd: 3960000000000
                    enterprise_value_usd: 3995000000000
                    price_to_earnings_ratio: 35.8
                    price_to_sales_ratio: 9.5
                    price_to_book_ratio: 54.4
                    price_to_free_cash_flow_ratio: 40.1
                    ev_to_revenue_ratio: 9.6
                    ev_to_ebitda_ratio: 27.6
                    ev_to_ebit_ratio: 30.1
                    earnings_yield_pct: 2.79
                    free_cash_flow_yield_pct: 2.49
                    dividend_yield_pct: 0.39
                    fundamentals_report_period: "2026-09-26"
                    fundamentals_accession_number: "0000320193-26-000026"
                    fundamentals_filing_date: "2026-11-03"
                    fundamentals_age_days: 62
                    null_reasons: {}
                methodology: "Each day's close times the shares outstanding on the trailing twelve months filed by that day."
                units:
                  _usd: "US dollars"
                  _pct: "percent: 1.5 means 1.5%"
                  _ratio: "a plain multiple"
                source: "Daily closes of the US listing and standardized SEC filings, as Darvas stores them"
                as_of: "2026-11-30T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/companies/search":
    get:
      operationId: "searchCompanies"
      tags:
        - "company"
      summary: "Search companies"
      description: "Companies matching a name (current or former) or one identifier: ticker, CIK, CUSIP, ISIN, FIGI or LEI; send exactly one of q, ticker, cik, cusip, isin, figi or lei. US companies come with their tickers and securities, UK and French ones with their LEI and ISINs. Best match first."
      parameters:
        - $ref: "#/components/parameters/CompanyQuery"
        - $ref: "#/components/parameters/CompanyTicker"
        - $ref: "#/components/parameters/CompanyCik"
        - $ref: "#/components/parameters/CompanyCusip"
        - $ref: "#/components/parameters/CompanyIsin"
        - $ref: "#/components/parameters/CompanyFigi"
        - $ref: "#/components/parameters/CompanyLei"
        - $ref: "#/components/parameters/CompanySearchLimit"
      responses:
        "200":
          description: "Search companies: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CompanySearchResponse"
              example:
                query:
                  q: "apple"
                results:
                  - cik: "0000320193"
                    name: "Apple Inc."
                    ticker: "AAPL"
                    exchange: "Nasdaq"
                    is_active: true
                    market: "US"
                    entity_type: "operating"
                    sic_code: "3571"
                    sic_industry: "Electronic Computers"
                    state_of_incorporation: "CA"
                    match_type: "name"
                    match_score: 0.95
                    matched_value: "Apple Inc."
                    identifiers:
                      cik: "0000320193"
                      lei: "HWUPKR0MPOU8FGXBT394"
                      tickers:
                        - "AAPL"
                    securities:
                      - ticker: "AAPL"
                        cusip: "037833100"
                        isin: "US0378331005"
                        figi: "BBG000B9XRY4"
                        composite_figi: "BBG000B9XRY4"
                        share_class_figi: "BBG001S5N8V8"
                        security_type: "Common Stock"
                        exchange_code: "US"
                    former_names:
                      - "Apple Computer Inc"
                result_count: 1
                methodology: "q matches the current and former names of SEC filers and of ESEF filers."
                source: "SEC's filer register and the ESEF register of UK and French issuers"
                as_of: "2026-11-30T12:00:00.000Z"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/funding-arbitrage":
    get:
      operationId: "scanCryptoFundingArbitrage"
      tags:
        - "crypto"
      summary: "Scan crypto funding arbitrage"
      description: "The widest funding spread of every coin across the perpetuals of OKX, Binance, Bybit and Hyperliquid, widest first. Each venue's rate is put on an 8-hour basis and annualized from the contract's own settlement interval; the pair is the venue to hold long (lowest rate) and the venue to hold short (highest), with the price spread between them. Both legs pass the open interest and 24-hour volume minimums."
      parameters:
        - $ref: "#/components/parameters/FundingAsset"
        - $ref: "#/components/parameters/BoardVenues"
        - $ref: "#/components/parameters/FundingQuote"
        - $ref: "#/components/parameters/FundingMinOpenInterest"
        - $ref: "#/components/parameters/FundingMinVolume"
        - $ref: "#/components/parameters/FundingMinAprSpread"
        - $ref: "#/components/parameters/FundingLimit"
      responses:
        "200":
          description: "Scan crypto funding arbitrage: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoFundingArbitrageResponse"
              example:
                as_of: "2026-11-30T12:00:00.000Z"
                as_of_milliseconds: 1796040000000
                venues_included:
                  - "okx"
                  - "binance"
                  - "bybit"
                  - "hyperliquid"
                venues_unavailable: []
                filters:
                  asset: null
                  venues:
                    - "okx"
                    - "binance"
                    - "bybit"
                    - "hyperliquid"
                  quote:
                    - "USDT"
                    - "USDC"
                    - "USD"
                  min_open_interest_usd: 1000000
                  min_volume_24h_usd: 1000000
                  min_apr_spread_pct: 0
                units:
                  _decimal: "fraction of notional: 0.0001 is 0.01%"
                  _pct: "percent: 0.01 is 0.01%, 1 is 1%"
                  _bps: "basis points: 1 is 0.01%"
                  _apr_pct: "simple annual rate in percent, not compounded"
                  _usd: "US dollars"
                  _base: "units of the base asset, such as BTC"
                methodology:
                  pair: "long leg: the lowest 8-hour rate; short leg: the highest on another venue"
                opportunities:
                  - base: "BTC"
                    long:
                      venue: "hyperliquid"
                      ticker: "BTC-USDC-SWAP"
                      quote: "USDC"
                      margin: "linear"
                      funding_rate_decimal: 0.0000125
                      funding_rate_pct: 0.00125
                      funding_interval_hours: 1
                      funding_rate_8h_decimal: 0.0001
                      funding_rate_8h_pct: 0.01
                      annualized_apr_pct: 10.95
                      next_funding_time: "2026-11-30T13:00:00.000Z"
                      next_funding_time_milliseconds: 1796043600000
                      mark_price: 96812.5
                      contract_multiplier: 1
                      unit_mark_price: 96812.5
                      open_interest_usd: 2410000000
                      volume_24h_usd: 3120000000
                    short:
                      venue: "binance"
                      ticker: "perpetual:BTCUSDT"
                      quote: "USDC"
                      margin: "linear"
                      funding_rate_decimal: 0.0000125
                      funding_rate_pct: 0.00125
                      funding_interval_hours: 1
                      funding_rate_8h_decimal: 0.0001
                      funding_rate_8h_pct: 0.01
                      annualized_apr_pct: 10.95
                      next_funding_time: "2026-11-30T13:00:00.000Z"
                      next_funding_time_milliseconds: 1796043600000
                      mark_price: 96812.5
                      contract_multiplier: 1
                      unit_mark_price: 96812.5
                      open_interest_usd: 2410000000
                      volume_24h_usd: 3120000000
                    funding_spread_8h_decimal: 0.00005
                    funding_spread_8h_pct: 0.005
                    funding_spread_8h_bps: 0.5
                    annualized_apr_spread_pct: 5.475
                    spread_bps: 1.2
                    quote_mismatch: true
                    interval_mismatch: true
                    venues_listing: 4
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/coinbase-premium":
    get:
      operationId: "getCryptoCoinbasePremium"
      tags:
        - "crypto"
      summary: "Read the Coinbase premium"
      description: "How far Coinbase's USD price of a coin is above or below Binance's USDT price turned into dollars, bar by bar, oldest first, with a summary of the series. Binance's USDT price becomes dollars at Coinbase's USDT-USD close of the same bar unless adjust_usdt is false; the raw gap without that conversion is in every bar."
      parameters:
        - $ref: "#/components/parameters/PremiumAsset"
        - $ref: "#/components/parameters/PremiumInterval"
        - $ref: "#/components/parameters/PremiumIntervalMultiplier"
        - $ref: "#/components/parameters/PremiumLimit"
        - $ref: "#/components/parameters/PremiumAdjustUsdt"
      responses:
        "200":
          description: "Read the Coinbase premium: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoCoinbasePremiumResponse"
              example:
                asset: "BTC"
                interval: "hour"
                interval_multiplier: 1
                adjust_usdt: true
                as_of: "2026-11-30T11:00:00.000Z"
                sources:
                  coinbase:
                    exchange: "coinbase"
                    market_type: "spot"
                    ticker: "BTC-USD"
                  binance:
                    exchange: "binance"
                    market_type: "spot"
                    ticker: "spot:BTCUSDT"
                  usdt_usd:
                    exchange: "coinbase"
                    market_type: "spot"
                    ticker: "USDT-USD"
                units:
                  _decimal: "fraction of notional: 0.0001 is 0.01%"
                  _pct: "percent: 0.01 is 0.01%, 1 is 1%"
                  _bps: "basis points: 1 is 0.01%"
                  _apr_pct: "simple annual rate in percent, not compounded"
                  _usd: "US dollars"
                  _base: "units of the base asset, such as BTC"
                methodology:
                  premium_pct: "(coinbase_usd / binance_usd - 1) × 100"
                latest:
                  time: "2026-11-30T11:00:00.000Z"
                  time_milliseconds: 1796036400000
                  coinbase_usd: 96870
                  binance_usdt: 96840
                  usdt_usd: 0.9996
                  binance_usd: 96801.26
                  raw_gap_usd: 30
                  adjusted_gap_usd: 68.74
                  premium_pct: 0.071
                  raw_premium_pct: 0.031
                summary:
                  bars: 168
                  mean_premium_pct: 0.024
                  stdev_premium_pct: 0.031
                  min_premium_pct: -0.052
                  max_premium_pct: 0.118
                  positive_bars_pct: 71.4
                  latest_zscore: 1.52
                series:
                  - time: "2026-11-30T11:00:00.000Z"
                    time_milliseconds: 1796036400000
                    coinbase_usd: 96870
                    binance_usdt: 96840
                    usdt_usd: 0.9996
                    binance_usd: 96801.26
                    raw_gap_usd: 30
                    adjusted_gap_usd: 68.74
                    premium_pct: 0.071
                    raw_premium_pct: 0.031
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/aggregated-derivatives":
    get:
      operationId: "getCryptoAggregatedDerivatives"
      tags:
        - "crypto"
      summary: "Read a coin's derivatives across venues"
      description: "One coin's perpetuals across OKX, Binance, Bybit and Hyperliquid: open interest summed in dollars with each venue's and contract's share, funding weighted by open interest, by 24-hour volume and as a simple mean on an 8-hour basis, and taker buy and sell volume split into spot and perpetuals with a cumulative volume delta for each and the way they lean."
      parameters:
        - $ref: "#/components/parameters/DerivativesAsset"
        - $ref: "#/components/parameters/TakerFlowInterval"
        - $ref: "#/components/parameters/TakerFlowLookbackHours"
      responses:
        "200":
          description: "Read a coin's derivatives across venues: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoAggregatedDerivativesResponse"
              example:
                asset: "BTC"
                as_of: "2026-11-30T12:00:00.000Z"
                as_of_milliseconds: 1796040000000
                venues_included:
                  - "okx"
                  - "binance"
                  - "bybit"
                  - "hyperliquid"
                venues_unavailable: []
                units:
                  _decimal: "fraction of notional: 0.0001 is 0.01%"
                  _pct: "percent: 0.01 is 0.01%, 1 is 1%"
                  _bps: "basis points: 1 is 0.01%"
                  _apr_pct: "simple annual rate in percent, not compounded"
                  _usd: "US dollars"
                  _base: "units of the base asset, such as BTC"
                methodology:
                  oi_weighted: "Σ(funding_rate_8h_decimal × open_interest_usd) / Σ open_interest_usd"
                open_interest:
                  total_usd: 38400000000
                  by_exchange:
                    - venue: "binance"
                      open_interest_usd: 11200000000
                      open_interest_share_pct: 29.17
                      contracts: 3
                      contracts_without_open_interest: 0
                  contracts:
                    - venue: "binance"
                      ticker: "perpetual:BTCUSDT"
                      quote: "USDT"
                      margin: "linear"
                      contract_multiplier: 1
                      open_interest_usd: 9800000000
                      open_interest_share_pct: 25.52
                      funding: null
                      next_funding_time: "2026-11-30T16:00:00.000Z"
                      volume_24h_usd: 18200000000
                      mark_price: 96840.1
                      index_price: 96850.4
                funding:
                  oi_weighted:
                    funding_rate_8h_decimal: 0.000082
                    funding_rate_8h_pct: 0.0082
                    annualized_apr_pct: 8.979
                    weight_total_usd: 38400000000
                    contracts: 9
                  volume_weighted:
                    funding_rate_8h_decimal: 0.000082
                    funding_rate_8h_pct: 0.0082
                    annualized_apr_pct: 8.979
                    weight_total_usd: 38400000000
                    contracts: 9
                  simple_mean:
                    funding_rate_8h_decimal: 0.000082
                    funding_rate_8h_pct: 0.0082
                    annualized_apr_pct: 8.979
                    weight_total_usd: 38400000000
                    contracts: 9
                taker_flow:
                  interval: "1H"
                  lookback_hours: 24
                  closed_buckets: 24
                  start_time: "2026-11-29T12:00:00.000Z"
                  end_time: "2026-11-30T13:00:00.000Z"
                  reference_price:
                    exchange: "binance"
                    market_type: "spot"
                    ticker: "spot:BTCUSDT"
                  totals:
                    spot:
                      buy_volume_base: 41250.5
                      sell_volume_base: 39870.2
                      delta_base: 1380.3
                      taker_buy_ratio_pct: 50.85
                      buy_volume_usd_est: null
                      sell_volume_usd_est: null
                      delta_usd_est: null
                    perp:
                      buy_volume_base: 41250.5
                      sell_volume_base: 39870.2
                      delta_base: 1380.3
                      taker_buy_ratio_pct: 50.85
                      buy_volume_usd_est: null
                      sell_volume_usd_est: null
                      delta_usd_est: null
                    all:
                      buy_volume_base: 41250.5
                      sell_volume_base: 39870.2
                      delta_base: 1380.3
                      taker_buy_ratio_pct: 50.85
                      buy_volume_usd_est: null
                      sell_volume_usd_est: null
                      delta_usd_est: null
                  divergence: "aligned_buying"
                  exchanges: []
                  series: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/basis":
    get:
      operationId: "getCryptoBasis"
      tags:
        - "crypto"
      summary: "Read a coin's basis"
      description: "One coin's basis on every venue: each perpetual's mark against its index, each dated future's basis annualized to expiry with the term structure and a constant-maturity basis at tenor_days, and with include_spot the spot price of every exchange Darvas stores in dollars with a spread matrix between them."
      parameters:
        - $ref: "#/components/parameters/BasisAsset"
        - $ref: "#/components/parameters/BoardVenues"
        - $ref: "#/components/parameters/BasisTenorDays"
        - $ref: "#/components/parameters/BasisIncludeSpot"
      responses:
        "200":
          description: "Read a coin's basis: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoBasisResponse"
              example:
                asset: "BTC"
                as_of: "2026-11-30T12:00:00.000Z"
                as_of_milliseconds: 1796040000000
                venues_included:
                  - "okx"
                  - "binance"
                  - "bybit"
                  - "hyperliquid"
                venues_unavailable: []
                units:
                  _decimal: "fraction of notional: 0.0001 is 0.01%"
                  _pct: "percent: 0.01 is 0.01%, 1 is 1%"
                  _bps: "basis points: 1 is 0.01%"
                  _apr_pct: "simple annual rate in percent, not compounded"
                  _usd: "US dollars"
                  _base: "units of the base asset, such as BTC"
                methodology:
                  basis_bps: "(mark_price − index_price) / index_price × 10000"
                perpetuals:
                  - venue: "okx"
                    ticker: "BTC-USDT-SWAP"
                    quote: "USDT"
                    margin: "linear"
                    mark_price: 96861.2
                    index_price: 96850.4
                    basis_usd_per_unit: 10.8
                    basis_bps: 1.115
                    basis_pct: 0.01115
                    funding_interval_hours: 8
                    basis_annualized_pct: 12.21
                    annualization_method: "funding_interval"
                futures:
                  tenor_days: 90
                  term_structure:
                    - venue: "okx"
                      ticker: "BTC-USD-261225"
                      quote: "USD"
                      margin: "inverse"
                      expiry: "2026-12-25T08:00:00.000Z"
                      days_to_expiry: 24.833
                      mark_price: 97420.5
                      index_price: 96850.4
                      basis_usd_per_unit: 570.1
                      basis_bps: 58.86
                      basis_pct: 0.5886
                      basis_annualized_pct: 8.65
                      annualization_method: "days_to_expiry"
                      open_interest_usd: 410000000
                  constant_maturity:
                    - venue: "okx"
                      quote: "USD"
                      expiries: 4
                      basis_annualized_pct: 8.4
                      from_days: 24.833
                      to_days: 115.8
                spot: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/sentiment":
    get:
      operationId: "getCryptoSentiment"
      tags:
        - "crypto"
      summary: "Read the crypto sentiment index"
      description: "The Darvas Crypto Sentiment index, 0 extreme fear to 100 extreme greed, from Bitcoin's trend, its volatility against the past year, perpetual funding weighted by open interest, the breadth of the busiest pairs and the Coinbase premium, each component with its input, formula and weight; and the Altcoin Season index, the share of the 50 busiest coins that beat Bitcoin over 90 days. Refreshed every five minutes."
      parameters: []
      responses:
        "200":
          description: "Read the crypto sentiment index: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoSentimentResponse"
              example:
                as_of: "2026-11-30T12:00:00.000Z"
                as_of_milliseconds: 1796040000000
                methodology:
                  sentiment: "Σ(component score × weight) / Σ weight over the components that read"
                sentiment:
                  index_name: "Darvas Crypto Sentiment"
                  score: 61.8
                  label: "greed"
                  components:
                    - name: "momentum"
                      weight: 0.25
                      unit: "pct above the 125-day average"
                      formula: "50 + deviation_pct × 2.5, clamped to 0..100 (±20% reads 0 or 100)"
                      value: 6.2
                      score: 65.5
                      effective_weight: 0.25
                  components_missing: []
                altcoin_season:
                  lookback_days: 90
                  start_time: "2026-09-01T12:00:00.000Z"
                  index: 36
                  label: "neutral"
                  btc_return_pct: 12.4
                  assets_measured: 50
                  assets_outperforming_btc: 18
                  assets:
                    - asset: "SOL"
                      return_pct: 21.6
                      outperformed_btc: true
                  excluded: []
                  btc_volume_dominance_pct: 38.2
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/analytics":
    get:
      operationId: "getCryptoAnalytics"
      tags:
        - "crypto"
      summary: "Read crypto volatility, correlation and seasonality"
      description: "One instrument's realized volatility over 7, 30 and 90 days with where each stands in its past year (a volatility cone), its correlation and beta against stocks, funds, gold and other coins, and its average return by UTC hour, by weekday and by trading session. Binance spot BTC without a ticker."
      parameters:
        - $ref: "#/components/parameters/AnalyticsTicker"
        - $ref: "#/components/parameters/AnalyticsExchange"
        - $ref: "#/components/parameters/AnalyticsMarketType"
        - $ref: "#/components/parameters/AnalyticsCorrelationDays"
        - $ref: "#/components/parameters/AnalyticsSeasonalityDays"
        - $ref: "#/components/parameters/AnalyticsBenchmarks"
      responses:
        "200":
          description: "Read crypto volatility, correlation and seasonality: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoAnalyticsResponse"
              example:
                ticker: "spot:BTCUSDT"
                exchange: "binance"
                market_type: "spot"
                as_of: "2026-11-30T00:00:00.000Z"
                methodology:
                  realized_vol_pct: "sample standard deviation of daily log returns × √365 × 100"
                realized_volatility:
                  annualization: "sqrt(365)"
                  windows:
                    - window_days: 30
                      realized_vol_pct: 38.4
                      cone:
                        observations: 365
                        min_pct: 22.1
                        p25_pct: 34.8
                        median_pct: 41.2
                        p75_pct: 49.6
                        max_pct: 78.4
                        current_percentile: 0.31
                correlation:
                  window_days: 90
                  from_date: "2026-09-01"
                  benchmarks:
                    - benchmark: "SPY"
                      source:
                        dataset: "stock_prices"
                        ticker: "SPY"
                      status: "ok"
                      observations: 62
                      correlation: 0.41
                      beta: 1.92
                seasonality:
                  lookback_days: 90
                  hourly:
                    - hour_utc: 14
                      observations: 90
                      mean_return_pct: 0.04
                      median_return_pct: 0.02
                      win_rate_pct: 53.3
                  weekday: []
                  sessions: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/derivatives/options-analytics":
    get:
      operationId: "getCryptoOptionsAnalytics"
      tags:
        - "crypto"
      summary: "Read crypto options analytics"
      description: "The Deribit, OKX and Bybit option chains of one coin merged: open interest and put/call ratios, max pain with its payout curve, dealer gamma exposure with its flip price and call and put walls, vanna and charm exposure, gamma by strike, delta skew per expiry, the ATM term structure and a constant-maturity IV surface by delta. Without expiry, every listed expiry; max pain then reads the largest expiry within 35 days."
      parameters:
        - $ref: "#/components/parameters/OptionsUnderlying"
        - $ref: "#/components/parameters/OptionsVenues"
        - $ref: "#/components/parameters/OptionsExpiry"
        - $ref: "#/components/parameters/OptionsStrikeRange"
        - $ref: "#/components/parameters/OptionsStrikeSurface"
      responses:
        "200":
          description: "Read crypto options analytics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOptionsAnalyticsResponse"
              example:
                underlying: "BTC"
                as_of: "2026-11-30T12:00:00.000Z"
                spot_reference_usd: 96850.4
                venues_included:
                  - "deribit"
                  - "okx"
                  - "bybit"
                venues:
                  - venue: "deribit"
                    status: "ok"
                    contracts: 812
                    open_interest_base: 301220.5
                    open_interest_usd: 29160000000
                    index_price_usd: 96850.4
                    as_of: "2026-11-30T12:00:00.000Z"
                expiry_filter: null
                strike_range_pct: 30
                summary:
                  expiries: 14
                  contracts: 1642
                  open_interest_base: 412350.2
                  open_interest_usd: 39920000000
                  call_open_interest_usd: 23400000000
                  put_open_interest_usd: 16520000000
                  volume_24h_base: 31250.4
                  volume_24h_usd: 3025000000
                  put_call_oi_ratio: 0.706
                  put_call_volume_ratio: 0.812
                  net_gex_usd_per_1pct_move: 412000000
                  call_gex_usd_per_1pct_move: 1210000000
                  put_gex_usd_per_1pct_move: -798000000
                  gamma_regime: "positive_gamma"
                  gamma_flip_price_usd: 93400
                  gamma_flip_distance_pct: -3.56
                  call_wall_strike_usd: 100000
                  put_wall_strike_usd: 90000
                  max_abs_net_gex_strike_usd: 100000
                  max_call_oi_strike_usd: 100000
                  max_put_oi_strike_usd: 90000
                  net_vanna_usd_per_1vol_pt: 58000000
                  net_charm_usd_per_day: -21000000
                max_pain:
                  expiry_date: "2026-12-25"
                  expiry_time: "2026-12-25T08:00:00.000Z"
                  days_to_expiry: 24.8333
                  max_pain_strike_usd: 95000
                  distance_to_spot_pct: -1.91
                  curve:
                    - settlement_price_usd: 95000
                      call_payout_usd: 812000000
                      put_payout_usd: 645000000
                      total_payout_usd: 1457000000
                expiries:
                  - expiry_date: "2026-12-25"
                    expiry_time: "2026-12-25T08:00:00.000Z"
                    days_to_expiry: 24.8333
                    forward_price_usd: 97120.5
                    venues:
                      - "deribit"
                      - "okx"
                      - "bybit"
                    contracts: 236
                    open_interest_base: 412350.2
                    open_interest_usd: 39920000000
                    call_open_interest_usd: 23400000000
                    put_open_interest_usd: 16520000000
                    volume_24h_base: 31250.4
                    volume_24h_usd: 3025000000
                    put_call_oi_ratio: 0.706
                    put_call_volume_ratio: 0.812
                    max_pain_strike_usd: 95000
                    max_pain_distance_pct: -1.91
                    net_gex_usd_per_1pct_move: 128000000
                    atm_iv_annualized_pct: 48.2
                    iv_10d_put_annualized_pct: 55.1
                    iv_25d_put_annualized_pct: 51.3
                    iv_25d_call_annualized_pct: 49.4
                    iv_10d_call_annualized_pct: 50.8
                    rr25_vol_pts: -1.9
                    bf25_vol_pts: 2.15
                    rr10_vol_pts: -4.3
                    bf10_vol_pts: 4.75
                gex_by_strike:
                  - strike_usd: 100000
                    call_gex_usd_per_1pct_move: 402000000
                    put_gex_usd_per_1pct_move: -41000000
                    net_gex_usd_per_1pct_move: 361000000
                    call_open_interest_base: 24120.5
                    put_open_interest_base: 3410.2
                    net_vanna_usd_per_1vol_pt: 9800000
                    net_charm_usd_per_day: -3100000
                term_structure:
                  slope_7d_to_90d_vol_pts: 3.4
                  regime: "contango"
                  points:
                    - expiry_date: "2026-12-25"
                      expiry_time: "2026-12-25T08:00:00.000Z"
                      days_to_expiry: 24.8333
                      atm_iv_annualized_pct: 48.2
                vol_surface:
                  delta_pillars:
                    - "10d_put"
                    - "25d_put"
                    - "atm"
                    - "25d_call"
                    - "10d_call"
                  constant_maturity:
                    - tenor_days: 30
                      atm_iv_annualized_pct: 48.2
                      iv_10d_put_annualized_pct: 55.1
                      iv_25d_put_annualized_pct: 51.3
                      iv_25d_call_annualized_pct: 49.4
                      iv_10d_call_annualized_pct: 50.8
                      rr25_vol_pts: -1.9
                      bf25_vol_pts: 2.15
                      rr10_vol_pts: -4.3
                      bf10_vol_pts: 4.75
                  strike_points: null
                methodology:
                  model: "oi_convention"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/derivatives/dvol":
    get:
      operationId: "getCryptoOptionsDvol"
      tags:
        - "crypto"
      summary: "Read the DVOL index"
      description: "Deribit's DVOL index, the 30-day implied volatility of BTC or ETH options, with its IV rank and IV percentile over 30, 90 and 365 days, implied against 30-day realized volatility, a realized volatility cone of the coin's OKX spot daily candles over 7 to 180 days, and its history at daily or hourly resolution."
      parameters:
        - $ref: "#/components/parameters/DvolUnderlying"
        - $ref: "#/components/parameters/DvolResolution"
        - $ref: "#/components/parameters/DvolDays"
        - $ref: "#/components/parameters/DvolIncludeHistory"
      responses:
        "200":
          description: "Read the DVOL index: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOptionsDvolResponse"
              example:
                underlying: "BTC"
                index: "DVOL"
                source: "deribit"
                resolution: "1D"
                as_of: "2026-11-30T00:00:00.000Z"
                current:
                  dvol_annualized_pct: 48.9
                  time: "2026-11-30T00:00:00.000Z"
                iv_rank:
                  - window_days: 365
                    observations: 365
                    complete: true
                    iv_rank_pct: 38.42
                    iv_percentile_pct: 44.5
                    min_annualized_pct: 35.1
                    max_annualized_pct: 72.8
                implied_vs_realized:
                  dvol_annualized_pct: 48.9
                  realized_vol_30d_annualized_pct: 38.4
                  vrp_vol_pts: 10.5
                  iv_rv_ratio: 1.273438
                realized_vol_cone:
                  exchange: "okx"
                  spot_ticker: "BTC-USDT"
                  lookback_days: 365
                  windows:
                    - window_days: 30
                      observations: 365
                      current_annualized_pct: 38.4
                      current_percentile_pct: 31.2
                      min_annualized_pct: 22.1
                      p10_annualized_pct: 27.4
                      p25_annualized_pct: 32.6
                      median_annualized_pct: 40.8
                      p75_annualized_pct: 49.2
                      p90_annualized_pct: 58.6
                      max_annualized_pct: 78.4
                history:
                  - time: "2026-11-29T00:00:00.000Z"
                    dvol_open_annualized_pct: 49.1
                    dvol_high_annualized_pct: 50.6
                    dvol_low_annualized_pct: 47.8
                    dvol_close_annualized_pct: 48.9
                    realized_vol_30d_annualized_pct: 38.4
                    vrp_vol_pts: 10.5
                methodology:
                  vrp: "Volatility risk premium: DVOL minus 30-day realized volatility."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/order-book/imbalance-history":
    get:
      operationId: "getCryptoOrderBookImbalanceHistory"
      tags:
        - "crypto"
      summary: "Read order book imbalance history"
      description: "Per bar, the resting bid and ask depth within each range of the book's mid, its imbalance from -1 to 1, and the slippage a market order of each size would have paid, from the books Darvas records every second on OKX, Binance and Bybit spot and perpetual markets, oldest bar first. Each range is complete only where the stored book reached it. 168 bars without a window, 1,000 at most."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/ImbalanceExchange"
        - $ref: "#/components/parameters/SpotSwapMarketType"
        - $ref: "#/components/parameters/ImbalanceInterval"
        - $ref: "#/components/parameters/ImbalanceStartTime"
        - $ref: "#/components/parameters/ImbalanceEndTime"
        - $ref: "#/components/parameters/ImbalanceRanges"
        - $ref: "#/components/parameters/ImbalanceOrderSizes"
      responses:
        "200":
          description: "Read order book imbalance history: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOrderBookImbalanceResponse"
              example:
                ticker: "BTC-USDT"
                exchange: "okx"
                market_type: "spot"
                interval: "1H"
                band_tier: "1h"
                start_time: "2026-11-23T12:00:00.000Z"
                end_time: "2026-11-30T12:00:00.000Z"
                as_of: "2026-11-30T12:00:00.000Z"
                size_unit: "base"
                ranges_pct:
                  - 0.5
                  - 1
                  - 2
                  - 5
                order_sizes_usd:
                  - 100000
                  - 1000000
                summary:
                  - range_pct: 1
                    complete_bars: 168
                    mean_imbalance_decimal: 0.0213
                    latest_imbalance_decimal: 0.060151
                bars:
                  - time: "2026-11-30T11:00:00.000Z"
                    time_milliseconds: 1796036400000
                    reference_price_usd: 96851.2
                    buckets: 60
                    samples: 3600
                    observed_reach_bid_pct: 4.8
                    observed_reach_ask_pct: 5.2
                    depth:
                      - range_pct: 1
                        complete: true
                        bid_depth_base: 412.18
                        ask_depth_base: 365.4
                        bid_depth_usd: 39920000
                        ask_depth_usd: 35390000
                        imbalance_decimal: 0.060151
                        bid_ask_ratio: 1.128
                    slippage:
                      - order_size_usd: 1000000
                        buy_slippage_bps: 1.82
                        sell_slippage_bps: 2.04
                methodology:
                  imbalance: "(bid_depth_usd - ask_depth_usd) / (bid_depth_usd + ask_depth_usd), from -1 to 1."
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/insider-trades":
    get:
      operationId: "listInsiderTrades"
      tags:
        - "insiders"
      summary: "List insider trades"
      description: "Transactions reported on Forms 4 and 5 by a company's officers, directors and 10% owners, newest filing first, from SEC's quarterly data sets since 2006 and each new filing's XML."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/Name"
        - $ref: "#/components/parameters/TransactionType"
        - $ref: "#/components/parameters/TradeFormType"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List insider trades: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InsiderTradesResponse"
              example:
                insider_trades:
                  - ticker: "NVDA"
                    issuer: "NVIDIA CORP"
                    name: "Teter Timothy S."
                    title: "EVP, General Counsel"
                    is_board_director: false
                    is_officer: true
                    is_ten_percent_owner: false
                    form_type: "4"
                    filing_date: "2026-09-23"
                    accession_number: "0001696841-26-000014"
                    security_title: "Common Stock"
                    issuer_cik: 1045810
                    owner_cik: 1696841
                    reporting_owners:
                      - cik: 1696841
                        name: "Teter Timothy S."
                        title: "EVP, General Counsel"
                        is_board_director: false
                        is_officer: true
                        is_ten_percent_owner: false
                        is_other: false
                    is_derivative: false
                    direct_or_indirect: "D"
                    nature_of_ownership: null
                    footnotes:
                      - id: "F1"
                        text: "Sold under a Rule 10b5-1 trading plan."
                    filing_url: "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
                    report_period: "2026-09-21"
                    transaction_date: "2026-09-21"
                    transaction_code: "S"
                    transaction_type: "Sale"
                    transaction_shares: 2398
                    transaction_price_per_share: 222.1
                    transaction_value: 532595.8
                    shares_owned_before_transaction: 27598
                    shares_owned_after_transaction: 25200
                    acquired_or_disposed: "D"
                    is_10b5_1_plan: true
                    underlying_security_title: null
                    underlying_security_shares: null
                    conversion_or_exercise_price: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/insider-trades/sale-notices":
    get:
      operationId: "listSaleNotices"
      tags:
        - "insiders"
      summary: "List insider sale notices"
      description: "Notices on SEC Form 144 that an insider plans to sell, newest filing first, read from each notice's XML since electronic filing began. With no ticker or cik, every company's notices come."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/SellerName"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List insider sale notices: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/SaleNoticesResponse"
              example:
                sale_notices:
                  - ticker: "AMPX"
                    issuer: "AMPRIUS TECHNOLOGIES INC"
                    name: "THOMAS M STEPIEN"
                    relationships:
                      - "OFFICER"
                      - "DIRECTOR"
                    form_type: "144"
                    filing_date: "2026-11-24"
                    notice_date: "2026-11-24"
                    accession_number: "0002067233-26-000022"
                    replaces_accession_number: null
                    securities:
                      - security_title: "Common"
                        shares_to_sell: 21281
                        market_value: 137644.95
                        shares_outstanding: 147079792
                        approximate_sale_date: "2026-11-23"
                        exchange: "NYSE"
                        broker: "Morgan Stanley Smith Barney LLC"
                    acquisitions:
                      - security_title: "Common"
                        acquired_date: "2026-11-20"
                        nature_of_acquisition: "Release of restricted stock units"
                        acquired_from: "Issuer"
                        is_gift: false
                        donor_acquired_date: null
                        shares: 46875
                        payment_date: "2026-11-20"
                        nature_of_payment: "Compensation"
                    sales_past_3_months:
                      - name: "Thomas M. Stepien"
                        security_title: "Common Stock"
                        sale_date: "2026-11-24"
                        shares: 5118
                        gross_proceeds: 31475.7
                    nothing_sold_past_3_months: false
                    plan_adoption_dates: []
                    remarks: "SHARES TO BE SOLD TO COVER WITHHOLDING TAXES UPON VESTING OF RESTRICTED STOCK UNIT AWARDS"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/1899287/000206723326000022/0002067233-26-000022-index.htm"
                    issuer_cik: "0001899287"
                    seller_cik: "0002067233"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/institutional-holdings":
    get:
      operationId: "listInstitutionalHoldings"
      tags:
        - "institutions"
      summary: "List 13F institutional holdings"
      description: "Positions from Form 13F reports, found by filer_cik or by held ticker; send exactly one. Without a report_period filter, filer_cik gives the filer's newest report and ticker gives one position per manager whose newest report holds the security, counting managers with a report for one of the two newest quarters with reports. Rows a filer splits by voting authority or manager are summed into one position and listed in subsidiaries."
      parameters:
        - $ref: "#/components/parameters/FilerCik"
        - $ref: "#/components/parameters/HeldTicker"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/HoldingsLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List 13F institutional holdings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InstitutionalHoldingsResponse"
              example:
                filer_cik: "0000936936"
                filer_name: "DOHENY ASSET MANAGEMENT /CA"
                table_value_total: 183241
                institutional_holdings:
                  - ticker: "ABBV"
                    name_of_issuer: "ABBVIE INC"
                    report_period: "2026-09-30"
                    filing_date: "2026-11-16"
                    form_type: "13F-HR"
                    accession_number: "0000936936-26-000004"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/936936/000093693626000004/0000936936-26-000004-index.htm"
                    title_of_class: "COM"
                    put_call: null
                    shares: 15619
                    shares_type: "SH"
                    value_usd: 4086
                    reported_price: 0.2616
                    table_value_total: 183241
                    investment_discretion: "DFND"
                    voting_authority_sole: 0
                    voting_authority_shared: 0
                    voting_authority_none: 15619
                    filer_cik: "0000936936"
                    filer_name: "DOHENY ASSET MANAGEMENT /CA"
                    cusip: "00287Y109"
                    figi: "BBG0025Y4RY4"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/institutional-holdings/investors":
    get:
      operationId: "listInstitutionalInvestors"
      tags:
        - "institutions"
      summary: "Find 13F filers by name"
      description: "Up to 100 13F filers whose name starts with name, under the name of their newest report."
      parameters:
        - $ref: "#/components/parameters/InvestorName"
      responses:
        "200":
          description: "Find 13F filers by name: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InstitutionalInvestorsResponse"
              example:
                resource: "investors"
                investors:
                  - cik: "0001067983"
                    name: "BERKSHIRE HATHAWAY INC"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/institutional-holdings/tickers":
    get:
      operationId: "listInstitutionalTickers"
      tags:
        - "institutions"
      summary: "List tickers held by 13F filers"
      description: "Every ticker that a 13F report of the last 15 months holds."
      parameters: []
      responses:
        "200":
          description: "List tickers held by 13F filers: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InstitutionalTickersResponse"
              example:
                resource: "tickers"
                tickers:
                  - "AAPL"
                  - "MSFT"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/beneficial-ownership":
    get:
      operationId: "listBeneficialOwners"
      tags:
        - "ownership"
      summary: "List 5% owners"
      description: "Stakes of more than 5% of a class of shares from Schedules 13D and 13G, filed as XML since December 2024: one row per reporting person. Send ticker or cik for who owns a company, or filer_cik for what a filer owns, not both. Each stake's newest filing comes; history=true adds every earlier one."
      parameters:
        - $ref: "#/components/parameters/HeldTicker"
        - $ref: "#/components/parameters/IssuerCik"
        - $ref: "#/components/parameters/OwnerFilerCik"
        - $ref: "#/components/parameters/StakeType"
        - $ref: "#/components/parameters/StakeHistory"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List 5% owners: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/BeneficialOwnersResponse"
              example:
                beneficial_owners:
                  - ticker: "VANI"
                    issuer_name: "Vivani Medical, Inc."
                    issuer_cik: "0001266806"
                    issuer_cusip: "92854B109"
                    security_class_title: "Common Stock, no par value"
                    filer_cik: "0001624919"
                    reporting_person_name: "Williams Gregg"
                    reporting_person_cik: "0001624919"
                    type_of_reporting_person: "IN"
                    citizenship_or_place_of_organization: "X1"
                    form_type: "SCHEDULE 13D/A"
                    type: "activist"
                    is_amendment: true
                    amendment_number: 12
                    filing_date: "2026-11-24"
                    event_date: "2026-11-23"
                    accession_number: "0001753926-26-002236"
                    sole_voting_power: 49098820
                    shared_voting_power: 0
                    sole_dispositive_power: 49098820
                    shared_dispositive_power: 0
                    aggregate_amount_beneficially_owned: 49098820
                    percent_of_class: 50.4
                    purpose_of_transaction: "The Reporting Persons acquired the shares for investment purposes."
                    rule_filed_under: null
                    is_latest: true
                    filing_url: "https://www.sec.gov/Archives/edgar/data/1266806/000175392626002236/0001753926-26-002236-index.htm"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/activist-ownership":
    get:
      operationId: "listActivistOwners"
      tags:
        - "ownership"
      summary: "List activist stakes"
      description: "The Schedule 13D stakes of /beneficial-ownership: owners of more than 5% who may seek to influence control."
      parameters:
        - $ref: "#/components/parameters/HeldTicker"
        - $ref: "#/components/parameters/IssuerCik"
        - $ref: "#/components/parameters/OwnerFilerCik"
        - $ref: "#/components/parameters/StakeHistory"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List activist stakes: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/ActivistOwnersResponse"
              example:
                activist_owners:
                  - ticker: "VANI"
                    issuer_name: "Vivani Medical, Inc."
                    issuer_cik: "0001266806"
                    issuer_cusip: "92854B109"
                    security_class_title: "Common Stock, no par value"
                    filer_cik: "0001624919"
                    reporting_person_name: "Williams Gregg"
                    reporting_person_cik: "0001624919"
                    type_of_reporting_person: "IN"
                    citizenship_or_place_of_organization: "X1"
                    form_type: "SCHEDULE 13D/A"
                    type: "activist"
                    is_amendment: true
                    amendment_number: 12
                    filing_date: "2026-11-24"
                    event_date: "2026-11-23"
                    accession_number: "0001753926-26-002236"
                    sole_voting_power: 49098820
                    shared_voting_power: 0
                    sole_dispositive_power: 49098820
                    shared_dispositive_power: 0
                    aggregate_amount_beneficially_owned: 49098820
                    percent_of_class: 50.4
                    purpose_of_transaction: "The Reporting Persons acquired the shares for investment purposes."
                    rule_filed_under: null
                    is_latest: true
                    filing_url: "https://www.sec.gov/Archives/edgar/data/1266806/000175392626002236/0001753926-26-002236-index.htm"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/index-funds":
    get:
      operationId: "listIndexFundHoldings"
      tags:
        - "funds"
      summary: "List fund holdings"
      description: "Holdings from Form N-PORT, the portfolio every registered fund and ETF reports to SEC, made public for the last month of each quarter. Send ticker for a fund's holdings with their weights, from its newest report or the one in effect on as_of; or holding for the funds whose newest report holds a security, largest weight first."
      parameters:
        - $ref: "#/components/parameters/FundTicker"
        - $ref: "#/components/parameters/FundHolding"
        - $ref: "#/components/parameters/FundAsOf"
        - $ref: "#/components/parameters/FundAssetClass"
        - $ref: "#/components/parameters/FundLimit"
        - $ref: "#/components/parameters/FundOffset"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List fund holdings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/IndexFundsResponse"
              example:
                ticker: "VOO"
                fund:
                  name: "VANGUARD 500 INDEX FUND"
                  cik: "0000036405"
                  asset_class: "equity"
                  as_of: "2026-06-30"
                  filing_date: "2026-08-28"
                  source: "SEC Form N-PORT"
                  total_net_assets: 1671231561960.14
                  total_holdings: 520
                  returned: 1
                  offset: 0
                holdings:
                  - ticker: "NVDA"
                    name: "NVIDIA Corp"
                    weight: 7.51423724736
                    market_value: 125580304518.46
                    shares: 627619094
                    asset_class: "equity"
                    title: "NVIDIA CORP"
                    cusip: "67066G104"
                    isin: "US67066G1040"
                    units: "NS"
                    currency: "USD"
                    country: "US"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/index-funds/tickers":
    get:
      operationId: "listIndexFundTickers"
      tags:
        - "funds"
      summary: "List fund tickers"
      description: "Every fund share class ticker whose fund has an N-PORT report from the last 15 months."
      parameters: []
      responses:
        "200":
          description: "List fund tickers: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/IndexFundTickersResponse"
              example:
                resource: "index_funds"
                tickers:
                  - "VOO"
                  - "VTI"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/ipos":
    get:
      operationId: "listIpos"
      tags:
        - "ipos"
      summary: "List IPO filings"
      description: "Registration statements (S-1, F-1 and their amendments) and final prospectuses (424B4, 424B1) filed since January 2025, newest first, each classified from its cover page as ipo, shell_company, spac, resale or other, with the proposed ticker, the exchange and the price or price range the cover states. With no parameter, every company's newest filings come."
      parameters:
        - $ref: "#/components/parameters/IpoTicker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/IpoClassification"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List IPO filings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/IposResponse"
              example:
                ipos:
                  - accession_number: "0001628280-26-073693"
                    cik: "0002090000"
                    form_type: "S-1/A"
                    company_name: "The Wella Company"
                    filing_date: "2026-11-20"
                    accepted_datetime: "2026-11-20T16:01:05Z"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/2090000/000162828026073693/0001628280-26-073693-index.htm"
                    classification: "ipo"
                    is_ipo_grade: true
                    ticker: "WELA"
                    exchange: "New York Stock Exchange"
                    expected_offering_price: null
                    price_range_low: 14
                    price_range_high: 16
                    has_financial_statements: true
                    has_price_on_cover: true
                    status: "classified"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/prices":
    get:
      operationId: "listCryptoPrices"
      tags:
        - "crypto"
      summary: "List crypto candles"
      description: "Candles of an OKX, Binance, Bybit, Hyperliquid, Coinbase, Kraken, Bitstamp, Deribit and Bitfinex instrument, of a Darvas aggregated pair (exchange darvas) across the exchanges that list it, or of a formula over listed crypto instruments (exchange formula), such as USDTBTC (the inverse of BTC-USDT), BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT, BTC/NVDA, COINBASE:BTCUSD - BINANCE:BTCUSDT or (BTCUSDT + ETHUSDT) / 2, at every frame from one minute to one month, the candle in progress included. A formula's candle is the formula of its legs' candles at every time all of them hold one. Pages go back in time from end_date; each lists its candles oldest first."
      parameters:
        - $ref: "#/components/parameters/CryptoCandleTicker"
        - $ref: "#/components/parameters/CryptoExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/CryptoInterval"
        - $ref: "#/components/parameters/CryptoIntervalMultiplier"
        - $ref: "#/components/parameters/CryptoStartDate"
        - $ref: "#/components/parameters/CryptoEndDate"
        - $ref: "#/components/parameters/CryptoLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List crypto candles: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoPricesResponse"
              example:
                ticker: "BTC-USDT"
                exchange: "okx"
                market_type: "spot"
                interval: "day"
                interval_multiplier: 1
                prices:
                  - open: 96520.1
                    close: 97811.4
                    high: 98240
                    low: 95910.2
                    volume: 8312.47
                    time: "2026-11-24T00:00:00.000Z"
                    time_milliseconds: 1795564800000
                    quote_volume: 806155230.15
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/prices/snapshot":
    get:
      operationId: "getCryptoPriceSnapshot"
      tags:
        - "crypto"
      summary: "Read a crypto price"
      description: "The newest price of an instrument, a Darvas aggregated pair or a formula over listed crypto instruments, such as USDTBTC or BTCUSDT/NVDAUSDT, the UTC day's candle so far and the change since the day began."
      parameters:
        - $ref: "#/components/parameters/CryptoCandleTicker"
        - $ref: "#/components/parameters/CryptoExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
      responses:
        "200":
          description: "Read a crypto price: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoSnapshotResponse"
              example:
                snapshot:
                  ticker: "BTC-USDT"
                  exchange: "okx"
                  market_type: "spot"
                  price: 97811.4
                  day_change: 1291.3
                  day_change_percent: 1.3378
                  open: 96520.1
                  high: 98240
                  low: 95910.2
                  close: 97811.4
                  volume: 6120.35
                  quote_volume: 593812440.2
                  time: "2026-11-25T17:30:00.000Z"
                  time_milliseconds: 1795671000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/tickers":
    get:
      operationId: "listCryptoTickers"
      tags:
        - "crypto"
      summary: "List crypto instruments"
      description: "Every OKX, Binance, Bybit, Hyperliquid, Coinbase, Kraken, Bitstamp, Deribit and Bitfinex instrument Darvas serves candles of, and every Darvas aggregated pair (exchange darvas) with the exchanges it combines, optional base, quote, tick_size, lot_size, and capabilities metadata, and optional market_type, quote, and query filters. A query that is a formula over listed instruments, such as USDTBTC (the inverse of BTC-USDT), BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT, BTC/NVDA, COINBASE:BTCUSD - BINANCE:BTCUSDT or (BTCUSDT + ETHUSDT) / 2, also lists that formula first, on exchange formula with its legs; an empty query or a plain symbol such as BTC never lists one."
      parameters:
        - $ref: "#/components/parameters/CryptoVenue"
        - $ref: "#/components/parameters/CryptoTickerMarketType"
        - $ref: "#/components/parameters/CryptoTickerQuote"
        - $ref: "#/components/parameters/CryptoTickerQuery"
      responses:
        "200":
          description: "List crypto instruments: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoTickersResponse"
              example:
                resource: "crypto"
                tickers:
                  - ticker: "BTC-USDT"
                    exchange: "okx"
                    market_type: "spot"
                    display_symbol: "BTC/USDT"
                    base: "BTC"
                    quote: "USDT"
                    tick_size: 0.1
                    lot_size: 0.0001
                    capabilities:
                      - "candles"
                      - "trades"
                      - "footprint"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/trades":
    get:
      operationId: "listCryptoTrades"
      tags:
        - "crypto"
      summary: "List crypto trades"
      description: "Every trade of an OKX, Binance, Bybit or Hyperliquid instrument in a window of at most a day, newest first, from the 90 days Darvas keeps: OKX swaps for the full 90 days, OKX spot, Hyperliquid perpetuals and Binance and Bybit spot and perpetuals since 23 November 2026, the 100 busiest Hyperliquid spot pairs since September 2026. Without start_time and end_time, the last hour. Exchange darvas answers 400: a Darvas aggregated pair's flow is at /crypto/order-flow and /crypto/footprint."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/CryptoTradeExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/TradeStartTime"
        - $ref: "#/components/parameters/TradeEndTime"
        - $ref: "#/components/parameters/TradeLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List crypto trades: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoTradesResponse"
              example:
                ticker: "BTC-USDT"
                exchange: "okx"
                market_type: "spot"
                trades:
                  - time: "2026-11-25T14:59:59.000Z"
                    time_milliseconds: 1795618799000
                    price: 97000
                    size: 0.01
                    notional_usd: 970
                    side: "buy"
                    trade_id: "5000"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/order-flow":
    get:
      operationId: "listCryptoOrderFlow"
      tags:
        - "crypto"
      summary: "List crypto order flow"
      description: "Buy and sell volume, delta and trade counts per bar of an OKX, Binance, Bybit or Hyperliquid instrument, read from tiered order flow storage: 1m and 5m bars from 1m bars kept for 13 months, 15m and 30m bars from 15m bars kept for 37 months, and 1H, 4H and 1D bars from hourly and daily bars kept permanently (Binance and Bybit since 23 November 2026), or of a Darvas aggregated pair (exchange darvas) summed across those exchanges. Multi-bar rollups combine sub-bars exactly, the delta extremes included. Pages go back in time from end_date."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/CryptoFlowExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/FlowInterval"
        - $ref: "#/components/parameters/FlowIntervalMultiplier"
        - $ref: "#/components/parameters/CryptoStartDate"
        - $ref: "#/components/parameters/CryptoEndDate"
        - $ref: "#/components/parameters/CryptoLimit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List crypto order flow: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoOrderFlowResponse"
              example:
                ticker: "BTC-USDT"
                exchange: "okx"
                market_type: "spot"
                interval: "minute"
                interval_multiplier: 5
                order_flow:
                  - time: "2026-11-25T14:00:00.000Z"
                    time_milliseconds: 1795615200000
                    buy_volume: 6
                    sell_volume: 7
                    delta: -1
                    buy_trades: 12
                    sell_trades: 14
                    min_delta: -1.5
                    max_delta: 2.5
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/footprint":
    get:
      operationId: "getCryptoFootprint"
      tags:
        - "crypto"
      summary: "Read a crypto footprint"
      description: "The newest bars of a Darvas aggregated pair, by default, or of an OKX, Binance, Bybit or Hyperliquid instrument: each bar's taker buy and sell volume, delta path and trade counts, and with cells=all the same split at every price row. A Darvas pair sums the trades of its exchanges on one price grid, the coarsest tick among them. The newest bar may still be open."
      parameters:
        - $ref: "#/components/parameters/CryptoTicker"
        - $ref: "#/components/parameters/FootprintExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/FootprintBar"
        - $ref: "#/components/parameters/FootprintLimit"
        - $ref: "#/components/parameters/FootprintRowTicks"
        - $ref: "#/components/parameters/FootprintRowSize"
        - $ref: "#/components/parameters/FootprintCells"
        - $ref: "#/components/parameters/FootprintStartTime"
        - $ref: "#/components/parameters/FootprintEndTime"
      responses:
        "200":
          description: "Read a crypto footprint: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoFootprintResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "darvas"
                market_type: "swap"
                constituents:
                  - "binance"
                  - "bybit"
                  - "okx"
                venues: null
                bar: "15m"
                tick: 0.1
                row_ticks: 100
                row_size: 10
                as_of: "2026-11-25T14:07:12.000Z"
                limited: false
                bars:
                  - time: "2026-11-25T14:00:00.000Z"
                    time_milliseconds: 1795615200000
                    buy_volume: 6
                    sell_volume: 7
                    delta: -1
                    buy_trades: 12
                    sell_trades: 14
                    min_delta: -1.5
                    max_delta: 2.5
                cells:
                  - time_milliseconds: 1795615200000
                    price: 97000
                    buy_volume: 1.25
                    sell_volume: 0.8
                    buy_trades: 14
                    sell_trades: 9
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/crypto/indicators":
    get:
      operationId: "getCryptoIndicators"
      tags:
        - "crypto"
      summary: "Read crypto technical indicators"
      description: "Moving averages, RSI, MACD, Bollinger Bands, ATR, volume and returns over the newest candles of a Darvas aggregated pair, by default, of an OKX, Binance, Bybit, Hyperliquid, Coinbase, Kraken, Bitstamp, Deribit and Bitfinex instrument, or of a formula over listed crypto instruments, such as USDTBTC (the inverse of BTC-USDT), BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT, BTC/NVDA, COINBASE:BTCUSD - BINANCE:BTCUSDT or (BTCUSDT + ETHUSDT) / 2, at any frame from one minute to one month. The newest candle may still be open, as on a chart."
      parameters:
        - $ref: "#/components/parameters/CryptoCandleTicker"
        - $ref: "#/components/parameters/IndicatorExchange"
        - $ref: "#/components/parameters/CryptoMarketType"
        - $ref: "#/components/parameters/DarvasVenues"
        - $ref: "#/components/parameters/IndicatorInterval"
        - $ref: "#/components/parameters/IndicatorIntervalMultiplier"
        - $ref: "#/components/parameters/IndicatorLimit"
      responses:
        "200":
          description: "Read crypto technical indicators: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CryptoIndicatorsResponse"
              example:
                ticker: "BTC-USDT-SWAP"
                exchange: "darvas"
                market_type: "swap"
                constituents:
                  - "binance"
                  - "bybit"
                  - "okx"
                venues: null
                interval: "hour"
                interval_multiplier: 4
                indicators:
                  latest_time: "2026-11-25T12:00:00.000Z"
                  latest_close: 97811.4
                  bars_analyzed: 250
                  sma_20: 96910.25
                  sma_50: 95120.8
                  sma_200: 91044.5
                  ema_12: 97215.6
                  ema_26: 96480.1
                  rsi_14: 61.42
                  macd: 735.5
                  macd_signal: 612.3
                  macd_histogram: 123.2
                  bollinger_upper: 98940.1
                  bollinger_middle: 96910.25
                  bollinger_lower: 94880.4
                  atr_14: 812.6
                  avg_volume_20: 10422.8
                  relative_volume: 1.08
                  period_high: 99120
                  period_low: 86010.5
                  pct_from_period_high: -1.32
                  return_1_bar_pct: 0.41
                  return_5_bar_pct: 1.85
                  return_20_bar_pct: 3.6
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials":
    get:
      operationId: "listFinancials"
      tags:
        - "financials"
      summary: "List financial statements"
      description: "The income statement, balance sheet and cash flow statement of each period of one company, newest period first, ten periods a page. Built from SEC's XBRL company facts for every 10-K, 10-Q, 20-F and 40-F: a quarter a 10-Q reports only year to date is the difference of two filings, a fourth quarter is the fiscal year less its first nine months, ttm adds four quarters. A period a later filing restated answers with the newest filing; with a filing_date filter, with the newest filed within it. UK and French companies, named by market or isin, answer with the fiscal years of their ESEF and UKSEF annual reports, by the same rules; they carry no quarters."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/StatementPeriod"
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
        - $ref: "#/components/parameters/StatementIsin"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List financial statements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FinancialsResponse"
              example:
                financials:
                  income_statements:
                    - ticker: "AAPL"
                      report_period: "2025-12-27"
                      fiscal_period: "2026-Q1"
                      period: "quarterly"
                      currency: "USD"
                      accession_number: "0000320193-26-000006"
                      form_type: "10-Q"
                      filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                      filing_date: "2026-01-30"
                      filing_datetime: "2026-01-30T06:01:32-05:00"
                      revenue: 143756000000
                      cost_of_revenue: 74525000000
                      gross_profit: 69231000000
                      operating_expense: 18379000000
                      selling_general_and_administrative_expenses: 7492000000
                      research_and_development: 10887000000
                      operating_income: 50852000000
                      interest_expense: null
                      ebit: 51002000000
                      income_tax_expense: 8905000000
                      net_income_discontinued_operations: null
                      net_income_non_controlling_interests: null
                      net_income: 42097000000
                      net_income_common_stock: 42097000000
                      preferred_dividends_impact: null
                      consolidated_income: 42097000000
                      earnings_per_share: 2.85
                      earnings_per_share_diluted: 2.84
                      dividends_per_common_share: 0.26
                      weighted_average_shares: 14748158000
                      weighted_average_shares_diluted: 14810356000
                  balance_sheets:
                    - ticker: "AAPL"
                      report_period: "2025-12-27"
                      fiscal_period: "2026-Q1"
                      period: "quarterly"
                      currency: "USD"
                      accession_number: "0000320193-26-000006"
                      form_type: "10-Q"
                      filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                      filing_date: "2026-01-30"
                      filing_datetime: "2026-01-30T06:01:32-05:00"
                      total_assets: 379297000000
                      current_assets: 158104000000
                      cash_and_equivalents: 45317000000
                      inventory: 5875000000
                      current_investments: 21590000000
                      trade_and_non_trade_receivables: 70320000000
                      non_current_assets: 221193000000
                      property_plant_and_equipment: 50159000000
                      goodwill_and_intangible_assets: null
                      investments: 99478000000
                      non_current_investments: 77888000000
                      outstanding_shares: 14702703000
                      tax_assets: null
                      total_liabilities: 291107000000
                      current_liabilities: 162367000000
                      current_debt: 13824000000
                      trade_and_non_trade_payables: 70587000000
                      deferred_revenue: 9413000000
                      deposit_liabilities: null
                      non_current_liabilities: 128740000000
                      non_current_debt: 76685000000
                      tax_liabilities: null
                      shareholders_equity: 88190000000
                      retained_earnings: -2177000000
                      accumulated_other_comprehensive_income: -4854000000
                      total_debt: 90509000000
                  cash_flow_statements:
                    - ticker: "AAPL"
                      report_period: "2025-12-27"
                      fiscal_period: "2026-Q1"
                      period: "quarterly"
                      currency: "USD"
                      accession_number: "0000320193-26-000006"
                      form_type: "10-Q"
                      filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                      filing_date: "2026-01-30"
                      filing_datetime: "2026-01-30T06:01:32-05:00"
                      net_income: 42097000000
                      depreciation_and_amortization: 3214000000
                      share_based_compensation: 3594000000
                      net_cash_flow_from_operations: 53925000000
                      capital_expenditure: -2373000000
                      business_acquisitions_and_disposals: null
                      investment_acquisitions_and_disposals: -2359000000
                      net_cash_flow_from_investing: -4886000000
                      issuance_or_repayment_of_debt_securities: -10196000000
                      issuance_or_purchase_of_equity_shares: -24701000000
                      dividends_and_other_cash_distributions: -3921000000
                      net_cash_flow_from_financing: -39656000000
                      change_in_cash_and_equivalents: 9383000000
                      effect_of_exchange_rate_changes: null
                      ending_cash_balance: 45317000000
                      free_cash_flow: 51552000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/income-statements":
    get:
      operationId: "listIncomeStatements"
      tags:
        - "financials"
      summary: "List income statements"
      description: "The income statements of one company, newest period first, ten a page. Built from SEC's XBRL company facts for every 10-K, 10-Q, 20-F and 40-F: a quarter a 10-Q reports only year to date is the difference of two filings, a fourth quarter is the fiscal year less its first nine months, ttm adds four quarters. A period a later filing restated answers with the newest filing; with a filing_date filter, with the newest filed within it. UK and French companies, named by market or isin, answer with the fiscal years of their ESEF and UKSEF annual reports, by the same rules; they carry no quarters."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/StatementPeriod"
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
        - $ref: "#/components/parameters/StatementIsin"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List income statements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/IncomeStatementsResponse"
              example:
                income_statements:
                  - ticker: "AAPL"
                    report_period: "2025-12-27"
                    fiscal_period: "2026-Q1"
                    period: "quarterly"
                    currency: "USD"
                    accession_number: "0000320193-26-000006"
                    form_type: "10-Q"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                    filing_date: "2026-01-30"
                    filing_datetime: "2026-01-30T06:01:32-05:00"
                    revenue: 143756000000
                    cost_of_revenue: 74525000000
                    gross_profit: 69231000000
                    operating_expense: 18379000000
                    selling_general_and_administrative_expenses: 7492000000
                    research_and_development: 10887000000
                    operating_income: 50852000000
                    interest_expense: null
                    ebit: 51002000000
                    income_tax_expense: 8905000000
                    net_income_discontinued_operations: null
                    net_income_non_controlling_interests: null
                    net_income: 42097000000
                    net_income_common_stock: 42097000000
                    preferred_dividends_impact: null
                    consolidated_income: 42097000000
                    earnings_per_share: 2.85
                    earnings_per_share_diluted: 2.84
                    dividends_per_common_share: 0.26
                    weighted_average_shares: 14748158000
                    weighted_average_shares_diluted: 14810356000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/balance-sheets":
    get:
      operationId: "listBalanceSheets"
      tags:
        - "financials"
      summary: "List balance sheets"
      description: "The balance sheets of one company, newest period first, ten a page. Built from SEC's XBRL company facts for every 10-K, 10-Q, 20-F and 40-F: a quarter a 10-Q reports only year to date is the difference of two filings, a fourth quarter is the fiscal year less its first nine months, ttm adds four quarters. A period a later filing restated answers with the newest filing; with a filing_date filter, with the newest filed within it. UK and French companies, named by market or isin, answer with the fiscal years of their ESEF and UKSEF annual reports, by the same rules; they carry no quarters."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/StatementPeriod"
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
        - $ref: "#/components/parameters/StatementIsin"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List balance sheets: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/BalanceSheetsResponse"
              example:
                balance_sheets:
                  - ticker: "AAPL"
                    report_period: "2025-12-27"
                    fiscal_period: "2026-Q1"
                    period: "quarterly"
                    currency: "USD"
                    accession_number: "0000320193-26-000006"
                    form_type: "10-Q"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                    filing_date: "2026-01-30"
                    filing_datetime: "2026-01-30T06:01:32-05:00"
                    total_assets: 379297000000
                    current_assets: 158104000000
                    cash_and_equivalents: 45317000000
                    inventory: 5875000000
                    current_investments: 21590000000
                    trade_and_non_trade_receivables: 70320000000
                    non_current_assets: 221193000000
                    property_plant_and_equipment: 50159000000
                    goodwill_and_intangible_assets: null
                    investments: 99478000000
                    non_current_investments: 77888000000
                    outstanding_shares: 14702703000
                    tax_assets: null
                    total_liabilities: 291107000000
                    current_liabilities: 162367000000
                    current_debt: 13824000000
                    trade_and_non_trade_payables: 70587000000
                    deferred_revenue: 9413000000
                    deposit_liabilities: null
                    non_current_liabilities: 128740000000
                    non_current_debt: 76685000000
                    tax_liabilities: null
                    shareholders_equity: 88190000000
                    retained_earnings: -2177000000
                    accumulated_other_comprehensive_income: -4854000000
                    total_debt: 90509000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/cash-flow-statements":
    get:
      operationId: "listCashFlowStatements"
      tags:
        - "financials"
      summary: "List cash flow statements"
      description: "The cash flow statements of one company, newest period first, ten a page. Built from SEC's XBRL company facts for every 10-K, 10-Q, 20-F and 40-F: a quarter a 10-Q reports only year to date is the difference of two filings, a fourth quarter is the fiscal year less its first nine months, ttm adds four quarters. A period a later filing restated answers with the newest filing; with a filing_date filter, with the newest filed within it. UK and French companies, named by market or isin, answer with the fiscal years of their ESEF and UKSEF annual reports, by the same rules; they carry no quarters."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/StatementPeriod"
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
        - $ref: "#/components/parameters/StatementIsin"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List cash flow statements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CashFlowStatementsResponse"
              example:
                cash_flow_statements:
                  - ticker: "AAPL"
                    report_period: "2025-12-27"
                    fiscal_period: "2026-Q1"
                    period: "quarterly"
                    currency: "USD"
                    accession_number: "0000320193-26-000006"
                    form_type: "10-Q"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                    filing_date: "2026-01-30"
                    filing_datetime: "2026-01-30T06:01:32-05:00"
                    net_income: 42097000000
                    depreciation_and_amortization: 3214000000
                    share_based_compensation: 3594000000
                    net_cash_flow_from_operations: 53925000000
                    capital_expenditure: -2373000000
                    business_acquisitions_and_disposals: null
                    investment_acquisitions_and_disposals: -2359000000
                    net_cash_flow_from_investing: -4886000000
                    issuance_or_repayment_of_debt_securities: -10196000000
                    issuance_or_purchase_of_equity_shares: -24701000000
                    dividends_and_other_cash_distributions: -3921000000
                    net_cash_flow_from_financing: -39656000000
                    change_in_cash_and_equivalents: 9383000000
                    effect_of_exchange_rate_changes: null
                    ending_cash_balance: 45317000000
                    free_cash_flow: 51552000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/income-statements/tickers":
    get:
      operationId: "listStatementTickers"
      tags:
        - "financials"
      summary: "List companies with statements"
      description: "The companies of one market with annual statements, by ticker: US companies with their CIK, UK and French ones with the ISIN of their main share. A company is active while its newest annual report ended in the last two years."
      parameters:
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
      responses:
        "200":
          description: "List companies with statements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/StatementTickersResponse"
              example:
                market: "UK"
                tickers:
                  - ticker: "RR."
                    name: "ROLLS-ROYCE HOLDINGS PLC"
                    market: "UK"
                    identifier: "GB00B63H8491"
                    identifier_type: "ISIN"
                    status: "active"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financial-metrics":
    get:
      operationId: "listFinancialMetrics"
      tags:
        - "financials"
      summary: "List financial metrics"
      description: "Valuation, profitability, efficiency, liquidity, leverage, growth and per share ratios of one company per period, newest first, ten a page. Ratios are fractions, over the row's own period: a quarter's margins and turnovers are the quarter's. Averages take the period's balance and the previous one; growth compares with the same period a year earlier. Valuations take a share price on the share count of the row's filing, with the splits since undone: a period's is the last close at most ten days before it ends, a snapshot's the latest price. They are null without a price and for statements in a currency other than the dollar."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/StatementPeriod"
        - $ref: "#/components/parameters/StatementMarket"
        - $ref: "#/components/parameters/StatementExchange"
        - $ref: "#/components/parameters/StatementIsin"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List financial metrics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FinancialMetricsResponse"
              example:
                financial_metrics:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    form_type: "10-K"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    filing_date: "2026-11-03"
                    filing_datetime: "2026-11-03T16:31:05-05:00"
                    market_cap: 4956517683567
                    enterprise_value: 5000323683567
                    price_to_earnings_ratio: 37.499661
                    price_to_book_ratio: 44.217906
                    price_to_sales_ratio: 10.351223
                    enterprise_value_to_ebitda_ratio: 28.960522
                    enterprise_value_to_revenue_ratio: 10.442708
                    free_cash_flow_yield: 0.02745
                    peg_ratio: 1.840447
                    gross_margin: 0.487856
                    operating_margin: 0.3301
                    net_margin: 0.276035
                    return_on_equity: 1.179155
                    return_on_assets: 0.326723
                    return_on_invested_capital: 0.840294
                    asset_turnover: 1.253838
                    inventory_turnover: 24.209685
                    receivables_turnover: 6.112644
                    days_sales_outstanding: 59.71
                    operating_cycle: 74.79
                    working_capital_turnover: -69.739878
                    current_ratio: 1.0232
                    quick_ratio: 0.826501
                    cash_ratio: 0.213666
                    operating_cash_flow_ratio: 0.853939
                    debt_to_equity: 0.714683
                    debt_to_assets: 0.198026
                    interest_coverage: null
                    revenue_growth: 0.150598
                    earnings_growth: 0.180029
                    book_value_growth: 0.520256
                    earnings_per_share_growth: 0.203753
                    free_cash_flow_growth: 0.377545
                    operating_income_growth: 0.187997
                    ebitda_growth: 0.195483
                    payout_ratio: 0.118941
                    earnings_per_share: 9.01
                    book_value_per_share: 7.713391
                    free_cash_flow_per_share: 9.362343
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financial-metrics/snapshot":
    get:
      operationId: "getFinancialMetricsSnapshot"
      tags:
        - "financials"
      summary: "Get a financial metrics snapshot"
      description: "The ratios of a company's newest trailing twelve months. Ratios are fractions, over the row's own period: a quarter's margins and turnovers are the quarter's. Averages take the period's balance and the previous one; growth compares with the same period a year earlier. Valuations take a share price on the share count of the row's filing, with the splits since undone: a period's is the last close at most ten days before it ends, a snapshot's the latest price. They are null without a price and for statements in a currency other than the dollar."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
      responses:
        "200":
          description: "Get a financial metrics snapshot: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FinancialMetricsSnapshotResponse"
              example:
                snapshot:
                  ticker: "AAPL"
                  report_period: "2026-09-26"
                  currency: "USD"
                  market_cap: 4956517683567
                  enterprise_value: 5000323683567
                  price_to_earnings_ratio: 37.499661
                  price_to_book_ratio: 44.217906
                  price_to_sales_ratio: 10.351223
                  enterprise_value_to_ebitda_ratio: 28.960522
                  enterprise_value_to_revenue_ratio: 10.442708
                  free_cash_flow_yield: 0.02745
                  peg_ratio: 1.840447
                  gross_margin: 0.487856
                  operating_margin: 0.3301
                  net_margin: 0.276035
                  return_on_equity: 1.179155
                  return_on_assets: 0.326723
                  return_on_invested_capital: 0.840294
                  asset_turnover: 1.253838
                  inventory_turnover: 24.209685
                  receivables_turnover: 6.112644
                  days_sales_outstanding: 59.71
                  operating_cycle: 74.79
                  working_capital_turnover: -69.739878
                  current_ratio: 1.0232
                  quick_ratio: 0.826501
                  cash_ratio: 0.213666
                  operating_cash_flow_ratio: 0.853939
                  debt_to_equity: 0.714683
                  debt_to_assets: 0.198026
                  interest_coverage: null
                  revenue_growth: 0.150598
                  earnings_growth: 0.180029
                  book_value_growth: 0.520256
                  earnings_per_share_growth: 0.203753
                  free_cash_flow_growth: 0.377545
                  operating_income_growth: 0.187997
                  ebitda_growth: 0.195483
                  payout_ratio: 0.118941
                  earnings_per_share: 9.01
                  book_value_per_share: 7.713391
                  free_cash_flow_per_share: 9.362343
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financial-metrics/snapshot/tickers":
    get:
      operationId: "listFinancialMetricsTickers"
      tags:
        - "financials"
      summary: "List tickers with financial metrics"
      description: "Every company whose newest trailing twelve months ends within the last 400 days, by its current ticker."
      parameters: []
      responses:
        "200":
          description: "List tickers with financial metrics: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/FinancialMetricsTickersResponse"
              example:
                resource: "financial-metrics"
                listings:
                  - ticker: "AAPL"
                    name: "Apple Inc."
                    market: "US"
                    identifier: "0000320193"
                    identifier_type: "CIK"
                    status: "active"
                tickers:
                  - "AAPL"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/search/line-items":
    post:
      operationId: "searchLineItems"
      tags:
        - "financials"
      summary: "Search line items"
      description: "Chosen statement fields of up to 100 companies, the newest `limit` periods of each. A field name the income statement and the cash flow statement share, net_income, is the income statement's."
      requestBody:
        required: true
        description: "The query of search line items."
        content:
          "application/json":
            schema:
              $ref: "#/components/schemas/LineItemSearchRequest"
            example:
              line_items:
                - "revenue"
                - "net_income"
              tickers:
                - "AAPL"
                - "MSFT"
              period: "ttm"
              limit: 1
      responses:
        "200":
          description: "Search line items: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/LineItemSearchResponse"
              example:
                search_results:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    period: "ttm"
                    currency: "USD"
                    revenue: 478834000000
                    net_income: 132180000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/search/screener":
    post:
      operationId: "screenCompanies"
      tags:
        - "financials"
      summary: "Screen companies"
      description: "Companies whose newest trailing twelve months matches every filter: statement fields, the ratios one period gives alone, the valuations at the latest share price, sector, industry and ticker. A screen leaves out companies whose newest period ends more than 180 days before the screen date. With as_of, each company's newest filing public on that day is screened, valued at the last close at most ten days before it. An answer is shared for a minute."
      requestBody:
        required: true
        description: "The query of screen companies."
        content:
          "application/json":
            schema:
              $ref: "#/components/schemas/ScreenerRequest"
            example:
              filters:
                - field: "gross_margin"
                  operator: "gte"
                  value: 0.6
                - field: "revenue"
                  operator: "gt"
                  value: 100000000000
              order_by:
                field: "revenue"
                direction: "desc"
              limit: 10
      responses:
        "200":
          description: "Screen companies: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/ScreenerResponse"
              example:
                results:
                  - ticker: "MSFT"
                    report_period: "2026-09-30"
                    currency: "USD"
                    sector: "Technology"
                    industry: "Services-Prepackaged Software"
                    gross_margin: 0.68
                    revenue: 331840000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/search/screener/filters":
    get:
      operationId: "listScreenerFilters"
      tags:
        - "financials"
      summary: "List screener fields"
      description: "The fields a screen can filter and sort on, each with its type and source."
      parameters: []
      responses:
        "200":
          description: "List screener fields: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/ScreenerFiltersResponse"
              example:
                metrics:
                  gross_margin:
                    type: "number"
                    source: "financial_metrics"
                operators:
                  - "gt"
                  - "lt"
                  - "gte"
                  - "lte"
                  - "eq"
                  - "in"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/as-reported":
    get:
      operationId: "listAsReportedFinancials"
      tags:
        - "financials"
      summary: "List as-reported financial statements"
      description: "The income statement, balance sheet and cash flow statement of each period as the 10-K, 10-Q, 20-F or 40-F presents them, newest first. Line items come in the filing's own order and hierarchy, with the company's labels; section headers have no value. Values are the filing's own period: the balance at its end, the year or quarter of the income statement, the cash flow statement as presented, which a 10-Q gives year to date. A period a later filing restated answers with the newest filing."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List as-reported financial statements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/AsReportedFinancialsResponse"
              example:
                financials:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    income_statement: null
                    balance_sheet:
                      line_items:
                        - label: "Current assets:"
                          full_label: "Assets, Current [Abstract]"
                          concept: "us-gaap:AssetsCurrentAbstract"
                          value: null
                          children:
                            - label: "Cash and cash equivalents"
                              full_label: "Cash and Cash Equivalent"
                              concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                              value: 36305000000
                              children: []
                    cash_flow_statement: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/segments":
    get:
      operationId: "listSegmentedFinancials"
      tags:
        - "financials"
      summary: "List segmented financials"
      description: "The segment breakdowns of every statement for each period, newest first. Facts the filing reports on the product or service axis, the geographical axis or the business segment axis alone, for its own period. A line the filing does not break down is null."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List segmented financials: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/SegmentedFinancialsResponse"
              example:
                segmented_financials:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    income_statement:
                      revenue:
                        product:
                          - label: "iPhone"
                            value: 254098000000
                        geography:
                          - label: "Other countries"
                            value: 228710000000
                        segment:
                          - label: "Americas"
                            value: 198083000000
                      operating_income: null
                      depreciation: null
                    balance_sheet:
                      assets: null
                      goodwill: null
                      long_lived_assets: null
                    cash_flow_statement:
                      capital_expenditure: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/income-statements/as-reported":
    get:
      operationId: "listIncomeStatementsAsReported"
      tags:
        - "financials"
      summary: "List as-reported income statements"
      description: "The income statement of each period as the filing presents it, newest first. Line items come in the filing's own order and hierarchy, with the company's labels; section headers have no value. Values are the filing's own period: the balance at its end, the year or quarter of the income statement, the cash flow statement as presented, which a 10-Q gives year to date. A period a later filing restated answers with the newest filing."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List as-reported income statements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/IncomeStatementsAsReportedResponse"
              example:
                income_statements:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    line_items:
                      - label: "Current assets:"
                        full_label: "Assets, Current [Abstract]"
                        concept: "us-gaap:AssetsCurrentAbstract"
                        value: null
                        children:
                          - label: "Cash and cash equivalents"
                            full_label: "Cash and Cash Equivalent"
                            concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                            value: 36305000000
                            children: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/income-statements/segments":
    get:
      operationId: "listIncomeStatementSegments"
      tags:
        - "financials"
      summary: "List income statement segments"
      description: "The income statement's segment breakdowns for each period, newest first. Facts the filing reports on the product or service axis, the geographical axis or the business segment axis alone, for its own period. A line the filing does not break down is null."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List income statement segments: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/IncomeStatementSegmentsResponse"
              example:
                income_statement_segments:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    revenue:
                      product:
                        - label: "iPhone"
                          value: 254098000000
                      geography:
                        - label: "Other countries"
                          value: 228710000000
                      segment:
                        - label: "Americas"
                          value: 198083000000
                    operating_income:
                      product:
                        - label: "iPhone"
                          value: 254098000000
                      geography:
                        - label: "Other countries"
                          value: 228710000000
                      segment:
                        - label: "Americas"
                          value: 198083000000
                    depreciation:
                      product:
                        - label: "iPhone"
                          value: 254098000000
                      geography:
                        - label: "Other countries"
                          value: 228710000000
                      segment:
                        - label: "Americas"
                          value: 198083000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/balance-sheets/as-reported":
    get:
      operationId: "listBalanceSheetsAsReported"
      tags:
        - "financials"
      summary: "List as-reported balance sheets"
      description: "The balance sheet of each period as the filing presents it, newest first. Line items come in the filing's own order and hierarchy, with the company's labels; section headers have no value. Values are the filing's own period: the balance at its end, the year or quarter of the income statement, the cash flow statement as presented, which a 10-Q gives year to date. A period a later filing restated answers with the newest filing."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List as-reported balance sheets: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/BalanceSheetsAsReportedResponse"
              example:
                balance_sheets:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    line_items:
                      - label: "Current assets:"
                        full_label: "Assets, Current [Abstract]"
                        concept: "us-gaap:AssetsCurrentAbstract"
                        value: null
                        children:
                          - label: "Cash and cash equivalents"
                            full_label: "Cash and Cash Equivalent"
                            concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                            value: 36305000000
                            children: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/balance-sheets/segments":
    get:
      operationId: "listBalanceSheetSegments"
      tags:
        - "financials"
      summary: "List balance sheet segments"
      description: "The balance sheet's segment breakdowns for each period, newest first. Facts the filing reports on the product or service axis, the geographical axis or the business segment axis alone, for its own period. A line the filing does not break down is null."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List balance sheet segments: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/BalanceSheetSegmentsResponse"
              example:
                balance_sheet_segments:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    assets:
                      product:
                        - label: "iPhone"
                          value: 254098000000
                      geography:
                        - label: "Other countries"
                          value: 228710000000
                      segment:
                        - label: "Americas"
                          value: 198083000000
                    goodwill:
                      product:
                        - label: "iPhone"
                          value: 254098000000
                      geography:
                        - label: "Other countries"
                          value: 228710000000
                      segment:
                        - label: "Americas"
                          value: 198083000000
                    long_lived_assets:
                      product:
                        - label: "iPhone"
                          value: 254098000000
                      geography:
                        - label: "Other countries"
                          value: 228710000000
                      segment:
                        - label: "Americas"
                          value: 198083000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/cash-flow-statements/as-reported":
    get:
      operationId: "listCashFlowStatementsAsReported"
      tags:
        - "financials"
      summary: "List as-reported cash flow statements"
      description: "The cash flow statement of each period as the filing presents it, newest first. Line items come in the filing's own order and hierarchy, with the company's labels; section headers have no value. Values are the filing's own period: the balance at its end, the year or quarter of the income statement, the cash flow statement as presented, which a 10-Q gives year to date. A period a later filing restated answers with the newest filing."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List as-reported cash flow statements: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CashFlowStatementsAsReportedResponse"
              example:
                cash_flow_statements:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    line_items:
                      - label: "Current assets:"
                        full_label: "Assets, Current [Abstract]"
                        concept: "us-gaap:AssetsCurrentAbstract"
                        value: null
                        children:
                          - label: "Cash and cash equivalents"
                            full_label: "Cash and Cash Equivalent"
                            concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                            value: 36305000000
                            children: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/financials/cash-flow-statements/segments":
    get:
      operationId: "listCashFlowStatementSegments"
      tags:
        - "financials"
      summary: "List cash flow statement segments"
      description: "The cash flow statement's segment breakdowns for each period, newest first. Facts the filing reports on the product or service axis, the geographical axis or the business segment axis alone, for its own period. A line the filing does not break down is null."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/ReportedPeriod"
        - $ref: "#/components/parameters/StatementLimit"
        - $ref: "#/components/parameters/ReportPeriod"
        - $ref: "#/components/parameters/ReportPeriodGte"
        - $ref: "#/components/parameters/ReportPeriodLte"
        - $ref: "#/components/parameters/ReportPeriodGt"
        - $ref: "#/components/parameters/ReportPeriodLt"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List cash flow statement segments: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/CashFlowStatementSegmentsResponse"
              example:
                cash_flow_statement_segments:
                  - ticker: "AAPL"
                    report_period: "2026-09-26"
                    fiscal_period: "2026-FY"
                    period: "annual"
                    currency: "USD"
                    accession_number: "0000320193-26-000026"
                    filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
                    capital_expenditure:
                      product:
                        - label: "iPhone"
                          value: 254098000000
                      geography:
                        - label: "Other countries"
                          value: 228710000000
                      segment:
                        - label: "Americas"
                          value: 198083000000
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/insider-ownership":
    get:
      operationId: "listInsiderOwnership"
      tags:
        - "insiders"
      summary: "List insider holdings"
      description: "Holdings reported on Forms 3 and 5, one row per holding, newest filing first."
      parameters:
        - $ref: "#/components/parameters/Ticker"
        - $ref: "#/components/parameters/Cik"
        - $ref: "#/components/parameters/Name"
        - $ref: "#/components/parameters/HoldingFormType"
        - $ref: "#/components/parameters/FilingDate"
        - $ref: "#/components/parameters/FilingDateGte"
        - $ref: "#/components/parameters/FilingDateLte"
        - $ref: "#/components/parameters/FilingDateGt"
        - $ref: "#/components/parameters/FilingDateLt"
        - $ref: "#/components/parameters/Limit"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List insider holdings: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InsiderOwnershipResponse"
              example:
                insider_ownership:
                  - ticker: "NVDA"
                    issuer: "NVIDIA CORP"
                    name: "Teter Timothy S."
                    title: "EVP, General Counsel"
                    is_board_director: false
                    is_officer: true
                    is_ten_percent_owner: false
                    form_type: "3"
                    filing_date: "2026-09-23"
                    accession_number: "0001696841-26-000014"
                    security_title: "Common Stock"
                    issuer_cik: 1045810
                    owner_cik: 1696841
                    reporting_owners:
                      - cik: 1696841
                        name: "Teter Timothy S."
                        title: "EVP, General Counsel"
                        is_board_director: false
                        is_officer: true
                        is_ten_percent_owner: false
                        is_other: false
                    is_derivative: false
                    direct_or_indirect: "D"
                    nature_of_ownership: null
                    footnotes:
                      - id: "F1"
                        text: "Sold under a Rule 10b5-1 trading plan."
                    filing_url: "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
                    as_of_date: "2026-09-21"
                    holding_type: "common"
                    shares_owned: 25200
                    conversion_or_exercise_price: null
                    exercise_date: null
                    expiration_date: null
                    underlying_security_title: null
                    underlying_security_shares: null
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/interest-rates":
    get:
      operationId: "listInterestRates"
      tags:
        - "macro"
      summary: "List central bank policy rates"
      description: "Central bank policy rates in date order between start_date and end_date; each page holds at most 1,000 rows and links the next one."
      parameters:
        - $ref: "#/components/parameters/BankRequired"
        - $ref: "#/components/parameters/StartDate"
        - $ref: "#/components/parameters/EndDate"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List central bank policy rates: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InterestRatesResponse"
              example:
                interest_rates:
                  - bank: "FED"
                    name: "Federal Reserve"
                    rate: 4.125
                    date: "2026-11-24"
                    first_published_rate: 4.125
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/interest-rates/snapshot":
    get:
      operationId: "getInterestRatesSnapshot"
      tags:
        - "macro"
      summary: "Read the newest central bank policy rates"
      description: "The newest of the central bank policy rates, for every series or the one named."
      parameters:
        - $ref: "#/components/parameters/BankOptional"
      responses:
        "200":
          description: "Read the newest central bank policy rates: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InterestRatesSnapshot"
              example:
                interest_rates:
                  - bank: "FED"
                    name: "Federal Reserve"
                    rate: 4.125
                    date: "2026-11-24"
                    first_published_rate: 4.125
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/interest-rates/banks":
    get:
      operationId: "listInterestRatesSeries"
      tags:
        - "macro"
      summary: "List the series of central bank policy rates"
      description: "Every central bank symbol to pass as bank for central bank policy rates, with its name, first date and source."
      parameters: []
      responses:
        "200":
          description: "List the series of central bank policy rates: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InterestRatesCatalog"
              example:
                resource: "interest_rates"
                banks:
                  - "FED"
                  - "ECB"
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/yield-curve":
    get:
      operationId: "listYieldCurve"
      tags:
        - "macro"
      summary: "List Treasury par yield curves"
      description: "Treasury par yield curves in date order between start_date and end_date; each page holds at most 1,000 rows and links the next one."
      parameters:
        - $ref: "#/components/parameters/StartDate"
        - $ref: "#/components/parameters/EndDate"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List Treasury par yield curves: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/YieldCurveResponse"
              example:
                yield_curve:
                  - date: "2026-11-24"
                    "1_month": 4.21
                    "10_year": 4.91
                    "30_year": 5.3
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/yield-curve/snapshot":
    get:
      operationId: "getYieldCurveSnapshot"
      tags:
        - "macro"
      summary: "Read the newest Treasury par yield curves"
      description: "The newest of the Treasury par yield curves, for every series or the one named."
      parameters: []
      responses:
        "200":
          description: "Read the newest Treasury par yield curves: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/YieldCurveSnapshot"
              example:
                yield_curve:
                  date: "2026-11-24"
                  "1_month": 4.21
                  "10_year": 4.91
                  "30_year": 5.3
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/inflation":
    get:
      operationId: "listInflation"
      tags:
        - "macro"
      summary: "List inflation observations"
      description: "Inflation observations in date order between start_date and end_date; each page holds at most 1,000 rows and links the next one."
      parameters:
        - $ref: "#/components/parameters/SeriesRequired"
        - $ref: "#/components/parameters/StartDate"
        - $ref: "#/components/parameters/EndDate"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List inflation observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InflationResponse"
              example:
                inflation:
                  - series: "cpi_all_sa"
                    date: "2026-10-01"
                    value: 331.2
                    change_1m_pct: 0.2
                    change_12m_pct: 2.9
                    first_published_value: 331.2
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/inflation/snapshot":
    get:
      operationId: "getInflationSnapshot"
      tags:
        - "macro"
      summary: "Read the newest inflation observations"
      description: "The newest of the inflation observations, for every series or the one named."
      parameters:
        - $ref: "#/components/parameters/SeriesOptional"
      responses:
        "200":
          description: "Read the newest inflation observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InflationSnapshot"
              example:
                inflation:
                  - series: "cpi_all_sa"
                    date: "2026-10-01"
                    value: 331.2
                    change_1m_pct: 0.2
                    change_12m_pct: 2.9
                    first_published_value: 331.2
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/inflation/series":
    get:
      operationId: "listInflationSeries"
      tags:
        - "macro"
      summary: "List the series of inflation observations"
      description: "Every series of the inflation observations with its series (and series_id) identifier to pass as the series query parameter, plus title, units, frequency, first date and source."
      parameters: []
      responses:
        "200":
          description: "List the series of inflation observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/InflationCatalog"
              example:
                resource: "inflation"
                series: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/labor":
    get:
      operationId: "listLabor"
      tags:
        - "macro"
      summary: "List labor market observations"
      description: "Labor market observations in date order between start_date and end_date; each page holds at most 1,000 rows and links the next one."
      parameters:
        - $ref: "#/components/parameters/SeriesRequired"
        - $ref: "#/components/parameters/StartDate"
        - $ref: "#/components/parameters/EndDate"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List labor market observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/LaborResponse"
              example:
                labor:
                  - series: "payrolls_sa"
                    date: "2026-10-01"
                    value: 159834
                    change_prior: 112
                    change_year: 1650
                    change_year_pct: 1
                    first_published_value: 159800
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/labor/snapshot":
    get:
      operationId: "getLaborSnapshot"
      tags:
        - "macro"
      summary: "Read the newest labor market observations"
      description: "The newest of the labor market observations, for every series or the one named."
      parameters:
        - $ref: "#/components/parameters/SeriesOptional"
      responses:
        "200":
          description: "Read the newest labor market observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/LaborSnapshot"
              example:
                labor:
                  - series: "payrolls_sa"
                    date: "2026-10-01"
                    value: 159834
                    change_prior: 112
                    change_year: 1650
                    change_year_pct: 1
                    first_published_value: 159800
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/labor/series":
    get:
      operationId: "listLaborSeries"
      tags:
        - "macro"
      summary: "List the series of labor market observations"
      description: "Every series of the labor market observations with its series (and series_id) identifier to pass as the series query parameter, plus title, units, frequency, first date and source."
      parameters: []
      responses:
        "200":
          description: "List the series of labor market observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/LaborCatalog"
              example:
                resource: "labor"
                series: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/gdp":
    get:
      operationId: "listGdp"
      tags:
        - "macro"
      summary: "List growth and income observations"
      description: "Growth and income observations in date order between start_date and end_date; each page holds at most 1,000 rows and links the next one."
      parameters:
        - $ref: "#/components/parameters/SeriesRequired"
        - $ref: "#/components/parameters/StartDate"
        - $ref: "#/components/parameters/EndDate"
        - $ref: "#/components/parameters/Cursor"
      responses:
        "200":
          description: "List growth and income observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/GdpResponse"
              example:
                gdp:
                  - series: "real_gdp_growth"
                    date: "2026-07-01"
                    value: 2.8
                    change_prior: 0.4
                    change_year: -0.3
                    change_year_pct: -9.7
                    first_published_value: 2.6
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/gdp/snapshot":
    get:
      operationId: "getGdpSnapshot"
      tags:
        - "macro"
      summary: "Read the newest growth and income observations"
      description: "The newest of the growth and income observations, for every series or the one named."
      parameters:
        - $ref: "#/components/parameters/SeriesOptional"
      responses:
        "200":
          description: "Read the newest growth and income observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/GdpSnapshot"
              example:
                gdp:
                  - series: "real_gdp_growth"
                    date: "2026-07-01"
                    value: 2.8
                    change_prior: 0.4
                    change_year: -0.3
                    change_year_pct: -9.7
                    first_published_value: 2.6
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
  "/macro/gdp/series":
    get:
      operationId: "listGdpSeries"
      tags:
        - "macro"
      summary: "List the series of growth and income observations"
      description: "Every series of the growth and income observations with its series (and series_id) identifier to pass as the series query parameter, plus title, units, frequency, first date and source."
      parameters: []
      responses:
        "200":
          description: "List the series of growth and income observations: one page."
          headers:
            X-RateLimit-Limit:
              $ref: "#/components/headers/RateLimitLimit"
            X-Quota-Unit:
              $ref: "#/components/headers/QuotaUnit"
            X-Credits-Used:
              $ref: "#/components/headers/CreditsUsed"
            X-Quota-Limit:
              $ref: "#/components/headers/QuotaLimit"
            X-Quota-Remaining:
              $ref: "#/components/headers/QuotaRemaining"
            X-Quota-Reset:
              $ref: "#/components/headers/QuotaReset"
          content:
            "application/json":
              schema:
                $ref: "#/components/schemas/GdpCatalog"
              example:
                resource: "gdp"
                series: []
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/PlanRequired"
        "404":
          $ref: "#/components/responses/NotFound"
        "429":
          $ref: "#/components/responses/RateLimited"
        "500":
          $ref: "#/components/responses/InternalError"
        "503":
          $ref: "#/components/responses/Unavailable"
components:
  securitySchemes:
    apiKey:
      type: "apiKey"
      in: "header"
      name: "X-API-KEY"
      description: "A Darvas data API key: dvk_ and 43 characters."
    bearerKey:
      type: "http"
      scheme: "bearer"
      description: "The same key as a Bearer token."
  headers:
    RateLimitLimit:
      description: "Requests per minute the key may send; on a 401 the limit a new key gets."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 6000
      example: 60
    RetryAfter:
      description: "Seconds to wait before the next request."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 60
      example: 1
    QuotaUnit:
      description: "What the quota counts: credits. One credit is one successful call that returns data."
      schema:
        type: "string"
        enum:
          - "credits"
        maxLength: 7
      example: "credits"
    CreditsUsed:
      description: "Credits this answer cost: one for a 2xx answer with data, however many rows it holds. An empty answer, a refusal, an error and a FINRA /short-volume answer cost 0."
      schema:
        type: "integer"
        format: "int64"
        minimum: 0
        maximum: 9007199254740991
      example: 1
    QuotaLimit:
      description: "The plan's credits for its period plus the account's pay-as-you-go credit balance, as the request found them."
      schema:
        type: "integer"
        format: "int64"
        minimum: 0
        maximum: 9007199254740991
      example: 2500000
    QuotaRemaining:
      description: "Credits left after this answer: the plan's own first, then the credit balance."
      schema:
        type: "integer"
        format: "int64"
        minimum: 0
        maximum: 9007199254740991
      example: 2499999
    QuotaReset:
      description: "When the plan's credits start again, or the trial ends, in seconds since 1970 (UTC). Pay-as-you-go answers leave it out: their credits never expire."
      schema:
        type: "integer"
        format: "int64"
        minimum: 0
        maximum: 4102444800
      example: 1767225600
  parameters:
    Ticker:
      name: "ticker"
      in: "query"
      required: false
      description: "The ticker, in any case. Ignored when cik is sent."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "AAPL"
    Cik:
      name: "cik"
      in: "query"
      required: false
      description: "The SEC Central Index Key, with or without leading zeros."
      schema:
        type: "string"
        pattern: "^[0-9]{1,10}$"
        maxLength: 10
      example: "320193"
    FilingType:
      name: "filing_type"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only these forms, such as 10-K or 8-K. Repeat the parameter or separate forms with commas."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9 /,-]{0,199}$"
          maxLength: 200
      example:
        - "10-K"
        - "8-K"
    Limit:
      name: "limit"
      in: "query"
      required: false
      description: "Rows to return across all pages."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 10000
        default: 10
      example: 20
    Cursor:
      name: "cursor"
      in: "query"
      required: false
      description: "The cursor from a previous next_page_url. It replaces every other parameter."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9_-]+$"
        maxLength: 4096
      example: "eyJjaWsiOjMyMDE5M30"
    Name:
      name: "name"
      in: "query"
      required: false
      description: "Only insiders whose name contains this text, in any case."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 100
      example: "huang"
    TransactionType:
      name: "transaction_type"
      in: "query"
      required: false
      description: "A transaction code such as S, or its type such as Sale."
      schema:
        type: "string"
        pattern: "^[A-Za-z -]{1,40}$"
        maxLength: 40
      example: "Sale"
    TradeFormType:
      name: "form_type"
      in: "query"
      required: false
      description: "Only this trade form."
      schema:
        type: "string"
        enum:
          - "4"
          - "4/A"
          - "5"
          - "5/A"
      example: "4"
    HoldingFormType:
      name: "form_type"
      in: "query"
      required: false
      description: "Only this holding form."
      schema:
        type: "string"
        enum:
          - "3"
          - "3/A"
          - "5"
          - "5/A"
      example: "3"
    FilingDate:
      name: "filing_date"
      in: "query"
      required: false
      description: "Filings filed on this date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-07-01"
    FilingDateGte:
      name: "filing_date_gte"
      in: "query"
      required: false
      description: "Filings filed on or after this date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-07-01"
    FilingDateLte:
      name: "filing_date_lte"
      in: "query"
      required: false
      description: "Filings filed on or before this date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-07-01"
    FilingDateGt:
      name: "filing_date_gt"
      in: "query"
      required: false
      description: "Filings filed after this date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-07-01"
    FilingDateLt:
      name: "filing_date_lt"
      in: "query"
      required: false
      description: "Filings filed before this date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-07-01"
    SellerName:
      name: "name"
      in: "query"
      required: false
      description: "Only sellers whose name holds every word of this text, in any order and any case."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 100
      example: "stepien thomas"
    FilerCik:
      name: "filer_cik"
      in: "query"
      required: false
      description: "The CIK of the 13F filer, with or without leading zeros. Not with ticker."
      schema:
        type: "string"
        pattern: "^[0-9]{1,10}$"
        maxLength: 10
      example: "1067983"
    HeldTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "The ticker of the held security, in any case. Not with filer_cik."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "AAPL"
    HoldingsLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Positions to return across all pages."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100000
        default: 10
      example: 50
    InvestorName:
      name: "name"
      in: "query"
      required: false
      description: "The start of the filer's name, in any case."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 100
      example: "BERK"
    ReportPeriod:
      name: "report_period"
      in: "query"
      required: false
      description: "Only the period that ends on this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-12-27"
    ReportPeriodGte:
      name: "report_period_gte"
      in: "query"
      required: false
      description: "Only periods ending on or after this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-12-27"
    ReportPeriodLte:
      name: "report_period_lte"
      in: "query"
      required: false
      description: "Only periods ending on or before this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-12-27"
    ReportPeriodGt:
      name: "report_period_gt"
      in: "query"
      required: false
      description: "Only periods ending after this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-12-27"
    ReportPeriodLt:
      name: "report_period_lt"
      in: "query"
      required: false
      description: "Only periods ending before this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-12-27"
    IssuerCik:
      name: "cik"
      in: "query"
      required: false
      description: "The subject company's CIK, with or without leading zeros, in place of ticker. Not with filer_cik."
      schema:
        type: "string"
        pattern: "^[0-9]{1,10}$"
        maxLength: 10
      example: "1266806"
    OwnerFilerCik:
      name: "filer_cik"
      in: "query"
      required: false
      description: "The CIK of the filer of the schedule, the beneficial owner. Not with ticker."
      schema:
        type: "string"
        pattern: "^[0-9]{1,10}$"
        maxLength: 10
      example: "1624919"
    StakeType:
      name: "type"
      in: "query"
      required: false
      description: "activist for Schedule 13D stakes, passive for Schedule 13G stakes."
      schema:
        type: "string"
        enum:
          - "activist"
          - "passive"
      example: "activist"
    StakeHistory:
      name: "history"
      in: "query"
      required: false
      description: "true for every filing of each stake, not only its newest."
      schema:
        type: "boolean"
        default: false
      example: false
    FundTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "A fund's ticker, any share class, such as VOO. Not with holding."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "VOO"
    FundHolding:
      name: "holding"
      in: "query"
      required: false
      description: "A held security's ticker, such as AAPL. Not with ticker."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "AAPL"
    FundAsOf:
      name: "as_of"
      in: "query"
      required: false
      description: "With ticker: the report in effect on or before this date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-12-31"
    FundAssetClass:
      name: "asset_class"
      in: "query"
      required: false
      description: "With ticker: only equity or only bond holdings."
      schema:
        type: "string"
        enum:
          - "equity"
          - "bond"
      example: "equity"
    FundLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Holdings or funds to return across all pages."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100000
        default: 50
      example: 100
    FundOffset:
      name: "offset"
      in: "query"
      required: false
      description: "Rows to skip before the first one returned."
      schema:
        type: "integer"
        format: "int32"
        minimum: 0
        maximum: 1000000
        default: 0
      example: 0
    IpoTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "Only filings that propose this ticker on their cover page."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "WELA"
    IpoClassification:
      name: "classification"
      in: "query"
      required: false
      description: "Only filings of this class."
      schema:
        type: "string"
        enum:
          - "ipo"
          - "shell_company"
          - "spac"
          - "resale"
          - "other"
      example: "ipo"
    CryptoTicker:
      name: "ticker"
      in: "query"
      required: true
      description: "The instrument id: BTC-USDT or BTC-USDT-SWAP on OKX, ETH-USDC-SWAP on Hyperliquid, BTC-USD on Coinbase, spot:BTCUSDT or perpetual:BTCUSDT on Binance and Bybit. A Binance or Bybit symbol such as BTCUSDT also works with market_type, spot without it. A Darvas aggregated pair is BASE-QUOTE or BASE-QUOTE-SWAP, such as BTC-USDT-SWAP, or BTC-ALLUSD for one combining its USD, USDT and USDC markets."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
        maxLength: 64
      example: "BTC-USDT"
    CryptoCandleTicker:
      name: "ticker"
      in: "query"
      required: true
      description: "The instrument id: BTC-USDT or BTC-USDT-SWAP on OKX, ETH-USDC-SWAP on Hyperliquid, BTC-USD on Coinbase, spot:BTCUSDT or perpetual:BTCUSDT on Binance and Bybit. A Binance or Bybit symbol such as BTCUSDT also works with market_type, spot without it. A Darvas aggregated pair is BASE-QUOTE or BASE-QUOTE-SWAP, such as BTC-USDT-SWAP, or BTC-ALLUSD for one combining its USD, USDT and USDC markets. A formula over listed crypto instruments is typed as in the chart's pair search, such as USDTBTC (the inverse of BTC-USDT), BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT, BTC/NVDA, COINBASE:BTCUSD - BINANCE:BTCUSDT or (BTCUSDT + ETHUSDT) / 2, or sent in the canonical form an answer names it by, such as 1 / [okx:BTC-USDT-SWAP]. Every leg is a listed instrument on a crypto exchange. With exchange formula the ticker is read as a formula; without it, a ticker no exchange lists is read as one, its symbols looked up on the exchange sent first."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9 ._:@/()\\[\\]*+^-]{1,512}$"
        maxLength: 512
      example: "BTC-USDT"
    CryptoExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange, darvas for Darvas's aggregate of the pair across every exchange that lists it, or formula for a formula ticker; okx without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
          - "coinbase"
          - "kraken"
          - "bitstamp"
          - "deribit"
          - "bitfinex"
          - "formula"
        default: "okx"
      example: "okx"
    CryptoVenue:
      name: "exchange"
      in: "query"
      required: false
      description: "Only this exchange's instruments, or with darvas only Darvas's aggregated pairs. A formula query reads its legs on this exchange; with formula only the formula a query names is listed."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
          - "coinbase"
          - "kraken"
          - "bitstamp"
          - "deribit"
          - "bitfinex"
          - "formula"
      example: "hyperliquid"
    CryptoTickerMarketType:
      name: "market_type"
      in: "query"
      required: false
      description: "Filter listed crypto instruments to one market type: spot, swap, futures, or option. A formula a query names is listed whatever the market type, its legs read in this market first."
      schema:
        type: "string"
        enum:
          - "spot"
          - "swap"
          - "futures"
          - "option"
        maxLength: 16
      example: "swap"
    CryptoTickerQuote:
      name: "quote"
      in: "query"
      required: false
      description: "Filter listed crypto instruments to one quote currency such as USDT, USDC, USD, or ALLUSD on darvas."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{2,12}$"
        maxLength: 12
      example: "USDT"
    CryptoTickerQuery:
      name: "query"
      in: "query"
      required: false
      description: "Case-insensitive substring search matching ticker id, display symbol, base asset, or quote currency. A query that is a formula, such as USDTBTC (the inverse of BTC-USDT), BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT, BTC/NVDA, COINBASE:BTCUSD - BINANCE:BTCUSDT or (BTCUSDT + ETHUSDT) / 2, or a canonical formula such as 1 / [okx:BTC-USDT-SWAP], also lists that formula first unless quote is sent."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 512
      example: "BTC"
    DarvasVenues:
      name: "venues"
      in: "query"
      required: false
      description: "With exchange darvas: combine only these of the pair's exchanges, comma-separated. Any other exchange refuses it."
      schema:
        type: "string"
        pattern: "^[a-z0-9][a-z0-9-]{0,31}(,[a-z0-9][a-z0-9-]{0,31}){0,15}$"
        maxLength: 528
      example: "binance,okx"
    CryptoMarketType:
      name: "market_type"
      in: "query"
      required: false
      description: "spot, swap, futures or option; without it, the type the id implies."
      schema:
        type: "string"
        enum:
          - "spot"
          - "swap"
          - "futures"
          - "option"
      example: "spot"
    CryptoInterval:
      name: "interval"
      in: "query"
      required: false
      description: "minute, hour, day, week or month; day without it."
      schema:
        type: "string"
        enum:
          - "minute"
          - "hour"
          - "day"
          - "week"
          - "month"
        default: "day"
      example: "hour"
    CryptoIntervalMultiplier:
      name: "interval_multiplier"
      in: "query"
      required: false
      description: "Candles of this many intervals: minute 1, 5, 15, 30; hour 1, 2, 4, 6, 12; otherwise 1."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 30
        default: 1
      example: 4
    CryptoStartDate:
      name: "start_date"
      in: "query"
      required: true
      description: "The first UTC day to return."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-01-01"
    CryptoEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "The last UTC day to return; today without it."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-24"
    CryptoLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Candles to return across all pages."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 50000
        default: 5000
      example: 1000
    CryptoTradeExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange; okx without it."
      schema:
        type: "string"
        enum:
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
        default: "okx"
      example: "okx"
    CryptoFlowExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange, or darvas for Darvas's aggregate of the pair across these exchanges; okx without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
        default: "okx"
      example: "okx"
    TradeStartTime:
      name: "start_time"
      in: "query"
      required: false
      description: "The window's first moment, ISO 8601; an hour before end_time without it."
      schema:
        type: "string"
        format: "date-time"
        maxLength: 40
      example: "2026-11-25T14:00:00Z"
    TradeEndTime:
      name: "end_time"
      in: "query"
      required: false
      description: "The window's end, ISO 8601; now without it."
      schema:
        type: "string"
        format: "date-time"
        maxLength: 40
      example: "2026-11-25T15:00:00Z"
    TradeLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Trades to return across all pages."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100000
        default: 1000
      example: 5000
    FlowInterval:
      name: "interval"
      in: "query"
      required: false
      description: "minute, hour or day; minute without it."
      schema:
        type: "string"
        enum:
          - "minute"
          - "hour"
          - "day"
        default: "minute"
      example: "hour"
    FlowIntervalMultiplier:
      name: "interval_multiplier"
      in: "query"
      required: false
      description: "Bars of this many intervals: minute 1, 5, 15, 30; hour 1, 4; day 1."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 30
        default: 1
      example: 5
    FootprintExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange, or darvas for Darvas's aggregate of the pair across these exchanges; darvas without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
        default: "darvas"
      example: "darvas"
    FootprintBar:
      name: "bar"
      in: "query"
      required: false
      description: "The bar size; 15m without it."
      schema:
        type: "string"
        enum:
          - "1m"
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "2H"
          - "4H"
          - "1D"
          - "1W"
        default: "15m"
      example: "1H"
    FootprintLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Bars to return, the newest of the window: at most 120 with cells=all, 500 with cells=none."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 500
        default: 30
      example: 60
    FootprintRowTicks:
      name: "row_ticks"
      in: "query"
      required: false
      description: "Price ticks per row, rounded up to a multiple of the coarsest row Darvas stores; row_size takes its place when sent."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000000
        default: 1
      example: 10
    FootprintRowSize:
      name: "row_size"
      in: "query"
      required: false
      description: "Row height in price, rounded to whole ticks, such as 10 for 10-dollar rows of BTC."
      schema:
        type: "number"
        format: "double"
        exclusiveMinimum: 0
        maximum: 1000000000
      example: 10
    FootprintCells:
      name: "cells"
      in: "query"
      required: false
      description: "all for every price row of every bar, none for each bar's totals alone; all without it."
      schema:
        type: "string"
        enum:
          - "all"
          - "none"
        default: "all"
      example: "none"
    FootprintStartTime:
      name: "start_time"
      in: "query"
      required: false
      description: "The window's first moment, ISO 8601 or Unix milliseconds; limit bars before end_time without it."
      schema:
        type: "string"
        pattern: "^[0-9][0-9T:.+Z-]{0,39}$"
        maxLength: 40
      example: "2026-11-25T00:00:00Z"
    FootprintEndTime:
      name: "end_time"
      in: "query"
      required: false
      description: "The window's end, ISO 8601 or Unix milliseconds; the end of the open bar without it."
      schema:
        type: "string"
        pattern: "^[0-9][0-9T:.+Z-]{0,39}$"
        maxLength: 40
      example: "2026-11-25T12:00:00Z"
    IndicatorExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange, darvas for Darvas's aggregate of the pair across every exchange that lists it, or formula for a formula ticker; darvas without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
          - "coinbase"
          - "kraken"
          - "bitstamp"
          - "deribit"
          - "bitfinex"
          - "formula"
        default: "darvas"
      example: "darvas"
    IndicatorInterval:
      name: "interval"
      in: "query"
      required: false
      description: "minute, hour, day, week or month; hour without it."
      schema:
        type: "string"
        enum:
          - "minute"
          - "hour"
          - "day"
          - "week"
          - "month"
        default: "hour"
      example: "day"
    IndicatorIntervalMultiplier:
      name: "interval_multiplier"
      in: "query"
      required: false
      description: "Candles of this many intervals: minute 1, 5, 15, 30; hour 1, 2, 4, 6, 12; otherwise 1. Without it, 4 with interval hour and 1 with any other."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 30
      example: 1
    IndicatorLimit:
      name: "limit"
      in: "query"
      required: false
      description: "The newest candles to analyze."
      schema:
        type: "integer"
        format: "int32"
        minimum: 30
        maximum: 500
        default: 250
      example: 300
    StatementPeriod:
      name: "period"
      in: "query"
      required: true
      description: "annual for fiscal years, quarterly for quarters, ttm for the twelve months to each quarter's end."
      schema:
        type: "string"
        enum:
          - "annual"
          - "quarterly"
          - "ttm"
      example: "quarterly"
    StatementMarket:
      name: "market"
      in: "query"
      required: false
      description: "The company's market: US, UK or FR. UK and French companies carry annual statements only; London tickers keep the exchange's spelling, as RR. or BT.A, and match without the closing dot too."
      schema:
        type: "string"
        enum:
          - "US"
          - "UK"
          - "FR"
        default: "US"
      example: "US"
    StatementExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "Deprecated alias of market: LSE names a UK company."
      schema:
        type: "string"
        enum:
          - "LSE"
      example: "LSE"
      deprecated: true
    StatementIsin:
      name: "isin"
      in: "query"
      required: false
      description: "A UK or French company by the ISIN of one of its shares, instead of ticker and market."
      schema:
        type: "string"
        pattern: "^[A-Za-z]{2}[A-Za-z0-9]{9}[0-9]$"
        minLength: 12
        maxLength: 12
      example: "GB00B63H8491"
    StatementLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Periods to return across all pages; each page holds up to ten."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 400
        default: 10
      example: 4
    ReportedPeriod:
      name: "period"
      in: "query"
      required: true
      description: "annual for 10-K, 20-F and 40-F filings, quarterly for 10-Q filings."
      schema:
        type: "string"
        enum:
          - "annual"
          - "quarterly"
      example: "annual"
    ItemsFilingType:
      name: "filing_type"
      in: "query"
      required: true
      description: "The form whose items to read."
      schema:
        type: "string"
        enum:
          - "10-K"
          - "10-Q"
          - "8-K"
      example: "10-K"
    ItemsYear:
      name: "year"
      in: "query"
      required: false
      description: "The fiscal year of a 10-K or 10-Q, as its financial statements give it; a filing without statements uses the year its period ends."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1993
        maximum: 2100
      example: 2026
    ItemsQuarter:
      name: "quarter"
      in: "query"
      required: false
      description: "The fiscal quarter of a 10-Q; required with year for one."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 4
      example: 1
    Item:
      name: "item"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only these items, such as Item-1A, Part-1,Item-2 or Item-2.02. Repeat the parameter for more; an item the filing lacks answers 404 with the items it has."
      schema:
        type: "array"
        maxItems: 40
        items:
          type: "string"
          pattern: "^(Part-[12],)?Item-[0-9]{1,2}(\\.[0-9]{2}|[A-Ca-c])?$"
          maxLength: 16
      example:
        - "Item-1A"
        - "Item-7"
    ItemsAccessionNumber:
      name: "accession_number"
      in: "query"
      required: false
      description: "The filing's accession number; required for an 8-K, and in place of year for a 10-K or 10-Q."
      schema:
        type: "string"
        pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
        maxLength: 20
      example: "0000320193-26-000024"
    IncludeExhibits:
      name: "include_exhibits"
      in: "query"
      required: false
      description: "Whether an 8-K's exhibits carry their text."
      schema:
        type: "boolean"
        default: false
      example: true
    RequestId:
      name: "request_id"
      in: "path"
      required: true
      description: "The request_id of a 202 answer."
      schema:
        type: "string"
        format: "uuid"
        pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
        maxLength: 36
      example: "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
    ItemTypesFilingType:
      name: "filing_type"
      in: "query"
      required: false
      description: "Only this form's items."
      schema:
        type: "string"
        enum:
          - "10-K"
          - "10-Q"
          - "8-K"
      example: "10-Q"
    EarningsLimit:
      name: "limit"
      in: "query"
      required: false
      description: "With a ticker, the periods to return across pages, 1 by default; without one, the filings of the feed, 10 by default and at most 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
        default: 1
      example: 4
    MetricName:
      name: "metric_name"
      in: "query"
      required: false
      description: "Only this metric, such as load_factor or adjusted_ebitda."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9_]{1,80}$"
        maxLength: 80
      example: "net_interest_margin"
    KpiPeriod:
      name: "period"
      in: "query"
      required: false
      description: "quarterly, the default, or annual."
      schema:
        type: "string"
        enum:
          - "quarterly"
          - "annual"
        default: "quarterly"
      example: "quarterly"
    KpiLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Releases to return across pages."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 50
        default: 4
      example: 4
    NewsLimit:
      name: "limit"
      in: "query"
      required: false
      description: "News to return."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
        default: 5
      example: 5
    TokenTicker:
      name: "ticker"
      in: "query"
      required: true
      description: "The instrument, in any case: an OKX swap such as NVDA-USDT-SWAP or NVDA-USDT, a Bybit token such as NVDAX, NVDAx or NVDAXUSDT, a Base token's symbol such as NVDAc or its address, with or without base:, or a stock ticker such as NVDA or BRK.B for the instrument that tracks it."
      schema:
        type: "string"
        pattern: "^(base:)?(0x[0-9a-fA-F]{40}|[A-Za-z0-9._/-]{1,30})$"
        maxLength: 50
      example: "NVDAc"
    TokenVenue:
      name: "venue"
      in: "query"
      required: false
      description: "The venue to look on when ticker is a stock: okx, bybit or base. Without it, OKX, then Bybit, then Base."
      schema:
        type: "string"
        enum:
          - "okx"
          - "bybit"
          - "base"
      example: "bybit"
    GpuSeriesRequired:
      name: "series"
      in: "query"
      required: true
      description: "The GPU model. A model id, h100, h200, gb200, a100, mi300x, in any case, or a name with one such as NVIDIA H100, H100-SXM or AMD MI300X; GET /macro/gpu-prices/series lists them."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9 _.-]{2,40}$"
        minLength: 2
        maxLength: 40
        examples:
          - "h100"
          - "NVIDIA H100"
          - "H100-SXM"
          - "mi300x"
      example: "NVIDIA H100"
    GpuSeriesOptional:
      name: "series"
      in: "query"
      required: false
      description: "Only this GPU model; every model without it. A model id, h100, h200, gb200, a100, mi300x, in any case, or a name with one such as NVIDIA H100, H100-SXM or AMD MI300X; GET /macro/gpu-prices/series lists them."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9 _.-]{2,40}$"
        minLength: 2
        maxLength: 40
        examples:
          - "h100"
          - "NVIDIA H100"
          - "H100-SXM"
          - "mi300x"
      example: "h100"
    WebhookId:
      name: "webhook_id"
      in: "path"
      required: true
      description: "The id the destination was made with."
      schema:
        type: "string"
        format: "uuid"
        maxLength: 36
      example: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
    EventType:
      name: "type"
      in: "query"
      required: false
      description: "Only filings that report one of these event types; repeat it or separate types with commas."
      schema:
        type: "string"
        enum:
          - "material_agreement"
          - "agreement_termination"
          - "bankruptcy"
          - "mine_safety"
          - "cybersecurity_incident"
          - "acquisition_or_disposition"
          - "results_of_operations"
          - "financial_obligation"
          - "obligation_acceleration"
          - "exit_costs"
          - "impairment"
          - "delisting"
          - "unregistered_equity_sale"
          - "holder_rights_change"
          - "auditor_change"
          - "non_reliance"
          - "change_in_control"
          - "executive_change"
          - "charter_amendment"
          - "trading_suspension"
          - "ethics_code_change"
          - "shell_status_change"
          - "shareholder_vote"
          - "shareholder_nominations"
          - "regulation_fd"
          - "other_event"
          - "financial_exhibits"
      example: "executive_change"
    EventLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Filings to return across all pages; each page holds up to 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 10
      example: 25
    FtdTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "The security's symbol as SEC lists it; without it, settlement_date names one day."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "GME"
    FtdLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Rows to return across all pages; each page holds up to 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 5000
        default: 10
      example: 50
    SettlementDate:
      name: "settlement_date"
      in: "query"
      required: false
      description: "Only this settlement day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-10-15"
    SettlementDateGte:
      name: "settlement_date_gte"
      in: "query"
      required: false
      description: "Only settlement days on or after this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-10-15"
    SettlementDateLte:
      name: "settlement_date_lte"
      in: "query"
      required: false
      description: "Only settlement days on or before this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-10-15"
    SettlementDateGt:
      name: "settlement_date_gt"
      in: "query"
      required: false
      description: "Only settlement days after this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-10-15"
    SettlementDateLt:
      name: "settlement_date_lt"
      in: "query"
      required: false
      description: "Only settlement days before this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-10-15"
    CotMarketCode:
      name: "market_code"
      in: "query"
      required: false
      description: "CFTC six-character market code (for example 133741) or futures alias (ES, NQ, GC, CL, BTC, 6E, ZN). Required unless symbol is passed."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9+_ .&-]{1,40}$"
        maxLength: 40
      example: "BTC"
    CotAnalyticsMarketCode:
      name: "market_code"
      in: "query"
      required: false
      description: "Optional CFTC six-character code or futures alias (ES, GC, CL, BTC, 6E). Omit for the all-markets screener."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9+_ .&-]{1,40}$"
        maxLength: 40
      example: "ES"
    CotSymbol:
      name: "symbol"
      in: "query"
      required: false
      description: "Alias for market_code accepting futures roots and names (ES, NQ, GC, CL, BTC, 6E, ZN)."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9+_ .&-]{1,40}$"
        maxLength: 40
      example: "ES"
    CotReport:
      name: "report"
      in: "query"
      required: false
      description: "The CFTC report: legacy (default), disaggregated (commodities), or tff (financials and crypto)."
      schema:
        type: "string"
        enum:
          - "legacy"
          - "disaggregated"
          - "tff"
        default: "legacy"
      example: "tff"
    CotLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Weeks to return across all pages; each page holds up to 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 2000
        default: 10
      example: 52
    CotSearch:
      name: "search"
      in: "query"
      required: false
      description: "Case-insensitive filter matching market name, commodity, exchange, code, or futures symbol aliases."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x1f]*$"
        maxLength: 100
      example: "bitcoin"
    CotActiveOnly:
      name: "active_only"
      in: "query"
      required: false
      description: "When true (default), hides delisted/stale markets with no recent report."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "true"
      example: "true"
    CotAssetClass:
      name: "asset_class"
      in: "query"
      required: false
      description: "Filter markets by macro asset class."
      schema:
        type: "string"
        enum:
          - "crypto"
          - "currencies"
          - "equity_indices"
          - "rates"
          - "energy"
          - "metals"
          - "grains"
          - "softs"
          - "livestock"
          - "other"
      example: "crypto"
    CotMarketsLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum markets to return (1 to 2000; default 500)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 2000
        default: 500
      example: 100
    CotAnalyticsWeeks:
      name: "weeks"
      in: "query"
      required: false
      description: "Trailing weeks to return in single-market analytics mode (1 to 156; default 26)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 156
        default: 26
      example: 26
    CotAnalyticsGroup:
      name: "group"
      in: "query"
      required: false
      description: "Trader group used for screener filtering and ranking (defaults to the report's speculator group)."
      schema:
        type: "string"
        pattern: "^[a-z_]{3,32}$"
        maxLength: 32
      example: "noncommercial"
    CotAnalyticsLookback:
      name: "lookback"
      in: "query"
      required: false
      description: "Lookback window for screener COT Index and Z-score filters: 52w (default) or 156w."
      schema:
        type: "string"
        enum:
          - "52w"
          - "156w"
        default: "52w"
      example: "52w"
    CotMinIndex:
      name: "min_cot_index"
      in: "query"
      required: false
      description: "Minimum 0 to 100 COT Index threshold in screener mode."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 100
      example: 80
    CotMaxIndex:
      name: "max_cot_index"
      in: "query"
      required: false
      description: "Maximum 0 to 100 COT Index threshold in screener mode."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 100
      example: 20
    CotMinOpenInterest:
      name: "min_open_interest"
      in: "query"
      required: false
      description: "Minimum open interest in contracts in screener mode."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000
      example: 50000
    CotExtremesOnly:
      name: "extremes_only"
      in: "query"
      required: false
      description: "When true, keeps only markets in extreme_long, extreme_short, or extreme_divergence states."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "false"
      example: "true"
    CotDivergencesOnly:
      name: "divergences_only"
      in: "query"
      required: false
      description: "When true, keeps only markets with opposing hedger and speculator positioning extremes."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "false"
      example: "true"
    CotAnalyticsSort:
      name: "sort"
      in: "query"
      required: false
      description: "Ranking metric in screener mode."
      schema:
        type: "string"
        enum:
          - "open_interest"
          - "cot_index_52w"
          - "cot_index_156w"
          - "z_score_52w"
          - "z_score_156w"
          - "abs_z_score"
          - "weekly_change"
          - "divergence_z_spread"
          - "concentration_top4"
        default: "open_interest"
      example: "cot_index_52w"
    CotAnalyticsOrder:
      name: "order"
      in: "query"
      required: false
      description: "Sort direction in screener mode: desc (default) or asc."
      schema:
        type: "string"
        enum:
          - "desc"
          - "asc"
        default: "desc"
      example: "desc"
    CotAnalyticsLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum markets to return in screener mode (1 to 500; default 50)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 500
        default: 50
      example: 50
    CotReportDate:
      name: "report_date"
      in: "query"
      required: false
      description: "Only the week of this Tuesday."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-17"
    CotReportDateGte:
      name: "report_date_gte"
      in: "query"
      required: false
      description: "Only weeks on or after this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-17"
    CotReportDateLte:
      name: "report_date_lte"
      in: "query"
      required: false
      description: "Only weeks on or before this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-17"
    CotReportDateGt:
      name: "report_date_gt"
      in: "query"
      required: false
      description: "Only weeks after this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-17"
    CotReportDateLt:
      name: "report_date_lt"
      in: "query"
      required: false
      description: "Only weeks before this day."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-17"
    PriceTicker:
      name: "ticker"
      in: "query"
      required: true
      description: "The stock's ticker as SEC lists it, such as AAPL or BRK-B, in any case; a share class may use a dot or a dash, BRK.B or BRK-B."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "AAPL"
    PriceInterval:
      name: "interval"
      in: "query"
      required: false
      description: "The length of a bar: day, week, month or year; without it, day."
      schema:
        type: "string"
        enum:
          - "day"
          - "week"
          - "month"
          - "year"
        default: "day"
      example: "day"
    PriceStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "The first day, which also makes the oldest bar come first; without it, the stock's first session, with the newest bar first."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-01-02"
    PriceEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "The last day; without it, today."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-25"
    PriceOrder:
      name: "order"
      in: "query"
      required: false
      description: "desc for the newest bar first, asc for the oldest first. Without it, desc unless start_date is sent."
      schema:
        type: "string"
        enum:
          - "desc"
          - "asc"
      example: "desc"
    PriceLimit:
      name: "limit"
      in: "query"
      required: false
      description: "The most bars on a page, 1 to 1000; without it, 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 100
      example: 100
    MarketTickers:
      name: "tickers"
      in: "query"
      required: false
      description: "Only these stocks: up to 100 tickers, comma separated, in any case, such as AAPL,MSFT,BRK.B. A ticker without a price is left out."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9., -]{1,1400}$"
        maxLength: 1400
      example: "AAPL,MSFT"
    MarketSort:
      name: "sort"
      in: "query"
      required: false
      description: "The order of the stocks: ticker (A to Z), day_change_percent_desc (biggest gain first), day_change_percent_asc (biggest loss first), price_desc or price_asc. A stock without a change comes last. Without it, ticker."
      schema:
        type: "string"
        enum:
          - "ticker"
          - "day_change_percent_desc"
          - "day_change_percent_asc"
          - "price_desc"
          - "price_asc"
        default: "ticker"
      example: "day_change_percent_desc"
    MarketLimit:
      name: "limit"
      in: "query"
      required: false
      description: "The most stocks on a page, 1 to 1000; without it, 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 100
      example: 100
    CalStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "Lower release date bound in YYYY-MM-DD or ISO-8601 UTC (defaults to 7 days ago, or 5 years when series_key is set)."
      schema:
        type: "string"
        pattern: "^[0-9T:Z.+\\-]{10,32}$"
        maxLength: 32
      example: "2026-11-01"
    CalEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "Upper release date bound in YYYY-MM-DD or ISO-8601 UTC (defaults to 14 days ahead)."
      schema:
        type: "string"
        pattern: "^[0-9T:Z.+\\-]{10,32}$"
        maxLength: 32
      example: "2026-12-01"
    CalFrom:
      name: "from"
      in: "query"
      required: false
      description: "Alias for start_date (YYYY-MM-DD or ISO-8601 UTC)."
      schema:
        type: "string"
        pattern: "^[0-9T:Z.+\\-]{10,32}$"
        maxLength: 32
      example: "2026-11-01"
    CalTo:
      name: "to"
      in: "query"
      required: false
      description: "Alias for end_date (YYYY-MM-DD or ISO-8601 UTC)."
      schema:
        type: "string"
        pattern: "^[0-9T:Z.+\\-]{10,32}$"
        maxLength: 32
      example: "2026-12-01"
    CalCountry:
      name: "country"
      in: "query"
      required: false
      description: "Comma-separated ISO-2 codes (US,GB,EU), ISO-3166 numeric codes (840,826), or country names."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 160
      example: "US,EU"
    CalCurrencies:
      name: "currencies"
      in: "query"
      required: false
      description: "Comma-separated currency codes, such as USD,EUR,GBP."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9,]{2,64}$"
        maxLength: 64
      example: "USD,EUR"
    CalCurrency:
      name: "currency"
      in: "query"
      required: false
      description: "Alias for currencies (comma-separated ISO currency codes)."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9,]{2,64}$"
        maxLength: 64
      example: "USD"
    CalImportance:
      name: "importance"
      in: "query"
      required: false
      description: "Comma-separated importance levels: none, low, medium, high."
      schema:
        type: "string"
        pattern: "^(none|low|medium|high)(,(none|low|medium|high)){0,3}$"
        maxLength: 32
      example: "high,medium"
    CalImpact:
      name: "impact"
      in: "query"
      required: false
      description: "Alias for importance (none, low, medium, high)."
      schema:
        type: "string"
        pattern: "^(none|low|medium|high)(,(none|low|medium|high)){0,3}$"
        maxLength: 32
      example: "high"
    CalEventName:
      name: "event_name"
      in: "query"
      required: false
      description: "Case-insensitive event name substring filter (for example CPI or Payrolls)."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 120
      example: "CPI"
    CalSeriesKey:
      name: "series_key"
      in: "query"
      required: false
      description: "Exact canonical series key identifier (including slash or colon delimited keys)."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9._:/-]{1,160}$"
        maxLength: 160
      example: "united-states/cpi-yoy"
    CalSearch:
      name: "q"
      in: "query"
      required: false
      description: "Case-insensitive full-text filter matching event_name, country_name, or series_key."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 120
      example: "Nonfarm"
    CalUpcomingOnly:
      name: "upcoming_only"
      in: "query"
      required: false
      description: "When true, restricts results to releases from the current UTC timestamp onward."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "false"
      example: "true"
    CalUpdatedSince:
      name: "updated_since"
      in: "query"
      required: false
      description: "Incremental sync lower bound on release updated_at (YYYY-MM-DD or ISO-8601 UTC)."
      schema:
        type: "string"
        pattern: "^[0-9T:Z.+\\-]{10,32}$"
        maxLength: 32
      example: "2026-11-29T00:00:00Z"
    CalFormat:
      name: "format"
      in: "query"
      required: false
      description: "Response format: json (default) or ics for an RFC 5545 text/calendar feed."
      schema:
        type: "string"
        enum:
          - "json"
          - "ics"
        default: "json"
      example: "json"
    CalLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum releases returned per page (1 to 200; default 100)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 200
        default: 100
      example: 100
    EtfAsset:
      name: "asset"
      in: "query"
      required: false
      description: "Crypto ETF asset filter: ALL, BTC, ETH, or SOL."
      schema:
        type: "string"
        enum:
          - "ALL"
          - "BTC"
          - "ETH"
          - "SOL"
        maxLength: 8
      example: "ALL"
    EtfInterval:
      name: "interval"
      in: "query"
      required: false
      description: "Aggregation bucket for crypto ETF flows: day, week, or month (default day)."
      schema:
        type: "string"
        enum:
          - "day"
          - "week"
          - "month"
        default: "day"
        maxLength: 8
      example: "week"
    EtfDays:
      name: "days"
      in: "query"
      required: false
      description: "Trailing calendar day window (1 to 365; default 30)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 365
      example: 30
    EtfStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "First inclusive UTC calendar date (YYYY-MM-DD) for crypto ETF flows."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-09-01"
    EtfEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "Last inclusive UTC calendar date (YYYY-MM-DD) for crypto ETF flows; defaults to today."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-27"
    EtfIncludeProviders:
      name: "include_providers"
      in: "query"
      required: false
      description: "Set false to return daily asset totals only (default true)."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        maxLength: 5
      example: "true"
    DerivTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "Optional perpetual or futures instrument identifier such as BTC-USDT-SWAP; omit for market-wide liquidations."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
        maxLength: 64
      example: "BTC-USDT-SWAP"
    VenueTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "The instrument id: BTC-USDT-SWAP on OKX, BTC-USDC-SWAP on Hyperliquid, perpetual:BTCUSDT or spot:BTCUSDT on Binance and Bybit, where the bare symbol BTCUSDT also works. Without it, the exchange's BTC perpetual."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
        maxLength: 64
      example: "BTC-USDT-SWAP"
    DerivExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "okx, binance, bybit, or hyperliquid; okx without it."
      schema:
        type: "string"
        enum:
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
        default: "okx"
        maxLength: 16
      example: "okx"
    DerivMetric:
      name: "metric"
      in: "query"
      required: false
      description: "Derivative time-series selector: oi-volume, long-short, top-trader, taker-volume, funding-history, basis, or oi-snapshots."
      schema:
        type: "string"
        enum:
          - "oi-volume"
          - "long-short"
          - "top-trader"
          - "taker-volume"
          - "funding-history"
          - "basis"
          - "oi-snapshots"
        maxLength: 32
      example: "funding-history"
    LiqExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "Exchange for forced liquidation events: okx, binance, bybit, or hyperliquid (default okx)."
      schema:
        type: "string"
        enum:
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
        default: "okx"
        maxLength: 16
      example: "okx"
    LiqSide:
      name: "side"
      in: "query"
      required: false
      description: "Optional liquidated position side filter: long or short."
      schema:
        type: "string"
        enum:
          - "long"
          - "short"
        maxLength: 8
      example: "short"
    LiqMinNotionalUsd:
      name: "min_notional_usd"
      in: "query"
      required: false
      description: "Optional minimum USD notional threshold for forced liquidation events."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000
      example: 50000
    DerivPeriod:
      name: "period"
      in: "query"
      required: false
      description: "Aggregation period."
      schema:
        type: "string"
        enum:
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "4H"
          - "1D"
        maxLength: 8
      example: "1H"
    LookbackHours:
      name: "lookback_hours"
      in: "query"
      required: false
      description: "Hours before now to query (1 to 720; default 72)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 720
        default: 72
      example: 72
    ShortLookbackHours:
      name: "lookback_hours"
      in: "query"
      required: false
      description: "Hours before now to query (1 to 168; default 24)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 168
        default: 24
      example: 24
    MinNotionalUsd:
      name: "min_notional_usd"
      in: "query"
      required: false
      description: "Minimum USD notional per trade execution (default 100000)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000
      example: 100000
    IntelLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum observations returned (1 to 500; default 100)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 500
      example: 100
    LargeTradeLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum large trades returned (1 to 100; default 50)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
      example: 50
    HlTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "Optional Hyperliquid base ticker symbol such as BTC or ETH."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9._:/-]{1,32}$"
        maxLength: 32
      example: "BTC"
    HlSort:
      name: "sort"
      in: "query"
      required: false
      description: "Ranking metric for Hyperliquid perpetual markets."
      schema:
        type: "string"
        enum:
          - "volume_24h"
          - "open_interest"
          - "funding_rate"
          - "day_change_pct"
        maxLength: 32
      example: "volume_24h"
    IntelLimit200:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum rows returned (1 to 200; default 50)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 200
      example: 50
    TechInterval:
      name: "interval"
      in: "query"
      required: false
      description: "Bar interval for indicator calculation: day or week (default day)."
      schema:
        type: "string"
        enum:
          - "day"
          - "week"
        maxLength: 8
      example: "day"
    PeerTickers:
      name: "tickers"
      in: "query"
      required: true
      description: "Comma-separated list of 2 to 20 US ticker symbols (for example AAPL,MSFT,GOOGL)."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9.,-]{3,200}$"
        maxLength: 200
      example: "AAPL,MSFT,GOOGL"
    OptionalTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "Optional stock ticker filter (such as GME or AAPL)."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9.-]{1,12}$"
        maxLength: 12
      example: "GME"
    ShortDate:
      name: "date"
      in: "query"
      required: false
      description: "Trading session date YYYY-MM-DD (defaults to most recent FINRA trading day)."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-25"
    MinShortRatio:
      name: "min_short_ratio"
      in: "query"
      required: false
      description: "Minimum short-volume-to-total-volume ratio filter between 0 and 1."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1
      example: 0.5
    ShortSort:
      name: "sort"
      in: "query"
      required: false
      description: "Sort order: short_volume, short_ratio, or total_volume."
      schema:
        type: "string"
        enum:
          - "short_volume"
          - "short_ratio"
          - "total_volume"
        maxLength: 20
      example: "short_volume"
    PmVenue:
      name: "venue"
      in: "query"
      required: false
      description: "Venue filter: all, polymarket, kalshi, or okx (default all)."
      schema:
        type: "string"
        enum:
          - "all"
          - "polymarket"
          - "kalshi"
          - "okx"
        default: "all"
        maxLength: 16
      example: "all"
    PmQuery:
      name: "query"
      in: "query"
      required: false
      description: "Case-insensitive search keyword in market question or slug."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 120
      example: "Fed"
    PmCategory:
      name: "category"
      in: "query"
      required: false
      description: "Optional event category filter such as Economics, Politics, or Crypto."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 64
      example: "Economics"
    PmMinVolume:
      name: "min_volume"
      in: "query"
      required: false
      description: "Minimum 24-hour trading volume USD."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 10000000000
      example: 1000
    PmSort:
      name: "sort"
      in: "query"
      required: false
      description: "Sort order: volume_24h, volume_total, liquidity, or probability."
      schema:
        type: "string"
        enum:
          - "volume_24h"
          - "volume_total"
          - "liquidity"
          - "probability"
        maxLength: 20
      example: "volume_24h"
    ArbMinSimilarity:
      name: "min_similarity"
      in: "query"
      required: false
      description: "Minimum Jaccard question token similarity between 0 and 1 (default 0.5)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1
      example: 0.5
    ArbMinEdgePct:
      name: "min_edge_pct"
      in: "query"
      required: false
      description: "Minimum implied risk-free edge percentage (default 0.5)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 99
      example: 0.5
    ArbMinLiquidity:
      name: "min_liquidity"
      in: "query"
      required: false
      description: "Minimum USD liquidity required on the smaller leg (default 0)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000
      example: 1000
    ArbLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum arbitrage opportunities returned (1 to 100; default 50)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
      example: 50
    DefiChain:
      name: "chain"
      in: "query"
      required: false
      description: "Blockchain network filter such as Ethereum, Solana, Base, or Arbitrum."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 40
      example: "Ethereum"
    DefiCategory:
      name: "category"
      in: "query"
      required: false
      description: "Protocol category filter such as Lending, Dexs, Liquid Staking, or Bridge."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 60
      example: "Lending"
    DefiQuery:
      name: "query"
      in: "query"
      required: false
      description: "Case-insensitive protocol name or slug search."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 80
      example: "aave"
    DefiMinTvl:
      name: "min_tvl"
      in: "query"
      required: false
      description: "Minimum TVL in USD (default 0)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000000
      example: 10000000
    StableSymbol:
      name: "symbol"
      in: "query"
      required: false
      description: "Optional stablecoin ticker filter such as USDT or USDC."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9._-]{1,24}$"
        maxLength: 24
      example: "USDT"
    StablePegType:
      name: "peg_type"
      in: "query"
      required: false
      description: "Optional currency peg filter such as peggedUSD or peggedEUR."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9_-]{1,24}$"
        maxLength: 24
      example: "peggedUSD"
    YieldProject:
      name: "project"
      in: "query"
      required: false
      description: "Optional protocol project slug such as aave-v3 or lido."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 64
      example: "aave"
    YieldSymbol:
      name: "symbol"
      in: "query"
      required: false
      description: "Optional pool token pair substring such as USDC or ETH."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 40
      example: "USDC"
    YieldStableOnly:
      name: "stablecoin_only"
      in: "query"
      required: false
      description: "Set true to filter to stablecoin-only pools."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        maxLength: 5
      example: "true"
    YieldMinTvl:
      name: "min_tvl"
      in: "query"
      required: false
      description: "Minimum pool TVL in USD (default 1000000)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000000
      example: 1000000
    YieldMinApy:
      name: "min_apy"
      in: "query"
      required: false
      description: "Minimum total pool APY percentage (default 0)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000
      example: 5
    DexQuery:
      name: "query"
      in: "query"
      required: false
      description: "Token ticker, pair, or contract address search (omitted returns top trending on-chain tokens)."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 80
      example: "SOL"
    DexLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum DEX rows returned (1 to 100; default 30)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
      example: 30
    OrderBookExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "okx, binance, bybit or hyperliquid, or darvas for every exchange the pair combines merged; darvas without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
        default: "darvas"
        maxLength: 16
      example: "okx"
    SpotSwapMarketType:
      name: "market_type"
      in: "query"
      required: false
      description: "spot or swap; without it, the market the ticker implies."
      schema:
        type: "string"
        enum:
          - "spot"
          - "swap"
        maxLength: 8
      example: "swap"
    OrderBookDepth:
      name: "depth"
      in: "query"
      required: false
      description: "Levels a side to read from each exchange and to answer (1 to 400; default 50)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 400
        default: 50
      example: 100
    OrderBookIncludeLevels:
      name: "include_levels"
      in: "query"
      required: false
      description: "false to answer the summary alone, without the bids and asks lists; true without it."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "true"
        maxLength: 5
      example: "false"
    OrderBookGrouping:
      name: "grouping"
      in: "query"
      required: false
      description: "A price step to merge levels onto, such as 10 for 10-dollar levels of BTC; each exchange's own prices without it."
      schema:
        type: "number"
        format: "double"
        exclusiveMinimum: 0
        maximum: 1000000000000
      example: 10
    BookHeatmapExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "okx, binance or bybit; okx without it."
      schema:
        type: "string"
        enum:
          - "okx"
          - "binance"
          - "bybit"
        default: "okx"
        maxLength: 16
      example: "binance"
    BookHeatmapInterval:
      name: "interval"
      in: "query"
      required: false
      description: "The heatmap's bar size; 15m without it."
      schema:
        type: "string"
        enum:
          - "1m"
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "2H"
          - "4H"
          - "1D"
          - "1W"
        default: "15m"
        maxLength: 4
      example: "1H"
    BookHeatmapStartTime:
      name: "start_time"
      in: "query"
      required: false
      description: "The window's first moment: ISO 8601, a UTC date or Unix milliseconds; 120 bars before end_time without it."
      schema:
        type: "string"
        pattern: "^[0-9][0-9T:.+Z-]{0,39}$"
        maxLength: 40
      example: "2026-11-27T00:00:00Z"
    BookHeatmapEndTime:
      name: "end_time"
      in: "query"
      required: false
      description: "The window's end: ISO 8601, a UTC date or Unix milliseconds; the end of the open bar without it."
      schema:
        type: "string"
        pattern: "^[0-9][0-9T:.+Z-]{0,39}$"
        maxLength: 40
      example: "2026-11-28T12:00:00Z"
    BookHeatmapLow:
      name: "low"
      in: "query"
      required: false
      description: "The lowest price to answer; the window's lowest candle less half a percent without it."
      schema:
        type: "number"
        format: "double"
        exclusiveMinimum: 0
        maximum: 1000000000000
      example: 95000
    BookHeatmapHigh:
      name: "high"
      in: "query"
      required: false
      description: "The highest price to answer; the window's highest candle plus half a percent without it."
      schema:
        type: "number"
        format: "double"
        exclusiveMinimum: 0
        maximum: 1000000000000
      example: 100000
    BookHeatmapRowSize:
      name: "row_size"
      in: "query"
      required: false
      description: "The smallest row height to answer in price; rows still grow until the range fits 400 of them."
      schema:
        type: "number"
        format: "double"
        exclusiveMinimum: 0
        maximum: 1000000000000
      example: 25
    PerpetualTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "An OKX perpetual swap such as BTC-USDT-SWAP; BTC-USDT-SWAP without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9-]{0,40}-SWAP$"
        maxLength: 48
      example: "ETH-USDT-SWAP"
    SessionProfilePeriod:
      name: "period"
      in: "query"
      required: false
      description: "The session: a UTC day, a week from Monday, or a calendar month; 1D without it."
      schema:
        type: "string"
        enum:
          - "1D"
          - "1W"
          - "1M"
        default: "1D"
        maxLength: 2
      example: "1W"
    SessionProfileResolution:
      name: "resolution"
      in: "query"
      required: false
      description: "The bucket size: fine, medium or coarse; medium without it."
      schema:
        type: "string"
        enum:
          - "fine"
          - "medium"
          - "coarse"
        default: "medium"
        maxLength: 6
      example: "fine"
    SessionProfilePeriodStart:
      name: "period_start"
      in: "query"
      required: false
      description: "A moment of the newest session to return: ISO 8601, a UTC date or Unix milliseconds; now without it."
      schema:
        type: "string"
        pattern: "^[0-9][0-9T:.+Z-]{0,39}$"
        maxLength: 40
      example: "2026-11-24"
    SessionProfilePeriods:
      name: "periods"
      in: "query"
      required: false
      description: "Sessions to return, the newest ending with period_start (1 to 30; default 1)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 30
        default: 1
      example: 7
    SessionProfileLiveTail:
      name: "include_live_tail"
      in: "query"
      required: false
      description: "false to leave out the open session's newest trades the stored buckets do not hold yet; true without it."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "true"
        maxLength: 5
      example: "false"
    ProfileExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange of the profile, or darvas for Darvas's aggregate of the pair across every exchange that lists it; darvas without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
          - "coinbase"
          - "kraken"
          - "bitstamp"
          - "deribit"
          - "bitfinex"
        default: "darvas"
        maxLength: 16
      example: "okx"
    FixedRangeStartTime:
      name: "start_time"
      in: "query"
      required: true
      description: "The range's first moment: ISO 8601, a UTC date or Unix milliseconds, rounded down to the minute."
      schema:
        type: "string"
        pattern: "^[0-9][0-9T:.+Z-]{0,39}$"
        maxLength: 40
      example: "2026-11-27T00:00:00Z"
    FixedRangeEndTime:
      name: "end_time"
      in: "query"
      required: true
      description: "The range's end: ISO 8601, a UTC date or Unix milliseconds, rounded up to the minute."
      schema:
        type: "string"
        pattern: "^[0-9][0-9T:.+Z-]{0,39}$"
        maxLength: 40
      example: "2026-11-28T00:00:00Z"
    FixedRangeTimeframe:
      name: "timeframe"
      in: "query"
      required: false
      description: "The chart timeframe the range is drawn on, which picks the candles read; 15m without it."
      schema:
        type: "string"
        enum:
          - "1m"
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "4H"
          - "1D"
        default: "15m"
        maxLength: 4
      example: "1H"
    FixedRangeRows:
      name: "rows"
      in: "query"
      required: false
      description: "Price rows of the profile (12 to 200; default 48)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 12
        maximum: 200
        default: 48
      example: 96
    ProfileValueAreaPercent:
      name: "value_area_percent"
      in: "query"
      required: false
      description: "The share of the volume the value area holds, in percent (50 to 95; default 70)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 50
        maximum: 95
        default: 70
      example: 68
    FixedRangeTickSize:
      name: "tick_size"
      in: "query"
      required: false
      description: "The market's price tick; rows become whole ticks tall when sent."
      schema:
        type: "number"
        format: "double"
        exclusiveMinimum: 0
        maximum: 1000000000000
      example: 0.1
    TpoTimeframe:
      name: "timeframe"
      in: "query"
      required: false
      description: "The chart timeframe whose session and block size apply when the request sends none; 30m without it."
      schema:
        type: "string"
        enum:
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "2H"
          - "4H"
          - "1D"
          - "1W"
        default: "30m"
        maxLength: 4
      example: "1H"
    TpoSessionPeriod:
      name: "session_period"
      in: "query"
      required: false
      description: "daily, weekly or monthly sessions; the timeframe's own without it."
      schema:
        type: "string"
        enum:
          - "daily"
          - "weekly"
          - "monthly"
        maxLength: 8
      example: "daily"
    TpoBlockSize:
      name: "block_size"
      in: "query"
      required: false
      description: "The time one TPO letter stands for; the timeframe's own without it."
      schema:
        type: "string"
        enum:
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "2H"
          - "4H"
          - "1D"
        maxLength: 4
      example: "30m"
    TpoProfiles:
      name: "profiles"
      in: "query"
      required: false
      description: "Sessions to return, the newest last (1 to 12; default 5)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 12
        default: 5
      example: 3
    TpoRowsTarget:
      name: "rows_target"
      in: "query"
      required: false
      description: "About how many price rows a session spans (20 to 400; default 60)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 20
        maximum: 400
        default: 60
      example: 80
    TpoTimezone:
      name: "timezone"
      in: "query"
      required: false
      description: "The IANA time zone sessions start at midnight of; UTC without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z][A-Za-z0-9_+/-]{0,63}$"
        default: "UTC"
        maxLength: 64
      example: "America/New_York"
    LiquidationHeatmapInterval:
      name: "interval"
      in: "query"
      required: false
      description: "The bar size; 1H without it."
      schema:
        type: "string"
        enum:
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "4H"
          - "1D"
        default: "1H"
        maxLength: 4
      example: "4H"
    LiquidationHeatmapLookbackBars:
      name: "lookback_bars"
      in: "query"
      required: false
      description: "Bars of positioning to build the heatmap from (30 to 500; default 180)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 30
        maximum: 500
        default: 180
      example: 240
    LiquidationHeatmapThreshold:
      name: "threshold"
      in: "query"
      required: false
      description: "The least score in percent a cell needs to be answered (0 to 100; default 15)."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 100
        default: 15
      example: 25
    LiquidationHeatmapBucketPercent:
      name: "price_bucket_percent"
      in: "query"
      required: false
      description: "Each band's height as a percent of the last price (0.02 to 2; default 0.25)."
      schema:
        type: "number"
        format: "double"
        minimum: 0.02
        maximum: 2
        default: 0.25
      example: 0.1
    LiquidationHeatmapLeverageSensitivity:
      name: "leverage_sensitivity"
      in: "query"
      required: false
      description: "Weight on the higher leverage levels, whose liquidations sit closer to price (0.25 to 3; default 1)."
      schema:
        type: "number"
        format: "double"
        minimum: 0.25
        maximum: 3
        default: 1
      example: 1.5
    TradeZoneExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "okx; the only exchange whose zones Darvas builds so far."
      schema:
        type: "string"
        enum:
          - "okx"
        default: "okx"
        maxLength: 8
      example: "okx"
    TradeZoneWindow:
      name: "window"
      in: "query"
      required: false
      description: "The last day, week or month; 1D without it."
      schema:
        type: "string"
        enum:
          - "1D"
          - "1W"
          - "1M"
        default: "1D"
        maxLength: 2
      example: "1W"
    TradeZoneLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Zones to return, the most notional first (1 to 100; default 20)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
        default: 20
      example: 10
    CryptoOptUnderlying:
      name: "underlying"
      in: "query"
      required: false
      description: "Coin-margined USD options family such as BTC-USD, ETH-USD, or SOL-USD (default BTC-USD)."
      schema:
        type: "string"
        pattern: "^[A-Z0-9]{2,10}-USD$"
        maxLength: 14
        default: "BTC-USD"
      example: "BTC-USD"
    CryptoOptExpiry:
      name: "expiry"
      in: "query"
      required: false
      description: "Optional option contract expiration code in YYMMDD format (for example 261225)."
      schema:
        type: "string"
        pattern: "^[0-9]{6}$"
        maxLength: 6
      example: "261225"
    CryptoOptType:
      name: "option_type"
      in: "query"
      required: false
      description: "Optional contract side filter: call or put."
      schema:
        type: "string"
        enum:
          - "call"
          - "put"
        maxLength: 4
      example: "call"
    CryptoOptMinStrike:
      name: "min_strike"
      in: "query"
      required: false
      description: "Optional lower bound on option strike price in USD."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 100000000
      example: 80000
    CryptoOptMaxStrike:
      name: "max_strike"
      in: "query"
      required: false
      description: "Optional upper bound on option strike price in USD."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 100000000
      example: 120000
    CryptoOptIncludeGreeks:
      name: "include_greeks"
      in: "query"
      required: false
      description: "Include delta, gamma, vega, theta, implied volatilities, and forward price (default true)."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        maxLength: 5
        default: "true"
      example: "true"
    CryptoOptLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum option contracts returned in the chain response (1 to 500; default 200)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 500
        default: 200
      example: 200
    CryptoOptIncludeRealizedVol:
      name: "include_realized_vol"
      in: "query"
      required: false
      description: "Include 7d, 30d, and 90d spot realized volatility and IV minus RV spreads (default true)."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        maxLength: 5
        default: "true"
      example: "true"
    StructureExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange whose candles the engines read, darvas for Darvas's aggregated pair, or formula for a formula ticker; darvas without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
          - "coinbase"
          - "kraken"
          - "bitstamp"
          - "deribit"
          - "bitfinex"
          - "formula"
        default: "darvas"
      example: "darvas"
    StructureTimeframe:
      name: "timeframe"
      in: "query"
      required: false
      description: "The candle frame the engines read; 1H without it."
      schema:
        type: "string"
        enum:
          - "1m"
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "4H"
          - "1D"
          - "1W"
        default: "1H"
      example: "4H"
    StructureModules:
      name: "modules"
      in: "query"
      required: false
      description: "Comma-separated engines: smc, order_blocks, fvg_sessions (1H and finer), swings, volume_zones and monte_carlo; smc,swings without it."
      schema:
        type: "string"
        pattern: "^(smc|order_blocks|fvg_sessions|swings|volume_zones|monte_carlo)(,(smc|order_blocks|fvg_sessions|swings|volume_zones|monte_carlo)){0,5}$"
        maxLength: 80
        default: "smc,swings"
      example: "smc,order_blocks,monte_carlo"
    StructureLookback:
      name: "lookback"
      in: "query"
      required: false
      description: "The newest candles the engines read."
      schema:
        type: "integer"
        format: "int32"
        minimum: 50
        maximum: 500
        default: 300
      example: 300
    StructureSwingLength:
      name: "swing_length"
      in: "query"
      required: false
      description: "The pivot length of smc and order_blocks; without it smc uses 50 and order_blocks 5."
      schema:
        type: "integer"
        format: "int32"
        minimum: 5
        maximum: 100
      example: 50
    StructureDeviation:
      name: "deviation_pct"
      in: "query"
      required: false
      description: "The smallest move in percent that makes a new swing; without it, one fitting the frame, from 0.4 at 1m to 8 at 1W."
      schema:
        type: "number"
        format: "double"
        minimum: 0.1
        maximum: 20
      example: 2
    OverviewExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange whose pairs or instrument to read, or darvas for Darvas's aggregated pairs; darvas without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
          - "coinbase"
          - "kraken"
          - "bitstamp"
          - "deribit"
          - "bitfinex"
        default: "darvas"
      example: "darvas"
    SnapshotMarketType:
      name: "market_type"
      in: "query"
      required: false
      description: "Only spot, swap or futures pairs."
      schema:
        type: "string"
        enum:
          - "spot"
          - "swap"
          - "futures"
      example: "swap"
    SnapshotQuote:
      name: "quote"
      in: "query"
      required: false
      description: "Only pairs quoted in this currency, such as USDT, or ALLUSD for Darvas pairs that combine a base's USD, USDT and USDC markets."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{2,12}$"
        maxLength: 12
      example: "USDT"
    SnapshotSort:
      name: "sort"
      in: "query"
      required: false
      description: "Rank by 24-hour traded value, 24-hour change or price; volume_24h without it."
      schema:
        type: "string"
        enum:
          - "volume_24h"
          - "change_24h"
          - "price"
        default: "volume_24h"
      example: "change_24h"
    SnapshotOrder:
      name: "order"
      in: "query"
      required: false
      description: "desc or asc; desc without it."
      schema:
        type: "string"
        enum:
          - "desc"
          - "asc"
        default: "desc"
      example: "desc"
    SnapshotLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Pairs to return."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 2000
        default: 100
      example: 50
    AggregatedTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "A perpetual as BASE-QUOTE-SWAP, in any case; BTC-USDT-SWAP without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{1,20}-[A-Za-z0-9]{2,10}-[Ss][Ww][Aa][Pp]$"
        maxLength: 36
        default: "BTC-USDT-SWAP"
      example: "ETH-USDT-SWAP"
    ContextHourlyBars:
      name: "include_hourly_bars"
      in: "query"
      required: false
      description: "false leaves out the day's hourly bars; true without it."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "true"
      example: "true"
    ContextMacro:
      name: "include_macro"
      in: "query"
      required: false
      description: "false leaves out the macro releases; true without it."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "true"
      example: "true"
    IndexName:
      name: "index"
      in: "query"
      required: false
      description: "A composite index as BASE-QUOTE, such as BTC-USD or ETH-USDT; BTC-USD without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{1,20}-[A-Za-z0-9]{2,10}$"
        maxLength: 31
        default: "BTC-USD"
      example: "ETH-USD"
    IndexInterval:
      name: "interval"
      in: "query"
      required: false
      description: "The frame of the index candles; 1H without it."
      schema:
        type: "string"
        enum:
          - "1m"
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "4H"
          - "1D"
          - "1W"
        default: "1H"
      example: "1D"
    IndexLimit:
      name: "limit"
      in: "query"
      required: false
      description: "The newest index candles to return."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
        default: 100
      example: 100
    IndexSnapshotName:
      name: "index"
      in: "query"
      required: false
      description: "One composite index as BASE-QUOTE, such as BTC-USD."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{1,20}-[A-Za-z0-9]{2,10}$"
        maxLength: 31
      example: "BTC-USD"
    IndexQuote:
      name: "quote_currency"
      in: "query"
      required: false
      description: "Every index in this quote currency; USD when index is absent too."
      schema:
        type: "string"
        enum:
          - "USD"
          - "USDT"
          - "USDC"
          - "BTC"
      example: "USDT"
    DerivSnapshotExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "Derivatives venue to query for a live contract snapshot: okx, binance, bybit, or hyperliquid; defaults to okx."
      schema:
        type: "string"
        enum:
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
        default: "okx"
        maxLength: 16
      example: "okx"
    DerivSnapshotTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "Derivatives contract identifier for the live snapshot: BTC-USDT-SWAP on OKX, perpetual:BTCUSDT or BTCUSDT on Binance and Bybit, BTC-USDC-SWAP or BTC on Hyperliquid. Defaults to the venue's BTC perpetual."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
        maxLength: 64
      example: "BTC-USDT-SWAP"
    TokenStartTime:
      name: "start_time"
      in: "query"
      required: false
      description: "Inclusive lower time bound as ISO 8601 date-time or YYYY-MM-DD date."
      schema:
        type: "string"
        pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9:.+Z-]+)?$"
        maxLength: 40
      example: "2026-11-25T00:00:00Z"
    TokenEndTime:
      name: "end_time"
      in: "query"
      required: false
      description: "Inclusive upper time bound as ISO 8601 date-time or YYYY-MM-DD date."
      schema:
        type: "string"
        pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9:.+Z-]+)?$"
        maxLength: 40
      example: "2026-11-26T23:59:59Z"
    TokenHistoryLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Rows per page for tokenized stock history (1 to 1000; default 200)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 200
      example: 200
    TokenTradeSide:
      name: "side"
      in: "query"
      required: false
      description: "Optional tokenized stock trade side filter: buy or sell."
      schema:
        type: "string"
        enum:
          - "buy"
          - "sell"
        maxLength: 8
      example: "buy"
    TokenTradeMinSizeUsd:
      name: "min_size_usd"
      in: "query"
      required: false
      description: "Optional minimum USD trade size filter."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 10000000000
      example: 1000
    XbrlTaxonomy:
      name: "taxonomy"
      in: "query"
      required: false
      description: "Optional SEC XBRL taxonomy filter: us-gaap, ifrs-full, or dei."
      schema:
        type: "string"
        enum:
          - "us-gaap"
          - "ifrs-full"
          - "dei"
        maxLength: 16
      example: "us-gaap"
    XbrlTag:
      name: "tag"
      in: "query"
      required: false
      description: "Optional exact XBRL concept tag such as Revenues, or a prefix ending in * such as LongTermDebt*."
      schema:
        type: "string"
        pattern: "^[A-Za-z][A-Za-z0-9_]{0,199}\\*?$"
        maxLength: 201
      example: "LongTermDebt*"
    XbrlUnit:
      name: "unit"
      in: "query"
      required: false
      description: "Optional XBRL measurement unit filter such as USD, shares, USD/shares, or pure."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9_./-]{1,32}$"
        maxLength: 32
      example: "USD"
    XbrlForm:
      name: "form"
      in: "query"
      required: false
      description: "Optional SEC form type filter such as 10-K, 10-Q, or comma-separated forms."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9 /,-]{0,99}$"
        maxLength: 100
      example: "10-K"
    XbrlPeriodEndGte:
      name: "period_end_gte"
      in: "query"
      required: false
      description: "Return XBRL facts with period_end on or after this YYYY-MM-DD date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2024-01-01"
    XbrlPeriodEndLte:
      name: "period_end_lte"
      in: "query"
      required: false
      description: "Return XBRL facts with period_end on or before this YYYY-MM-DD date."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-12-31"
    XbrlLimit:
      name: "limit"
      in: "query"
      required: false
      description: "XBRL facts per page (1 to 1000; default 200)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 200
      example: 200
    DebtSchedulePeriod:
      name: "period"
      in: "query"
      required: false
      description: "Filing cadence for debt schedules: latest, annual, or quarterly (default latest)."
      schema:
        type: "string"
        enum:
          - "annual"
          - "quarterly"
          - "latest"
        default: "latest"
        maxLength: 16
      example: "latest"
    DebtScheduleLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum debt schedule filings to return (1 to 20; default 4)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 20
        default: 4
      example: 4
    PmSeriesCategory:
      name: "category"
      in: "query"
      required: false
      description: "Optional case-insensitive series category filter such as Crypto, Economics, or Politics."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 64
      example: "Crypto"
    PmSeriesQuery:
      name: "query"
      in: "query"
      required: false
      description: "Optional case-insensitive search keyword matching series title, id, or underlying."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 120
      example: "BTC"
    PmSeriesLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum prediction market series returned (1 to 200; default 100)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 200
        default: 100
      example: 100
    FormDIssuerName:
      name: "issuer_name"
      in: "query"
      required: false
      description: "Only issuers whose name holds every word of this text, in any order and any case."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 100
      example: "lumen robotics"
    FormDQuery:
      name: "q"
      in: "query"
      required: false
      description: "The same as issuer_name; issuer_name wins when both are sent."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 100
      example: "robotics"
    FormDIndustryGroup:
      name: "industry_group"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only these Form D industry groups, or every group of these sectors (technology, health_care, real_estate and the others). Repeat the parameter or separate values with commas."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          enum:
            - "agriculture"
            - "commercial_banking"
            - "insurance"
            - "investing"
            - "investment_banking"
            - "pooled_investment_fund"
            - "other_banking_and_financial_services"
            - "business_services"
            - "coal_mining"
            - "electric_utilities"
            - "energy_conservation"
            - "environmental_services"
            - "oil_and_gas"
            - "other_energy"
            - "biotechnology"
            - "health_insurance"
            - "hospitals_and_physicians"
            - "pharmaceuticals"
            - "other_health_care"
            - "manufacturing"
            - "commercial_real_estate"
            - "construction"
            - "reits_and_finance"
            - "residential_real_estate"
            - "other_real_estate"
            - "retailing"
            - "restaurants"
            - "computers"
            - "telecommunications"
            - "other_technology"
            - "airlines_and_airports"
            - "lodging_and_conventions"
            - "tourism_and_travel_services"
            - "other_travel"
            - "other"
            - "banking_and_financial_services"
            - "energy"
            - "health_care"
            - "real_estate"
            - "technology"
            - "travel"
      example:
        - "technology"
        - "biotechnology"
    FormDState:
      name: "state"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only issuers whose principal place of business is in these states or countries, as SEC's two-character codes: CA, NY, X0 for the United Kingdom. Repeat the parameter or separate values with commas."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          pattern: "^[A-Za-z0-9]{2}$"
          maxLength: 2
      example:
        - "CA"
        - "NY"
    FormDExemption:
      name: "exemption"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only notices claiming any of these federal exemptions, as SEC codes (06b, 06c, 04, 3C.1 to 3C.14, 4a5) or rule numbers (506b, 506c, 504, 3c7). Repeat the parameter or separate values with commas."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          pattern: "^[0-9A-Za-z.()]{1,12}$"
          maxLength: 12
      example:
        - "06b"
        - "506c"
    FormDMinAmountSold:
      name: "min_amount_sold"
      in: "query"
      required: false
      description: "Only offerings that have sold at least this many US dollars."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 10000000000000
      example: 1000000
    FormDMaxAmountSold:
      name: "max_amount_sold"
      in: "query"
      required: false
      description: "Only offerings that have sold at most this many US dollars."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 10000000000000
      example: 50000000
    FormDIsAmendment:
      name: "is_amendment"
      in: "query"
      required: false
      description: "true for D/A amendments only, false for first notices (D) only."
      schema:
        type: "boolean"
      example: false
    FormDStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "The same as filing_date_gte, which wins when both are sent."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-01"
    FormDEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "The same as filing_date_lte, which wins when both are sent."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-30"
    MacroLiquidityDays:
      name: "days"
      in: "query"
      required: false
      description: "Trailing daily observations to include in history (1 to 365; default 30)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 365
        default: 30
      example: 30
    MacroLiquidityStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "Optional inclusive lower date bound (YYYY-MM-DD) for history rows."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-10-01"
    MacroLiquidityEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "Optional inclusive upper date bound (YYYY-MM-DD) for history rows."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-30"
    MacroLiquidityIncludeHistory:
      name: "include_history"
      in: "query"
      required: false
      description: "Whether to include the daily aligned history array (default true)."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "true"
      example: "true"
    MacroSpreadsDays:
      name: "days"
      in: "query"
      required: false
      description: "Trailing trading days of yield curve spreads history (1 to 1260; default 90)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1260
        default: 90
      example: 90
    MacroSpreadsMonths:
      name: "months"
      in: "query"
      required: false
      description: "Trailing months of Sahm Rule history (1 to 240; default 24)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 240
        default: 24
      example: 24
    MacroSpreadsStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "Optional inclusive lower date bound (YYYY-MM-DD) for history arrays."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-01-01"
    MacroSpreadsEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "Optional inclusive upper date bound (YYYY-MM-DD) for history arrays."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-30"
    MacroSpreadsIncludeHistory:
      name: "include_history"
      in: "query"
      required: false
      description: "Whether to include spreads_history and sahm_history arrays (default true)."
      schema:
        type: "string"
        enum:
          - "true"
          - "false"
        default: "true"
      example: "true"
    InsiderScreenerTransactionType:
      name: "transaction_type"
      in: "query"
      required: false
      description: "Comma-separated categories (buy, sell, option_exercise, award, gift, tax_withholding, conversion, other) or SEC Form 4 codes (P, S, M, A, G, F, C)."
      schema:
        type: "string"
        pattern: "^[A-Za-z_, ]{1,120}$"
        maxLength: 120
      example: "buy"
    InsiderScreenerMinValueUsd:
      name: "min_value_usd"
      in: "query"
      required: false
      description: "Minimum dollar value in USD."
      schema:
        type: "number"
        format: "double"
        minimum: 0
      example: 100000
    InsiderScreenerMaxValueUsd:
      name: "max_value_usd"
      in: "query"
      required: false
      description: "Maximum transaction value in USD."
      schema:
        type: "number"
        format: "double"
        minimum: 0
      example: 5000000
    InsiderScreenerRole:
      name: "role"
      in: "query"
      required: false
      description: "Filter by insider role."
      schema:
        type: "string"
        enum:
          - "ceo"
          - "cfo"
          - "officer"
          - "director"
          - "ten_percent_owner"
        maxLength: 20
      example: "ceo"
    InsiderScreenerIs10b51:
      name: "is_10b5_1"
      in: "query"
      required: false
      description: "Filter by Rule 10b5-1 trading plan flag (true or false)."
      schema:
        type: "boolean"
      example: false
    InsiderScreenerSector:
      name: "sector"
      in: "query"
      required: false
      description: "Filter issuers by SEC sector/office substring (case-insensitive)."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 100
      example: "Technology"
    InsiderScreenerStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "Start filing date inclusive (YYYY-MM-DD). Market-wide queries default to trailing 30 days."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-01"
    InsiderScreenerEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "End filing date inclusive (YYYY-MM-DD)."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-30"
    InsiderScreenerSortBy:
      name: "sort_by"
      in: "query"
      required: false
      description: "Field to sort screened insider trades by."
      schema:
        type: "string"
        enum:
          - "filing_date"
          - "transaction_date"
          - "value_usd"
          - "shares"
          - "holding_change_pct"
          - "filing_delay_days"
        default: "filing_date"
        maxLength: 30
      example: "value_usd"
    OwnershipSortOrder:
      name: "sort_order"
      in: "query"
      required: false
      description: "Sort direction."
      schema:
        type: "string"
        enum:
          - "desc"
          - "asc"
        default: "desc"
        maxLength: 4
      example: "desc"
    OwnershipAnalyticsLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum rows to return in this page (1 to 100)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
        default: 25
      example: 25
    InsiderClusterWindowDays:
      name: "window_days"
      in: "query"
      required: false
      description: "Lookback window in calendar days ending on as_of (1 to 180)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 180
        default: 30
      example: 30
    InsiderClusterAsOf:
      name: "as_of"
      in: "query"
      required: false
      description: "End date of the lookback window (YYYY-MM-DD); defaults to today UTC."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-30"
    InsiderClusterMinInsiders:
      name: "min_insiders"
      in: "query"
      required: false
      description: "Minimum distinct insiders executing open-market buys in the window (2 to 25)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 2
        maximum: 25
        default: 3
      example: 3
    InsiderClusterMinValueUsd:
      name: "min_cluster_value_usd"
      in: "query"
      required: false
      description: "Minimum combined open-market buy value in USD across the cluster."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        default: 0
      example: 250000
    InsiderClusterExclude10b51:
      name: "exclude_10b5_1"
      in: "query"
      required: false
      description: "Exclude Rule 10b5-1 scheduled transactions from cluster buys and sales."
      schema:
        type: "boolean"
        default: false
      example: false
    InsiderClusterSortBy:
      name: "sort_by"
      in: "query"
      required: false
      description: "Ranking metric for insider buy clusters."
      schema:
        type: "string"
        enum:
          - "total_buy_value_usd"
          - "distinct_buyers"
          - "sentiment_score"
          - "latest_filing_date"
        default: "total_buy_value_usd"
        maxLength: 30
      example: "sentiment_score"
    InstChangeInvestor:
      name: "investor"
      in: "query"
      required: false
      description: "13F filer CIK or case-insensitive name substring (alternative to filer_cik)."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
        maxLength: 100
      example: "Berkshire"
    InstChangeAction:
      name: "action"
      in: "query"
      required: false
      description: "Comma-separated QoQ actions: new_position, added, reduced, sold_out, unchanged."
      schema:
        type: "string"
        pattern: "^[a-z_, ]{1,80}$"
        maxLength: 80
      example: "new_position,added"
    InstChangePutCall:
      name: "put_call"
      in: "query"
      required: false
      description: "Instrument filter: all, equity (non-option), call, or put."
      schema:
        type: "string"
        enum:
          - "all"
          - "equity"
          - "call"
          - "put"
        default: "all"
        maxLength: 10
      example: "equity"
    InstChangeSortBy:
      name: "sort_by"
      in: "query"
      required: false
      description: "Sort metric for 13F position changes."
      schema:
        type: "string"
        enum:
          - "abs_value_change_usd"
          - "value_change_usd"
          - "current_value_usd"
          - "shares_change"
          - "shares_change_pct"
        default: "abs_value_change_usd"
        maxLength: 30
      example: "abs_value_change_usd"
    InstTopBoughtDirection:
      name: "direction"
      in: "query"
      required: false
      description: "Rank most-bought (bought) or most-sold (sold) stocks by 13F institutions."
      schema:
        type: "string"
        enum:
          - "bought"
          - "sold"
        default: "bought"
        maxLength: 10
      example: "bought"
    InstTopBoughtMinHolders:
      name: "min_holders"
      in: "query"
      required: false
      description: "Minimum institutional holders in the current or prior quarter (1 to 5000)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 5000
        default: 1
      example: 10
    InstTopBoughtSortBy:
      name: "sort_by"
      in: "query"
      required: false
      description: "Ranking metric for top-bought or top-sold 13F stocks."
      schema:
        type: "string"
        enum:
          - "net_flow_value_usd"
          - "net_value_change_usd"
          - "net_shares_change"
          - "new_positions_count"
          - "net_buyers_count"
        default: "net_flow_value_usd"
        maxLength: 30
      example: "net_flow_value_usd"
    OwnershipSummaryInsiderWindowDays:
      name: "insider_window_days"
      in: "query"
      required: false
      description: "Lookback window in calendar days for Form 4/5 insider activity summary (7 to 365)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 7
        maximum: 365
        default: 90
      example: 90
    FeedForms:
      name: "forms"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only these forms, such as 10-K, 8-K, S-1, 4, SC 13D, 13F-HR or D. Repeat it or separate forms with commas."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9 /-]{0,19}$"
          maxLength: 20
      example:
        - "8-K"
        - "SC 13D"
    FeedItems:
      name: "items"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only 8-Ks that report one of these item numbers, such as 1.05, 4.01, 4.02, 5.02 or 5.07."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          pattern: "^[0-9]{1,2}\\.[0-9]{2}$"
          maxLength: 5
      example:
        - "5.02"
    FeedSector:
      name: "sector"
      in: "query"
      required: false
      description: "Only companies the SEC office of this name reviews, as /company/facts names their sector; in any case."
      schema:
        type: "string"
        enum:
          - "Energy & Transportation"
          - "Finance"
          - "Life Sciences"
          - "Manufacturing"
          - "Real Estate & Construction"
          - "Technology"
          - "Trade & Services"
          - "Industrial Applications and Services"
          - "Crypto Assets"
          - "Office of Structured Finance"
          - "International Corp Fin"
      example: "Technology"
    RangeStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "Only filings or awards from this day on, YYYY-MM-DD."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-01"
    RangeEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "Only filings or awards up to this day, YYYY-MM-DD."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-30"
    FeedLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Feed filings to return across all pages; each page holds up to 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 25
      example: 25
    MaterialEventCategory:
      name: "category"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only these events; every one of the five without it."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          enum:
            - "executive_change"
            - "shareholder_vote"
            - "auditor_change"
            - "non_reliance"
            - "cybersecurity_incident"
      example:
        - "auditor_change"
    MaterialEventLimit:
      name: "limit"
      in: "query"
      required: false
      description: "8-K filings to return across all pages; each page holds up to 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 25
      example: 25
    ArrangementSource:
      name: "source"
      in: "query"
      required: false
      style: "form"
      explode: true
      description: "Only these sources; all three without it."
      schema:
        type: "array"
        maxItems: 20
        items:
          type: "string"
          enum:
            - "periodic_report"
            - "form_4"
            - "form_144"
      example:
        - "periodic_report"
    ArrangementLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Filings that disclose trading arrangements to return across all pages; each page holds up to 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 25
      example: 25
    TreasuryAsset:
      name: "asset"
      in: "query"
      required: false
      description: "Only companies whose unit counts name this asset; in any case."
      schema:
        type: "string"
        enum:
          - "BTC"
          - "ETH"
          - "SOL"
          - "XRP"
          - "USDC"
          - "USDT"
      example: "BTC"
    TreasuryLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Companies, or periods of one company, to return."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 500
        default: 50
      example: 50
    ContractRecipient:
      name: "recipient"
      in: "query"
      required: false
      description: "A recipient name to search instead of the company's SEC name, such as RAYTHEON for RTX."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x1f]{1,120}$"
        maxLength: 120
      example: "LOCKHEED MARTIN"
    ContractLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Awards to return across all pages; each page holds up to 100."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
        default: 25
      example: 25
    FeeSort:
      name: "sort"
      in: "query"
      required: false
      description: "Rank by an amount, largest first, or by mcap_to_annualized_revenue, cheapest first (default fees_24h_usd)."
      schema:
        type: "string"
        enum:
          - "fees_24h_usd"
          - "fees_7d_usd"
          - "fees_30d_usd"
          - "fees_1y_usd"
          - "revenue_24h_usd"
          - "revenue_30d_usd"
          - "revenue_1y_usd"
          - "holders_revenue_30d_usd"
          - "annualized_fees_usd"
          - "mcap_to_annualized_revenue"
        default: "fees_24h_usd"
        maxLength: 32
      example: "revenue_30d_usd"
    DepthLimit500:
      name: "limit"
      in: "query"
      required: false
      description: "Maximum protocols returned (1 to 500; default 50)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 500
        default: 50
      example: 50
    VolumeMarket:
      name: "market"
      in: "query"
      required: false
      description: "Volume market: spot, aggregators, perps_aggregators, options_notional, or options_premium (default spot)."
      schema:
        type: "string"
        enum:
          - "spot"
          - "aggregators"
          - "perps_aggregators"
          - "options_notional"
          - "options_premium"
        default: "spot"
        maxLength: 24
      example: "spot"
    VolumeSort:
      name: "sort"
      in: "query"
      required: false
      description: "Rank by volume_24h_usd, volume_7d_usd, volume_30d_usd, or change_1d_pct (default volume_24h_usd)."
      schema:
        type: "string"
        enum:
          - "volume_24h_usd"
          - "volume_7d_usd"
          - "volume_30d_usd"
          - "change_1d_pct"
        default: "volume_24h_usd"
        maxLength: 24
      example: "volume_24h_usd"
    ProtocolSlug:
      name: "slug"
      in: "path"
      required: true
      description: "The protocol's slug, as /defi/protocols lists it."
      schema:
        type: "string"
        pattern: "^[a-z0-9][a-z0-9._\\[\\]-]{0,120}$"
        maxLength: 121
      example: "aave-v3"
    TvlInterval:
      name: "interval"
      in: "query"
      required: false
      description: "TVL history sampling: the last point of each day, week, or month (default day)."
      schema:
        type: "string"
        enum:
          - "day"
          - "week"
          - "month"
        default: "day"
        maxLength: 8
      example: "week"
    TvlStartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "First day of the TVL history, YYYY-MM-DD (default 89 days before end_date)."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-10-01"
    TvlEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "Last day of the TVL history, YYYY-MM-DD (default today)."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-30"
    PmMarketId:
      name: "id"
      in: "path"
      required: true
      description: "A Polymarket market id, condition id or slug, or a Kalshi market ticker, as /prediction-markets lists it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{1,240}$"
        maxLength: 241
      example: "KXFEDDECISION-26DEC-H25"
    PmBookMarketId:
      name: "market_id"
      in: "query"
      required: true
      description: "The market of the book: a Polymarket market id, condition id or slug, or a Kalshi market ticker."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{1,240}$"
        maxLength: 241
      example: "KXFEDDECISION-26DEC-H25"
    PmDetailVenue:
      name: "venue"
      in: "query"
      required: false
      description: "polymarket or kalshi, when the id alone does not say which venue it belongs to."
      schema:
        type: "string"
        enum:
          - "polymarket"
          - "kalshi"
        maxLength: 16
      example: "kalshi"
    PmHistory:
      name: "history"
      in: "query"
      required: false
      description: "Probability history window: none, 1d, 1w, 1m, or max (default 1w)."
      schema:
        type: "string"
        enum:
          - "none"
          - "1d"
          - "1w"
          - "1m"
          - "max"
        default: "1w"
        maxLength: 4
      example: "1w"
    PmBookOutcome:
      name: "outcome"
      in: "query"
      required: false
      description: "The book of the YES or the NO side (default yes)."
      schema:
        type: "string"
        enum:
          - "yes"
          - "no"
        default: "yes"
        maxLength: 3
      example: "yes"
    PmBookDepth:
      name: "depth"
      in: "query"
      required: false
      description: "Price levels per side (1 to 100; default 20)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 100
        default: 20
      example: 20
    MacroIndicator:
      name: "indicator"
      in: "query"
      required: false
      description: "all, or one of fed_decision, fed_rate, rate_cuts, cpi_mom, core_cpi_mom, cpi_yoy, payrolls, unemployment, gdp, recession (default all)."
      schema:
        type: "string"
        enum:
          - "all"
          - "fed_decision"
          - "fed_rate"
          - "rate_cuts"
          - "cpi_mom"
          - "core_cpi_mom"
          - "cpi_yoy"
          - "payrolls"
          - "unemployment"
          - "gdp"
          - "recession"
        default: "all"
        maxLength: 16
      example: "fed_decision"
    MacroVenue:
      name: "venue"
      in: "query"
      required: false
      description: "all, kalshi, or polymarket (default all)."
      schema:
        type: "string"
        enum:
          - "all"
          - "kalshi"
          - "polymarket"
        default: "all"
        maxLength: 16
      example: "all"
    MacroEvents:
      name: "events"
      in: "query"
      required: false
      description: "Upcoming events per indicator and venue, soonest first (1 to 6; default 3)."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 6
        default: 3
      example: 2
    ScorePeriod:
      name: "period"
      in: "query"
      required: true
      description: "annual for fiscal years or ttm for trailing years; scores compare whole years."
      schema:
        type: "string"
        enum:
          - "annual"
          - "ttm"
      example: "annual"
    RiskTicker:
      name: "ticker"
      in: "query"
      required: true
      description: "The US stock or fund, in any case."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
      example: "AAPL"
    RiskBenchmark:
      name: "benchmark"
      in: "query"
      required: false
      description: "The stored US stock or fund to measure against; SPY without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
        maxLength: 12
        default: "SPY"
      example: "QQQ"
    RiskLookback:
      name: "lookback"
      in: "query"
      required: false
      description: "Comma-separated windows from 6m, 1y, 2y, 3y, 5y and 10y, each ending on the newest close; 1y,3y,5y without it."
      schema:
        type: "string"
        pattern: "^(6m|1y|2y|3y|5y|10y)(,(6m|1y|2y|3y|5y|10y)){0,5}$"
        maxLength: 30
      example: "1y,3y"
    RiskInterval:
      name: "interval"
      in: "query"
      required: false
      description: "The sampling of returns: day, week or month; day without it."
      schema:
        type: "string"
        enum:
          - "day"
          - "week"
          - "month"
        default: "day"
      example: "week"
    RiskEndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "The last day the windows may reach; today without it."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-27"
    DcfWacc:
      name: "wacc_pct"
      in: "query"
      required: false
      description: "Sets the WACC, in percent, instead of deriving it."
      schema:
        type: "number"
        format: "double"
        minimum: 1
        maximum: 30
      example: 9
    DcfTerminalGrowth:
      name: "terminal_growth_pct"
      in: "query"
      required: false
      description: "Sets the terminal growth, in percent; WACC must exceed it by 0.5 points."
      schema:
        type: "number"
        format: "double"
        minimum: -2
        maximum: 6
      example: 2.5
    DcfFcfGrowth:
      name: "fcf_growth_pct"
      in: "query"
      required: false
      description: "Sets the year-one free cash flow growth, in percent, which fades to terminal growth."
      schema:
        type: "number"
        format: "double"
        minimum: -50
        maximum: 100
      example: 8
    DcfEquityRiskPremium:
      name: "equity_risk_premium_pct"
      in: "query"
      required: false
      description: "Sets the equity risk premium, in percent; 5 without it."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 15
      example: 5.5
    DcfRiskFreeRate:
      name: "risk_free_rate_pct"
      in: "query"
      required: false
      description: "Sets the risk-free rate, in percent; the newest 10-year Treasury par yield without it."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 20
      example: 4.2
    DcfBeta:
      name: "beta"
      in: "query"
      required: false
      description: "Sets beta; 5 years of monthly returns against SPY without it."
      schema:
        type: "number"
        format: "double"
        minimum: -3
        maximum: 5
      example: 1.1
    DcfCostOfDebt:
      name: "cost_of_debt_pct"
      in: "query"
      required: false
      description: "Sets the pre-tax cost of debt, in percent."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 30
      example: 4
    DcfTaxRate:
      name: "tax_rate_pct"
      in: "query"
      required: false
      description: "Sets the tax rate, in percent."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 60
      example: 21
    DcfProjectionYears:
      name: "projection_years"
      in: "query"
      required: false
      description: "Years projected before the terminal value; 10 without it."
      schema:
        type: "integer"
        format: "int32"
        minimum: 3
        maximum: 15
        default: 10
      example: 5
    ValuationInterval:
      name: "interval"
      in: "query"
      required: false
      description: "day for every trading day, week or month for the last trading day of each; day without it."
      schema:
        type: "string"
        enum:
          - "day"
          - "week"
          - "month"
        default: "day"
      example: "month"
    CompanyQuery:
      name: "q"
      in: "query"
      required: false
      description: "A company name, current or former, in any case, or an exact ticker; 2 to 100 characters."
      schema:
        type: "string"
        pattern: "^[^\\x00-\\x1f]{2,100}$"
        minLength: 2
        maxLength: 100
      example: "apple"
    CompanyTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "An exact ticker."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9][A-Za-z0-9./-]{0,11}$"
        maxLength: 20
      example: "AAPL"
    CompanyCik:
      name: "cik"
      in: "query"
      required: false
      description: "A CIK, zero-padded or not."
      schema:
        type: "string"
        pattern: "^[0-9]{1,10}$"
        maxLength: 20
      example: "320193"
    CompanyCusip:
      name: "cusip"
      in: "query"
      required: false
      description: "A CUSIP of 8 or 9 characters."
      schema:
        type: "string"
        pattern: "^[0-9A-Za-z*@#]{8,9}$"
        maxLength: 20
      example: "037833100"
    CompanyIsin:
      name: "isin"
      in: "query"
      required: false
      description: "An ISIN of 12 characters."
      schema:
        type: "string"
        pattern: "^[A-Za-z]{2}[0-9A-Za-z]{9}[0-9]$"
        maxLength: 20
      example: "US0378331005"
    CompanyFigi:
      name: "figi"
      in: "query"
      required: false
      description: "A FIGI of 12 characters."
      schema:
        type: "string"
        pattern: "^[A-Za-z]{2}[Gg][0-9A-Za-z]{8}[0-9]$"
        maxLength: 20
      example: "BBG000B9XRY4"
    CompanyLei:
      name: "lei"
      in: "query"
      required: false
      description: "An LEI of 20 characters."
      schema:
        type: "string"
        pattern: "^[0-9A-Za-z]{18}[0-9]{2}$"
        maxLength: 20
      example: "HWUPKR0MPOU8FGXBT394"
    CompanySearchLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Companies to return; 10 without it."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 50
        default: 10
      example: 5
    FundingAsset:
      name: "asset"
      in: "query"
      required: false
      description: "Only this coin, such as BTC; every coin without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{1,15}$"
        maxLength: 15
      example: "ETH"
    BoardVenues:
      name: "venues"
      in: "query"
      required: false
      description: "Comma-separated venues from okx, binance, bybit and hyperliquid; all four without it."
      schema:
        type: "string"
        pattern: "^[a-z]+(,[a-z]+){0,3}$"
        maxLength: 40
      example: "okx,binance"
    FundingQuote:
      name: "quote"
      in: "query"
      required: false
      description: "Comma-separated quote currencies from USDT, USDC and USD; all three without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z]{3,4}(,[A-Za-z]{3,4}){0,2}$"
        maxLength: 20
      example: "USDT,USDC"
    FundingMinOpenInterest:
      name: "min_open_interest_usd"
      in: "query"
      required: false
      description: "The least open interest, in US dollars, each leg needs; 1,000,000 without it."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000000
        default: 1000000
      example: 10000000
    FundingMinVolume:
      name: "min_volume_24h_usd"
      in: "query"
      required: false
      description: "The least 24-hour volume, in US dollars, each leg needs; 1,000,000 without it."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 1000000000000
        default: 1000000
      example: 5000000
    FundingMinAprSpread:
      name: "min_apr_spread_pct"
      in: "query"
      required: false
      description: "The least annualized funding spread, in percent; 0 without it."
      schema:
        type: "number"
        format: "double"
        minimum: 0
        maximum: 100000
        default: 0
      example: 5
    FundingLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Opportunities to return, widest first."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 200
        default: 50
      example: 20
    PremiumAsset:
      name: "asset"
      in: "query"
      required: false
      description: "The coin, such as BTC; BTC without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{1,15}$"
        maxLength: 15
      example: "BTC"
    PremiumInterval:
      name: "interval"
      in: "query"
      required: false
      description: "minute, hour, day, week or month bars; hour without it."
      schema:
        type: "string"
        enum:
          - "minute"
          - "hour"
          - "day"
          - "week"
          - "month"
        default: "hour"
      example: "day"
    PremiumIntervalMultiplier:
      name: "interval_multiplier"
      in: "query"
      required: false
      description: "Bars of this many intervals: minute 1, 5, 15, 30; hour 1, 2, 4, 6, 12; otherwise 1."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 30
        default: 1
      example: 4
    PremiumLimit:
      name: "limit"
      in: "query"
      required: false
      description: "Bars to return, newest last."
      schema:
        type: "integer"
        format: "int32"
        minimum: 2
        maximum: 2000
        default: 168
      example: 720
    PremiumAdjustUsdt:
      name: "adjust_usdt"
      in: "query"
      required: false
      description: "Whether Binance's USDT price becomes dollars at the USDT-USD close; true without it."
      schema:
        type: "boolean"
        default: true
      example: false
    DerivativesAsset:
      name: "asset"
      in: "query"
      required: false
      description: "The coin whose perpetuals to sum, such as SOL; BTC without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{1,15}$"
        maxLength: 15
      example: "SOL"
    TakerFlowInterval:
      name: "interval"
      in: "query"
      required: false
      description: "The taker flow bars: 15m, 1H, 4H or 1D; 1H without it."
      schema:
        type: "string"
        enum:
          - "15m"
          - "1H"
          - "4H"
          - "1D"
        default: "1H"
      example: "4H"
    TakerFlowLookbackHours:
      name: "lookback_hours"
      in: "query"
      required: false
      description: "Hours of taker flow to sum: at most 168 for 15m bars and 720 otherwise; 24 without it."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 720
        default: 24
      example: 72
    BasisAsset:
      name: "asset"
      in: "query"
      required: false
      description: "The coin whose basis to read; BTC without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{1,15}$"
        maxLength: 15
      example: "ETH"
    BasisTenorDays:
      name: "tenor_days"
      in: "query"
      required: false
      description: "The tenor of the constant-maturity basis, in days; 90 without it."
      schema:
        type: "integer"
        format: "int32"
        minimum: 7
        maximum: 365
        default: 90
      example: 30
    BasisIncludeSpot:
      name: "include_spot"
      in: "query"
      required: false
      description: "Whether to add every exchange's spot price and the spread matrix; true without it."
      schema:
        type: "boolean"
        default: true
      example: false
    AnalyticsTicker:
      name: "ticker"
      in: "query"
      required: false
      description: "The instrument id, as the other crypto endpoints take it, such as spot:ETHUSDT on Binance; Binance spot BTC without ticker and exchange."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9:_./+-]{1,64}$"
        maxLength: 64
      example: "spot:ETHUSDT"
    AnalyticsExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The instrument's exchange; binance without it."
      schema:
        type: "string"
        enum:
          - "darvas"
          - "okx"
          - "binance"
          - "bybit"
          - "hyperliquid"
          - "coinbase"
          - "kraken"
          - "bitstamp"
          - "deribit"
          - "bitfinex"
        default: "binance"
      example: "okx"
    AnalyticsMarketType:
      name: "market_type"
      in: "query"
      required: false
      description: "The analysed instrument's market: spot, swap or futures; the one the ticker implies without it."
      schema:
        type: "string"
        enum:
          - "spot"
          - "swap"
          - "futures"
        maxLength: 8
      example: "spot"
    AnalyticsCorrelationDays:
      name: "correlation_days"
      in: "query"
      required: false
      description: "Days of daily returns the correlations and betas cover."
      schema:
        type: "integer"
        format: "int32"
        minimum: 20
        maximum: 365
        default: 90
      example: 180
    AnalyticsSeasonalityDays:
      name: "seasonality_days"
      in: "query"
      required: false
      description: "Days of hourly bars the hourly and session averages cover."
      schema:
        type: "integer"
        format: "int32"
        minimum: 7
        maximum: 365
        default: 90
      example: 30
    AnalyticsBenchmarks:
      name: "benchmarks"
      in: "query"
      required: false
      description: "Up to 8 comma-separated benchmarks: US stocks and funds by ticker, or BTC, ETH, SOL, BNB and XRP; SPY,QQQ,GLD,BTC without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9.-]{1,12}(,[A-Za-z0-9.-]{1,12}){0,7}$"
        maxLength: 110
      example: "SPY,GLD,ETH"
    OptionsUnderlying:
      name: "underlying"
      in: "query"
      required: false
      description: "The coin, such as BTC, ETH or SOL; a -USD, -USDT or -USDC suffix is dropped; BTC without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9]{2,10}(-[Uu][Ss][Dd][CcTt]?)?$"
        maxLength: 15
      example: "ETH"
    OptionsVenues:
      name: "venues"
      in: "query"
      required: false
      description: "Comma-separated option venues from deribit, okx and bybit; all three without it."
      schema:
        type: "string"
        pattern: "^[a-z]+(,[a-z]+){0,2}$"
        maxLength: 30
      example: "deribit,okx"
    OptionsExpiry:
      name: "expiry"
      in: "query"
      required: false
      description: "Only the options expiring on this day; every expiry without it."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-12-25"
    OptionsStrikeRange:
      name: "strike_range_pct"
      in: "query"
      required: false
      description: "Strikes within this percent of spot in gex_by_strike; 30 without it."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 200
        default: 30
      example: 20
    OptionsStrikeSurface:
      name: "include_strike_surface"
      in: "query"
      required: false
      description: "Whether to add every strike's IV and delta to the surface; false without it."
      schema:
        type: "boolean"
        default: false
      example: true
    DvolUnderlying:
      name: "underlying"
      in: "query"
      required: false
      description: "BTC or ETH, the coins of DVOL; BTC without it."
      schema:
        type: "string"
        enum:
          - "BTC"
          - "ETH"
        default: "BTC"
      example: "ETH"
    DvolResolution:
      name: "resolution"
      in: "query"
      required: false
      description: "1D for daily or 1H for hourly history; 1D without it."
      schema:
        type: "string"
        enum:
          - "1D"
          - "1H"
        default: "1D"
      example: "1H"
    DvolDays:
      name: "days"
      in: "query"
      required: false
      description: "Days of history and of the realized cone: up to 1,000 daily or 41 hourly; 365 daily or 30 hourly without it."
      schema:
        type: "integer"
        format: "int32"
        minimum: 1
        maximum: 1000
      example: 90
    DvolIncludeHistory:
      name: "include_history"
      in: "query"
      required: false
      description: "Whether to add the DVOL history; true without it."
      schema:
        type: "boolean"
        default: true
      example: false
    ImbalanceExchange:
      name: "exchange"
      in: "query"
      required: false
      description: "The exchange of the stored book: okx, binance or bybit; okx without it."
      schema:
        type: "string"
        enum:
          - "okx"
          - "binance"
          - "bybit"
        default: "okx"
      example: "binance"
    ImbalanceInterval:
      name: "interval"
      in: "query"
      required: false
      description: "The bar: 1m, 5m, 15m, 30m, 1H, 2H, 4H, 1D or 1W; 1H without it."
      schema:
        type: "string"
        enum:
          - "1m"
          - "5m"
          - "15m"
          - "30m"
          - "1H"
          - "2H"
          - "4H"
          - "1D"
          - "1W"
        default: "1H"
      example: "15m"
    ImbalanceStartTime:
      name: "start_time"
      in: "query"
      required: false
      description: "The first bar: ISO 8601, a date or Unix milliseconds; 168 bars before end_time without it."
      schema:
        type: "string"
        pattern: "^[0-9TZ:.+-]{8,40}$"
        maxLength: 40
      example: "2026-11-23T12:00:00Z"
    ImbalanceEndTime:
      name: "end_time"
      in: "query"
      required: false
      description: "The end of the last bar, in the same forms; now without it."
      schema:
        type: "string"
        pattern: "^[0-9TZ:.+-]{8,40}$"
        maxLength: 40
      example: "2026-11-30T12:00:00Z"
    ImbalanceRanges:
      name: "ranges_pct"
      in: "query"
      required: false
      description: "Up to 6 comma-separated ranges around the mid, in percent, from 0.05 to 10; 0.5,1,2,5 without it."
      schema:
        type: "string"
        pattern: "^[0-9.]+(,[0-9.]+){0,5}$"
        maxLength: 60
      example: "0.25,1"
    ImbalanceOrderSizes:
      name: "order_sizes_usd"
      in: "query"
      required: false
      description: "Up to 4 comma-separated market order sizes, in US dollars, from 100 to 1,000,000,000; 100000,1000000 without it."
      schema:
        type: "string"
        pattern: "^[0-9.]+(,[0-9.]+){0,3}$"
        maxLength: 60
      example: "50000,500000"
    BankRequired:
      name: "bank"
      in: "query"
      required: true
      description: "The bank symbol, such as FED; see /macro/interest-rates/banks."
      schema:
        type: "string"
        pattern: "^[A-Za-z_]{2,20}$"
        maxLength: 20
      example: "FED"
    BankOptional:
      name: "bank"
      in: "query"
      required: false
      description: "Only this bank; every bank without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z_]{2,20}$"
        maxLength: 20
      example: "ECB"
    SeriesRequired:
      name: "series"
      in: "query"
      required: true
      description: "The series identifier from the dataset's /series list (each item's series or series_id field, such as cpi_all_sa)."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9_]{1,40}$"
        maxLength: 40
      example: "cpi_all_sa"
    SeriesOptional:
      name: "series"
      in: "query"
      required: false
      description: "Only this series identifier from the dataset's /series list (series or series_id field); every series without it."
      schema:
        type: "string"
        pattern: "^[A-Za-z0-9_]{1,40}$"
        maxLength: 40
      example: "cpi_core_sa"
    StartDate:
      name: "start_date"
      in: "query"
      required: false
      description: "The first date to return."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2025-01-01"
    EndDate:
      name: "end_date"
      in: "query"
      required: false
      description: "The last date to return."
      schema:
        type: "string"
        format: "date"
        maxLength: 10
      example: "2026-11-24"
  responses:
    BadRequest:
      description: "A parameter is missing or malformed."
      headers:
        X-RateLimit-Limit:
          $ref: "#/components/headers/RateLimitLimit"
        X-Quota-Unit:
          $ref: "#/components/headers/QuotaUnit"
        X-Credits-Used:
          $ref: "#/components/headers/CreditsUsed"
        X-Quota-Limit:
          $ref: "#/components/headers/QuotaLimit"
        X-Quota-Remaining:
          $ref: "#/components/headers/QuotaRemaining"
        X-Quota-Reset:
          $ref: "#/components/headers/QuotaReset"
      content:
        "application/json":
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: "VALIDATION_ERROR"
            message: "Send ticker or cik"
    Unauthorized:
      description: "The API key is missing, unknown or revoked."
      headers:
        X-RateLimit-Limit:
          $ref: "#/components/headers/RateLimitLimit"
        X-Quota-Unit:
          $ref: "#/components/headers/QuotaUnit"
        X-Credits-Used:
          $ref: "#/components/headers/CreditsUsed"
        X-Quota-Limit:
          $ref: "#/components/headers/QuotaLimit"
        X-Quota-Remaining:
          $ref: "#/components/headers/QuotaRemaining"
        X-Quota-Reset:
          $ref: "#/components/headers/QuotaReset"
      content:
        "application/json":
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: "UNAUTHORIZED"
            message: "The API key is not valid"
    PlanRequired:
      description: "The account of the key has no active data API plan."
      headers:
        X-RateLimit-Limit:
          $ref: "#/components/headers/RateLimitLimit"
        X-Quota-Unit:
          $ref: "#/components/headers/QuotaUnit"
        X-Credits-Used:
          $ref: "#/components/headers/CreditsUsed"
        X-Quota-Limit:
          $ref: "#/components/headers/QuotaLimit"
        X-Quota-Remaining:
          $ref: "#/components/headers/QuotaRemaining"
        X-Quota-Reset:
          $ref: "#/components/headers/QuotaReset"
      content:
        "application/json":
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: "PLAN_REQUIRED"
            message: "The account of this key has no active data API plan"
    NotFound:
      description: "No company has this ticker or CIK."
      headers:
        X-RateLimit-Limit:
          $ref: "#/components/headers/RateLimitLimit"
        X-Quota-Unit:
          $ref: "#/components/headers/QuotaUnit"
        X-Credits-Used:
          $ref: "#/components/headers/CreditsUsed"
        X-Quota-Limit:
          $ref: "#/components/headers/QuotaLimit"
        X-Quota-Remaining:
          $ref: "#/components/headers/QuotaRemaining"
        X-Quota-Reset:
          $ref: "#/components/headers/QuotaReset"
      content:
        "application/json":
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: "NOT_FOUND"
            message: "No company has this ticker or CIK"
    RateLimited:
      description: "The key sent more requests in a minute than its limit (RATE_LIMITED), or its account has no credits left (QUOTA_EXCEEDED)."
      headers:
        X-RateLimit-Limit:
          $ref: "#/components/headers/RateLimitLimit"
        X-Quota-Unit:
          $ref: "#/components/headers/QuotaUnit"
        X-Credits-Used:
          $ref: "#/components/headers/CreditsUsed"
        X-Quota-Limit:
          $ref: "#/components/headers/QuotaLimit"
        X-Quota-Remaining:
          $ref: "#/components/headers/QuotaRemaining"
        X-Quota-Reset:
          $ref: "#/components/headers/QuotaReset"
        Retry-After:
          $ref: "#/components/headers/RetryAfter"
      content:
        "application/json":
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: "RATE_LIMITED"
            message: "Too many requests"
    InternalError:
      description: "Darvas failed; the error is reported."
      headers:
        X-RateLimit-Limit:
          $ref: "#/components/headers/RateLimitLimit"
        X-Quota-Unit:
          $ref: "#/components/headers/QuotaUnit"
        X-Credits-Used:
          $ref: "#/components/headers/CreditsUsed"
        X-Quota-Limit:
          $ref: "#/components/headers/QuotaLimit"
        X-Quota-Remaining:
          $ref: "#/components/headers/QuotaRemaining"
        X-Quota-Reset:
          $ref: "#/components/headers/QuotaReset"
      content:
        "application/json":
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: "INTERNAL_ERROR"
            message: "Something went wrong"
    Unavailable:
      description: "The data store is unavailable."
      headers:
        X-RateLimit-Limit:
          $ref: "#/components/headers/RateLimitLimit"
        X-Quota-Unit:
          $ref: "#/components/headers/QuotaUnit"
        X-Credits-Used:
          $ref: "#/components/headers/CreditsUsed"
        X-Quota-Limit:
          $ref: "#/components/headers/QuotaLimit"
        X-Quota-Remaining:
          $ref: "#/components/headers/QuotaRemaining"
        X-Quota-Reset:
          $ref: "#/components/headers/QuotaReset"
      content:
        "application/json":
          schema:
            $ref: "#/components/schemas/Error"
          example:
            error: "UNAVAILABLE"
            message: "The data service is unavailable"
  schemas:
    Error:
      type: "object"
      description: "A refusal or failure."
      additionalProperties: false
      required:
        - "error"
      properties:
        error:
          type: "string"
          pattern: "^[A-Z_]{1,64}$"
          description: "A stable code."
          examples:
            - "NOT_FOUND"
        message:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "What went wrong, in English."
          examples:
            - "No company has this ticker or CIK"
      examples:
        - error: "NOT_FOUND"
          message: "No company has this ticker or CIK"
    CompanyTicker:
      type: "object"
      description: "A ticker the company was listed under and the days a source listed it."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "first_seen"
        - "last_seen"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker."
          examples:
            - "AAPL"
        exchange:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "The exchange SEC names."
          examples:
            - "Nasdaq"
        first_seen:
          type: "string"
          format: "date"
          description: "First day a source listed the ticker for this company."
          examples:
            - "2026-11-25"
        last_seen:
          type: "string"
          format: "date"
          description: "Last day a source listed it."
          examples:
            - "2026-11-25"
      examples:
        - ticker: "AAPL"
          exchange: "Nasdaq"
          first_seen: "2026-11-25"
          last_seen: "2026-11-25"
    CompanyFacts:
      type: "object"
      description: "A company's SEC profile."
      additionalProperties: false
      required:
        - "ticker"
        - "name"
        - "cik"
        - "is_active"
        - "sec_filings_url"
        - "tickers"
        - "profile_updated_at"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The requested ticker, else the one SEC lists now."
          examples:
            - "AAPL"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The name SEC holds."
          examples:
            - "Apple Inc."
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          description: "Ten digits with leading zeros."
          examples:
            - "0000320193"
        industry:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The industry, named after the SIC code."
          examples:
            - "Electronic Computers"
        sector:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The SEC office that reviews the company's filings."
          examples:
            - "Technology"
        exchange:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "The exchange of the chosen ticker."
          examples:
            - "Nasdaq"
        is_active:
          type: "boolean"
          description: "SEC listed one of its tickers in the last 7 days."
          examples:
            - true
        location:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "City and state or country of the business address."
          examples:
            - "CUPERTINO, CA"
        sec_filings_url:
          type: "string"
          format: "uri"
          maxLength: 200
          description: "The company's filings on sec.gov."
          examples:
            - "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193"
        sic_code:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{3,4}$"
          description: "The SIC code."
          examples:
            - "3571"
        sic_industry:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The SEC description of the SIC code."
          examples:
            - "Electronic Computers"
        sic_sector:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The SIC division of the code."
          examples:
            - "Manufacturing"
        entity_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "The SEC entity type."
          examples:
            - "operating"
        category:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Filer status."
          examples:
            - "Large accelerated filer"
        fiscal_year_end:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{4}$"
          description: "Month and day, MMDD."
          examples:
            - "0925"
        state_of_incorporation:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "State or country code."
          examples:
            - "CA"
        ein:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{9}$"
          description: "Employer Identification Number."
          examples:
            - "942404110"
        lei:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9]{20}$"
          description: "Legal Entity Identifier."
          examples:
            - "HWUPKR0MPOU8FGXBT394"
        website_url:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Website SEC holds."
          examples:
            - "https://www.apple.com"
        investor_website_url:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Investor website SEC holds."
          examples:
            - "https://investor.apple.com"
        phone:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Business phone."
          examples:
            - "(408) 996-1010"
        addresses:
          type: "object"
          description: "The mailing and business addresses as SEC sends them."
          examples:
            - business:
                city: "CUPERTINO"
        former_names:
          type: "array"
          description: "Earlier names with the dates SEC gives for each."
          maxItems: 200
          items:
            type: "object"
          examples:
            - - name: "APPLE COMPUTER INC"
        tickers:
          type: "array"
          maxItems: 100
          description: "Every ticker seen for the company."
          items:
            $ref: "#/components/schemas/CompanyTicker"
        profile_updated_at:
          type: "string"
          pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}$"
          description: "When Darvas first saw this version of the profile, UTC."
          examples:
            - "2026-11-25 10:40:00.000"
      examples:
        - ticker: "AAPL"
          name: "Apple Inc."
          cik: "0000320193"
          industry: "Electronic Computers"
          sector: "Technology"
          exchange: "Nasdaq"
          is_active: true
          location: "CUPERTINO, CA"
          sec_filings_url: "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193"
          sic_code: "3571"
          sic_industry: "Electronic Computers"
          sic_sector: "Manufacturing"
          entity_type: "operating"
          category: "Large accelerated filer"
          fiscal_year_end: "0925"
          state_of_incorporation: "CA"
          ein: "942404110"
          lei: null
          website_url: null
          investor_website_url: null
          phone: "(408) 996-1010"
          addresses:
            business:
              city: "CUPERTINO"
              stateOrCountry: "CA"
          former_names:
            - name: "APPLE COMPUTER INC"
              from: "1994-01-26T00:00:00.000Z"
              to: "2007-01-04T00:00:00.000Z"
          tickers:
            - ticker: "AAPL"
              exchange: "Nasdaq"
              first_seen: "2026-11-25"
              last_seen: "2026-11-25"
          profile_updated_at: "2026-11-25 10:40:00.000"
    CompanyFactsResponse:
      type: "object"
      description: "The answer of GET /company/facts."
      additionalProperties: false
      required:
        - "company_facts"
      properties:
        company_facts:
          $ref: "#/components/schemas/CompanyFacts"
      examples:
        - company_facts:
            ticker: "AAPL"
            name: "Apple Inc."
            cik: "0000320193"
            industry: "Electronic Computers"
            sector: "Technology"
            exchange: "Nasdaq"
            is_active: true
            location: "CUPERTINO, CA"
            sec_filings_url: "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193"
            sic_code: "3571"
            sic_industry: "Electronic Computers"
            sic_sector: "Manufacturing"
            entity_type: "operating"
            category: "Large accelerated filer"
            fiscal_year_end: "0925"
            state_of_incorporation: "CA"
            ein: "942404110"
            lei: null
            website_url: null
            investor_website_url: null
            phone: "(408) 996-1010"
            addresses:
              business:
                city: "CUPERTINO"
                stateOrCountry: "CA"
            former_names:
              - name: "APPLE COMPUTER INC"
                from: "1994-01-26T00:00:00.000Z"
                to: "2007-01-04T00:00:00.000Z"
            tickers:
              - ticker: "AAPL"
                exchange: "Nasdaq"
                first_seen: "2026-11-25"
                last_seen: "2026-11-25"
            profile_updated_at: "2026-11-25 10:40:00.000"
    CompanyFactsTickersResponse:
      type: "object"
      description: "The answer of GET /company/facts/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "company_facts"
          description: "Always company_facts for the company profiles ticker list."
          examples:
            - "company_facts"
        tickers:
          type: "array"
          maxItems: 100000
          description: "Sorted ticker symbols with SEC company profiles."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            maxLength: 12
      examples:
        - resource: "company_facts"
          tickers:
            - "AAPL"
            - "MSFT"
    CompanyFactsCiksResponse:
      type: "object"
      description: "The answer of GET /company/facts/ciks."
      additionalProperties: false
      required:
        - "resource"
        - "ciks"
      properties:
        resource:
          type: "string"
          enum:
            - "company_facts"
          description: "Always company_facts for the company profiles CIK list."
          examples:
            - "company_facts"
        ciks:
          type: "array"
          maxItems: 100000
          description: "Sorted ten-digit zero-padded CIKs with SEC company profiles."
          items:
            type: "string"
            pattern: "^[0-9]{10}$"
            maxLength: 10
      examples:
        - resource: "company_facts"
          ciks:
            - "0000320193"
            - "0000789019"
    Filing:
      type: "object"
      description: "One SEC filing of one company."
      additionalProperties: false
      required:
        - "cik"
        - "accession_number"
        - "filing_type"
        - "filing_date"
        - "url"
        - "index_url"
      properties:
        cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 4294967295
          description: "The SEC Central Index Key."
          examples:
            - 320193
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "SEC's identifier of the filing."
          examples:
            - "0000320193-26-000105"
        filing_type:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9 /-]{0,19}$"
          description: "The form."
          examples:
            - "10-K"
        report_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The period the filing reports on."
          examples:
            - "2026-09-26"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received it."
          examples:
            - "2026-10-31"
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The requested ticker, else the company's current one."
          examples:
            - "AAPL"
        url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The filing's primary document on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/aapl-20260926.htm"
        accepted_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "When EDGAR accepted the filing."
          examples:
            - "2026-10-31T06:01:05Z"
        act:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "The act the filing is made under."
          examples:
            - "34"
        file_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "SEC file number."
          examples:
            - "001-36743"
        film_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "SEC film number."
          examples:
            - "261234567"
        items:
          type: "array"
          description: "8-K item numbers."
          maxItems: 50
          items:
            type: "string"
            pattern: "^[0-9A-Za-z.]{1,8}$"
            maxLength: 8
          examples:
            - - "2.02"
              - "9.01"
        size_bytes:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100000000000
          description: "Size of the whole submission."
          examples:
            - 9876543
        is_xbrl:
          type: "boolean"
          description: "The filing has XBRL data."
          examples:
            - true
        is_inline_xbrl:
          type: "boolean"
          description: "The XBRL is inline in the HTML."
          examples:
            - true
        primary_document:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "File name of the primary document."
          examples:
            - "aapl-20260926.htm"
        primary_document_description:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "SEC description of the primary document."
          examples:
            - "10-K"
        index_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The filing's index page on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
      examples:
        - cik: 320193
          accession_number: "0000320193-26-000105"
          filing_type: "10-K"
          report_date: "2026-09-26"
          filing_date: "2026-10-31"
          ticker: "AAPL"
          url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/aapl-20260926.htm"
          accepted_at: "2026-10-31T06:01:05Z"
          act: "34"
          file_number: "001-36743"
          film_number: "261234567"
          items: []
          size_bytes: 9876543
          is_xbrl: true
          is_inline_xbrl: true
          primary_document: "aapl-20260926.htm"
          primary_document_description: "10-K"
          index_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
    FilingsResponse:
      type: "object"
      description: "The answer of GET /filings."
      additionalProperties: false
      required:
        - "filings"
      properties:
        filings:
          type: "array"
          maxItems: 100
          description: "This page, newest first."
          items:
            $ref: "#/components/schemas/Filing"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of filings; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/filings?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - filings:
            - cik: 320193
              accession_number: "0000320193-26-000105"
              filing_type: "10-K"
              report_date: "2026-09-26"
              filing_date: "2026-10-31"
              ticker: "AAPL"
              url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/aapl-20260926.htm"
              accepted_at: "2026-10-31T06:01:05Z"
              act: "34"
              file_number: "001-36743"
              film_number: "261234567"
              items: []
              size_bytes: 9876543
              is_xbrl: true
              is_inline_xbrl: true
              primary_document: "aapl-20260926.htm"
              primary_document_description: "10-K"
              index_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
    FilingsTickersResponse:
      type: "object"
      description: "The answer of GET /filings/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "filings"
          description: "Always filings for the SEC filings ticker list."
          examples:
            - "filings"
        tickers:
          type: "array"
          maxItems: 100000
          description: "Sorted ticker symbols with SEC filings."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            maxLength: 12
      examples:
        - resource: "filings"
          tickers:
            - "AAPL"
            - "MSFT"
    FilingsCiksResponse:
      type: "object"
      description: "The answer of GET /filings/ciks."
      additionalProperties: false
      required:
        - "resource"
        - "ciks"
      properties:
        resource:
          type: "string"
          enum:
            - "filings"
          description: "Always filings for the SEC filings CIK list."
          examples:
            - "filings"
        ciks:
          type: "array"
          maxItems: 100000
          description: "Sorted ten-digit zero-padded CIKs with SEC filings."
          items:
            type: "string"
            pattern: "^[0-9]{10}$"
            maxLength: 10
      examples:
        - resource: "filings"
          ciks:
            - "0000320193"
            - "0000789019"
    FilingTypesResponse:
      type: "object"
      description: "The answer of GET /filings/types."
      additionalProperties: false
      required:
        - "filing_types"
      properties:
        filing_types:
          type: "array"
          maxItems: 2000
          description: "Sorted SEC form types available on GET /filings."
          items:
            type: "string"
            pattern: "^[A-Za-z0-9][A-Za-z0-9 ./-]{0,39}$"
            maxLength: 40
      examples:
        - filing_types:
            - "10-K"
            - "10-Q"
            - "8-K"
    InsiderOwner:
      type: "object"
      description: "A reporting owner of a Form 3, 4 or 5."
      additionalProperties: false
      required:
        - "cik"
        - "name"
        - "is_board_director"
        - "is_officer"
        - "is_ten_percent_owner"
        - "is_other"
      properties:
        cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 4294967295
          description: "The owner's CIK."
          examples:
            - 1696841
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The owner's name, as filed."
          examples:
            - "Teter Timothy S."
        title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Officer title, or Director or 10% Owner."
          examples:
            - "EVP, General Counsel"
        is_board_director:
          type: "boolean"
          description: "This owner is a director."
          examples:
            - false
        is_officer:
          type: "boolean"
          description: "This owner is an officer."
          examples:
            - true
        is_ten_percent_owner:
          type: "boolean"
          description: "This owner holds 10% or more."
          examples:
            - false
        is_other:
          type: "boolean"
          description: "The owner has another relationship."
          examples:
            - false
      examples:
        - cik: 1696841
          name: "Teter Timothy S."
          title: "EVP, General Counsel"
          is_board_director: false
          is_officer: true
          is_ten_percent_owner: false
          is_other: false
    InsiderFootnote:
      type: "object"
      description: "A footnote of a Form 3, 4 or 5."
      additionalProperties: false
      required:
        - "id"
        - "text"
      properties:
        id:
          type: "string"
          pattern: "^F[0-9]{1,3}$"
          description: "The footnote id."
          examples:
            - "F1"
        text:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10000
          description: "The footnote, as filed."
          examples:
            - "Sold under a Rule 10b5-1 trading plan."
      examples:
        - id: "F1"
          text: "Sold under a Rule 10b5-1 trading plan."
    InsiderTrade:
      type: "object"
      description: "One transaction of a Form 4 or 5."
      additionalProperties: false
      required:
        - "issuer"
        - "form_type"
        - "filing_date"
        - "accession_number"
        - "security_title"
        - "issuer_cik"
        - "reporting_owners"
        - "is_derivative"
        - "footnotes"
        - "filing_url"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The requested ticker, else the one on the filing of the trade."
          examples:
            - "NVDA"
        issuer:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The company of the trade, as the filing names it."
          examples:
            - "NVIDIA CORP"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The first reporting owner of the trade."
          examples:
            - "Teter Timothy S."
        title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Title of the trade's first owner: officer title, or Director or 10% Owner."
          examples:
            - "EVP, General Counsel"
        is_board_director:
          type: "boolean"
          description: "The trade's first owner is a director."
          examples:
            - false
        is_officer:
          type: "boolean"
          description: "The trade's first owner is an officer."
          examples:
            - true
        is_ten_percent_owner:
          type: "boolean"
          description: "The trade's first owner holds 10% or more."
          examples:
            - false
        form_type:
          type: "string"
          pattern: "^[345](/A)?$"
          description: "The form of the trade."
          examples:
            - "4"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received the filing of the trade."
          examples:
            - "2026-09-23"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "SEC's identifier of the filing of the trade."
          examples:
            - "0001696841-26-000014"
        security_title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The security of the trade, as filed."
          examples:
            - "Common Stock"
        issuer_cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 4294967295
          description: "The CIK of the issuer of the trade."
          examples:
            - 1045810
        owner_cik:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 1
          maximum: 4294967295
          description: "The CIK of the trade's first owner."
          examples:
            - 1696841
        reporting_owners:
          type: "array"
          maxItems: 50
          description: "Every reporting owner of the trade; joint filings have several."
          items:
            $ref: "#/components/schemas/InsiderOwner"
        is_derivative:
          type: "boolean"
          description: "The trade is in the derivative table: options, units, warrants."
          examples:
            - false
        direct_or_indirect:
          type:
            - "string"
            - "null"
          pattern: "^[DI]$"
          description: "D when the trade is direct, I when indirect."
          examples:
            - "D"
        nature_of_ownership:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "For an indirect trade, the vehicle, such as a trust."
          examples:
            - "By Trust"
        footnotes:
          type: "array"
          maxItems: 50
          description: "The footnotes of the trade with their text."
          items:
            $ref: "#/components/schemas/InsiderFootnote"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the trade's filing on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
        report_period:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The period the trade's filing reports on."
          examples:
            - "2026-09-21"
        transaction_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day of the transaction."
          examples:
            - "2026-09-21"
        transaction_code:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]$"
          description: "SEC's transaction code."
          examples:
            - "S"
        transaction_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 60
          description: "What the code means."
          examples:
            - "Sale"
        transaction_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares or units in the transaction."
          examples:
            - 2398
        transaction_price_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Price per share."
          examples:
            - 222.1
        transaction_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares times price, or the value the filing states."
          examples:
            - 532595.8
        shares_owned_before_transaction:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares held before the transaction."
          examples:
            - 27598
        shares_owned_after_transaction:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares held after it."
          examples:
            - 25200
        acquired_or_disposed:
          type:
            - "string"
            - "null"
          pattern: "^[AD]$"
          description: "A when acquired, D when disposed of."
          examples:
            - "D"
        is_10b5_1_plan:
          type: "boolean"
          description: "The filer ticked the Rule 10b5-1 plan box."
          examples:
            - true
        underlying_security_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Derivative trades: the underlying security."
          examples:
            - "Common Stock"
        underlying_security_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Derivative trades: underlying shares."
          examples:
            - null
        conversion_or_exercise_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Derivative trades: the conversion or exercise price."
          examples:
            - null
      examples:
        - ticker: "NVDA"
          issuer: "NVIDIA CORP"
          name: "Teter Timothy S."
          title: "EVP, General Counsel"
          is_board_director: false
          is_officer: true
          is_ten_percent_owner: false
          form_type: "4"
          filing_date: "2026-09-23"
          accession_number: "0001696841-26-000014"
          security_title: "Common Stock"
          issuer_cik: 1045810
          owner_cik: 1696841
          reporting_owners:
            - cik: 1696841
              name: "Teter Timothy S."
              title: "EVP, General Counsel"
              is_board_director: false
              is_officer: true
              is_ten_percent_owner: false
              is_other: false
          is_derivative: false
          direct_or_indirect: "D"
          nature_of_ownership: null
          footnotes:
            - id: "F1"
              text: "Sold under a Rule 10b5-1 trading plan."
          filing_url: "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
          report_period: "2026-09-21"
          transaction_date: "2026-09-21"
          transaction_code: "S"
          transaction_type: "Sale"
          transaction_shares: 2398
          transaction_price_per_share: 222.1
          transaction_value: 532595.8
          shares_owned_before_transaction: 27598
          shares_owned_after_transaction: 25200
          acquired_or_disposed: "D"
          is_10b5_1_plan: true
          underlying_security_title: null
          underlying_security_shares: null
          conversion_or_exercise_price: null
    InsiderHolding:
      type: "object"
      description: "One holding of a Form 3 or 5."
      additionalProperties: false
      required:
        - "issuer"
        - "form_type"
        - "filing_date"
        - "accession_number"
        - "security_title"
        - "issuer_cik"
        - "reporting_owners"
        - "is_derivative"
        - "footnotes"
        - "filing_url"
        - "holding_type"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The requested ticker, else the one on the filing of the holding."
          examples:
            - "NVDA"
        issuer:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The company of the holding, as the filing names it."
          examples:
            - "NVIDIA CORP"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The first reporting owner of the holding."
          examples:
            - "Teter Timothy S."
        title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Title of the holding's first owner: officer title, or Director or 10% Owner."
          examples:
            - "EVP, General Counsel"
        is_board_director:
          type: "boolean"
          description: "The holding's first owner is a director."
          examples:
            - false
        is_officer:
          type: "boolean"
          description: "The holding's first owner is an officer."
          examples:
            - true
        is_ten_percent_owner:
          type: "boolean"
          description: "The holding's first owner holds 10% or more."
          examples:
            - false
        form_type:
          type: "string"
          pattern: "^[345](/A)?$"
          description: "The form of the holding."
          examples:
            - "4"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received the filing of the holding."
          examples:
            - "2026-09-23"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "SEC's identifier of the filing of the holding."
          examples:
            - "0001696841-26-000014"
        security_title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The security of the holding, as filed."
          examples:
            - "Common Stock"
        issuer_cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 4294967295
          description: "The CIK of the issuer of the holding."
          examples:
            - 1045810
        owner_cik:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 1
          maximum: 4294967295
          description: "The CIK of the holding's first owner."
          examples:
            - 1696841
        reporting_owners:
          type: "array"
          maxItems: 50
          description: "Every reporting owner of the holding; joint filings have several."
          items:
            $ref: "#/components/schemas/InsiderOwner"
        is_derivative:
          type: "boolean"
          description: "The holding is in the derivative table: options, units, warrants."
          examples:
            - false
        direct_or_indirect:
          type:
            - "string"
            - "null"
          pattern: "^[DI]$"
          description: "D when the holding is direct, I when indirect."
          examples:
            - "D"
        nature_of_ownership:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "For an indirect holding, the vehicle, such as a trust."
          examples:
            - "By Trust"
        footnotes:
          type: "array"
          maxItems: 50
          description: "The footnotes of the holding with their text."
          items:
            $ref: "#/components/schemas/InsiderFootnote"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the holding's filing on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
        as_of_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The date the holding is stated as of."
          examples:
            - "2026-09-21"
        holding_type:
          type: "string"
          enum:
            - "common"
            - "derivative"
          description: "Common shares or a derivative."
          examples:
            - "common"
        shares_owned:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares or units held."
          examples:
            - 25200
        conversion_or_exercise_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Derivative holdings: the conversion or exercise price."
          examples:
            - null
        exercise_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Derivative holdings: first day it can be exercised."
          examples:
            - "2027-03-01"
        expiration_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Derivative holdings: the expiration date."
          examples:
            - "2036-03-01"
        underlying_security_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Derivative holdings: the underlying security."
          examples:
            - "Common Stock"
        underlying_security_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Derivative holdings: underlying shares."
          examples:
            - null
      examples:
        - ticker: "NVDA"
          issuer: "NVIDIA CORP"
          name: "Teter Timothy S."
          title: "EVP, General Counsel"
          is_board_director: false
          is_officer: true
          is_ten_percent_owner: false
          form_type: "3"
          filing_date: "2026-09-23"
          accession_number: "0001696841-26-000014"
          security_title: "Common Stock"
          issuer_cik: 1045810
          owner_cik: 1696841
          reporting_owners:
            - cik: 1696841
              name: "Teter Timothy S."
              title: "EVP, General Counsel"
              is_board_director: false
              is_officer: true
              is_ten_percent_owner: false
              is_other: false
          is_derivative: false
          direct_or_indirect: "D"
          nature_of_ownership: null
          footnotes:
            - id: "F1"
              text: "Sold under a Rule 10b5-1 trading plan."
          filing_url: "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
          as_of_date: "2026-09-21"
          holding_type: "common"
          shares_owned: 25200
          conversion_or_exercise_price: null
          exercise_date: null
          expiration_date: null
          underlying_security_title: null
          underlying_security_shares: null
    InsiderTradesResponse:
      type: "object"
      description: "The answer of GET /insider-trades."
      additionalProperties: false
      required:
        - "insider_trades"
      properties:
        insider_trades:
          type: "array"
          maxItems: 100
          description: "This page of trades, newest filing first."
          items:
            $ref: "#/components/schemas/InsiderTrade"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of trades; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/insider-trades?cursor=eyJjaWsiOjF9"
      examples:
        - insider_trades:
            - ticker: "NVDA"
              issuer: "NVIDIA CORP"
              name: "Teter Timothy S."
              title: "EVP, General Counsel"
              is_board_director: false
              is_officer: true
              is_ten_percent_owner: false
              form_type: "4"
              filing_date: "2026-09-23"
              accession_number: "0001696841-26-000014"
              security_title: "Common Stock"
              issuer_cik: 1045810
              owner_cik: 1696841
              reporting_owners:
                - cik: 1696841
                  name: "Teter Timothy S."
                  title: "EVP, General Counsel"
                  is_board_director: false
                  is_officer: true
                  is_ten_percent_owner: false
                  is_other: false
              is_derivative: false
              direct_or_indirect: "D"
              nature_of_ownership: null
              footnotes:
                - id: "F1"
                  text: "Sold under a Rule 10b5-1 trading plan."
              filing_url: "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
              report_period: "2026-09-21"
              transaction_date: "2026-09-21"
              transaction_code: "S"
              transaction_type: "Sale"
              transaction_shares: 2398
              transaction_price_per_share: 222.1
              transaction_value: 532595.8
              shares_owned_before_transaction: 27598
              shares_owned_after_transaction: 25200
              acquired_or_disposed: "D"
              is_10b5_1_plan: true
              underlying_security_title: null
              underlying_security_shares: null
              conversion_or_exercise_price: null
    InsiderOwnershipResponse:
      type: "object"
      description: "The answer of GET /insider-ownership."
      additionalProperties: false
      required:
        - "insider_ownership"
      properties:
        insider_ownership:
          type: "array"
          maxItems: 100
          description: "This page of holdings, newest filing first."
          items:
            $ref: "#/components/schemas/InsiderHolding"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of holdings; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/insider-ownership?cursor=eyJjaWsiOjF9"
      examples:
        - insider_ownership:
            - ticker: "NVDA"
              issuer: "NVIDIA CORP"
              name: "Teter Timothy S."
              title: "EVP, General Counsel"
              is_board_director: false
              is_officer: true
              is_ten_percent_owner: false
              form_type: "3"
              filing_date: "2026-09-23"
              accession_number: "0001696841-26-000014"
              security_title: "Common Stock"
              issuer_cik: 1045810
              owner_cik: 1696841
              reporting_owners:
                - cik: 1696841
                  name: "Teter Timothy S."
                  title: "EVP, General Counsel"
                  is_board_director: false
                  is_officer: true
                  is_ten_percent_owner: false
                  is_other: false
              is_derivative: false
              direct_or_indirect: "D"
              nature_of_ownership: null
              footnotes:
                - id: "F1"
                  text: "Sold under a Rule 10b5-1 trading plan."
              filing_url: "https://www.sec.gov/Archives/edgar/data/1045810/000169684126000014/0001696841-26-000014-index.htm"
              as_of_date: "2026-09-21"
              holding_type: "common"
              shares_owned: 25200
              conversion_or_exercise_price: null
              exercise_date: null
              expiration_date: null
              underlying_security_title: null
              underlying_security_shares: null
    SaleNoticeClass:
      type: "object"
      description: "A class of stock a Form 144 seller may sell."
      additionalProperties: false
      required:
        - "shares_to_sell"
        - "market_value"
        - "shares_outstanding"
      properties:
        security_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The class to sell, as filed."
          examples:
            - "Common"
        shares_to_sell:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares the seller may sell."
          examples:
            - 21281
        market_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The market value of those shares, as the seller states it."
          examples:
            - 137644.95
        shares_outstanding:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The company's shares outstanding, as the seller states them."
          examples:
            - 147079792
        approximate_sale_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The approximate day of the sale."
          examples:
            - "2026-11-23"
        exchange:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The exchange the shares are to be sold on."
          examples:
            - "NYSE"
        broker:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The broker or market maker handling the sale."
          examples:
            - "Morgan Stanley Smith Barney LLC"
      examples:
        - security_title: "Common"
          shares_to_sell: 21281
          market_value: 137644.95
          shares_outstanding: 147079792
          approximate_sale_date: "2026-11-23"
          exchange: "NYSE"
          broker: "Morgan Stanley Smith Barney LLC"
    SaleNoticeAcquisition:
      type: "object"
      description: "How and when a Form 144 seller got the shares to sell."
      additionalProperties: false
      required:
        - "is_gift"
        - "shares"
      properties:
        security_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The class acquired, as filed."
          examples:
            - "Common"
        acquired_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day the seller acquired the shares."
          examples:
            - "2026-11-20"
        nature_of_acquisition:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "How the shares were acquired, as filed."
          examples:
            - "Release of restricted stock units"
        acquired_from:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Who the seller acquired the shares from."
          examples:
            - "Issuer"
        is_gift:
          type: "boolean"
          description: "The seller received the shares as a gift."
          examples:
            - false
        donor_acquired_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "For a gift, the day the donor acquired the shares."
          examples:
            - "2019-05-01"
        shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares acquired."
          examples:
            - 46875
        payment_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day the seller paid for the shares."
          examples:
            - "2026-11-20"
        nature_of_payment:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "How the seller paid, as filed."
          examples:
            - "Compensation"
      examples:
        - security_title: "Common"
          acquired_date: "2026-11-20"
          nature_of_acquisition: "Release of restricted stock units"
          acquired_from: "Issuer"
          is_gift: false
          donor_acquired_date: null
          shares: 46875
          payment_date: "2026-11-20"
          nature_of_payment: "Compensation"
    SaleNoticePastSale:
      type: "object"
      description: "A sale of the company's stock by the seller in the three months before the notice."
      additionalProperties: false
      required:
        - "shares"
        - "gross_proceeds"
      properties:
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Who sold, as filed: the seller, a trust or another account."
          examples:
            - "Thomas M. Stepien"
        security_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The class sold, as filed."
          examples:
            - "Common Stock"
        sale_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day of that sale."
          examples:
            - "2026-11-24"
        shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares sold in that sale."
          examples:
            - 5118
        gross_proceeds:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Gross proceeds of that sale in dollars."
          examples:
            - 31475.7
      examples:
        - name: "Thomas M. Stepien"
          security_title: "Common Stock"
          sale_date: "2026-11-24"
          shares: 5118
          gross_proceeds: 31475.7
    SaleNotice:
      type: "object"
      description: "One Form 144 notice of a planned insider sale."
      additionalProperties: false
      required:
        - "issuer"
        - "relationships"
        - "form_type"
        - "filing_date"
        - "accession_number"
        - "securities"
        - "acquisitions"
        - "sales_past_3_months"
        - "nothing_sold_past_3_months"
        - "plan_adoption_dates"
        - "filing_url"
        - "issuer_cik"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The requested ticker, else the issuer's current one."
          examples:
            - "AMPX"
        issuer:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The company whose stock is to be sold, as filed."
          examples:
            - "AMPRIUS TECHNOLOGIES INC"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The seller, as filed."
          examples:
            - "THOMAS M STEPIEN"
        relationships:
          type: "array"
          maxItems: 20
          description: "The seller's relationships to the company, as filed."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "OFFICER"
              - "DIRECTOR"
        form_type:
          type: "string"
          enum:
            - "144"
            - "144/A"
          description: "144 for a notice, 144/A for a corrected one."
          examples:
            - "144"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received the notice."
          examples:
            - "2026-11-24"
        notice_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day the seller signed the notice."
          examples:
            - "2026-11-24"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "SEC's identifier of the notice."
          examples:
            - "0002067233-26-000022"
        replaces_accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "On a 144/A, the notice it replaces; null on a first notice."
          examples:
            - "0000921895-26-003017"
        securities:
          type: "array"
          maxItems: 20
          description: "One entry per class of stock to sell."
          items:
            $ref: "#/components/schemas/SaleNoticeClass"
        acquisitions:
          type: "array"
          maxItems: 100
          description: "How the seller got the shares to sell."
          items:
            $ref: "#/components/schemas/SaleNoticeAcquisition"
        sales_past_3_months:
          type: "array"
          maxItems: 500
          description: "The seller's sales in the three months before; empty when there were none."
          items:
            $ref: "#/components/schemas/SaleNoticePastSale"
        nothing_sold_past_3_months:
          type: "boolean"
          description: "True when the seller checked the Form 144 certification that nothing was sold in the past three months."
          examples:
            - false
        plan_adoption_dates:
          type: "array"
          maxItems: 20
          description: "Days the seller adopted the Rule 10b5-1 plans the sale falls under."
          items:
            type: "string"
            format: "date"
            maxLength: 10
          examples:
            - - "2025-08-12"
        remarks:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20000
          description: "The seller's free text; a 144/A often says what changed."
          examples:
            - "Shares to be sold to cover withholding taxes."
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The notice's index page on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/1899287/000206723326000022/0002067233-26-000022-index.htm"
        issuer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded CIK of the company whose stock is to be sold."
          examples:
            - "0001899287"
        seller_cik:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded CIK of the seller as notice filer."
          examples:
            - "0002067233"
      examples:
        - ticker: "AMPX"
          issuer: "AMPRIUS TECHNOLOGIES INC"
          name: "THOMAS M STEPIEN"
          relationships:
            - "OFFICER"
            - "DIRECTOR"
          form_type: "144"
          filing_date: "2026-11-24"
          notice_date: "2026-11-24"
          accession_number: "0002067233-26-000022"
          replaces_accession_number: null
          securities:
            - security_title: "Common"
              shares_to_sell: 21281
              market_value: 137644.95
              shares_outstanding: 147079792
              approximate_sale_date: "2026-11-23"
              exchange: "NYSE"
              broker: "Morgan Stanley Smith Barney LLC"
          acquisitions:
            - security_title: "Common"
              acquired_date: "2026-11-20"
              nature_of_acquisition: "Release of restricted stock units"
              acquired_from: "Issuer"
              is_gift: false
              donor_acquired_date: null
              shares: 46875
              payment_date: "2026-11-20"
              nature_of_payment: "Compensation"
          sales_past_3_months:
            - name: "Thomas M. Stepien"
              security_title: "Common Stock"
              sale_date: "2026-11-24"
              shares: 5118
              gross_proceeds: 31475.7
          nothing_sold_past_3_months: false
          plan_adoption_dates: []
          remarks: "SHARES TO BE SOLD TO COVER WITHHOLDING TAXES UPON VESTING OF RESTRICTED STOCK UNIT AWARDS"
          filing_url: "https://www.sec.gov/Archives/edgar/data/1899287/000206723326000022/0002067233-26-000022-index.htm"
          issuer_cik: "0001899287"
          seller_cik: "0002067233"
    SaleNoticesResponse:
      type: "object"
      description: "The answer of GET /insider-trades/sale-notices."
      additionalProperties: false
      required:
        - "sale_notices"
      properties:
        sale_notices:
          type: "array"
          maxItems: 100
          description: "This page of notices, newest filing first."
          items:
            $ref: "#/components/schemas/SaleNotice"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of notices; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/insider-trades/sale-notices?cursor=eyJjaWsiOm51bGx9"
      examples:
        - sale_notices:
            - ticker: "AMPX"
              issuer: "AMPRIUS TECHNOLOGIES INC"
              name: "THOMAS M STEPIEN"
              relationships:
                - "OFFICER"
                - "DIRECTOR"
              form_type: "144"
              filing_date: "2026-11-24"
              notice_date: "2026-11-24"
              accession_number: "0002067233-26-000022"
              replaces_accession_number: null
              securities:
                - security_title: "Common"
                  shares_to_sell: 21281
                  market_value: 137644.95
                  shares_outstanding: 147079792
                  approximate_sale_date: "2026-11-23"
                  exchange: "NYSE"
                  broker: "Morgan Stanley Smith Barney LLC"
              acquisitions:
                - security_title: "Common"
                  acquired_date: "2026-11-20"
                  nature_of_acquisition: "Release of restricted stock units"
                  acquired_from: "Issuer"
                  is_gift: false
                  donor_acquired_date: null
                  shares: 46875
                  payment_date: "2026-11-20"
                  nature_of_payment: "Compensation"
              sales_past_3_months:
                - name: "Thomas M. Stepien"
                  security_title: "Common Stock"
                  sale_date: "2026-11-24"
                  shares: 5118
                  gross_proceeds: 31475.7
              nothing_sold_past_3_months: false
              plan_adoption_dates: []
              remarks: "SHARES TO BE SOLD TO COVER WITHHOLDING TAXES UPON VESTING OF RESTRICTED STOCK UNIT AWARDS"
              filing_url: "https://www.sec.gov/Archives/edgar/data/1899287/000206723326000022/0002067233-26-000022-index.htm"
              issuer_cik: "0001899287"
              seller_cik: "0002067233"
    InstitutionalHoldingPart:
      type: "object"
      description: "One information table row inside a summed position."
      additionalProperties: false
      required:
        - "row_num"
        - "other_managers"
      properties:
        row_num:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "The row's place in the information table, from 0."
          examples:
            - 0
        shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares or principal amount on this row."
          examples:
            - 1056
        value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "This row's value in dollars."
          examples:
            - 13475
        shares_principal_amount_type:
          type:
            - "string"
            - "null"
          pattern: "^(SH|PRN)$"
          description: "SH for shares, PRN for principal amount."
          examples:
            - "SH"
        investment_discretion:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]{1,10}$"
          description: "SOLE, DFND or OTR."
          examples:
            - "DFND"
        voting_authority_sole:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares this row's manager votes alone."
          examples:
            - 83
        voting_authority_shared:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares voted with others."
          examples:
            - 0
        voting_authority_none:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares with no voting authority."
          examples:
            - 973
        other_managers:
          type: "array"
          maxItems: 100
          description: "Sequence numbers of the other included managers on this row."
          items:
            type: "string"
            pattern: "^[0-9A-Za-z-]{1,10}$"
            maxLength: 10
          examples:
            - - "1"
      examples:
        - row_num: 0
          shares: 1056
          value_usd: 13475
          shares_principal_amount_type: "SH"
          investment_discretion: "DFND"
          voting_authority_sole: 83
          voting_authority_shared: 0
          voting_authority_none: 973
          other_managers:
            - "1"
    InstitutionalHolding:
      type: "object"
      description: "One security in one 13F report."
      additionalProperties: false
      required:
        - "name_of_issuer"
        - "report_period"
        - "filing_date"
        - "form_type"
        - "accession_number"
        - "filing_url"
        - "filer_cik"
        - "filer_name"
        - "cusip"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The security's ticker, by its CUSIP; null when unknown."
          examples:
            - "ABBV"
        name_of_issuer:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The issuer, as the report names it."
          examples:
            - "ABBVIE INC"
        report_period:
          type: "string"
          format: "date"
          description: "The quarter end the report covers."
          examples:
            - "2026-09-30"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received the report in force."
          examples:
            - "2026-11-16"
        form_type:
          type: "string"
          enum:
            - "13F-HR"
            - "13F-HR/A"
          description: "13F-HR, or 13F-HR/A when a restatement is in force."
          examples:
            - "13F-HR"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "SEC's identifier of the report in force."
          examples:
            - "0000936936-26-000004"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The report's index page on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/936936/000093693626000004/0000936936-26-000004-index.htm"
        title_of_class:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The class, as reported: COM, CL A, PUT."
          examples:
            - "COM"
        put_call:
          type:
            - "string"
            - "null"
          enum:
            - "Put"
            - "Call"
            - null
          description: "Put or Call for options; null for the security itself."
          examples:
            - null
        shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares or principal amount, summed over the rows."
          examples:
            - 15619
        shares_type:
          type:
            - "string"
            - "null"
          pattern: "^(SH|PRN)$"
          description: "SH for shares, PRN for principal amount; null when subsidiary parts mix types."
          examples:
            - "SH"
        value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Value in dollars; reports filed before 3 January 2023 were in thousands and are multiplied."
          examples:
            - 4086
        reported_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "value_usd over shares, for shares only. A price far below the market shows a filer that reported thousands."
          examples:
            - 0.2616
        table_value_total:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total 13F portfolio value in USD from the cover page; pre-2023-01-03 filings are scaled from thousands."
          examples:
            - 183241
        investment_discretion:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]{1,10}$"
          description: "SOLE, DFND or OTR; null when subsidiary parts differ."
          examples:
            - "DFND"
        voting_authority_sole:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares voted alone, summed across parts."
          examples:
            - 0
        voting_authority_shared:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares voted with others, summed across parts."
          examples:
            - 0
        voting_authority_none:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares with no voting authority, summed across parts."
          examples:
            - 15619
        filer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "The filer's CIK, ten zero-padded digits."
          examples:
            - "0000936936"
        filer_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The filer's name on the report."
          examples:
            - "DOHENY ASSET MANAGEMENT /CA"
        subsidiaries:
          type: "array"
          maxItems: 1000
          description: "The rows summed into this position, when there are several."
          items:
            $ref: "#/components/schemas/InstitutionalHoldingPart"
        cusip:
          type: "string"
          pattern: "^[0-9A-Z]{9}$"
          description: "The security's CUSIP, as reported."
          examples:
            - "00287Y109"
        figi:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9]{12}$"
          description: "The FIGI of the CUSIP, if it has one."
          examples:
            - "BBG000MDCQC2"
      examples:
        - ticker: "ABBV"
          name_of_issuer: "ABBVIE INC"
          report_period: "2026-09-30"
          filing_date: "2026-11-16"
          form_type: "13F-HR"
          accession_number: "0000936936-26-000004"
          filing_url: "https://www.sec.gov/Archives/edgar/data/936936/000093693626000004/0000936936-26-000004-index.htm"
          title_of_class: "COM"
          put_call: null
          shares: 15619
          shares_type: "SH"
          value_usd: 4086
          reported_price: 0.2616
          table_value_total: 183241
          investment_discretion: "DFND"
          voting_authority_sole: 0
          voting_authority_shared: 0
          voting_authority_none: 15619
          filer_cik: "0000936936"
          filer_name: "DOHENY ASSET MANAGEMENT /CA"
          cusip: "00287Y109"
          figi: "BBG0025Y4RY4"
    InstitutionalHoldingsResponse:
      type: "object"
      description: "The answer of GET /institutional-holdings."
      additionalProperties: false
      required:
        - "institutional_holdings"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker searched, in ticker searches."
          examples:
            - "AAPL"
        filer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "The filer searched, in filer searches."
          examples:
            - "0000936936"
        filer_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The filer's name on its newest report, in filer searches."
          examples:
            - "DOHENY ASSET MANAGEMENT /CA"
        table_value_total:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total 13F portfolio value in USD on the filer's newest report, in filer searches."
          examples:
            - 183241
        institutional_holdings:
          type: "array"
          maxItems: 100
          description: "This page of positions, largest value first."
          items:
            $ref: "#/components/schemas/InstitutionalHolding"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of positions; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/institutional-holdings?cursor=eyJmaWxlckNpayI6MX0"
      examples:
        - ticker: "AAPL"
          institutional_holdings:
            - ticker: "ABBV"
              name_of_issuer: "ABBVIE INC"
              report_period: "2026-09-30"
              filing_date: "2026-11-16"
              form_type: "13F-HR"
              accession_number: "0000936936-26-000004"
              filing_url: "https://www.sec.gov/Archives/edgar/data/936936/000093693626000004/0000936936-26-000004-index.htm"
              title_of_class: "COM"
              put_call: null
              shares: 15619
              shares_type: "SH"
              value_usd: 4086
              reported_price: 0.2616
              table_value_total: 183241
              investment_discretion: "DFND"
              voting_authority_sole: 0
              voting_authority_shared: 0
              voting_authority_none: 15619
              filer_cik: "0000936936"
              filer_name: "DOHENY ASSET MANAGEMENT /CA"
              cusip: "00287Y109"
              figi: "BBG0025Y4RY4"
    InstitutionalInvestorsResponse:
      type: "object"
      description: "The answer of GET /institutional-holdings/investors."
      additionalProperties: false
      required:
        - "resource"
        - "investors"
      properties:
        resource:
          type: "string"
          enum:
            - "investors"
          description: "Always investors."
          examples:
            - "investors"
        investors:
          type: "array"
          maxItems: 100
          description: "Matching filers, by name."
          items:
            type: "object"
            additionalProperties: false
            required:
              - "cik"
              - "name"
            description: "A 13F filer."
            properties:
              cik:
                type: "string"
                pattern: "^[0-9]{10}$"
                description: "The filer's CIK, ten digits."
                examples:
                  - "0001067983"
              name:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 300
                description: "The filer's name on its newest report."
                examples:
                  - "BERKSHIRE HATHAWAY INC"
      examples:
        - resource: "investors"
          investors:
            - cik: "0001067983"
              name: "BERKSHIRE HATHAWAY INC"
    InstitutionalTickersResponse:
      type: "object"
      description: "The answer of GET /institutional-holdings/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "tickers"
          description: "Always tickers."
          examples:
            - "tickers"
        tickers:
          type: "array"
          maxItems: 50000
          description: "Tickers held in recent 13F reports, sorted."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            maxLength: 12
      examples:
        - resource: "tickers"
          tickers:
            - "AAPL"
            - "MSFT"
    BeneficialOwner:
      type: "object"
      description: "One reporting person of one Schedule 13D or 13G."
      additionalProperties: false
      required:
        - "issuer_name"
        - "issuer_cik"
        - "filer_cik"
        - "reporting_person_name"
        - "form_type"
        - "type"
        - "is_amendment"
        - "filing_date"
        - "accession_number"
        - "is_latest"
        - "filing_url"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The subject company's ticker; null when it has none."
          examples:
            - "VANI"
        issuer_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The subject company, as the schedule names it."
          examples:
            - "Vivani Medical, Inc."
        issuer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          description: "The subject company's CIK, ten digits."
          examples:
            - "0001266806"
        issuer_cusip:
          type:
            - "string"
            - "null"
          pattern: "^[0-9A-Z]{6,12}$"
          description: "The CUSIP of the class, as filed."
          examples:
            - "92854B109"
        security_class_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The class the stake is measured against."
          examples:
            - "Common Stock"
        filer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          description: "The filer's CIK; all rows of one filing share it."
          examples:
            - "0001624919"
        reporting_person_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The reporting person of this row of the cover page."
          examples:
            - "Williams Gregg"
        reporting_person_cik:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}$"
          description: "The reporting person's CIK, when the cover page gives one."
          examples:
            - "0001624919"
        type_of_reporting_person:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Cover page type codes: IN, CO, PN, IA, HC and others."
          examples:
            - "IN"
        citizenship_or_place_of_organization:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Citizenship or place of organization, as coded."
          examples:
            - "MI"
        form_type:
          type: "string"
          enum:
            - "SCHEDULE 13D"
            - "SCHEDULE 13D/A"
            - "SCHEDULE 13G"
            - "SCHEDULE 13G/A"
          description: "The schedule as SEC names it."
          examples:
            - "SCHEDULE 13D/A"
        type:
          type: "string"
          enum:
            - "activist"
            - "passive"
          description: "activist for a 13D, passive for a 13G."
          examples:
            - "activist"
        is_amendment:
          type: "boolean"
          description: "The filing amends an earlier one."
          examples:
            - true
        amendment_number:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000
          description: "The amendment number the filing states."
          examples:
            - 12
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received the schedule."
          examples:
            - "2026-11-24"
        event_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The event that required the filing."
          examples:
            - "2026-11-23"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "SEC's identifier of the schedule."
          examples:
            - "0001753926-26-002236"
        sole_voting_power:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares this person votes alone."
          examples:
            - 49098820
        shared_voting_power:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares this person votes with others."
          examples:
            - 0
        sole_dispositive_power:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares this person may sell alone."
          examples:
            - 49098820
        shared_dispositive_power:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares this person may sell with others."
          examples:
            - 0
        aggregate_amount_beneficially_owned:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Every share this person beneficially owns."
          examples:
            - 49098820
        percent_of_class:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The stake as a percent of the class."
          examples:
            - 50.4
        purpose_of_transaction:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100000
          description: "Item 4 of a 13D: the purpose; null on a 13G."
          examples:
            - "For investment."
        rule_filed_under:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The rule a 13G is filed under; null on a 13D."
          examples:
            - "Rule 13d-1(c)"
        is_latest:
          type: "boolean"
          description: "This filing is the stake's newest."
          examples:
            - true
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The schedule's index page on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/1266806/000175392626002236/0001753926-26-002236-index.htm"
      examples:
        - ticker: "VANI"
          issuer_name: "Vivani Medical, Inc."
          issuer_cik: "0001266806"
          issuer_cusip: "92854B109"
          security_class_title: "Common Stock, no par value"
          filer_cik: "0001624919"
          reporting_person_name: "Williams Gregg"
          reporting_person_cik: "0001624919"
          type_of_reporting_person: "IN"
          citizenship_or_place_of_organization: "X1"
          form_type: "SCHEDULE 13D/A"
          type: "activist"
          is_amendment: true
          amendment_number: 12
          filing_date: "2026-11-24"
          event_date: "2026-11-23"
          accession_number: "0001753926-26-002236"
          sole_voting_power: 49098820
          shared_voting_power: 0
          sole_dispositive_power: 49098820
          shared_dispositive_power: 0
          aggregate_amount_beneficially_owned: 49098820
          percent_of_class: 50.4
          purpose_of_transaction: "The Reporting Persons acquired the shares for investment purposes."
          rule_filed_under: null
          is_latest: true
          filing_url: "https://www.sec.gov/Archives/edgar/data/1266806/000175392626002236/0001753926-26-002236-index.htm"
    BeneficialOwnersResponse:
      type: "object"
      description: "The answer of GET /beneficial-ownership."
      additionalProperties: false
      required:
        - "beneficial_owners"
      properties:
        beneficial_owners:
          type: "array"
          maxItems: 100
          description: "This page of reporting persons, newest filing first."
          items:
            $ref: "#/components/schemas/BeneficialOwner"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of owners; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/beneficial-ownership?cursor=eyJpc3N1ZXJDaWsiOjF9"
      examples:
        - beneficial_owners:
            - ticker: "VANI"
              issuer_name: "Vivani Medical, Inc."
              issuer_cik: "0001266806"
              issuer_cusip: "92854B109"
              security_class_title: "Common Stock, no par value"
              filer_cik: "0001624919"
              reporting_person_name: "Williams Gregg"
              reporting_person_cik: "0001624919"
              type_of_reporting_person: "IN"
              citizenship_or_place_of_organization: "X1"
              form_type: "SCHEDULE 13D/A"
              type: "activist"
              is_amendment: true
              amendment_number: 12
              filing_date: "2026-11-24"
              event_date: "2026-11-23"
              accession_number: "0001753926-26-002236"
              sole_voting_power: 49098820
              shared_voting_power: 0
              sole_dispositive_power: 49098820
              shared_dispositive_power: 0
              aggregate_amount_beneficially_owned: 49098820
              percent_of_class: 50.4
              purpose_of_transaction: "The Reporting Persons acquired the shares for investment purposes."
              rule_filed_under: null
              is_latest: true
              filing_url: "https://www.sec.gov/Archives/edgar/data/1266806/000175392626002236/0001753926-26-002236-index.htm"
    ActivistOwnersResponse:
      type: "object"
      description: "The answer of GET /activist-ownership."
      additionalProperties: false
      required:
        - "activist_owners"
      properties:
        activist_owners:
          type: "array"
          maxItems: 100
          description: "This page of activist reporting persons, newest filing first."
          items:
            $ref: "#/components/schemas/BeneficialOwner"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of activists; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/activist-ownership?cursor=eyJpc3N1ZXJDaWsiOjF9"
      examples:
        - activist_owners:
            - ticker: "VANI"
              issuer_name: "Vivani Medical, Inc."
              issuer_cik: "0001266806"
              issuer_cusip: "92854B109"
              security_class_title: "Common Stock, no par value"
              filer_cik: "0001624919"
              reporting_person_name: "Williams Gregg"
              reporting_person_cik: "0001624919"
              type_of_reporting_person: "IN"
              citizenship_or_place_of_organization: "X1"
              form_type: "SCHEDULE 13D/A"
              type: "activist"
              is_amendment: true
              amendment_number: 12
              filing_date: "2026-11-24"
              event_date: "2026-11-23"
              accession_number: "0001753926-26-002236"
              sole_voting_power: 49098820
              shared_voting_power: 0
              sole_dispositive_power: 49098820
              shared_dispositive_power: 0
              aggregate_amount_beneficially_owned: 49098820
              percent_of_class: 50.4
              purpose_of_transaction: "The Reporting Persons acquired the shares for investment purposes."
              rule_filed_under: null
              is_latest: true
              filing_url: "https://www.sec.gov/Archives/edgar/data/1266806/000175392626002236/0001753926-26-002236-index.htm"
    IndexFundHolding:
      type: "object"
      description: "One holding of a fund's N-PORT report."
      additionalProperties: false
      required:
        - "name"
        - "asset_class"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The holding's US ticker; null for securities without one."
          examples:
            - "NVDA"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The issuer, as the fund reports it."
          examples:
            - "NVIDIA Corp"
        weight:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The holding as a percent of the fund's net assets."
          examples:
            - 7.51423724736
        market_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The holding's value in dollars."
          examples:
            - 125580304518.46
        shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares, units or principal amount held."
          examples:
            - 627619094
        asset_class:
          type:
            - "string"
            - "null"
          enum:
            - "equity"
            - "bond"
            - "other"
            - null
          description: "equity, bond or other, from the reported asset category."
          examples:
            - "equity"
        title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The security's title, as reported."
          examples:
            - "NVIDIA CORP"
        cusip:
          type:
            - "string"
            - "null"
          pattern: "^[0-9A-Z]{9}$"
          description: "The CUSIP, as reported."
          examples:
            - "67066G104"
        isin:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]{2}[0-9A-Z]{10}$"
          description: "The ISIN, as reported."
          examples:
            - "US67066G1040"
        units:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "NS for shares, PA for principal, NC for contracts, OU for other units."
          examples:
            - "NS"
        currency:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The currency the holding is denominated in."
          examples:
            - "USD"
        country:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The country of investment."
          examples:
            - "US"
      examples:
        - ticker: "NVDA"
          name: "NVIDIA Corp"
          weight: 7.51423724736
          market_value: 125580304518.46
          shares: 627619094
          asset_class: "equity"
          title: "NVIDIA CORP"
          cusip: "67066G104"
          isin: "US67066G1040"
          units: "NS"
          currency: "USD"
          country: "US"
    IndexFund:
      type: "object"
      description: "The fund of a holdings answer."
      additionalProperties: false
      required:
        - "name"
        - "cik"
        - "as_of"
        - "filing_date"
        - "source"
        - "total_holdings"
        - "returned"
        - "offset"
      properties:
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The fund's series name."
          examples:
            - "VANGUARD 500 INDEX FUND"
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          description: "The registrant's CIK, ten digits."
          examples:
            - "0000036405"
        asset_class:
          type:
            - "string"
            - "null"
          enum:
            - "equity"
            - "bond"
            - "other"
            - null
          description: "The fund's main asset class by value."
          examples:
            - "equity"
        as_of:
          type: "string"
          format: "date"
          description: "The date the report states its holdings for."
          examples:
            - "2026-06-30"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received the report."
          examples:
            - "2026-08-28"
        source:
          type: "string"
          enum:
            - "SEC Form N-PORT"
          description: "Where the holdings come from."
          examples:
            - "SEC Form N-PORT"
        total_net_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The fund's net assets in dollars."
          examples:
            - 1671231561960.14
        total_holdings:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000000
          description: "The report's holdings, all pages."
          examples:
            - 520
        returned:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000000
          description: "Holdings on this page."
          examples:
            - 1
        offset:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000000
          description: "Holdings skipped before this page."
          examples:
            - 0
      examples:
        - name: "VANGUARD 500 INDEX FUND"
          cik: "0000036405"
          asset_class: "equity"
          as_of: "2026-06-30"
          filing_date: "2026-08-28"
          source: "SEC Form N-PORT"
          total_net_assets: 1671231561960.14
          total_holdings: 520
          returned: 1
          offset: 0
    IndexFundHolder:
      type: "object"
      description: "One fund holding the security asked for."
      additionalProperties: false
      required:
        - "series_id"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The fund's ticker; its shortest share class ticker."
          examples:
            - "VOO"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The holder fund's series name."
          examples:
            - "VANGUARD 500 INDEX FUND"
        cik:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}$"
          description: "The fund registrant's CIK."
          examples:
            - "0000036405"
        asset_class:
          type:
            - "string"
            - "null"
          enum:
            - "equity"
            - "bond"
            - "other"
            - null
          description: "The holder fund's main asset class by value."
          examples:
            - "equity"
        as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The date of the fund's newest report."
          examples:
            - "2026-06-30"
        filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day SEC received that report."
          examples:
            - "2026-08-28"
        weight:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The security as a percent of the fund's net assets."
          examples:
            - 6.9
        market_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The fund's position in dollars."
          examples:
            - 115000000000
        shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares or principal the fund holds."
          examples:
            - 410000000
        series_id:
          type: "string"
          pattern: "^S[0-9]{9}$"
          description: "SEC's id of the fund series."
          examples:
            - "S000002839"
      examples:
        - ticker: "VOO"
          name: "VANGUARD 500 INDEX FUND"
          cik: "0000036405"
          asset_class: "equity"
          as_of: "2026-06-30"
          filing_date: "2026-08-28"
          weight: 6.9
          market_value: 115000000000
          shares: 410000000
          series_id: "S000002839"
    IndexFundSecurity:
      type: "object"
      description: "The security of a holders answer."
      additionalProperties: false
      required:
        - "ticker"
        - "total_funds"
        - "returned"
        - "offset"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The security's ticker."
          examples:
            - "AAPL"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The security's name as a fund reports it."
          examples:
            - "Apple Inc."
        total_funds:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000000
          description: "Funds holding it in their newest report, all pages."
          examples:
            - 2056
        returned:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000000
          description: "Funds on this page."
          examples:
            - 1
        offset:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000000
          description: "Funds skipped before this page."
          examples:
            - 0
      examples:
        - ticker: "AAPL"
          name: "Apple Inc."
          total_funds: 2056
          returned: 1
          offset: 0
    IndexFundHoldings:
      type: "object"
      description: "The answer of GET /index-funds with ticker."
      additionalProperties: false
      required:
        - "ticker"
        - "fund"
        - "holdings"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The fund ticker asked for."
          examples:
            - "VOO"
        fund:
          $ref: "#/components/schemas/IndexFund"
        holdings:
          type: "array"
          maxItems: 100
          description: "This page of holdings, largest weight first."
          items:
            $ref: "#/components/schemas/IndexFundHolding"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of fund holdings; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/index-funds?cursor=eyJ0aWNrZXIiOiJWT08ifQ"
      examples:
        - ticker: "VOO"
          fund:
            name: "VANGUARD 500 INDEX FUND"
            cik: "0000036405"
            asset_class: "equity"
            as_of: "2026-06-30"
            filing_date: "2026-08-28"
            source: "SEC Form N-PORT"
            total_net_assets: 1671231561960.14
            total_holdings: 520
            returned: 1
            offset: 0
          holdings:
            - ticker: "NVDA"
              name: "NVIDIA Corp"
              weight: 7.51423724736
              market_value: 125580304518.46
              shares: 627619094
              asset_class: "equity"
              title: "NVIDIA CORP"
              cusip: "67066G104"
              isin: "US67066G1040"
              units: "NS"
              currency: "USD"
              country: "US"
    IndexFundHolders:
      type: "object"
      description: "The answer of GET /index-funds with holding."
      additionalProperties: false
      required:
        - "holding"
        - "security"
        - "funds"
      properties:
        holding:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The security ticker asked for."
          examples:
            - "AAPL"
        security:
          $ref: "#/components/schemas/IndexFundSecurity"
        funds:
          type: "array"
          maxItems: 100
          description: "This page of funds, largest weight first."
          items:
            $ref: "#/components/schemas/IndexFundHolder"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of funds; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/index-funds?cursor=eyJ0aWNrZXIiOiJWT08ifQ"
      examples:
        - holding: "AAPL"
          security:
            ticker: "AAPL"
            name: "Apple Inc."
            total_funds: 2056
            returned: 1
            offset: 0
          funds:
            - ticker: "VOO"
              name: "VANGUARD 500 INDEX FUND"
              cik: "0000036405"
              asset_class: "equity"
              as_of: "2026-06-30"
              filing_date: "2026-08-28"
              weight: 6.9
              market_value: 115000000000
              shares: 410000000
              series_id: "S000002839"
    IndexFundsResponse:
      description: "A fund's holdings, or the funds holding a security."
      oneOf:
        - $ref: "#/components/schemas/IndexFundHoldings"
        - $ref: "#/components/schemas/IndexFundHolders"
      examples:
        - ticker: "VOO"
          fund:
            name: "VANGUARD 500 INDEX FUND"
            cik: "0000036405"
            asset_class: "equity"
            as_of: "2026-06-30"
            filing_date: "2026-08-28"
            source: "SEC Form N-PORT"
            total_net_assets: 1671231561960.14
            total_holdings: 520
            returned: 1
            offset: 0
          holdings:
            - ticker: "NVDA"
              name: "NVIDIA Corp"
              weight: 7.51423724736
              market_value: 125580304518.46
              shares: 627619094
              asset_class: "equity"
              title: "NVIDIA CORP"
              cusip: "67066G104"
              isin: "US67066G1040"
              units: "NS"
              currency: "USD"
              country: "US"
    IndexFundTickersResponse:
      type: "object"
      description: "The answer of GET /index-funds/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "index_funds"
          description: "Always index_funds."
          examples:
            - "index_funds"
        tickers:
          type: "array"
          maxItems: 100000
          description: "Fund tickers with a recent report, sorted."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            maxLength: 12
      examples:
        - resource: "index_funds"
          tickers:
            - "VOO"
            - "VTI"
    Ipo:
      type: "object"
      description: "One registration statement or final prospectus, classified."
      additionalProperties: false
      required:
        - "accession_number"
        - "cik"
        - "form_type"
        - "filing_date"
        - "filing_url"
        - "classification"
        - "is_ipo_grade"
        - "has_financial_statements"
        - "has_price_on_cover"
        - "status"
      properties:
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "SEC's identifier of the registration filing."
          examples:
            - "0001628280-26-073693"
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          description: "The registering company's CIK, ten digits."
          examples:
            - "0002090000"
        form_type:
          type: "string"
          enum:
            - "S-1"
            - "S-1/A"
            - "F-1"
            - "F-1/A"
            - "424B4"
            - "424B1"
          description: "The form: a registration statement, its amendment or a final prospectus."
          examples:
            - "S-1/A"
        company_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The filer's name in its newest SEC profile."
          examples:
            - "The Wella Company"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC received the registration filing."
          examples:
            - "2026-11-20"
        accepted_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When SEC accepted the filing, in UTC."
          examples:
            - "2026-11-20T16:01:05Z"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The registration filing's index page on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/2090000/000162828026073693/0001628280-26-073693-index.htm"
        classification:
          type: "string"
          enum:
            - "ipo"
            - "shell_company"
            - "spac"
            - "resale"
            - "other"
          description: "ipo: an underwritten initial public offering with an exchange listing; spac: a blank check company; shell_company: a company that says it is a shell; resale: selling holders offer shares the company gets nothing from; other: follow-ons, direct offerings, trusts and the rest."
          examples:
            - "ipo"
        is_ipo_grade:
          type: "boolean"
          description: "The filing is a real operating company going public."
          examples:
            - true
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker the cover page proposes; null when it names none."
          examples:
            - "WELA"
        exchange:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The exchange the cover page names."
          examples:
            - "New York Stock Exchange"
        expected_offering_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The single price per share the cover states."
          examples:
            - null
        price_range_low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The low end of the price range the cover states."
          examples:
            - 14
        price_range_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The high end of the price range."
          examples:
            - 16
        has_financial_statements:
          type: "boolean"
          description: "The document holds financial statements."
          examples:
            - true
        has_price_on_cover:
          type: "boolean"
          description: "The cover states a price or a price range."
          examples:
            - true
        status:
          type: "string"
          enum:
            - "classified"
          description: "classified: cover facts read; financial statements follow in a later release."
          examples:
            - "classified"
      examples:
        - accession_number: "0001628280-26-073693"
          cik: "0002090000"
          form_type: "S-1/A"
          company_name: "The Wella Company"
          filing_date: "2026-11-20"
          accepted_datetime: "2026-11-20T16:01:05Z"
          filing_url: "https://www.sec.gov/Archives/edgar/data/2090000/000162828026073693/0001628280-26-073693-index.htm"
          classification: "ipo"
          is_ipo_grade: true
          ticker: "WELA"
          exchange: "New York Stock Exchange"
          expected_offering_price: null
          price_range_low: 14
          price_range_high: 16
          has_financial_statements: true
          has_price_on_cover: true
          status: "classified"
    IposResponse:
      type: "object"
      description: "The answer of GET /ipos."
      additionalProperties: false
      required:
        - "ipos"
      properties:
        ipos:
          type: "array"
          maxItems: 100
          description: "This page of filings, newest first."
          items:
            $ref: "#/components/schemas/Ipo"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of IPO filings; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/ipos?cursor=eyJ0aWNrZXIiOm51bGx9"
      examples:
        - ipos:
            - accession_number: "0001628280-26-073693"
              cik: "0002090000"
              form_type: "S-1/A"
              company_name: "The Wella Company"
              filing_date: "2026-11-20"
              accepted_datetime: "2026-11-20T16:01:05Z"
              filing_url: "https://www.sec.gov/Archives/edgar/data/2090000/000162828026073693/0001628280-26-073693-index.htm"
              classification: "ipo"
              is_ipo_grade: true
              ticker: "WELA"
              exchange: "New York Stock Exchange"
              expected_offering_price: null
              price_range_low: 14
              price_range_high: 16
              has_financial_statements: true
              has_price_on_cover: true
              status: "classified"
    CryptoPrice:
      type: "object"
      description: "One candle."
      additionalProperties: false
      required:
        - "open"
        - "close"
        - "high"
        - "low"
        - "volume"
        - "time"
        - "time_milliseconds"
      properties:
        open:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The first trade price of the candle."
          examples:
            - 96520.1
        close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The last trade price."
          examples:
            - 97811.4
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest trade price."
          examples:
            - 98240
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest trade price."
          examples:
            - 95910.2
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Traded amount in the base currency, or contracts where the venue counts them."
          examples:
            - 8312.47
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle's start, in UTC."
          examples:
            - "2026-11-24T00:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The candle's start in Unix milliseconds."
          examples:
            - 1795564800000
        quote_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Traded amount in the quote currency."
          examples:
            - 806155230.15
      examples:
        - open: 96520.1
          close: 97811.4
          high: 98240
          low: 95910.2
          volume: 8312.47
          time: "2026-11-24T00:00:00.000Z"
          time_milliseconds: 1795564800000
          quote_volume: 806155230.15
    CryptoFormulaLeg:
      type: "object"
      description: "One listed crypto instrument a formula reads."
      additionalProperties: false
      required:
        - "exchange"
        - "ticker"
        - "market_type"
      properties:
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
          description: "The leg's exchange."
          examples:
            - "okx"
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          description: "The leg's instrument id."
          examples:
            - "BTC-USDT-SWAP"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
          description: "The leg's market."
          examples:
            - "spot"
      examples:
        - exchange: "okx"
          ticker: "BTC-USDT-SWAP"
          market_type: "swap"
    CryptoPricesResponse:
      type: "object"
      description: "The answer of GET /crypto/prices."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "interval"
        - "interval_multiplier"
        - "prices"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9 ._:@/()\\[\\]*+^-]{1,512}$"
          maxLength: 512
          description: "The instrument id of these candles, or with exchange formula the canonical formula, such as 1 / [okx:BTC-USDT-SWAP]."
          examples:
            - "BTC-USDT"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
            - "formula"
          description: "The exchange of these candles, or formula."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
            - "synthetic"
          description: "The market of these candles; synthetic for a formula."
          examples:
            - "spot"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange contributing to these candles. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges feeding these candles when venues narrowed them, null when all are included. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        display_symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 512
          description: "With exchange formula: the name Darvas shows for the formula of these candles, such as USDTBTC or BTC/NVDA. Absent otherwise."
          examples:
            - "USDTBTC"
        legs:
          type: "array"
          maxItems: 10
          description: "With exchange formula: the listed crypto instruments the formula of these candles reads. Absent otherwise."
          items:
            $ref: "#/components/schemas/CryptoFormulaLeg"
        interval:
          type: "string"
          enum:
            - "minute"
            - "hour"
            - "day"
            - "week"
            - "month"
          description: "The interval of the candles."
          examples:
            - "day"
        interval_multiplier:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 30
          description: "Intervals per candle."
          examples:
            - 1
        prices:
          type: "array"
          maxItems: 500
          description: "This page of candles, oldest first."
          items:
            $ref: "#/components/schemas/CryptoPrice"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page before this one in time; absent on the first day asked for."
          examples:
            - "https://api.darvas.app/v1/crypto/prices?cursor=eyJleGNoYW5nZSI6Im9reCJ9"
      examples:
        - ticker: "BTC-USDT"
          exchange: "okx"
          market_type: "spot"
          interval: "day"
          interval_multiplier: 1
          prices:
            - open: 96520.1
              close: 97811.4
              high: 98240
              low: 95910.2
              volume: 8312.47
              time: "2026-11-24T00:00:00.000Z"
              time_milliseconds: 1795564800000
              quote_volume: 806155230.15
    CryptoSnapshot:
      type: "object"
      description: "The newest price of an instrument, a Darvas aggregated pair or a formula."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "price"
        - "time"
        - "time_milliseconds"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9 ._:@/()\\[\\]*+^-]{1,512}$"
          maxLength: 512
          description: "The instrument id of this snapshot, or with exchange formula the canonical formula, such as 1 / [okx:BTC-USDT-SWAP]."
          examples:
            - "BTC-USDT"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
            - "formula"
          description: "The exchange of this snapshot, or formula."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
            - "synthetic"
          description: "The market of this snapshot; synthetic for a formula."
          examples:
            - "spot"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange contributing to this snapshot. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges feeding this snapshot when venues narrowed them, null when all are included. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        display_symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 512
          description: "With exchange formula: the name Darvas shows for the formula of this snapshot, such as USDTBTC or BTC/NVDA. Absent otherwise."
          examples:
            - "USDTBTC"
        legs:
          type: "array"
          maxItems: 10
          description: "With exchange formula: the listed crypto instruments the formula of this snapshot reads. Absent otherwise."
          items:
            $ref: "#/components/schemas/CryptoFormulaLeg"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The close of the newest minute."
          examples:
            - 97811.4
        day_change:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price less the UTC day's open."
          examples:
            - 1291.3
        day_change_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "That change as a percent of the open."
          examples:
            - 1.3378
        open:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The UTC day's first price."
          examples:
            - 96520.1
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The UTC day's highest price so far."
          examples:
            - 98240
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The UTC day's lowest price so far."
          examples:
            - 95910.2
        close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The UTC day's candle's latest close."
          examples:
            - 97811.4
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The UTC day's traded amount so far, in the base currency or contracts where the venue counts them."
          examples:
            - 6120.35
        quote_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The UTC day's traded amount so far, in the quote currency."
          examples:
            - 593812440.2
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The newest minute's start, in UTC."
          examples:
            - "2026-11-25T17:30:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "That minute's start in Unix milliseconds."
          examples:
            - 1795671000000
      examples:
        - ticker: "BTC-USDT"
          exchange: "okx"
          market_type: "spot"
          price: 97811.4
          day_change: 1291.3
          day_change_percent: 1.3378
          open: 96520.1
          high: 98240
          low: 95910.2
          close: 97811.4
          volume: 6120.35
          quote_volume: 593812440.2
          time: "2026-11-25T17:30:00.000Z"
          time_milliseconds: 1795671000000
    CryptoSnapshotResponse:
      type: "object"
      description: "The answer of GET /crypto/prices/snapshot."
      additionalProperties: false
      required:
        - "snapshot"
      properties:
        snapshot:
          $ref: "#/components/schemas/CryptoSnapshot"
      examples:
        - snapshot:
            ticker: "BTC-USDT"
            exchange: "okx"
            market_type: "spot"
            price: 97811.4
            day_change: 1291.3
            day_change_percent: 1.3378
            open: 96520.1
            high: 98240
            low: 95910.2
            close: 97811.4
            volume: 6120.35
            quote_volume: 593812440.2
            time: "2026-11-25T17:30:00.000Z"
            time_milliseconds: 1795671000000
    CryptoInstrument:
      type: "object"
      description: "A crypto instrument Darvas stores, or the formula a query names."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "display_symbol"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9 ._:@/()\\[\\]*+^-]{1,512}$"
          maxLength: 512
          description: "The instrument id of this listed crypto instrument, or with exchange formula the canonical formula, such as 1 / [okx:BTC-USDT-SWAP]."
          examples:
            - "BTC-USDT"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
            - "formula"
          description: "The exchange of this listed crypto instrument, or formula."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
            - "synthetic"
          description: "The market of this listed crypto instrument; synthetic for a formula."
          examples:
            - "spot"
        display_symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 512
          description: "The name Darvas shows for it."
          examples:
            - "BTC/USDT"
        legs:
          type: "array"
          maxItems: 10
          description: "With exchange formula: the listed crypto instruments the formula reads. Absent otherwise."
          items:
            $ref: "#/components/schemas/CryptoFormulaLeg"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange contributing to this listed aggregated instrument. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        base:
          type: "string"
          pattern: "^[A-Za-z0-9]{1,20}$"
          maxLength: 20
          description: "Base asset symbol of this listed crypto instrument when known."
          examples:
            - "BTC"
        quote:
          type: "string"
          pattern: "^[A-Za-z0-9]{2,12}$"
          maxLength: 12
          description: "Quote currency symbol of this listed crypto instrument, or ALLUSD for aggregated dollar pairs."
          examples:
            - "USDT"
        tick_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum price increment of this listed crypto instrument when published by the catalog."
          examples:
            - 0.1
        lot_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum order quantity step of this listed crypto instrument when published by the catalog."
          examples:
            - 0.0001
        capabilities:
          type: "array"
          maxItems: 16
          description: "Stored market data feeds available for this listed crypto instrument."
          items:
            type: "string"
            pattern: "^[a-z0-9_]{1,32}$"
            maxLength: 32
          examples:
            - - "candles"
              - "trades"
              - "footprint"
      examples:
        - ticker: "BTC-USDT"
          exchange: "okx"
          market_type: "spot"
          display_symbol: "BTC/USDT"
          base: "BTC"
          quote: "USDT"
          tick_size: 0.1
          lot_size: 0.0001
          capabilities:
            - "candles"
            - "trades"
            - "footprint"
    CryptoTickersResponse:
      type: "object"
      description: "The answer of GET /crypto/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "crypto"
          description: "Always crypto."
          examples:
            - "crypto"
        tickers:
          type: "array"
          maxItems: 100000
          description: "Every instrument, by exchange and id."
          items:
            $ref: "#/components/schemas/CryptoInstrument"
      examples:
        - resource: "crypto"
          tickers:
            - ticker: "BTC-USDT"
              exchange: "okx"
              market_type: "spot"
              display_symbol: "BTC/USDT"
              base: "BTC"
              quote: "USDT"
              tick_size: 0.1
              lot_size: 0.0001
              capabilities:
                - "candles"
                - "trades"
                - "footprint"
    CryptoTrade:
      type: "object"
      description: "One trade."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "price"
        - "size"
        - "trade_id"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When the trade happened, in UTC."
          examples:
            - "2026-11-25T14:59:59.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The trade's time in Unix milliseconds."
          examples:
            - 1795618799000
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The trade price."
          examples:
            - 97000
        size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The traded amount in the base currency, or contracts where the venue counts them."
          examples:
            - 0.01
        notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The trade's value in US dollars: from OKX's contract value for an OKX swap, price times size for a market quoted in USD, USDT or USDC, null for any other quote."
          examples:
            - 970
        side:
          type:
            - "string"
            - "null"
          enum:
            - "buy"
            - "sell"
            - null
          description: "The taker's side."
          examples:
            - "buy"
        trade_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The exchange's trade id."
          examples:
            - "5000"
      examples:
        - time: "2026-11-25T14:59:59.000Z"
          time_milliseconds: 1795618799000
          price: 97000
          size: 0.01
          notional_usd: 970
          side: "buy"
          trade_id: "5000"
    CryptoTradesResponse:
      type: "object"
      description: "The answer of GET /crypto/trades."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "trades"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          description: "The instrument id of the trades."
          examples:
            - "BTC-USDT"
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange of the trades."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
          description: "The market of the trades."
          examples:
            - "spot"
        trades:
          type: "array"
          maxItems: 1000
          description: "This page of trades, newest first."
          items:
            $ref: "#/components/schemas/CryptoTrade"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older trades; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/crypto/trades?cursor=eyJleGNoYW5nZSI6Im9reCJ9"
      examples:
        - ticker: "BTC-USDT"
          exchange: "okx"
          market_type: "spot"
          trades:
            - time: "2026-11-25T14:59:59.000Z"
              time_milliseconds: 1795618799000
              price: 97000
              size: 0.01
              notional_usd: 970
              side: "buy"
              trade_id: "5000"
    CryptoOrderFlowBar:
      type: "object"
      description: "The order flow of one bar."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "buy_volume"
        - "sell_volume"
        - "delta"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The bar's start, in UTC."
          examples:
            - "2026-11-25T14:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The bar's start in Unix milliseconds."
          examples:
            - 1795615200000
        buy_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume bought by takers."
          examples:
            - 6
        sell_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume sold by takers."
          examples:
            - 7
        delta:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Buy volume less sell volume."
          examples:
            - -1
        buy_trades:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Trades bought by takers."
          examples:
            - 12
        sell_trades:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Trades sold by takers."
          examples:
            - 14
        min_delta:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest running delta within the bar."
          examples:
            - -1.5
        max_delta:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest running delta within the bar."
          examples:
            - 2.5
      examples:
        - time: "2026-11-25T14:00:00.000Z"
          time_milliseconds: 1795615200000
          buy_volume: 6
          sell_volume: 7
          delta: -1
          buy_trades: 12
          sell_trades: 14
          min_delta: -1.5
          max_delta: 2.5
    CryptoOrderFlowResponse:
      type: "object"
      description: "The answer of GET /crypto/order-flow."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "interval"
        - "interval_multiplier"
        - "order_flow"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          description: "The instrument id of the order flow."
          examples:
            - "BTC-USDT"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange of the order flow."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
          description: "The market of the order flow."
          examples:
            - "spot"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange contributing to these order flow bars. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges feeding these order flow bars when venues narrowed them, null when all are included. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        interval:
          type: "string"
          enum:
            - "minute"
            - "hour"
            - "day"
          description: "The interval of the order flow bars."
          examples:
            - "minute"
        interval_multiplier:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 30
          description: "Intervals per order flow bar."
          examples:
            - 5
        order_flow:
          type: "array"
          maxItems: 500
          description: "This page of bars, oldest first."
          items:
            $ref: "#/components/schemas/CryptoOrderFlowBar"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of earlier bars; absent on the first day asked for."
          examples:
            - "https://api.darvas.app/v1/crypto/order-flow?cursor=eyJleGNoYW5nZSI6Im9reCJ9"
      examples:
        - ticker: "BTC-USDT"
          exchange: "okx"
          market_type: "spot"
          interval: "minute"
          interval_multiplier: 5
          order_flow:
            - time: "2026-11-25T14:00:00.000Z"
              time_milliseconds: 1795615200000
              buy_volume: 6
              sell_volume: 7
              delta: -1
              buy_trades: 12
              sell_trades: 14
              min_delta: -1.5
              max_delta: 2.5
    CryptoFootprintCell:
      type: "object"
      description: "One price row of one bar."
      additionalProperties: false
      required:
        - "time_milliseconds"
        - "price"
        - "buy_volume"
        - "sell_volume"
        - "buy_trades"
        - "sell_trades"
      properties:
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The footprint cell's bar start in Unix milliseconds."
          examples:
            - 1795615200000
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row's low price; the row spans row_size above it."
          examples:
            - 97000
        buy_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume takers bought at the row's prices."
          examples:
            - 1.25
        sell_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume takers sold at the row's prices."
          examples:
            - 0.8
        buy_trades:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Trades takers bought at the row's prices."
          examples:
            - 14
        sell_trades:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Trades takers sold at the row's prices."
          examples:
            - 9
      examples:
        - time_milliseconds: 1795615200000
          price: 97000
          buy_volume: 1.25
          sell_volume: 0.8
          buy_trades: 14
          sell_trades: 9
    CryptoFootprintResponse:
      type: "object"
      description: "The answer of GET /crypto/footprint."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "bar"
        - "tick"
        - "row_ticks"
        - "row_size"
        - "as_of"
        - "limited"
        - "bars"
        - "cells"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          description: "The instrument id of the footprint."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange of the footprint."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
          description: "The market of the footprint."
          examples:
            - "spot"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange contributing to this footprint. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges feeding this footprint when venues narrowed them, null when all are included. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        bar:
          type: "string"
          enum:
            - "1m"
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "2H"
            - "4H"
            - "1D"
            - "1W"
          description: "The bar size."
          examples:
            - "15m"
        tick:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price tick rows count in: for darvas, the coarsest tick of the exchanges combined."
          examples:
            - 0.1
        row_ticks:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 1000000000
          description: "Ticks per row."
          examples:
            - 100
        row_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each row's height in price: row_ticks times tick."
          examples:
            - 10
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When Darvas read the footprint, in UTC."
          examples:
            - "2026-11-25T14:07:12.000Z"
        limited:
          type: "boolean"
          description: "Whether the cells reached the 60,000-cell cap, which keeps the newest whole bars."
          examples:
            - false
        bars:
          type: "array"
          maxItems: 500
          description: "The bars, oldest first; a bar without trades is absent."
          items:
            $ref: "#/components/schemas/CryptoOrderFlowBar"
        cells:
          type: "array"
          maxItems: 60000
          description: "Every bar's price rows, oldest bar and lowest row first; empty with cells=none."
          items:
            $ref: "#/components/schemas/CryptoFootprintCell"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "darvas"
          market_type: "swap"
          constituents:
            - "binance"
            - "bybit"
            - "okx"
          venues: null
          bar: "15m"
          tick: 0.1
          row_ticks: 100
          row_size: 10
          as_of: "2026-11-25T14:07:12.000Z"
          limited: false
          bars:
            - time: "2026-11-25T14:00:00.000Z"
              time_milliseconds: 1795615200000
              buy_volume: 6
              sell_volume: 7
              delta: -1
              buy_trades: 12
              sell_trades: 14
              min_delta: -1.5
              max_delta: 2.5
          cells:
            - time_milliseconds: 1795615200000
              price: 97000
              buy_volume: 1.25
              sell_volume: 0.8
              buy_trades: 14
              sell_trades: 9
    CryptoIndicators:
      type: "object"
      description: "Indicators of the newest candles, counted in candles of the frame asked for."
      additionalProperties: false
      required:
        - "latest_time"
        - "latest_close"
        - "bars_analyzed"
      properties:
        latest_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The newest candle's start, in UTC."
          examples:
            - "2026-11-25T12:00:00.000Z"
        latest_close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The newest candle's close."
          examples:
            - 97811.4
        bars_analyzed:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 500
          description: "Candles analyzed."
          examples:
            - 250
        sma_20:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period simple moving average over the analyzed crypto candles."
          examples:
            - 96910.25
        sma_50:
          type:
            - "number"
            - "null"
          format: "double"
          description: "50-period simple moving average over the analyzed crypto candles."
          examples:
            - 95120.8
        sma_200:
          type:
            - "number"
            - "null"
          format: "double"
          description: "200-period simple moving average over the analyzed crypto candles."
          examples:
            - 91044.5
        ema_12:
          type:
            - "number"
            - "null"
          format: "double"
          description: "12-period exponential moving average over the analyzed crypto candles."
          examples:
            - 97215.6
        ema_26:
          type:
            - "number"
            - "null"
          format: "double"
          description: "26-period exponential moving average over the analyzed crypto candles."
          examples:
            - 96480.1
        rsi_14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "14-period Wilder RSI (0 to 100) over the analyzed crypto candles."
          examples:
            - 61.42
        macd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "MACD line (EMA12 minus EMA26) over the analyzed crypto candles."
          examples:
            - 735.5
        macd_signal:
          type:
            - "number"
            - "null"
          format: "double"
          description: "9-period EMA signal line of MACD over the analyzed crypto candles."
          examples:
            - 612.3
        macd_histogram:
          type:
            - "number"
            - "null"
          format: "double"
          description: "MACD minus MACD signal over the analyzed crypto candles."
          examples:
            - 123.2
        bollinger_upper:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period +2 sigma upper Bollinger band over the analyzed crypto candles."
          examples:
            - 98940.1
        bollinger_middle:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period middle Bollinger SMA over the analyzed crypto candles."
          examples:
            - 96910.25
        bollinger_lower:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period -2 sigma lower Bollinger band over the analyzed crypto candles."
          examples:
            - 94880.4
        atr_14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "14-period Average True Range over the analyzed crypto candles."
          examples:
            - 812.6
        avg_volume_20:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Mean volume of the last 20 candles."
          examples:
            - 10422.8
        relative_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The newest candle's volume divided by that mean."
          examples:
            - 1.08
        period_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest price of the candles analyzed."
          examples:
            - 99120
        period_low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest price of the candles analyzed."
          examples:
            - 86010.5
        pct_from_period_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent distance of the close from that high."
          examples:
            - -1.32
        return_1_bar_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change of the close over 1 candle."
          examples:
            - 0.41
        return_5_bar_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change of the close over 5 candles."
          examples:
            - 1.85
        return_20_bar_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change of the close over 20 candles."
          examples:
            - 3.6
      examples:
        - latest_time: "2026-11-25T12:00:00.000Z"
          latest_close: 97811.4
          bars_analyzed: 250
          sma_20: 96910.25
          sma_50: 95120.8
          sma_200: 91044.5
          ema_12: 97215.6
          ema_26: 96480.1
          rsi_14: 61.42
          macd: 735.5
          macd_signal: 612.3
          macd_histogram: 123.2
          bollinger_upper: 98940.1
          bollinger_middle: 96910.25
          bollinger_lower: 94880.4
          atr_14: 812.6
          avg_volume_20: 10422.8
          relative_volume: 1.08
          period_high: 99120
          period_low: 86010.5
          pct_from_period_high: -1.32
          return_1_bar_pct: 0.41
          return_5_bar_pct: 1.85
          return_20_bar_pct: 3.6
    CryptoIndicatorsResponse:
      type: "object"
      description: "The answer of GET /crypto/indicators."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "interval"
        - "interval_multiplier"
        - "indicators"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9 ._:@/()\\[\\]*+^-]{1,512}$"
          maxLength: 512
          description: "The instrument id of the indicator candles, or with exchange formula the canonical formula, such as 1 / [okx:BTC-USDT-SWAP]."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
            - "formula"
          description: "The exchange of the indicator candles, or formula."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
            - "synthetic"
          description: "The market of the indicator candles; synthetic for a formula."
          examples:
            - "spot"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange contributing to these indicator values. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges feeding these indicator values when venues narrowed them, null when all are included. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        display_symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 512
          description: "With exchange formula: the name Darvas shows for the formula of the indicator candles, such as USDTBTC or BTC/NVDA. Absent otherwise."
          examples:
            - "USDTBTC"
        legs:
          type: "array"
          maxItems: 10
          description: "With exchange formula: the listed crypto instruments the formula of the indicator candles reads. Absent otherwise."
          items:
            $ref: "#/components/schemas/CryptoFormulaLeg"
        interval:
          type: "string"
          enum:
            - "minute"
            - "hour"
            - "day"
            - "week"
            - "month"
          description: "The candle interval analyzed for the indicators."
          examples:
            - "hour"
        interval_multiplier:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 30
          description: "Intervals combined into each analyzed indicator candle."
          examples:
            - 4
        indicators:
          $ref: "#/components/schemas/CryptoIndicators"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "darvas"
          market_type: "swap"
          constituents:
            - "binance"
            - "bybit"
            - "okx"
          venues: null
          interval: "hour"
          interval_multiplier: 4
          indicators:
            latest_time: "2026-11-25T12:00:00.000Z"
            latest_close: 97811.4
            bars_analyzed: 250
            sma_20: 96910.25
            sma_50: 95120.8
            sma_200: 91044.5
            ema_12: 97215.6
            ema_26: 96480.1
            rsi_14: 61.42
            macd: 735.5
            macd_signal: 612.3
            macd_histogram: 123.2
            bollinger_upper: 98940.1
            bollinger_middle: 96910.25
            bollinger_lower: 94880.4
            atr_14: 812.6
            avg_volume_20: 10422.8
            relative_volume: 1.08
            period_high: 99120
            period_low: 86010.5
            pct_from_period_high: -1.32
            return_1_bar_pct: 0.41
            return_5_bar_pct: 1.85
            return_20_bar_pct: 3.6
    IncomeStatement:
      type: "object"
      description: "One income statement under standardized field names; a field the filing does not report is null."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "form_type"
        - "filing_url"
        - "filing_date"
        - "filing_datetime"
        - "revenue"
        - "cost_of_revenue"
        - "gross_profit"
        - "operating_expense"
        - "selling_general_and_administrative_expenses"
        - "research_and_development"
        - "operating_income"
        - "interest_expense"
        - "ebit"
        - "income_tax_expense"
        - "net_income_discontinued_operations"
        - "net_income_non_controlling_interests"
        - "net_income"
        - "net_income_common_stock"
        - "preferred_dividends_impact"
        - "consolidated_income"
        - "earnings_per_share"
        - "earnings_per_share_diluted"
        - "dividends_per_common_share"
        - "weighted_average_shares"
        - "weighted_average_shares_diluted"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the income statement's company."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the income statement's period."
          examples:
            - "2025-12-27"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The income statement's fiscal year and quarter, such as 2026-Q1 or 2025-FY."
          examples:
            - "2026-Q1"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
          description: "Whether the income statement covers a fiscal year, a quarter or the twelve months to its end."
          examples:
            - "quarterly"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The ISO 4217 currency of the income statement."
          examples:
            - "USD"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing the income statement comes from; for ttm, the filing of its last quarter. Null for a UK or French report, which SEC does not hold."
          examples:
            - "0000320193-26-000006"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form the income statement comes from, such as 10-Q or 10-K/A; null for ttm. A fourth quarter carries the 10-K it is derived from. ESEF or UKSEF for a UK or French annual report."
          examples:
            - "10-Q"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page on sec.gov of the income statement's filing; for a UK or French report, its online viewer."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the income statement's filing, in Eastern Time; for a UK or French report, the day it was published."
          examples:
            - "2026-01-30"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When SEC accepted the income statement's filing, in Eastern Time with its offset; null for a UK or French report."
          examples:
            - "2026-01-30T06:01:32-05:00"
        revenue:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total revenue of the period."
          examples:
            - 143756000000
        cost_of_revenue:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cost of the goods and services sold."
          examples:
            - 74525000000
        gross_profit:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue less cost of revenue."
          examples:
            - 69231000000
        operating_expense:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating expenses apart from cost of revenue."
          examples:
            - 18379000000
        selling_general_and_administrative_expenses:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Selling, general and administrative expenses."
          examples:
            - 7492000000
        research_and_development:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Research and development expense."
          examples:
            - 10887000000
        operating_income:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating income: gross profit less operating expenses."
          examples:
            - 50852000000
        interest_expense:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Interest expense as the filer reports it."
          examples:
            - null
        ebit:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Earnings before interest and taxes: pretax income plus interest expense, else operating income."
          examples:
            - 51002000000
        income_tax_expense:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Income tax expense, a benefit negative."
          examples:
            - 8905000000
        net_income_discontinued_operations:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income of discontinued operations."
          examples:
            - null
        net_income_non_controlling_interests:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income attributable to noncontrolling interests."
          examples:
            - null
        net_income:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income attributable to the parent's shareholders."
          examples:
            - 42097000000
        net_income_common_stock:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income available to common shareholders, after preferred dividends."
          examples:
            - 42097000000
        preferred_dividends_impact:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Preferred dividends and other adjustments."
          examples:
            - null
        consolidated_income:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income of the consolidated group, noncontrolling interests included."
          examples:
            - 42097000000
        earnings_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Basic earnings per share."
          examples:
            - 2.85
        earnings_per_share_diluted:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Diluted earnings per share."
          examples:
            - 2.84
        dividends_per_common_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Dividends declared per common share."
          examples:
            - 0.26
        weighted_average_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weighted average basic shares; null for a quarter derived from a year."
          examples:
            - 14748158000
        weighted_average_shares_diluted:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weighted average diluted shares; null for a quarter derived from a year."
          examples:
            - 14810356000
      examples:
        - ticker: "AAPL"
          report_period: "2025-12-27"
          fiscal_period: "2026-Q1"
          period: "quarterly"
          currency: "USD"
          accession_number: "0000320193-26-000006"
          form_type: "10-Q"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
          filing_date: "2026-01-30"
          filing_datetime: "2026-01-30T06:01:32-05:00"
          revenue: 143756000000
          cost_of_revenue: 74525000000
          gross_profit: 69231000000
          operating_expense: 18379000000
          selling_general_and_administrative_expenses: 7492000000
          research_and_development: 10887000000
          operating_income: 50852000000
          interest_expense: null
          ebit: 51002000000
          income_tax_expense: 8905000000
          net_income_discontinued_operations: null
          net_income_non_controlling_interests: null
          net_income: 42097000000
          net_income_common_stock: 42097000000
          preferred_dividends_impact: null
          consolidated_income: 42097000000
          earnings_per_share: 2.85
          earnings_per_share_diluted: 2.84
          dividends_per_common_share: 0.26
          weighted_average_shares: 14748158000
          weighted_average_shares_diluted: 14810356000
    IncomeStatementsResponse:
      type: "object"
      description: "The answer of GET /financials/income-statements."
      additionalProperties: false
      required:
        - "income_statements"
      properties:
        income_statements:
          type: "array"
          maxItems: 10
          description: "This page of income statements, newest period first."
          items:
            $ref: "#/components/schemas/IncomeStatement"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older income statements; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/income-statements?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - income_statements:
            - ticker: "AAPL"
              report_period: "2025-12-27"
              fiscal_period: "2026-Q1"
              period: "quarterly"
              currency: "USD"
              accession_number: "0000320193-26-000006"
              form_type: "10-Q"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
              filing_date: "2026-01-30"
              filing_datetime: "2026-01-30T06:01:32-05:00"
              revenue: 143756000000
              cost_of_revenue: 74525000000
              gross_profit: 69231000000
              operating_expense: 18379000000
              selling_general_and_administrative_expenses: 7492000000
              research_and_development: 10887000000
              operating_income: 50852000000
              interest_expense: null
              ebit: 51002000000
              income_tax_expense: 8905000000
              net_income_discontinued_operations: null
              net_income_non_controlling_interests: null
              net_income: 42097000000
              net_income_common_stock: 42097000000
              preferred_dividends_impact: null
              consolidated_income: 42097000000
              earnings_per_share: 2.85
              earnings_per_share_diluted: 2.84
              dividends_per_common_share: 0.26
              weighted_average_shares: 14748158000
              weighted_average_shares_diluted: 14810356000
    BalanceSheet:
      type: "object"
      description: "One balance sheet under standardized field names; a field the filing does not report is null."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "form_type"
        - "filing_url"
        - "filing_date"
        - "filing_datetime"
        - "total_assets"
        - "current_assets"
        - "cash_and_equivalents"
        - "inventory"
        - "current_investments"
        - "trade_and_non_trade_receivables"
        - "non_current_assets"
        - "property_plant_and_equipment"
        - "goodwill_and_intangible_assets"
        - "investments"
        - "non_current_investments"
        - "outstanding_shares"
        - "tax_assets"
        - "total_liabilities"
        - "current_liabilities"
        - "current_debt"
        - "trade_and_non_trade_payables"
        - "deferred_revenue"
        - "deposit_liabilities"
        - "non_current_liabilities"
        - "non_current_debt"
        - "tax_liabilities"
        - "shareholders_equity"
        - "retained_earnings"
        - "accumulated_other_comprehensive_income"
        - "total_debt"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the balance sheet's company."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the balance sheet's period."
          examples:
            - "2025-12-27"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The balance sheet's fiscal year and quarter, such as 2026-Q1 or 2025-FY."
          examples:
            - "2026-Q1"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
          description: "Whether the balance sheet covers a fiscal year, a quarter or the twelve months to its end."
          examples:
            - "quarterly"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The ISO 4217 currency of the balance sheet."
          examples:
            - "USD"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing the balance sheet comes from; for ttm, the filing of its last quarter. Null for a UK or French report, which SEC does not hold."
          examples:
            - "0000320193-26-000006"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form the balance sheet comes from, such as 10-Q or 10-K/A; null for ttm. A fourth quarter carries the 10-K it is derived from. ESEF or UKSEF for a UK or French annual report."
          examples:
            - "10-Q"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page on sec.gov of the balance sheet's filing; for a UK or French report, its online viewer."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the balance sheet's filing, in Eastern Time; for a UK or French report, the day it was published."
          examples:
            - "2026-01-30"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When SEC accepted the balance sheet's filing, in Eastern Time with its offset; null for a UK or French report."
          examples:
            - "2026-01-30T06:01:32-05:00"
        total_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total assets at the period end."
          examples:
            - 379297000000
        current_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Assets expected to turn to cash within a year."
          examples:
            - 158104000000
        cash_and_equivalents:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cash and cash equivalents."
          examples:
            - 45317000000
        inventory:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Inventory, net of reserves."
          examples:
            - 5875000000
        current_investments:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Marketable securities held as current assets."
          examples:
            - 21590000000
        trade_and_non_trade_receivables:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Trade receivables and other current receivables."
          examples:
            - 70320000000
        non_current_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Assets beyond the current ones."
          examples:
            - 221193000000
        property_plant_and_equipment:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Property, plant and equipment, net."
          examples:
            - 50159000000
        goodwill_and_intangible_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Goodwill and other intangible assets."
          examples:
            - null
        investments:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current and non-current investments together."
          examples:
            - 99478000000
        non_current_investments:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Investments held as non-current assets."
          examples:
            - 77888000000
        outstanding_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Common shares outstanding at the period end, else on the cover page."
          examples:
            - 14702703000
        tax_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Deferred tax assets."
          examples:
            - null
        total_liabilities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total liabilities at the period end."
          examples:
            - 291107000000
        current_liabilities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Liabilities due within a year."
          examples:
            - 162367000000
        current_debt:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Debt due within a year: borrowings, commercial paper, current portion."
          examples:
            - 13824000000
        trade_and_non_trade_payables:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Accounts payable and accrued liabilities."
          examples:
            - 70587000000
        deferred_revenue:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Contract liabilities and deferred revenue."
          examples:
            - 9413000000
        deposit_liabilities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Customer deposits, for banks."
          examples:
            - null
        non_current_liabilities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Liabilities beyond the current ones."
          examples:
            - 128740000000
        non_current_debt:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Long-term debt beyond the current portion."
          examples:
            - 76685000000
        tax_liabilities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Deferred tax liabilities."
          examples:
            - null
        shareholders_equity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Equity attributable to the parent's shareholders."
          examples:
            - 88190000000
        retained_earnings:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Retained earnings, an accumulated deficit negative."
          examples:
            - -2177000000
        accumulated_other_comprehensive_income:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Accumulated other comprehensive income or loss."
          examples:
            - -4854000000
        total_debt:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current and non-current debt together."
          examples:
            - 90509000000
      examples:
        - ticker: "AAPL"
          report_period: "2025-12-27"
          fiscal_period: "2026-Q1"
          period: "quarterly"
          currency: "USD"
          accession_number: "0000320193-26-000006"
          form_type: "10-Q"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
          filing_date: "2026-01-30"
          filing_datetime: "2026-01-30T06:01:32-05:00"
          total_assets: 379297000000
          current_assets: 158104000000
          cash_and_equivalents: 45317000000
          inventory: 5875000000
          current_investments: 21590000000
          trade_and_non_trade_receivables: 70320000000
          non_current_assets: 221193000000
          property_plant_and_equipment: 50159000000
          goodwill_and_intangible_assets: null
          investments: 99478000000
          non_current_investments: 77888000000
          outstanding_shares: 14702703000
          tax_assets: null
          total_liabilities: 291107000000
          current_liabilities: 162367000000
          current_debt: 13824000000
          trade_and_non_trade_payables: 70587000000
          deferred_revenue: 9413000000
          deposit_liabilities: null
          non_current_liabilities: 128740000000
          non_current_debt: 76685000000
          tax_liabilities: null
          shareholders_equity: 88190000000
          retained_earnings: -2177000000
          accumulated_other_comprehensive_income: -4854000000
          total_debt: 90509000000
    BalanceSheetsResponse:
      type: "object"
      description: "The answer of GET /financials/balance-sheets."
      additionalProperties: false
      required:
        - "balance_sheets"
      properties:
        balance_sheets:
          type: "array"
          maxItems: 10
          description: "This page of balance sheets, newest period first."
          items:
            $ref: "#/components/schemas/BalanceSheet"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older balance sheets; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/balance-sheets?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - balance_sheets:
            - ticker: "AAPL"
              report_period: "2025-12-27"
              fiscal_period: "2026-Q1"
              period: "quarterly"
              currency: "USD"
              accession_number: "0000320193-26-000006"
              form_type: "10-Q"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
              filing_date: "2026-01-30"
              filing_datetime: "2026-01-30T06:01:32-05:00"
              total_assets: 379297000000
              current_assets: 158104000000
              cash_and_equivalents: 45317000000
              inventory: 5875000000
              current_investments: 21590000000
              trade_and_non_trade_receivables: 70320000000
              non_current_assets: 221193000000
              property_plant_and_equipment: 50159000000
              goodwill_and_intangible_assets: null
              investments: 99478000000
              non_current_investments: 77888000000
              outstanding_shares: 14702703000
              tax_assets: null
              total_liabilities: 291107000000
              current_liabilities: 162367000000
              current_debt: 13824000000
              trade_and_non_trade_payables: 70587000000
              deferred_revenue: 9413000000
              deposit_liabilities: null
              non_current_liabilities: 128740000000
              non_current_debt: 76685000000
              tax_liabilities: null
              shareholders_equity: 88190000000
              retained_earnings: -2177000000
              accumulated_other_comprehensive_income: -4854000000
              total_debt: 90509000000
    CashFlowStatement:
      type: "object"
      description: "One cash flow statement under standardized field names; a field the filing does not report is null."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "form_type"
        - "filing_url"
        - "filing_date"
        - "filing_datetime"
        - "net_income"
        - "depreciation_and_amortization"
        - "share_based_compensation"
        - "net_cash_flow_from_operations"
        - "capital_expenditure"
        - "business_acquisitions_and_disposals"
        - "investment_acquisitions_and_disposals"
        - "net_cash_flow_from_investing"
        - "issuance_or_repayment_of_debt_securities"
        - "issuance_or_purchase_of_equity_shares"
        - "dividends_and_other_cash_distributions"
        - "net_cash_flow_from_financing"
        - "change_in_cash_and_equivalents"
        - "effect_of_exchange_rate_changes"
        - "ending_cash_balance"
        - "free_cash_flow"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the cash flow statement's company."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the cash flow statement's period."
          examples:
            - "2025-12-27"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The cash flow statement's fiscal year and quarter, such as 2026-Q1 or 2025-FY."
          examples:
            - "2026-Q1"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
          description: "Whether the cash flow statement covers a fiscal year, a quarter or the twelve months to its end."
          examples:
            - "quarterly"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The ISO 4217 currency of the cash flow statement."
          examples:
            - "USD"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing the cash flow statement comes from; for ttm, the filing of its last quarter. Null for a UK or French report, which SEC does not hold."
          examples:
            - "0000320193-26-000006"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form the cash flow statement comes from, such as 10-Q or 10-K/A; null for ttm. A fourth quarter carries the 10-K it is derived from. ESEF or UKSEF for a UK or French annual report."
          examples:
            - "10-Q"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page on sec.gov of the cash flow statement's filing; for a UK or French report, its online viewer."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the cash flow statement's filing, in Eastern Time; for a UK or French report, the day it was published."
          examples:
            - "2026-01-30"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When SEC accepted the cash flow statement's filing, in Eastern Time with its offset; null for a UK or French report."
          examples:
            - "2026-01-30T06:01:32-05:00"
        net_income:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income as the cash flow statement starts from it, noncontrolling interests included."
          examples:
            - 42097000000
        depreciation_and_amortization:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Depreciation, depletion and amortization."
          examples:
            - 3214000000
        share_based_compensation:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Share-based compensation expense."
          examples:
            - 3594000000
        net_cash_flow_from_operations:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net cash from operating activities."
          examples:
            - 53925000000
        capital_expenditure:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Payments for property, plant and equipment, an outflow negative."
          examples:
            - -2373000000
        business_acquisitions_and_disposals:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Payments for businesses acquired less proceeds from businesses sold."
          examples:
            - null
        investment_acquisitions_and_disposals:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Proceeds from investments sold and matured less payments for investments bought."
          examples:
            - -2359000000
        net_cash_flow_from_investing:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net cash from investing activities."
          examples:
            - -4886000000
        issuance_or_repayment_of_debt_securities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Debt issued less debt repaid, commercial paper included."
          examples:
            - -10196000000
        issuance_or_purchase_of_equity_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares issued less shares repurchased."
          examples:
            - -24701000000
        dividends_and_other_cash_distributions:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Dividends paid, an outflow negative."
          examples:
            - -3921000000
        net_cash_flow_from_financing:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net cash from financing activities."
          examples:
            - -39656000000
        change_in_cash_and_equivalents:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in cash over the period."
          examples:
            - 9383000000
        effect_of_exchange_rate_changes:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Effect of exchange rates on cash."
          examples:
            - null
        ending_cash_balance:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cash, restricted cash included, at the period end."
          examples:
            - 45317000000
        free_cash_flow:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating cash flow plus capital expenditure."
          examples:
            - 51552000000
      examples:
        - ticker: "AAPL"
          report_period: "2025-12-27"
          fiscal_period: "2026-Q1"
          period: "quarterly"
          currency: "USD"
          accession_number: "0000320193-26-000006"
          form_type: "10-Q"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
          filing_date: "2026-01-30"
          filing_datetime: "2026-01-30T06:01:32-05:00"
          net_income: 42097000000
          depreciation_and_amortization: 3214000000
          share_based_compensation: 3594000000
          net_cash_flow_from_operations: 53925000000
          capital_expenditure: -2373000000
          business_acquisitions_and_disposals: null
          investment_acquisitions_and_disposals: -2359000000
          net_cash_flow_from_investing: -4886000000
          issuance_or_repayment_of_debt_securities: -10196000000
          issuance_or_purchase_of_equity_shares: -24701000000
          dividends_and_other_cash_distributions: -3921000000
          net_cash_flow_from_financing: -39656000000
          change_in_cash_and_equivalents: 9383000000
          effect_of_exchange_rate_changes: null
          ending_cash_balance: 45317000000
          free_cash_flow: 51552000000
    CashFlowStatementsResponse:
      type: "object"
      description: "The answer of GET /financials/cash-flow-statements."
      additionalProperties: false
      required:
        - "cash_flow_statements"
      properties:
        cash_flow_statements:
          type: "array"
          maxItems: 10
          description: "This page of cash flow statements, newest period first."
          items:
            $ref: "#/components/schemas/CashFlowStatement"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older cash flow statements; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/cash-flow-statements?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - cash_flow_statements:
            - ticker: "AAPL"
              report_period: "2025-12-27"
              fiscal_period: "2026-Q1"
              period: "quarterly"
              currency: "USD"
              accession_number: "0000320193-26-000006"
              form_type: "10-Q"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
              filing_date: "2026-01-30"
              filing_datetime: "2026-01-30T06:01:32-05:00"
              net_income: 42097000000
              depreciation_and_amortization: 3214000000
              share_based_compensation: 3594000000
              net_cash_flow_from_operations: 53925000000
              capital_expenditure: -2373000000
              business_acquisitions_and_disposals: null
              investment_acquisitions_and_disposals: -2359000000
              net_cash_flow_from_investing: -4886000000
              issuance_or_repayment_of_debt_securities: -10196000000
              issuance_or_purchase_of_equity_shares: -24701000000
              dividends_and_other_cash_distributions: -3921000000
              net_cash_flow_from_financing: -39656000000
              change_in_cash_and_equivalents: 9383000000
              effect_of_exchange_rate_changes: null
              ending_cash_balance: 45317000000
              free_cash_flow: 51552000000
    StatementTicker:
      type: "object"
      description: "A company with annual statements."
      additionalProperties: false
      required:
        - "ticker"
        - "name"
        - "market"
        - "identifier"
        - "identifier_type"
        - "status"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The company's ticker in its market."
          examples:
            - "RR."
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The company's name; null when unknown."
          examples:
            - "ROLLS-ROYCE HOLDINGS PLC"
        market:
          type: "string"
          enum:
            - "US"
            - "UK"
            - "FR"
          description: "The company's market."
          examples:
            - "UK"
        identifier:
          type: "string"
          pattern: "^([0-9]{1,10}|[A-Z]{2}[A-Z0-9]{9}[0-9])$"
          description: "The company's CIK in the US, the ISIN of its main share in the UK and France."
          examples:
            - "GB00B63H8491"
        identifier_type:
          type: "string"
          enum:
            - "CIK"
            - "ISIN"
          description: "What identifier is."
          examples:
            - "ISIN"
        status:
          type: "string"
          enum:
            - "active"
            - "inactive"
          description: "active while the newest annual report ended in the last two years."
          examples:
            - "active"
      examples:
        - ticker: "RR."
          name: "ROLLS-ROYCE HOLDINGS PLC"
          market: "UK"
          identifier: "GB00B63H8491"
          identifier_type: "ISIN"
          status: "active"
    StatementTickersResponse:
      type: "object"
      description: "The answer of GET /financials/income-statements/tickers."
      additionalProperties: false
      required:
        - "market"
        - "tickers"
      properties:
        market:
          type: "string"
          enum:
            - "US"
            - "UK"
            - "FR"
          description: "The market listed."
          examples:
            - "UK"
        tickers:
          type: "array"
          maxItems: 50000
          description: "The market's companies, by ticker."
          items:
            $ref: "#/components/schemas/StatementTicker"
      examples:
        - market: "UK"
          tickers:
            - ticker: "RR."
              name: "ROLLS-ROYCE HOLDINGS PLC"
              market: "UK"
              identifier: "GB00B63H8491"
              identifier_type: "ISIN"
              status: "active"
    FinancialsResponse:
      type: "object"
      description: "The answer of GET /financials."
      additionalProperties: false
      required:
        - "financials"
      properties:
        financials:
          type: "object"
          description: "The three statements of each period on this page."
          additionalProperties: false
          required:
            - "income_statements"
            - "balance_sheets"
            - "cash_flow_statements"
          properties:
            income_statements:
              type: "array"
              maxItems: 10
              description: "The income statements of this page's periods."
              items:
                $ref: "#/components/schemas/IncomeStatement"
            balance_sheets:
              type: "array"
              maxItems: 10
              description: "The balance sheets of this page's periods."
              items:
                $ref: "#/components/schemas/BalanceSheet"
            cash_flow_statements:
              type: "array"
              maxItems: 10
              description: "The cash flow statements of this page's periods."
              items:
                $ref: "#/components/schemas/CashFlowStatement"
          examples:
            - income_statements:
                - ticker: "AAPL"
                  report_period: "2025-12-27"
                  fiscal_period: "2026-Q1"
                  period: "quarterly"
                  currency: "USD"
                  accession_number: "0000320193-26-000006"
                  form_type: "10-Q"
                  filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                  filing_date: "2026-01-30"
                  filing_datetime: "2026-01-30T06:01:32-05:00"
                  revenue: 143756000000
                  cost_of_revenue: 74525000000
                  gross_profit: 69231000000
                  operating_expense: 18379000000
                  selling_general_and_administrative_expenses: 7492000000
                  research_and_development: 10887000000
                  operating_income: 50852000000
                  interest_expense: null
                  ebit: 51002000000
                  income_tax_expense: 8905000000
                  net_income_discontinued_operations: null
                  net_income_non_controlling_interests: null
                  net_income: 42097000000
                  net_income_common_stock: 42097000000
                  preferred_dividends_impact: null
                  consolidated_income: 42097000000
                  earnings_per_share: 2.85
                  earnings_per_share_diluted: 2.84
                  dividends_per_common_share: 0.26
                  weighted_average_shares: 14748158000
                  weighted_average_shares_diluted: 14810356000
              balance_sheets:
                - ticker: "AAPL"
                  report_period: "2025-12-27"
                  fiscal_period: "2026-Q1"
                  period: "quarterly"
                  currency: "USD"
                  accession_number: "0000320193-26-000006"
                  form_type: "10-Q"
                  filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                  filing_date: "2026-01-30"
                  filing_datetime: "2026-01-30T06:01:32-05:00"
                  total_assets: 379297000000
                  current_assets: 158104000000
                  cash_and_equivalents: 45317000000
                  inventory: 5875000000
                  current_investments: 21590000000
                  trade_and_non_trade_receivables: 70320000000
                  non_current_assets: 221193000000
                  property_plant_and_equipment: 50159000000
                  goodwill_and_intangible_assets: null
                  investments: 99478000000
                  non_current_investments: 77888000000
                  outstanding_shares: 14702703000
                  tax_assets: null
                  total_liabilities: 291107000000
                  current_liabilities: 162367000000
                  current_debt: 13824000000
                  trade_and_non_trade_payables: 70587000000
                  deferred_revenue: 9413000000
                  deposit_liabilities: null
                  non_current_liabilities: 128740000000
                  non_current_debt: 76685000000
                  tax_liabilities: null
                  shareholders_equity: 88190000000
                  retained_earnings: -2177000000
                  accumulated_other_comprehensive_income: -4854000000
                  total_debt: 90509000000
              cash_flow_statements:
                - ticker: "AAPL"
                  report_period: "2025-12-27"
                  fiscal_period: "2026-Q1"
                  period: "quarterly"
                  currency: "USD"
                  accession_number: "0000320193-26-000006"
                  form_type: "10-Q"
                  filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                  filing_date: "2026-01-30"
                  filing_datetime: "2026-01-30T06:01:32-05:00"
                  net_income: 42097000000
                  depreciation_and_amortization: 3214000000
                  share_based_compensation: 3594000000
                  net_cash_flow_from_operations: 53925000000
                  capital_expenditure: -2373000000
                  business_acquisitions_and_disposals: null
                  investment_acquisitions_and_disposals: -2359000000
                  net_cash_flow_from_investing: -4886000000
                  issuance_or_repayment_of_debt_securities: -10196000000
                  issuance_or_purchase_of_equity_shares: -24701000000
                  dividends_and_other_cash_distributions: -3921000000
                  net_cash_flow_from_financing: -39656000000
                  change_in_cash_and_equivalents: 9383000000
                  effect_of_exchange_rate_changes: null
                  ending_cash_balance: 45317000000
                  free_cash_flow: 51552000000
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - financials:
            income_statements:
              - ticker: "AAPL"
                report_period: "2025-12-27"
                fiscal_period: "2026-Q1"
                period: "quarterly"
                currency: "USD"
                accession_number: "0000320193-26-000006"
                form_type: "10-Q"
                filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                filing_date: "2026-01-30"
                filing_datetime: "2026-01-30T06:01:32-05:00"
                revenue: 143756000000
                cost_of_revenue: 74525000000
                gross_profit: 69231000000
                operating_expense: 18379000000
                selling_general_and_administrative_expenses: 7492000000
                research_and_development: 10887000000
                operating_income: 50852000000
                interest_expense: null
                ebit: 51002000000
                income_tax_expense: 8905000000
                net_income_discontinued_operations: null
                net_income_non_controlling_interests: null
                net_income: 42097000000
                net_income_common_stock: 42097000000
                preferred_dividends_impact: null
                consolidated_income: 42097000000
                earnings_per_share: 2.85
                earnings_per_share_diluted: 2.84
                dividends_per_common_share: 0.26
                weighted_average_shares: 14748158000
                weighted_average_shares_diluted: 14810356000
            balance_sheets:
              - ticker: "AAPL"
                report_period: "2025-12-27"
                fiscal_period: "2026-Q1"
                period: "quarterly"
                currency: "USD"
                accession_number: "0000320193-26-000006"
                form_type: "10-Q"
                filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                filing_date: "2026-01-30"
                filing_datetime: "2026-01-30T06:01:32-05:00"
                total_assets: 379297000000
                current_assets: 158104000000
                cash_and_equivalents: 45317000000
                inventory: 5875000000
                current_investments: 21590000000
                trade_and_non_trade_receivables: 70320000000
                non_current_assets: 221193000000
                property_plant_and_equipment: 50159000000
                goodwill_and_intangible_assets: null
                investments: 99478000000
                non_current_investments: 77888000000
                outstanding_shares: 14702703000
                tax_assets: null
                total_liabilities: 291107000000
                current_liabilities: 162367000000
                current_debt: 13824000000
                trade_and_non_trade_payables: 70587000000
                deferred_revenue: 9413000000
                deposit_liabilities: null
                non_current_liabilities: 128740000000
                non_current_debt: 76685000000
                tax_liabilities: null
                shareholders_equity: 88190000000
                retained_earnings: -2177000000
                accumulated_other_comprehensive_income: -4854000000
                total_debt: 90509000000
            cash_flow_statements:
              - ticker: "AAPL"
                report_period: "2025-12-27"
                fiscal_period: "2026-Q1"
                period: "quarterly"
                currency: "USD"
                accession_number: "0000320193-26-000006"
                form_type: "10-Q"
                filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000006/0000320193-26-000006-index.htm"
                filing_date: "2026-01-30"
                filing_datetime: "2026-01-30T06:01:32-05:00"
                net_income: 42097000000
                depreciation_and_amortization: 3214000000
                share_based_compensation: 3594000000
                net_cash_flow_from_operations: 53925000000
                capital_expenditure: -2373000000
                business_acquisitions_and_disposals: null
                investment_acquisitions_and_disposals: -2359000000
                net_cash_flow_from_investing: -4886000000
                issuance_or_repayment_of_debt_securities: -10196000000
                issuance_or_purchase_of_equity_shares: -24701000000
                dividends_and_other_cash_distributions: -3921000000
                net_cash_flow_from_financing: -39656000000
                change_in_cash_and_equivalents: 9383000000
                effect_of_exchange_rate_changes: null
                ending_cash_balance: 45317000000
                free_cash_flow: 51552000000
    FinancialMetrics:
      type: "object"
      description: "One period's ratios of one company."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "form_type"
        - "filing_url"
        - "filing_date"
        - "filing_datetime"
        - "market_cap"
        - "enterprise_value"
        - "price_to_earnings_ratio"
        - "price_to_book_ratio"
        - "price_to_sales_ratio"
        - "enterprise_value_to_ebitda_ratio"
        - "enterprise_value_to_revenue_ratio"
        - "free_cash_flow_yield"
        - "peg_ratio"
        - "gross_margin"
        - "operating_margin"
        - "net_margin"
        - "return_on_equity"
        - "return_on_assets"
        - "return_on_invested_capital"
        - "asset_turnover"
        - "inventory_turnover"
        - "receivables_turnover"
        - "days_sales_outstanding"
        - "operating_cycle"
        - "working_capital_turnover"
        - "current_ratio"
        - "quick_ratio"
        - "cash_ratio"
        - "operating_cash_flow_ratio"
        - "debt_to_equity"
        - "debt_to_assets"
        - "interest_coverage"
        - "revenue_growth"
        - "earnings_growth"
        - "book_value_growth"
        - "earnings_per_share_growth"
        - "free_cash_flow_growth"
        - "operating_income_growth"
        - "ebitda_growth"
        - "payout_ratio"
        - "earnings_per_share"
        - "book_value_per_share"
        - "free_cash_flow_per_share"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the ratios' company."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the ratios' period."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The ratios' fiscal year and quarter."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
          description: "Whether the ratios cover a fiscal year, a quarter or a trailing year."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency of the ratios' statements."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the ratios' statements."
          examples:
            - "0000320193-26-000026"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form of the ratios' statements; null for ttm."
          examples:
            - "10-K"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the ratios' filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the ratios' filing."
          examples:
            - "2026-11-03"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When SEC accepted the ratios' filing, in Eastern Time."
          examples:
            - "2026-11-03T16:31:05-05:00"
        market_cap:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The share price times the shares outstanding; without them, the weighted average, diluted first."
          examples:
            - 4956517683567
        enterprise_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market value plus total debt less cash and equivalents."
          examples:
            - 5000323683567
        price_to_earnings_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market value over net income."
          examples:
            - 37.499661
        price_to_book_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market value over shareholders' equity."
          examples:
            - 44.217906
        price_to_sales_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market value over revenue."
          examples:
            - 10.351223
        enterprise_value_to_ebitda_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Enterprise value over EBIT plus depreciation and amortization."
          examples:
            - 28.960522
        enterprise_value_to_revenue_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Enterprise value over revenue."
          examples:
            - 10.442708
        free_cash_flow_yield:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Free cash flow over market value."
          examples:
            - 0.02745
        peg_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Price to earnings over the growth of diluted earnings per share, in percent."
          examples:
            - 1.840447
        gross_margin:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Gross profit over revenue, as a fraction."
          examples:
            - 0.487856
        operating_margin:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating income over revenue."
          examples:
            - 0.3301
        net_margin:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income over revenue."
          examples:
            - 0.276035
        return_on_equity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income over shareholders' equity at the period end."
          examples:
            - 1.179155
        return_on_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income over total assets at the period end."
          examples:
            - 0.326723
        return_on_invested_capital:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating income less income tax over debt plus equity less cash."
          examples:
            - 0.840294
        asset_turnover:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue over the average of this and the previous period's assets."
          examples:
            - 1.253838
        inventory_turnover:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cost of revenue over average inventory."
          examples:
            - 24.209685
        receivables_turnover:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue over average receivables."
          examples:
            - 6.112644
        days_sales_outstanding:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Average receivables over revenue, in days of the period."
          examples:
            - 59.71
        operating_cycle:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Days of inventory plus days of sales outstanding."
          examples:
            - 74.79
        working_capital_turnover:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue over average working capital; negative when current liabilities exceed current assets."
          examples:
            - -69.739878
        current_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current assets over current liabilities."
          examples:
            - 1.0232
        quick_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cash, current investments and receivables over current liabilities."
          examples:
            - 0.826501
        cash_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cash and equivalents over current liabilities."
          examples:
            - 0.213666
        operating_cash_flow_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating cash flow over current liabilities."
          examples:
            - 0.853939
        debt_to_equity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total debt over shareholders' equity."
          examples:
            - 0.714683
        debt_to_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total debt over total assets."
          examples:
            - 0.198026
        interest_coverage:
          type:
            - "number"
            - "null"
          format: "double"
          description: "EBIT over interest expense; null without interest expense."
          examples:
            - null
        revenue_growth:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue against the same period a year earlier."
          examples:
            - 0.150598
        earnings_growth:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income against a year earlier, over the size of the earlier value."
          examples:
            - 0.180029
        book_value_growth:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shareholders' equity against a year earlier."
          examples:
            - 0.520256
        earnings_per_share_growth:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Diluted earnings per share against a year earlier."
          examples:
            - 0.203753
        free_cash_flow_growth:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Free cash flow against a year earlier."
          examples:
            - 0.377545
        operating_income_growth:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating income against a year earlier."
          examples:
            - 0.187997
        ebitda_growth:
          type:
            - "number"
            - "null"
          format: "double"
          description: "EBIT plus depreciation and amortization against a year earlier."
          examples:
            - 0.195483
        payout_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Dividends paid over net income."
          examples:
            - 0.118941
        earnings_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Basic earnings per share as reported."
          examples:
            - 9.01
        book_value_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shareholders' equity over shares outstanding."
          examples:
            - 7.713391
        free_cash_flow_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Free cash flow over shares outstanding."
          examples:
            - 9.362343
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          form_type: "10-K"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          filing_date: "2026-11-03"
          filing_datetime: "2026-11-03T16:31:05-05:00"
          market_cap: 4956517683567
          enterprise_value: 5000323683567
          price_to_earnings_ratio: 37.499661
          price_to_book_ratio: 44.217906
          price_to_sales_ratio: 10.351223
          enterprise_value_to_ebitda_ratio: 28.960522
          enterprise_value_to_revenue_ratio: 10.442708
          free_cash_flow_yield: 0.02745
          peg_ratio: 1.840447
          gross_margin: 0.487856
          operating_margin: 0.3301
          net_margin: 0.276035
          return_on_equity: 1.179155
          return_on_assets: 0.326723
          return_on_invested_capital: 0.840294
          asset_turnover: 1.253838
          inventory_turnover: 24.209685
          receivables_turnover: 6.112644
          days_sales_outstanding: 59.71
          operating_cycle: 74.79
          working_capital_turnover: -69.739878
          current_ratio: 1.0232
          quick_ratio: 0.826501
          cash_ratio: 0.213666
          operating_cash_flow_ratio: 0.853939
          debt_to_equity: 0.714683
          debt_to_assets: 0.198026
          interest_coverage: null
          revenue_growth: 0.150598
          earnings_growth: 0.180029
          book_value_growth: 0.520256
          earnings_per_share_growth: 0.203753
          free_cash_flow_growth: 0.377545
          operating_income_growth: 0.187997
          ebitda_growth: 0.195483
          payout_ratio: 0.118941
          earnings_per_share: 9.01
          book_value_per_share: 7.713391
          free_cash_flow_per_share: 9.362343
    FinancialMetricsResponse:
      type: "object"
      description: "The answer of GET /financial-metrics."
      additionalProperties: false
      required:
        - "financial_metrics"
      properties:
        financial_metrics:
          type: "array"
          maxItems: 10
          description: "This page of ratios, newest period first."
          items:
            $ref: "#/components/schemas/FinancialMetrics"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older ratios; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financial-metrics?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - financial_metrics:
            - ticker: "AAPL"
              report_period: "2026-09-26"
              fiscal_period: "2026-FY"
              period: "annual"
              currency: "USD"
              accession_number: "0000320193-26-000026"
              form_type: "10-K"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
              filing_date: "2026-11-03"
              filing_datetime: "2026-11-03T16:31:05-05:00"
              market_cap: 4956517683567
              enterprise_value: 5000323683567
              price_to_earnings_ratio: 37.499661
              price_to_book_ratio: 44.217906
              price_to_sales_ratio: 10.351223
              enterprise_value_to_ebitda_ratio: 28.960522
              enterprise_value_to_revenue_ratio: 10.442708
              free_cash_flow_yield: 0.02745
              peg_ratio: 1.840447
              gross_margin: 0.487856
              operating_margin: 0.3301
              net_margin: 0.276035
              return_on_equity: 1.179155
              return_on_assets: 0.326723
              return_on_invested_capital: 0.840294
              asset_turnover: 1.253838
              inventory_turnover: 24.209685
              receivables_turnover: 6.112644
              days_sales_outstanding: 59.71
              operating_cycle: 74.79
              working_capital_turnover: -69.739878
              current_ratio: 1.0232
              quick_ratio: 0.826501
              cash_ratio: 0.213666
              operating_cash_flow_ratio: 0.853939
              debt_to_equity: 0.714683
              debt_to_assets: 0.198026
              interest_coverage: null
              revenue_growth: 0.150598
              earnings_growth: 0.180029
              book_value_growth: 0.520256
              earnings_per_share_growth: 0.203753
              free_cash_flow_growth: 0.377545
              operating_income_growth: 0.187997
              ebitda_growth: 0.195483
              payout_ratio: 0.118941
              earnings_per_share: 9.01
              book_value_per_share: 7.713391
              free_cash_flow_per_share: 9.362343
    FinancialMetricsSnapshotResponse:
      type: "object"
      description: "The answer of GET /financial-metrics/snapshot."
      additionalProperties: false
      required:
        - "snapshot"
      properties:
        snapshot:
          type: "object"
          description: "The ratios of the newest trailing twelve months."
          additionalProperties: false
          required:
            - "ticker"
            - "report_period"
            - "currency"
            - "market_cap"
            - "enterprise_value"
            - "price_to_earnings_ratio"
            - "price_to_book_ratio"
            - "price_to_sales_ratio"
            - "enterprise_value_to_ebitda_ratio"
            - "enterprise_value_to_revenue_ratio"
            - "free_cash_flow_yield"
            - "peg_ratio"
            - "gross_margin"
            - "operating_margin"
            - "net_margin"
            - "return_on_equity"
            - "return_on_assets"
            - "return_on_invested_capital"
            - "asset_turnover"
            - "inventory_turnover"
            - "receivables_turnover"
            - "days_sales_outstanding"
            - "operating_cycle"
            - "working_capital_turnover"
            - "current_ratio"
            - "quick_ratio"
            - "cash_ratio"
            - "operating_cash_flow_ratio"
            - "debt_to_equity"
            - "debt_to_assets"
            - "interest_coverage"
            - "revenue_growth"
            - "earnings_growth"
            - "book_value_growth"
            - "earnings_per_share_growth"
            - "free_cash_flow_growth"
            - "operating_income_growth"
            - "ebitda_growth"
            - "payout_ratio"
            - "earnings_per_share"
            - "book_value_per_share"
            - "free_cash_flow_per_share"
          properties:
            ticker:
              type:
                - "string"
                - "null"
              pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
              description: "The ticker of the snapshot's company."
              examples:
                - "AAPL"
            report_period:
              type: "string"
              format: "date"
              description: "The last day of the trailing twelve months."
              examples:
                - "2026-09-26"
            currency:
              type: "string"
              pattern: "^[A-Z]{3}$"
              description: "The currency of the snapshot's statements."
              examples:
                - "USD"
            market_cap:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The share price times the shares outstanding; without them, the weighted average, diluted first. Over the newest trailing twelve months."
              examples:
                - 4956517683567
            enterprise_value:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Market value plus total debt less cash and equivalents. Over the newest trailing twelve months."
              examples:
                - 5000323683567
            price_to_earnings_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Market value over net income. Over the newest trailing twelve months."
              examples:
                - 37.499661
            price_to_book_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Market value over shareholders' equity. Over the newest trailing twelve months."
              examples:
                - 44.217906
            price_to_sales_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Market value over revenue. Over the newest trailing twelve months."
              examples:
                - 10.351223
            enterprise_value_to_ebitda_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Enterprise value over EBIT plus depreciation and amortization. Over the newest trailing twelve months."
              examples:
                - 28.960522
            enterprise_value_to_revenue_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Enterprise value over revenue. Over the newest trailing twelve months."
              examples:
                - 10.442708
            free_cash_flow_yield:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Free cash flow over market value. Over the newest trailing twelve months."
              examples:
                - 0.02745
            peg_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Price to earnings over the growth of diluted earnings per share, in percent. Over the newest trailing twelve months."
              examples:
                - 1.840447
            gross_margin:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Gross profit over revenue, as a fraction. Over the newest trailing twelve months."
              examples:
                - 0.487856
            operating_margin:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Operating income over revenue. Over the newest trailing twelve months."
              examples:
                - 0.3301
            net_margin:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Net income over revenue. Over the newest trailing twelve months."
              examples:
                - 0.276035
            return_on_equity:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Net income over shareholders' equity at the period end. Over the newest trailing twelve months."
              examples:
                - 1.179155
            return_on_assets:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Net income over total assets at the period end. Over the newest trailing twelve months."
              examples:
                - 0.326723
            return_on_invested_capital:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Operating income less income tax over debt plus equity less cash. Over the newest trailing twelve months."
              examples:
                - 0.840294
            asset_turnover:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Revenue over the average of this and the previous period's assets. Over the newest trailing twelve months."
              examples:
                - 1.253838
            inventory_turnover:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Cost of revenue over average inventory. Over the newest trailing twelve months."
              examples:
                - 24.209685
            receivables_turnover:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Revenue over average receivables. Over the newest trailing twelve months."
              examples:
                - 6.112644
            days_sales_outstanding:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Average receivables over revenue, in days of the period. Over the newest trailing twelve months."
              examples:
                - 59.71
            operating_cycle:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Days of inventory plus days of sales outstanding. Over the newest trailing twelve months."
              examples:
                - 74.79
            working_capital_turnover:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Revenue over average working capital; negative when current liabilities exceed current assets. Over the newest trailing twelve months."
              examples:
                - -69.739878
            current_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Current assets over current liabilities. Over the newest trailing twelve months."
              examples:
                - 1.0232
            quick_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Cash, current investments and receivables over current liabilities. Over the newest trailing twelve months."
              examples:
                - 0.826501
            cash_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Cash and equivalents over current liabilities. Over the newest trailing twelve months."
              examples:
                - 0.213666
            operating_cash_flow_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Operating cash flow over current liabilities. Over the newest trailing twelve months."
              examples:
                - 0.853939
            debt_to_equity:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Total debt over shareholders' equity. Over the newest trailing twelve months."
              examples:
                - 0.714683
            debt_to_assets:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Total debt over total assets. Over the newest trailing twelve months."
              examples:
                - 0.198026
            interest_coverage:
              type:
                - "number"
                - "null"
              format: "double"
              description: "EBIT over interest expense; null without interest expense. Over the newest trailing twelve months."
              examples:
                - null
            revenue_growth:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Revenue against the same period a year earlier. Over the newest trailing twelve months."
              examples:
                - 0.150598
            earnings_growth:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Net income against a year earlier, over the size of the earlier value. Over the newest trailing twelve months."
              examples:
                - 0.180029
            book_value_growth:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Shareholders' equity against a year earlier. Over the newest trailing twelve months."
              examples:
                - 0.520256
            earnings_per_share_growth:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Diluted earnings per share against a year earlier. Over the newest trailing twelve months."
              examples:
                - 0.203753
            free_cash_flow_growth:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Free cash flow against a year earlier. Over the newest trailing twelve months."
              examples:
                - 0.377545
            operating_income_growth:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Operating income against a year earlier. Over the newest trailing twelve months."
              examples:
                - 0.187997
            ebitda_growth:
              type:
                - "number"
                - "null"
              format: "double"
              description: "EBIT plus depreciation and amortization against a year earlier. Over the newest trailing twelve months."
              examples:
                - 0.195483
            payout_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Dividends paid over net income. Over the newest trailing twelve months."
              examples:
                - 0.118941
            earnings_per_share:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Basic earnings per share as reported. Over the newest trailing twelve months."
              examples:
                - 9.01
            book_value_per_share:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Shareholders' equity over shares outstanding. Over the newest trailing twelve months."
              examples:
                - 7.713391
            free_cash_flow_per_share:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Free cash flow over shares outstanding. Over the newest trailing twelve months."
              examples:
                - 9.362343
          examples:
            - ticker: "AAPL"
              report_period: "2026-09-26"
              currency: "USD"
              market_cap: 4956517683567
              enterprise_value: 5000323683567
              price_to_earnings_ratio: 37.499661
              price_to_book_ratio: 44.217906
              price_to_sales_ratio: 10.351223
              enterprise_value_to_ebitda_ratio: 28.960522
              enterprise_value_to_revenue_ratio: 10.442708
              free_cash_flow_yield: 0.02745
              peg_ratio: 1.840447
              gross_margin: 0.487856
              operating_margin: 0.3301
              net_margin: 0.276035
              return_on_equity: 1.179155
              return_on_assets: 0.326723
              return_on_invested_capital: 0.840294
              asset_turnover: 1.253838
              inventory_turnover: 24.209685
              receivables_turnover: 6.112644
              days_sales_outstanding: 59.71
              operating_cycle: 74.79
              working_capital_turnover: -69.739878
              current_ratio: 1.0232
              quick_ratio: 0.826501
              cash_ratio: 0.213666
              operating_cash_flow_ratio: 0.853939
              debt_to_equity: 0.714683
              debt_to_assets: 0.198026
              interest_coverage: null
              revenue_growth: 0.150598
              earnings_growth: 0.180029
              book_value_growth: 0.520256
              earnings_per_share_growth: 0.203753
              free_cash_flow_growth: 0.377545
              operating_income_growth: 0.187997
              ebitda_growth: 0.195483
              payout_ratio: 0.118941
              earnings_per_share: 9.01
              book_value_per_share: 7.713391
              free_cash_flow_per_share: 9.362343
      examples:
        - snapshot:
            ticker: "AAPL"
            report_period: "2026-09-26"
            currency: "USD"
            market_cap: 4956517683567
            enterprise_value: 5000323683567
            price_to_earnings_ratio: 37.499661
            price_to_book_ratio: 44.217906
            price_to_sales_ratio: 10.351223
            enterprise_value_to_ebitda_ratio: 28.960522
            enterprise_value_to_revenue_ratio: 10.442708
            free_cash_flow_yield: 0.02745
            peg_ratio: 1.840447
            gross_margin: 0.487856
            operating_margin: 0.3301
            net_margin: 0.276035
            return_on_equity: 1.179155
            return_on_assets: 0.326723
            return_on_invested_capital: 0.840294
            asset_turnover: 1.253838
            inventory_turnover: 24.209685
            receivables_turnover: 6.112644
            days_sales_outstanding: 59.71
            operating_cycle: 74.79
            working_capital_turnover: -69.739878
            current_ratio: 1.0232
            quick_ratio: 0.826501
            cash_ratio: 0.213666
            operating_cash_flow_ratio: 0.853939
            debt_to_equity: 0.714683
            debt_to_assets: 0.198026
            interest_coverage: null
            revenue_growth: 0.150598
            earnings_growth: 0.180029
            book_value_growth: 0.520256
            earnings_per_share_growth: 0.203753
            free_cash_flow_growth: 0.377545
            operating_income_growth: 0.187997
            ebitda_growth: 0.195483
            payout_ratio: 0.118941
            earnings_per_share: 9.01
            book_value_per_share: 7.713391
            free_cash_flow_per_share: 9.362343
    FinancialMetricsTickersResponse:
      type: "object"
      description: "The answer of GET /financial-metrics/snapshot/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "listings"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "financial-metrics"
          description: "The dataset the list is of."
          examples:
            - "financial-metrics"
        listings:
          type: "array"
          maxItems: 100000
          description: "Every company served."
          items:
            type: "object"
            description: "A company the snapshot serves."
            additionalProperties: false
            required:
              - "ticker"
              - "name"
              - "market"
              - "identifier"
              - "identifier_type"
              - "status"
            properties:
              ticker:
                type: "string"
                pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
                description: "The company's current ticker."
                examples:
                  - "AAPL"
              name:
                type:
                  - "string"
                  - "null"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 300
                description: "The company's name in its newest SEC profile."
                examples:
                  - "Apple Inc."
              market:
                type: "string"
                enum:
                  - "US"
                description: "The listing's market."
                examples:
                  - "US"
              identifier:
                type: "string"
                pattern: "^[0-9]{10}$"
                description: "The company's CIK, ten digits."
                examples:
                  - "0000320193"
              identifier_type:
                type: "string"
                enum:
                  - "CIK"
                description: "What identifier holds."
                examples:
                  - "CIK"
              status:
                type: "string"
                enum:
                  - "active"
                description: "Every listed company has a recent trailing year."
                examples:
                  - "active"
            examples:
              - ticker: "AAPL"
                name: "Apple Inc."
                market: "US"
                identifier: "0000320193"
                identifier_type: "CIK"
                status: "active"
        tickers:
          type: "array"
          maxItems: 100000
          description: "The same companies' tickers."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            description: "A ticker with a snapshot."
            examples:
              - "AAPL"
      examples:
        - resource: "financial-metrics"
          listings: []
          tickers: []
    LineItemSearchRequest:
      type: "object"
      description: "The fields and companies of a line item search."
      additionalProperties: false
      required:
        - "line_items"
        - "tickers"
      properties:
        line_items:
          type: "array"
          minItems: 1
          maxItems: 64
          description: "Statement field names, such as revenue or total_debt."
          items:
            type: "string"
            pattern: "^[a-z_]{1,60}$"
            maxLength: 60
            description: "One statement field name."
            examples:
              - "revenue"
        tickers:
          type: "array"
          minItems: 1
          maxItems: 100
          description: "The companies, by ticker."
          items:
            type: "string"
            pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
            maxLength: 12
            description: "One ticker, in any case."
            examples:
              - "AAPL"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
          default: "ttm"
          description: "The kind of period to read."
          examples:
            - "ttm"
        limit:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 400
          default: 1
          description: "Periods per company, newest first."
          examples:
            - 1
      examples:
        - line_items:
            - "revenue"
          tickers:
            - "AAPL"
    LineItemSearchResponse:
      type: "object"
      description: "The answer of POST /financials/search/line-items."
      additionalProperties: false
      required:
        - "search_results"
      properties:
        search_results:
          type: "array"
          maxItems: 40000
          description: "One row per company and period, in the order of the requested tickers."
          items:
            type: "object"
            description: "A period of one company with the requested fields."
            required:
              - "ticker"
              - "report_period"
              - "period"
              - "currency"
            additionalProperties: false
            properties:
              ticker:
                type: "string"
                pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
                description: "The ticker as requested."
                examples:
                  - "AAPL"
              report_period:
                type: "string"
                format: "date"
                description: "The last day of the searched period."
                examples:
                  - "2026-09-26"
              period:
                type: "string"
                enum:
                  - "annual"
                  - "quarterly"
                  - "ttm"
                description: "The kind of the searched period."
                examples:
                  - "ttm"
              currency:
                type: "string"
                pattern: "^[A-Z]{3}$"
                description: "The currency of the searched values."
                examples:
                  - "USD"
              revenue:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched revenue."
                examples:
                  - null
              cost_of_revenue:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched cost of revenue."
                examples:
                  - null
              gross_profit:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched gross profit."
                examples:
                  - null
              operating_expense:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched operating expense."
                examples:
                  - null
              selling_general_and_administrative_expenses:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched selling general and administrative expenses."
                examples:
                  - null
              research_and_development:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched research and development."
                examples:
                  - null
              operating_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched operating income."
                examples:
                  - null
              interest_expense:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched interest expense."
                examples:
                  - null
              ebit:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched ebit."
                examples:
                  - null
              income_tax_expense:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched income tax expense."
                examples:
                  - null
              net_income_discontinued_operations:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched net income discontinued operations."
                examples:
                  - null
              net_income_non_controlling_interests:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched net income non controlling interests."
                examples:
                  - null
              net_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched net income."
                examples:
                  - null
              net_income_common_stock:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched net income common stock."
                examples:
                  - null
              preferred_dividends_impact:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched preferred dividends impact."
                examples:
                  - null
              consolidated_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched consolidated income."
                examples:
                  - null
              earnings_per_share:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched earnings per share."
                examples:
                  - null
              earnings_per_share_diluted:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched earnings per share diluted."
                examples:
                  - null
              dividends_per_common_share:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched dividends per common share."
                examples:
                  - null
              weighted_average_shares:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched weighted average shares."
                examples:
                  - null
              weighted_average_shares_diluted:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched weighted average shares diluted."
                examples:
                  - null
              total_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched total assets."
                examples:
                  - null
              current_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched current assets."
                examples:
                  - null
              cash_and_equivalents:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched cash and equivalents."
                examples:
                  - null
              inventory:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched inventory."
                examples:
                  - null
              current_investments:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched current investments."
                examples:
                  - null
              trade_and_non_trade_receivables:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched trade and non trade receivables."
                examples:
                  - null
              non_current_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched non current assets."
                examples:
                  - null
              property_plant_and_equipment:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched property plant and equipment."
                examples:
                  - null
              goodwill_and_intangible_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched goodwill and intangible assets."
                examples:
                  - null
              investments:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched investments."
                examples:
                  - null
              non_current_investments:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched non current investments."
                examples:
                  - null
              outstanding_shares:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched outstanding shares."
                examples:
                  - null
              tax_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched tax assets."
                examples:
                  - null
              total_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched total liabilities."
                examples:
                  - null
              current_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched current liabilities."
                examples:
                  - null
              current_debt:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched current debt."
                examples:
                  - null
              trade_and_non_trade_payables:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched trade and non trade payables."
                examples:
                  - null
              deferred_revenue:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched deferred revenue."
                examples:
                  - null
              deposit_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched deposit liabilities."
                examples:
                  - null
              non_current_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched non current liabilities."
                examples:
                  - null
              non_current_debt:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched non current debt."
                examples:
                  - null
              tax_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched tax liabilities."
                examples:
                  - null
              shareholders_equity:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched shareholders equity."
                examples:
                  - null
              retained_earnings:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched retained earnings."
                examples:
                  - null
              accumulated_other_comprehensive_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched accumulated other comprehensive income."
                examples:
                  - null
              total_debt:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched total debt."
                examples:
                  - null
              depreciation_and_amortization:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched depreciation and amortization."
                examples:
                  - null
              share_based_compensation:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched share based compensation."
                examples:
                  - null
              net_cash_flow_from_operations:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched net cash flow from operations."
                examples:
                  - null
              capital_expenditure:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched capital expenditure."
                examples:
                  - null
              business_acquisitions_and_disposals:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched business acquisitions and disposals."
                examples:
                  - null
              investment_acquisitions_and_disposals:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched investment acquisitions and disposals."
                examples:
                  - null
              net_cash_flow_from_investing:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched net cash flow from investing."
                examples:
                  - null
              issuance_or_repayment_of_debt_securities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched issuance or repayment of debt securities."
                examples:
                  - null
              issuance_or_purchase_of_equity_shares:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched issuance or purchase of equity shares."
                examples:
                  - null
              dividends_and_other_cash_distributions:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched dividends and other cash distributions."
                examples:
                  - null
              net_cash_flow_from_financing:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched net cash flow from financing."
                examples:
                  - null
              change_in_cash_and_equivalents:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched change in cash and equivalents."
                examples:
                  - null
              effect_of_exchange_rate_changes:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched effect of exchange rate changes."
                examples:
                  - null
              ending_cash_balance:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched ending cash balance."
                examples:
                  - null
              free_cash_flow:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The searched free cash flow."
                examples:
                  - null
      examples:
        - search_results: []
    ScreenerRequest:
      type: "object"
      description: "The filters and order of a screen."
      additionalProperties: false
      required:
        - "filters"
      properties:
        filters:
          type: "array"
          minItems: 1
          maxItems: 20
          description: "Every filter must hold."
          items:
            type: "object"
            description: "One condition on one field."
            additionalProperties: false
            required:
              - "field"
              - "operator"
              - "value"
            properties:
              field:
                type: "string"
                pattern: "^[a-z_]{1,60}$"
                maxLength: 60
                description: "The field, as the filters list names it."
                examples:
                  - "gross_margin"
              operator:
                type: "string"
                enum:
                  - "gt"
                  - "lt"
                  - "gte"
                  - "lte"
                  - "eq"
                  - "in"
                description: "The comparison; in takes a list."
                examples:
                  - "gte"
              value:
                description: "A number for gt, lt, gte, lte and eq; text for eq on sector, industry or ticker; a list for in."
                oneOf:
                  - type: "number"
                    description: "A number to compare with."
                    examples:
                      - 0.6
                  - type: "string"
                    maxLength: 200
                    pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                    description: "Text to match, in any case."
                    examples:
                      - "Technology"
                  - type: "array"
                    maxItems: 500
                    description: "The values in accepts."
                    items:
                      type:
                        - "number"
                        - "string"
                      maxLength: 200
                      pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                      description: "One accepted value."
                    examples:
                      - - "AAPL"
                        - "MSFT"
            examples:
              - field: "gross_margin"
                operator: "gte"
                value: 0.6
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          maxLength: 3
          description: "The currency of the statements screened; USD by default."
          examples:
            - "USD"
        order_by:
          type: "object"
          description: "The numeric field results are sorted by; without it, by ticker."
          additionalProperties: false
          required:
            - "field"
          properties:
            field:
              type: "string"
              pattern: "^[a-z_]{1,60}$"
              maxLength: 60
              description: "The field to sort on; it joins every result."
              examples:
                - "revenue"
            direction:
              type: "string"
              enum:
                - "asc"
                - "desc"
              default: "desc"
              description: "Companies without a value come last either way."
              examples:
                - "desc"
          examples:
            - field: "revenue"
              direction: "desc"
        as_of:
          type: "string"
          format: "date"
          maxLength: 10
          description: "Screen what was public on this day, from 2010-01-01."
          examples:
            - "2026-11-01"
        limit:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 1000
          default: 10
          description: "Results to return."
          examples:
            - 10
      examples:
        - filters:
            - field: "gross_margin"
              operator: "gte"
              value: 0.6
    ScreenerResponse:
      type: "object"
      description: "The answer of POST /financials/search/screener."
      additionalProperties: false
      required:
        - "results"
      properties:
        results:
          type: "array"
          maxItems: 1000
          description: "Matching companies, by ticker or by order_by."
          items:
            type: "object"
            description: "A matching company with each filtered and sorted field."
            required:
              - "ticker"
              - "report_period"
              - "currency"
              - "sector"
              - "industry"
            additionalProperties: false
            properties:
              ticker:
                type: "string"
                pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
                description: "The matching company's ticker."
                examples:
                  - "MSFT"
              report_period:
                type: "string"
                format: "date"
                description: "The end of the screened trailing year."
                examples:
                  - "2026-09-30"
              currency:
                type: "string"
                pattern: "^[A-Z]{3}$"
                description: "The currency of the screened values."
                examples:
                  - "USD"
              filing_date:
                type: "string"
                format: "date"
                description: "With as_of: the day the screened filing became public."
                examples:
                  - "2026-10-29"
              sector:
                type:
                  - "string"
                  - "null"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
                description: "The SEC office that reviews the matching company's filings."
                examples:
                  - "Technology"
              industry:
                type:
                  - "string"
                  - "null"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
                description: "The company's SIC industry."
                examples:
                  - "Services-Prepackaged Software"
              revenue:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened revenue."
                examples:
                  - null
              cost_of_revenue:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened cost of revenue."
                examples:
                  - null
              gross_profit:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened gross profit."
                examples:
                  - null
              operating_expense:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened operating expense."
                examples:
                  - null
              selling_general_and_administrative_expenses:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened selling general and administrative expenses."
                examples:
                  - null
              research_and_development:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened research and development."
                examples:
                  - null
              operating_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened operating income."
                examples:
                  - null
              interest_expense:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened interest expense."
                examples:
                  - null
              ebit:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened ebit."
                examples:
                  - null
              income_tax_expense:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened income tax expense."
                examples:
                  - null
              net_income_discontinued_operations:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net income discontinued operations."
                examples:
                  - null
              net_income_non_controlling_interests:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net income non controlling interests."
                examples:
                  - null
              net_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net income."
                examples:
                  - null
              net_income_common_stock:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net income common stock."
                examples:
                  - null
              preferred_dividends_impact:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened preferred dividends impact."
                examples:
                  - null
              consolidated_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened consolidated income."
                examples:
                  - null
              earnings_per_share:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened earnings per share."
                examples:
                  - null
              earnings_per_share_diluted:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened earnings per share diluted."
                examples:
                  - null
              dividends_per_common_share:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened dividends per common share."
                examples:
                  - null
              weighted_average_shares:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened weighted average shares."
                examples:
                  - null
              weighted_average_shares_diluted:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened weighted average shares diluted."
                examples:
                  - null
              total_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened total assets."
                examples:
                  - null
              current_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened current assets."
                examples:
                  - null
              cash_and_equivalents:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened cash and equivalents."
                examples:
                  - null
              inventory:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened inventory."
                examples:
                  - null
              current_investments:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened current investments."
                examples:
                  - null
              trade_and_non_trade_receivables:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened trade and non trade receivables."
                examples:
                  - null
              non_current_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened non current assets."
                examples:
                  - null
              property_plant_and_equipment:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened property plant and equipment."
                examples:
                  - null
              goodwill_and_intangible_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened goodwill and intangible assets."
                examples:
                  - null
              investments:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened investments."
                examples:
                  - null
              non_current_investments:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened non current investments."
                examples:
                  - null
              outstanding_shares:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened outstanding shares."
                examples:
                  - null
              tax_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened tax assets."
                examples:
                  - null
              total_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened total liabilities."
                examples:
                  - null
              current_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened current liabilities."
                examples:
                  - null
              current_debt:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened current debt."
                examples:
                  - null
              trade_and_non_trade_payables:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened trade and non trade payables."
                examples:
                  - null
              deferred_revenue:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened deferred revenue."
                examples:
                  - null
              deposit_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened deposit liabilities."
                examples:
                  - null
              non_current_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened non current liabilities."
                examples:
                  - null
              non_current_debt:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened non current debt."
                examples:
                  - null
              tax_liabilities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened tax liabilities."
                examples:
                  - null
              shareholders_equity:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened shareholders equity."
                examples:
                  - null
              retained_earnings:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened retained earnings."
                examples:
                  - null
              accumulated_other_comprehensive_income:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened accumulated other comprehensive income."
                examples:
                  - null
              total_debt:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened total debt."
                examples:
                  - null
              depreciation_and_amortization:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened depreciation and amortization."
                examples:
                  - null
              share_based_compensation:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened share based compensation."
                examples:
                  - null
              net_cash_flow_from_operations:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net cash flow from operations."
                examples:
                  - null
              capital_expenditure:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened capital expenditure."
                examples:
                  - null
              business_acquisitions_and_disposals:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened business acquisitions and disposals."
                examples:
                  - null
              investment_acquisitions_and_disposals:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened investment acquisitions and disposals."
                examples:
                  - null
              net_cash_flow_from_investing:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net cash flow from investing."
                examples:
                  - null
              issuance_or_repayment_of_debt_securities:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened issuance or repayment of debt securities."
                examples:
                  - null
              issuance_or_purchase_of_equity_shares:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened issuance or purchase of equity shares."
                examples:
                  - null
              dividends_and_other_cash_distributions:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened dividends and other cash distributions."
                examples:
                  - null
              net_cash_flow_from_financing:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net cash flow from financing."
                examples:
                  - null
              change_in_cash_and_equivalents:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened change in cash and equivalents."
                examples:
                  - null
              effect_of_exchange_rate_changes:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened effect of exchange rate changes."
                examples:
                  - null
              ending_cash_balance:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened ending cash balance."
                examples:
                  - null
              free_cash_flow:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened free cash flow."
                examples:
                  - null
              gross_margin:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened gross margin."
                examples:
                  - null
              operating_margin:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened operating margin."
                examples:
                  - null
              net_margin:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened net margin."
                examples:
                  - null
              return_on_equity:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened return on equity."
                examples:
                  - null
              return_on_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened return on assets."
                examples:
                  - null
              return_on_invested_capital:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened return on invested capital."
                examples:
                  - null
              current_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened current ratio."
                examples:
                  - null
              quick_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened quick ratio."
                examples:
                  - null
              cash_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened cash ratio."
                examples:
                  - null
              operating_cash_flow_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened operating cash flow ratio."
                examples:
                  - null
              debt_to_equity:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened debt to equity."
                examples:
                  - null
              debt_to_assets:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened debt to assets."
                examples:
                  - null
              interest_coverage:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened interest coverage."
                examples:
                  - null
              payout_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened payout ratio."
                examples:
                  - null
              book_value_per_share:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened book value per share."
                examples:
                  - null
              free_cash_flow_per_share:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened free cash flow per share."
                examples:
                  - null
              market_cap:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened market cap."
                examples:
                  - null
              enterprise_value:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened enterprise value."
                examples:
                  - null
              price_to_earnings_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened price to earnings ratio."
                examples:
                  - null
              price_to_book_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened price to book ratio."
                examples:
                  - null
              price_to_sales_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened price to sales ratio."
                examples:
                  - null
              enterprise_value_to_ebitda_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened enterprise value to ebitda ratio."
                examples:
                  - null
              enterprise_value_to_revenue_ratio:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened enterprise value to revenue ratio."
                examples:
                  - null
              free_cash_flow_yield:
                type:
                  - "number"
                  - "null"
                format: "double"
                description: "The screened free cash flow yield."
                examples:
                  - null
        as_of:
          type: "string"
          format: "date"
          description: "With as_of: the screen date, echoed."
          examples:
            - "2026-11-01"
        coverage_start:
          type: "string"
          format: "date"
          description: "With as_of: the earliest screen date."
          examples:
            - "2010-01-01"
      examples:
        - results:
            - ticker: "MSFT"
              report_period: "2026-09-30"
              currency: "USD"
              sector: "Technology"
              industry: "Services-Prepackaged Software"
              gross_margin: 0.68
              revenue: 331840000000
    ScreenField:
      type: "object"
      description: "How a screen reads one field."
      additionalProperties: false
      required:
        - "type"
        - "source"
      properties:
        type:
          type: "string"
          enum:
            - "number"
            - "string"
          description: "Numbers take every operator; text takes eq and in."
          examples:
            - "number"
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Where the field comes from."
          examples:
            - "financial_metrics"
      examples:
        - type: "number"
          source: "financial_metrics"
    ScreenerFiltersResponse:
      type: "object"
      description: "The answer of GET /financials/search/screener/filters."
      additionalProperties: false
      required:
        - "metrics"
        - "operators"
      properties:
        metrics:
          type: "object"
          description: "Each field a screen accepts, by name."
          additionalProperties: false
          properties:
            revenue:
              $ref: "#/components/schemas/ScreenField"
            cost_of_revenue:
              $ref: "#/components/schemas/ScreenField"
            gross_profit:
              $ref: "#/components/schemas/ScreenField"
            operating_expense:
              $ref: "#/components/schemas/ScreenField"
            selling_general_and_administrative_expenses:
              $ref: "#/components/schemas/ScreenField"
            research_and_development:
              $ref: "#/components/schemas/ScreenField"
            operating_income:
              $ref: "#/components/schemas/ScreenField"
            interest_expense:
              $ref: "#/components/schemas/ScreenField"
            ebit:
              $ref: "#/components/schemas/ScreenField"
            income_tax_expense:
              $ref: "#/components/schemas/ScreenField"
            net_income_discontinued_operations:
              $ref: "#/components/schemas/ScreenField"
            net_income_non_controlling_interests:
              $ref: "#/components/schemas/ScreenField"
            net_income:
              $ref: "#/components/schemas/ScreenField"
            net_income_common_stock:
              $ref: "#/components/schemas/ScreenField"
            preferred_dividends_impact:
              $ref: "#/components/schemas/ScreenField"
            consolidated_income:
              $ref: "#/components/schemas/ScreenField"
            earnings_per_share:
              $ref: "#/components/schemas/ScreenField"
            earnings_per_share_diluted:
              $ref: "#/components/schemas/ScreenField"
            dividends_per_common_share:
              $ref: "#/components/schemas/ScreenField"
            weighted_average_shares:
              $ref: "#/components/schemas/ScreenField"
            weighted_average_shares_diluted:
              $ref: "#/components/schemas/ScreenField"
            total_assets:
              $ref: "#/components/schemas/ScreenField"
            current_assets:
              $ref: "#/components/schemas/ScreenField"
            cash_and_equivalents:
              $ref: "#/components/schemas/ScreenField"
            inventory:
              $ref: "#/components/schemas/ScreenField"
            current_investments:
              $ref: "#/components/schemas/ScreenField"
            trade_and_non_trade_receivables:
              $ref: "#/components/schemas/ScreenField"
            non_current_assets:
              $ref: "#/components/schemas/ScreenField"
            property_plant_and_equipment:
              $ref: "#/components/schemas/ScreenField"
            goodwill_and_intangible_assets:
              $ref: "#/components/schemas/ScreenField"
            investments:
              $ref: "#/components/schemas/ScreenField"
            non_current_investments:
              $ref: "#/components/schemas/ScreenField"
            outstanding_shares:
              $ref: "#/components/schemas/ScreenField"
            tax_assets:
              $ref: "#/components/schemas/ScreenField"
            total_liabilities:
              $ref: "#/components/schemas/ScreenField"
            current_liabilities:
              $ref: "#/components/schemas/ScreenField"
            current_debt:
              $ref: "#/components/schemas/ScreenField"
            trade_and_non_trade_payables:
              $ref: "#/components/schemas/ScreenField"
            deferred_revenue:
              $ref: "#/components/schemas/ScreenField"
            deposit_liabilities:
              $ref: "#/components/schemas/ScreenField"
            non_current_liabilities:
              $ref: "#/components/schemas/ScreenField"
            non_current_debt:
              $ref: "#/components/schemas/ScreenField"
            tax_liabilities:
              $ref: "#/components/schemas/ScreenField"
            shareholders_equity:
              $ref: "#/components/schemas/ScreenField"
            retained_earnings:
              $ref: "#/components/schemas/ScreenField"
            accumulated_other_comprehensive_income:
              $ref: "#/components/schemas/ScreenField"
            total_debt:
              $ref: "#/components/schemas/ScreenField"
            depreciation_and_amortization:
              $ref: "#/components/schemas/ScreenField"
            share_based_compensation:
              $ref: "#/components/schemas/ScreenField"
            net_cash_flow_from_operations:
              $ref: "#/components/schemas/ScreenField"
            capital_expenditure:
              $ref: "#/components/schemas/ScreenField"
            business_acquisitions_and_disposals:
              $ref: "#/components/schemas/ScreenField"
            investment_acquisitions_and_disposals:
              $ref: "#/components/schemas/ScreenField"
            net_cash_flow_from_investing:
              $ref: "#/components/schemas/ScreenField"
            issuance_or_repayment_of_debt_securities:
              $ref: "#/components/schemas/ScreenField"
            issuance_or_purchase_of_equity_shares:
              $ref: "#/components/schemas/ScreenField"
            dividends_and_other_cash_distributions:
              $ref: "#/components/schemas/ScreenField"
            net_cash_flow_from_financing:
              $ref: "#/components/schemas/ScreenField"
            change_in_cash_and_equivalents:
              $ref: "#/components/schemas/ScreenField"
            effect_of_exchange_rate_changes:
              $ref: "#/components/schemas/ScreenField"
            ending_cash_balance:
              $ref: "#/components/schemas/ScreenField"
            free_cash_flow:
              $ref: "#/components/schemas/ScreenField"
            gross_margin:
              $ref: "#/components/schemas/ScreenField"
            operating_margin:
              $ref: "#/components/schemas/ScreenField"
            net_margin:
              $ref: "#/components/schemas/ScreenField"
            return_on_equity:
              $ref: "#/components/schemas/ScreenField"
            return_on_assets:
              $ref: "#/components/schemas/ScreenField"
            return_on_invested_capital:
              $ref: "#/components/schemas/ScreenField"
            current_ratio:
              $ref: "#/components/schemas/ScreenField"
            quick_ratio:
              $ref: "#/components/schemas/ScreenField"
            cash_ratio:
              $ref: "#/components/schemas/ScreenField"
            operating_cash_flow_ratio:
              $ref: "#/components/schemas/ScreenField"
            debt_to_equity:
              $ref: "#/components/schemas/ScreenField"
            debt_to_assets:
              $ref: "#/components/schemas/ScreenField"
            interest_coverage:
              $ref: "#/components/schemas/ScreenField"
            payout_ratio:
              $ref: "#/components/schemas/ScreenField"
            book_value_per_share:
              $ref: "#/components/schemas/ScreenField"
            free_cash_flow_per_share:
              $ref: "#/components/schemas/ScreenField"
            market_cap:
              $ref: "#/components/schemas/ScreenField"
            enterprise_value:
              $ref: "#/components/schemas/ScreenField"
            price_to_earnings_ratio:
              $ref: "#/components/schemas/ScreenField"
            price_to_book_ratio:
              $ref: "#/components/schemas/ScreenField"
            price_to_sales_ratio:
              $ref: "#/components/schemas/ScreenField"
            enterprise_value_to_ebitda_ratio:
              $ref: "#/components/schemas/ScreenField"
            enterprise_value_to_revenue_ratio:
              $ref: "#/components/schemas/ScreenField"
            free_cash_flow_yield:
              $ref: "#/components/schemas/ScreenField"
            sector:
              $ref: "#/components/schemas/ScreenField"
            industry:
              $ref: "#/components/schemas/ScreenField"
            ticker:
              $ref: "#/components/schemas/ScreenField"
        operators:
          type: "array"
          maxItems: 6
          description: "The comparison operators."
          items:
            type: "string"
            enum:
              - "gt"
              - "lt"
              - "gte"
              - "lte"
              - "eq"
              - "in"
            description: "One operator."
            examples:
              - "gt"
      examples:
        - metrics: {}
          operators:
            - "gt"
            - "lt"
            - "gte"
            - "lte"
            - "eq"
            - "in"
    AsReportedLine:
      type: "object"
      description: "A line item at level 1 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 1 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 1 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 1 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 1 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 1 line."
          items:
            $ref: "#/components/schemas/AsReportedLine2"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine2:
      type: "object"
      description: "A line item at level 2 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 2 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 2 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 2 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 2 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 2 line."
          items:
            $ref: "#/components/schemas/AsReportedLine3"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine3:
      type: "object"
      description: "A line item at level 3 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 3 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 3 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 3 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 3 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 3 line."
          items:
            $ref: "#/components/schemas/AsReportedLine4"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine4:
      type: "object"
      description: "A line item at level 4 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 4 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 4 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 4 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 4 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 4 line."
          items:
            $ref: "#/components/schemas/AsReportedLine5"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine5:
      type: "object"
      description: "A line item at level 5 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 5 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 5 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 5 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 5 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 5 line."
          items:
            $ref: "#/components/schemas/AsReportedLine6"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine6:
      type: "object"
      description: "A line item at level 6 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 6 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 6 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 6 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 6 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 6 line."
          items:
            $ref: "#/components/schemas/AsReportedLine7"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine7:
      type: "object"
      description: "A line item at level 7 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 7 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 7 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 7 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 7 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 7 line."
          items:
            $ref: "#/components/schemas/AsReportedLine8"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine8:
      type: "object"
      description: "A line item at level 8 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 8 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 8 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 8 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 8 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 8 line."
          items:
            $ref: "#/components/schemas/AsReportedLine9"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine9:
      type: "object"
      description: "A line item at level 9 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 9 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 9 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 9 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 9 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 500
          description: "The lines under a level 9 line."
          items:
            $ref: "#/components/schemas/AsReportedLine10"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine10:
      type: "object"
      description: "A line item at level 10 of the tree, as the filing presents it."
      additionalProperties: false
      required:
        - "label"
        - "full_label"
        - "concept"
        - "value"
        - "children"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The label the filing shows for a level 10 line."
          examples:
            - "Cash and cash equivalents"
        full_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The standard label of a level 10 line's XBRL concept in the filing."
          examples:
            - "Cash and Cash Equivalent"
        concept:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9-]*:[A-Za-z_][A-Za-z0-9_]*$"
          description: "The XBRL concept of a level 10 line, as prefix:name."
          examples:
            - "us-gaap:CashAndCashEquivalentsAtCarryingValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of a level 10 line for the period; null for a section header."
          examples:
            - 36305000000
        children:
          type: "array"
          maxItems: 0
          description: "Always empty: deeper lines hang under this level's parent."
          items:
            $ref: "#/components/schemas/AsReportedLine10Leaf"
      examples:
        - label: "Cash and cash equivalents"
          full_label: "Cash and Cash Equivalent"
          concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
          value: 36305000000
          children: []
    AsReportedLine10Leaf:
      type: "object"
      description: "A line below the deepest level; none is ever sent."
      additionalProperties: false
      required: []
      properties: {}
      examples:
        - {}
    AsReportedStatementLines:
      type: "object"
      description: "A statement's line items."
      additionalProperties: false
      required:
        - "line_items"
      properties:
        line_items:
          type: "array"
          maxItems: 500
          description: "The statement's lines, in the filing's order."
          items:
            $ref: "#/components/schemas/AsReportedLine"
      examples:
        - line_items:
            - label: "Current assets:"
              full_label: "Assets, Current [Abstract]"
              concept: "us-gaap:AssetsCurrentAbstract"
              value: null
              children:
                - label: "Cash and cash equivalents"
                  full_label: "Cash and Cash Equivalent"
                  concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                  value: 36305000000
                  children: []
    AsReportedFinancials:
      type: "object"
      description: "The three as-reported statements of one period."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "income_statement"
        - "balance_sheet"
        - "cash_flow_statement"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the as-reported statements."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the as-reported statements."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the as-reported statements."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the as-reported statements comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the as-reported statements are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the as-reported statements."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the as-reported statements."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        income_statement:
          description: "The as-reported income statement; null when the filing has none."
          anyOf:
            - $ref: "#/components/schemas/AsReportedStatementLines"
            - type: "null"
        balance_sheet:
          description: "The as-reported balance sheet; null when the filing has none."
          anyOf:
            - $ref: "#/components/schemas/AsReportedStatementLines"
            - type: "null"
        cash_flow_statement:
          description: "The as-reported cash flow statement; null when the filing has none."
          anyOf:
            - $ref: "#/components/schemas/AsReportedStatementLines"
            - type: "null"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          income_statement: null
          balance_sheet: null
          cash_flow_statement: null
    AsReportedFinancialsResponse:
      type: "object"
      description: "The answer of GET /financials/as-reported."
      additionalProperties: false
      required:
        - "financials"
      properties:
        financials:
          type: "array"
          maxItems: 10
          description: "This page of periods, newest first."
          items:
            $ref: "#/components/schemas/AsReportedFinancials"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/as-reported; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/as-reported?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - financials: []
    SegmentBreakdown:
      type: "object"
      description: "One product line, region or segment."
      additionalProperties: false
      required:
        - "label"
        - "value"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The product line, region or segment as the filing names it."
          examples:
            - "iPhone"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Its value for the period."
          examples:
            - 254098000000
      examples:
        - label: "iPhone"
          value: 254098000000
    SegmentCategory:
      type: "object"
      description: "A line's breakdowns, by product line, by region and by business segment."
      additionalProperties: false
      required:
        - "product"
        - "geography"
        - "segment"
      properties:
        product:
          type: "array"
          maxItems: 200
          description: "Breakdowns on the product or service axis."
          items:
            $ref: "#/components/schemas/SegmentBreakdown"
        geography:
          type: "array"
          maxItems: 200
          description: "Breakdowns on the geographical axis, by country or region."
          items:
            $ref: "#/components/schemas/SegmentBreakdown"
        segment:
          type: "array"
          maxItems: 200
          description: "Breakdowns on the business segment axis."
          items:
            $ref: "#/components/schemas/SegmentBreakdown"
      examples:
        - product:
            - label: "iPhone"
              value: 254098000000
          geography:
            - label: "Other countries"
              value: 228710000000
          segment:
            - label: "Americas"
              value: 198083000000
    SegmentedFinancials:
      type: "object"
      description: "Every statement's segment breakdowns for one period."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "income_statement"
        - "balance_sheet"
        - "cash_flow_statement"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the segment breakdowns."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the segment breakdowns."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the segment breakdowns."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the segment breakdowns comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the segment breakdowns are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the segment breakdowns."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the segment breakdowns."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        income_statement:
          type: "object"
          description: "The income statement's breakdowns."
          additionalProperties: false
          required:
            - "revenue"
            - "operating_income"
            - "depreciation"
          properties:
            revenue:
              description: "Revenue by product, by region and by segment. in every statement; null when the filing gives none."
              anyOf:
                - $ref: "#/components/schemas/SegmentCategory"
                - type: "null"
            operating_income:
              description: "Operating income by segment. in every statement; null when the filing gives none."
              anyOf:
                - $ref: "#/components/schemas/SegmentCategory"
                - type: "null"
            depreciation:
              description: "Depreciation and amortization by segment. in every statement; null when the filing gives none."
              anyOf:
                - $ref: "#/components/schemas/SegmentCategory"
                - type: "null"
          examples:
            - revenue:
                product:
                  - label: "iPhone"
                    value: 254098000000
                geography:
                  - label: "Other countries"
                    value: 228710000000
                segment:
                  - label: "Americas"
                    value: 198083000000
              operating_income: null
              depreciation: null
        balance_sheet:
          type: "object"
          description: "The balance sheet's breakdowns."
          additionalProperties: false
          required:
            - "assets"
            - "goodwill"
            - "long_lived_assets"
          properties:
            assets:
              description: "Assets by segment. in every statement; null when the filing gives none."
              anyOf:
                - $ref: "#/components/schemas/SegmentCategory"
                - type: "null"
            goodwill:
              description: "Goodwill by segment. in every statement; null when the filing gives none."
              anyOf:
                - $ref: "#/components/schemas/SegmentCategory"
                - type: "null"
            long_lived_assets:
              description: "Long-lived assets by segment, product line or region. in every statement; null when the filing gives none."
              anyOf:
                - $ref: "#/components/schemas/SegmentCategory"
                - type: "null"
          examples:
            - assets: null
              goodwill: null
              long_lived_assets: null
        cash_flow_statement:
          type: "object"
          description: "The cash flow statement's breakdowns."
          additionalProperties: false
          required:
            - "capital_expenditure"
          properties:
            capital_expenditure:
              description: "Capital expenditure by segment. in every statement; null when the filing gives none."
              anyOf:
                - $ref: "#/components/schemas/SegmentCategory"
                - type: "null"
          examples:
            - capital_expenditure: null
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          income_statement:
            revenue:
              product:
                - label: "iPhone"
                  value: 254098000000
              geography:
                - label: "Other countries"
                  value: 228710000000
              segment:
                - label: "Americas"
                  value: 198083000000
            operating_income: null
            depreciation: null
          balance_sheet:
            assets: null
            goodwill: null
            long_lived_assets: null
          cash_flow_statement:
            capital_expenditure: null
    SegmentedFinancialsResponse:
      type: "object"
      description: "The answer of GET /financials/segments."
      additionalProperties: false
      required:
        - "segmented_financials"
      properties:
        segmented_financials:
          type: "array"
          maxItems: 10
          description: "This page of periods' breakdowns, newest first."
          items:
            $ref: "#/components/schemas/SegmentedFinancials"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/segments; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/segments?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - segmented_financials: []
    IncomeStatementAsReported:
      type: "object"
      description: "One period's income statement as filed."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "line_items"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the as-reported income statement."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the as-reported income statement."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the as-reported income statement."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the as-reported income statement comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the as-reported income statement are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the as-reported income statement."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the as-reported income statement."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        line_items:
          type: "array"
          maxItems: 500
          description: "The lines of the income statement, in the filing's order."
          items:
            $ref: "#/components/schemas/AsReportedLine"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          line_items:
            - label: "Current assets:"
              full_label: "Assets, Current [Abstract]"
              concept: "us-gaap:AssetsCurrentAbstract"
              value: null
              children:
                - label: "Cash and cash equivalents"
                  full_label: "Cash and Cash Equivalent"
                  concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                  value: 36305000000
                  children: []
    IncomeStatementsAsReportedResponse:
      type: "object"
      description: "The answer of GET /financials/income-statements/as-reported."
      additionalProperties: false
      required:
        - "income_statements"
      properties:
        income_statements:
          type: "array"
          maxItems: 10
          description: "This page of as-reported income statements, newest first."
          items:
            $ref: "#/components/schemas/IncomeStatementAsReported"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/income-statements/as-reported; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/income-statements/as-reported?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - income_statements: []
    IncomeStatementSegments:
      type: "object"
      description: "One period's income statement breakdowns."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "revenue"
        - "operating_income"
        - "depreciation"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the income statement segments."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the income statement segments."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the income statement segments."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the income statement segments comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the income statement segments are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the income statement segments."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the income statement segments."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        revenue:
          description: "Revenue by product, by region and by segment. in the income statement alone; null when the filing gives none."
          anyOf:
            - $ref: "#/components/schemas/SegmentCategory"
            - type: "null"
        operating_income:
          description: "Operating income by segment. in the income statement alone; null when the filing gives none."
          anyOf:
            - $ref: "#/components/schemas/SegmentCategory"
            - type: "null"
        depreciation:
          description: "Depreciation and amortization by segment. in the income statement alone; null when the filing gives none."
          anyOf:
            - $ref: "#/components/schemas/SegmentCategory"
            - type: "null"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          revenue:
            product:
              - label: "iPhone"
                value: 254098000000
            geography:
              - label: "Other countries"
                value: 228710000000
            segment:
              - label: "Americas"
                value: 198083000000
          operating_income: null
          depreciation: null
    IncomeStatementSegmentsResponse:
      type: "object"
      description: "The answer of GET /financials/income-statements/segments."
      additionalProperties: false
      required:
        - "income_statement_segments"
      properties:
        income_statement_segments:
          type: "array"
          maxItems: 10
          description: "This page of income statement breakdowns, newest first."
          items:
            $ref: "#/components/schemas/IncomeStatementSegments"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/income-statements/segments; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/income-statements/segments?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - income_statement_segments: []
    BalanceSheetAsReported:
      type: "object"
      description: "One period's balance sheet as filed."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "line_items"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the as-reported balance sheet."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the as-reported balance sheet."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the as-reported balance sheet."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the as-reported balance sheet comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the as-reported balance sheet are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the as-reported balance sheet."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the as-reported balance sheet."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        line_items:
          type: "array"
          maxItems: 500
          description: "The lines of the balance sheet, in the filing's order."
          items:
            $ref: "#/components/schemas/AsReportedLine"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          line_items:
            - label: "Current assets:"
              full_label: "Assets, Current [Abstract]"
              concept: "us-gaap:AssetsCurrentAbstract"
              value: null
              children:
                - label: "Cash and cash equivalents"
                  full_label: "Cash and Cash Equivalent"
                  concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                  value: 36305000000
                  children: []
    BalanceSheetsAsReportedResponse:
      type: "object"
      description: "The answer of GET /financials/balance-sheets/as-reported."
      additionalProperties: false
      required:
        - "balance_sheets"
      properties:
        balance_sheets:
          type: "array"
          maxItems: 10
          description: "This page of as-reported balance sheets, newest first."
          items:
            $ref: "#/components/schemas/BalanceSheetAsReported"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/balance-sheets/as-reported; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/balance-sheets/as-reported?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - balance_sheets: []
    BalanceSheetSegments:
      type: "object"
      description: "One period's balance sheet breakdowns."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "assets"
        - "goodwill"
        - "long_lived_assets"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the balance sheet segments."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the balance sheet segments."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the balance sheet segments."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the balance sheet segments comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the balance sheet segments are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the balance sheet segments."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the balance sheet segments."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        assets:
          description: "Assets by segment. in the balance sheet alone; null when the filing gives none."
          anyOf:
            - $ref: "#/components/schemas/SegmentCategory"
            - type: "null"
        goodwill:
          description: "Goodwill by segment. in the balance sheet alone; null when the filing gives none."
          anyOf:
            - $ref: "#/components/schemas/SegmentCategory"
            - type: "null"
        long_lived_assets:
          description: "Long-lived assets by segment, product line or region. in the balance sheet alone; null when the filing gives none."
          anyOf:
            - $ref: "#/components/schemas/SegmentCategory"
            - type: "null"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          assets: null
          goodwill: null
          long_lived_assets: null
    BalanceSheetSegmentsResponse:
      type: "object"
      description: "The answer of GET /financials/balance-sheets/segments."
      additionalProperties: false
      required:
        - "balance_sheet_segments"
      properties:
        balance_sheet_segments:
          type: "array"
          maxItems: 10
          description: "This page of balance sheet breakdowns, newest first."
          items:
            $ref: "#/components/schemas/BalanceSheetSegments"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/balance-sheets/segments; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/balance-sheets/segments?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - balance_sheet_segments: []
    CashFlowStatementAsReported:
      type: "object"
      description: "One period's cash flow statement as filed."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "line_items"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the as-reported cash flow statement."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the as-reported cash flow statement."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the as-reported cash flow statement."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the as-reported cash flow statement comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the as-reported cash flow statement are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the as-reported cash flow statement."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the as-reported cash flow statement."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        line_items:
          type: "array"
          maxItems: 500
          description: "The lines of the cash flow statement, in the filing's order."
          items:
            $ref: "#/components/schemas/AsReportedLine"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          line_items:
            - label: "Current assets:"
              full_label: "Assets, Current [Abstract]"
              concept: "us-gaap:AssetsCurrentAbstract"
              value: null
              children:
                - label: "Cash and cash equivalents"
                  full_label: "Cash and Cash Equivalent"
                  concept: "us-gaap:CashAndCashEquivalentsAtCarryingValue"
                  value: 36305000000
                  children: []
    CashFlowStatementsAsReportedResponse:
      type: "object"
      description: "The answer of GET /financials/cash-flow-statements/as-reported."
      additionalProperties: false
      required:
        - "cash_flow_statements"
      properties:
        cash_flow_statements:
          type: "array"
          maxItems: 10
          description: "This page of as-reported cash flow statements, newest first."
          items:
            $ref: "#/components/schemas/CashFlowStatementAsReported"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/cash-flow-statements/as-reported; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/cash-flow-statements/as-reported?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - cash_flow_statements: []
    CashFlowStatementSegments:
      type: "object"
      description: "One period's cash flow statement breakdowns."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "filing_url"
        - "capital_expenditure"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the cash flow statement segments."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period of the cash flow statement segments."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4]?)$"
          description: "The fiscal year and quarter of the cash flow statement segments."
          examples:
            - "2026-FY"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
          description: "Whether the cash flow statement segments comes from an annual or a quarterly report."
          examples:
            - "annual"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency most values of the cash flow statement segments are in."
          examples:
            - "USD"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the cash flow statement segments."
          examples:
            - "0000320193-26-000026"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the filing of the cash flow statement segments."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        capital_expenditure:
          description: "Capital expenditure by segment. in the cash flow statement alone; null when the filing gives none."
          anyOf:
            - $ref: "#/components/schemas/SegmentCategory"
            - type: "null"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          capital_expenditure: null
    CashFlowStatementSegmentsResponse:
      type: "object"
      description: "The answer of GET /financials/cash-flow-statements/segments."
      additionalProperties: false
      required:
        - "cash_flow_statement_segments"
      properties:
        cash_flow_statement_segments:
          type: "array"
          maxItems: 10
          description: "This page of cash flow statement breakdowns, newest first."
          items:
            $ref: "#/components/schemas/CashFlowStatementSegments"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of /financials/cash-flow-statements/segments; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/cash-flow-statements/segments?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - cash_flow_statement_segments: []
    FilingExhibit:
      type: "object"
      description: "An exhibit of an 8-K."
      additionalProperties: false
      required:
        - "number"
        - "description"
        - "url"
      properties:
        number:
          type: "string"
          pattern: "^[0-9]{1,3}(\\.[0-9A-Za-z]{1,6})?$"
          description: "The exhibit's number."
          examples:
            - "99.1"
        description:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The exhibit's description as filed."
          examples:
            - "EX-99.1"
        url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The exhibit's document on SEC EDGAR."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991q4202609262026.htm"
        text:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 5000000
          description: "The exhibit's text, when include_exhibits is true."
          examples:
            - "Apple reports fourth quarter results"
      examples:
        - number: "99.1"
          description: "EX-99.1"
          url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991q4202609262026.htm"
          text: "Apple reports fourth quarter results"
    FilingItem:
      type: "object"
      description: "One item of a filing."
      additionalProperties: false
      required:
        - "number"
        - "name"
        - "text"
      properties:
        number:
          type: "string"
          pattern: "^(Part-[12],)?Item-[0-9]{1,2}(\\.[0-9]{2}|[A-Ca-c])?$"
          description: "The item, as /filings/items/types names it."
          examples:
            - "Item-2.02"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The item's title as the filing prints it."
          examples:
            - "Results of Operations"
        text:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10000000
          description: "The item's text, without its heading."
          examples:
            - "Apple issued a press release."
        exhibits:
          type: "array"
          maxItems: 100
          description: "An 8-K's exhibits this item names; Item 9.01 lists them all. Absent when there are none."
          items:
            $ref: "#/components/schemas/FilingExhibit"
      examples:
        - number: "Item-2.02"
          name: "Results of Operations and Financial Condition"
          text: "On October 30, 2026, Apple Inc. issued a press release regarding its financial results."
          exhibits:
            - number: "99.1"
              description: "EX-99.1"
              url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991q4202609262026.htm"
              text: "Apple reports fourth quarter results"
    FilingItemsResponse:
      type: "object"
      description: "The answer of GET /filings/items."
      additionalProperties: false
      required:
        - "resource"
        - "ticker"
        - "cik"
        - "filing_type"
        - "accession_number"
        - "year"
        - "quarter"
        - "filing_date"
        - "report_period"
        - "filing_url"
        - "items"
      properties:
        resource:
          type: "string"
          enum:
            - "filing-items"
          description: "Always filing-items."
          examples:
            - "filing-items"
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the filing's company."
          examples:
            - "AAPL"
        cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 4294967295
          description: "The SEC Central Index Key of the filing's company."
          examples:
            - 320193
        filing_type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form as EDGAR lists it, such as 10-K, 10-K405 or 8-K/A."
          examples:
            - "8-K"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing's accession number."
          examples:
            - "0000320193-26-000024"
        year:
          type: "integer"
          format: "int32"
          minimum: 1993
          maximum: 2100
          description: "The fiscal year of a 10-K or 10-Q; the filing year of an 8-K."
          examples:
            - 2026
        quarter:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 1
          maximum: 4
          description: "The fiscal quarter of a 10-Q; null for other forms."
          examples:
            - null
        filing_date:
          type: "string"
          format: "date"
          description: "The day the filing was filed."
          examples:
            - "2026-10-30"
        report_period:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The last day of the period the filing reports, when EDGAR names one."
          examples:
            - "2026-10-30"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The filing's index page on SEC EDGAR."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm"
        items:
          type: "array"
          maxItems: 100
          description: "The filing's items in the order it prints them."
          items:
            $ref: "#/components/schemas/FilingItem"
      examples:
        - resource: "filing-items"
          ticker: "AAPL"
          cik: 320193
          filing_type: "8-K"
          accession_number: "0000320193-26-000024"
          year: 2026
          quarter: null
          filing_date: "2026-10-30"
          report_period: "2026-10-30"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm"
          items:
            - number: "Item-2.02"
              name: "Results of Operations and Financial Condition"
              text: "On October 30, 2026, Apple Inc. issued a press release regarding its financial results."
              exhibits:
                - number: "99.1"
                  description: "EX-99.1"
                  url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991q4202609262026.htm"
                  text: "Apple reports fourth quarter results"
    FilingItemsAccepted:
      type: "object"
      description: "The answer of GET /filings/items while Darvas reads the filing."
      additionalProperties: false
      required:
        - "status"
        - "request_id"
        - "accession_number"
        - "result_url"
        - "estimated_ready_at"
        - "message"
      properties:
        status:
          type: "string"
          enum:
            - "processing"
          description: "Always processing on a 202."
          examples:
            - "processing"
        request_id:
          type: "string"
          pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          description: "The identifier of the request Darvas accepted."
          examples:
            - "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the request Darvas accepted."
          examples:
            - "0000320193-26-000024"
        result_url:
          type: "string"
          format: "uri"
          maxLength: 200
          description: "The URL to poll for the result."
          examples:
            - "https://api.darvas.app/v1/filings/items/requests/6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
        estimated_ready_at:
          type: "string"
          format: "date-time"
          description: "When the filing should be read."
          examples:
            - "2026-11-25T18:30:45.000Z"
        message:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What to do next."
          examples:
            - "Poll result_url after Retry-After seconds."
      examples:
        - status: "processing"
          request_id: "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
          accession_number: "0000320193-26-000024"
          estimated_ready_at: "2026-11-25T18:30:45.000Z"
          result_url: "https://api.darvas.app/v1/filings/items/requests/6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
          message: "Darvas is reading this filing from SEC EDGAR. Poll result_url after Retry-After seconds, or send this request again."
    FilingItemsRequestProcessing:
      type: "object"
      description: "A request whose filing Darvas is still reading."
      additionalProperties: false
      required:
        - "status"
        - "request_id"
        - "accession_number"
        - "estimated_ready_at"
      properties:
        status:
          type: "string"
          enum:
            - "processing"
          description: "Poll again after Retry-After seconds."
          examples:
            - "processing"
        request_id:
          type: "string"
          pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          description: "The identifier of the request still being read."
          examples:
            - "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the request still being read."
          examples:
            - "0000320193-26-000024"
        estimated_ready_at:
          type: "string"
          format: "date-time"
          description: "When the filing should be read by now."
          examples:
            - "2026-11-25T18:30:45.000Z"
      examples:
        - status: "processing"
          request_id: "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
          accession_number: "0000320193-26-000024"
          estimated_ready_at: "2026-11-25T18:30:45.000Z"
    FilingItemsRequestFailed:
      type: "object"
      description: "A request whose filing Darvas could not read."
      additionalProperties: false
      required:
        - "status"
        - "request_id"
        - "accession_number"
        - "message"
      properties:
        status:
          type: "string"
          enum:
            - "failed"
          description: "Send the first request again to retry."
          examples:
            - "failed"
        request_id:
          type: "string"
          pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
          description: "The identifier of the request that failed."
          examples:
            - "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the request that failed."
          examples:
            - "0000320193-26-000024"
        message:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Why the request failed and how to retry."
          examples:
            - "Darvas could not read this filing."
      examples:
        - status: "failed"
          request_id: "6f1c3a52-7d5e-4a2b-9c1d-2e3f4a5b6c7d"
          accession_number: "0000320193-26-000024"
          message: "Darvas could not read this filing from SEC EDGAR. Send the GET /filings/items request again to retry."
    FilingItemType:
      type: "object"
      description: "An item a form can have."
      additionalProperties: false
      required:
        - "name"
        - "title"
        - "description"
      properties:
        name:
          type: "string"
          pattern: "^(Part-[12],)?Item-[0-9]{1,2}(\\.[0-9]{2}|[A-Ca-c])?$"
          description: "The item's name in /filings/items."
          examples:
            - "Item-1A"
        title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The item's title in the form."
          examples:
            - "Risk Factors"
        description:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "What the item holds."
          examples:
            - "The material risks to the company and its securities."
      examples:
        - name: "Item-1A"
          title: "Risk Factors"
          description: "The material risks to the company and its securities."
    FilingItemTypesResponse:
      type: "object"
      description: "The answer of GET /filings/items/types: each form asked for and its items."
      additionalProperties: false
      required: []
      properties:
        "10-K":
          type: "array"
          maxItems: 40
          description: "The items of a 10-K."
          items:
            $ref: "#/components/schemas/FilingItemType"
        "10-Q":
          type: "array"
          maxItems: 40
          description: "The items of a 10-Q."
          items:
            $ref: "#/components/schemas/FilingItemType"
        "8-K":
          type: "array"
          maxItems: 40
          description: "The items of a 8-K."
          items:
            $ref: "#/components/schemas/FilingItemType"
      examples:
        - "10-Q":
            - name: "Part-1,Item-2"
              title: "Management's Discussion and Analysis of Financial Condition and Results of Operations"
              description: "Management's account of the quarter's results and liquidity."
    EarningsSignalDetails:
      type: "object"
      description: "The figures behind a signal; fields it does not use are absent."
      additionalProperties: false
      required:
        - "current"
      properties:
        current:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The figure of the filing's period."
          examples:
            - 114477000000
        yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Its change against the same period a year before, as a decimal."
          examples:
            - 0.117
        yoy_chg_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "A margin's change against the same period a year before, in basis points."
          examples:
            - 113
      examples:
        - current: 114477000000
          yoy_chg: 0.117
    EarningsSignal:
      type: "object"
      description: "A change against the same period a year before large enough to note."
      additionalProperties: false
      required:
        - "type"
        - "importance"
        - "metric"
        - "period"
        - "headline"
        - "details"
      properties:
        type:
          type: "string"
          enum:
            - "REVENUE_INCREASE"
            - "STRONG_REVENUE_INCREASE"
            - "REVENUE_DECLINE"
            - "STRONG_REVENUE_DECLINE"
            - "NET_INCOME_INCREASE"
            - "STRONG_NET_INCOME_INCREASE"
            - "NET_INCOME_DECLINE"
            - "STRONG_NET_INCOME_DECLINE"
            - "EPS_INCREASE"
            - "STRONG_EPS_INCREASE"
            - "EPS_DECLINE"
            - "STRONG_EPS_DECLINE"
            - "MARGIN_EXPANSION"
            - "MARGIN_CONTRACTION"
          description: "Revenue moved 10% (strong at 20%), net income or EPS 15% (30%), or a margin 100 bps, year over year."
          examples:
            - "REVENUE_INCREASE"
        importance:
          type: "string"
          enum:
            - "HIGH"
            - "MEDIUM"
            - "LOW"
          description: "Strong moves are HIGH; margins move LOW, MEDIUM from 300 bps."
          examples:
            - "MEDIUM"
        metric:
          type: "string"
          pattern: "^[a-z_]{1,40}$"
          description: "The figure the signal is about."
          examples:
            - "revenue"
        period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4])$"
          description: "The fiscal period of the filing."
          examples:
            - "2026-Q4"
        headline:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "A sentence for display."
          examples:
            - "Revenue up 11.7% year over year"
        details:
          $ref: "#/components/schemas/EarningsSignalDetails"
      examples:
        - type: "REVENUE_INCREASE"
          importance: "MEDIUM"
          metric: "revenue"
          period: "2026-Q4"
          headline: "Revenue up 11.7% year over year"
          details:
            current: 114477000000
            yoy_chg: 0.117229
    EarningsPeriod:
      type: "object"
      description: "The figures of one period of a filing; an 8-K gives only what its release prints, and its other figures are null."
      additionalProperties: false
      required:
        - "revenue"
        - "earnings_per_share"
        - "earnings_per_share_diluted"
        - "gross_profit"
        - "operating_income"
        - "net_income"
        - "weighted_average_shares"
        - "weighted_average_shares_diluted"
        - "cash_and_equivalents"
        - "change_in_cash_and_equivalents"
        - "total_debt"
        - "total_assets"
        - "total_liabilities"
        - "shareholders_equity"
        - "net_cash_flow_from_operations"
        - "net_cash_flow_from_investing"
        - "net_cash_flow_from_financing"
        - "capital_expenditure"
        - "free_cash_flow"
      properties:
        revenue:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue."
          examples:
            - null
        earnings_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Basic earnings per share of the period."
          examples:
            - null
        earnings_per_share_diluted:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Diluted earnings per share of the period."
          examples:
            - null
        gross_profit:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Gross profit."
          examples:
            - null
        operating_income:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Operating income."
          examples:
            - null
        net_income:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net income attributable to the parent."
          examples:
            - null
        weighted_average_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weighted average shares, basic."
          examples:
            - null
        weighted_average_shares_diluted:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weighted average shares, diluted."
          examples:
            - null
        cash_and_equivalents:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cash and cash equivalents at the period's end."
          examples:
            - null
        change_in_cash_and_equivalents:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in cash and equivalents over the period."
          examples:
            - null
        total_debt:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total debt at the period's end."
          examples:
            - null
        total_assets:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total assets at the period's end."
          examples:
            - null
        total_liabilities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total liabilities at the period's end."
          examples:
            - null
        shareholders_equity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shareholders' equity at the period's end."
          examples:
            - null
        net_cash_flow_from_operations:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net cash flow from operating activities."
          examples:
            - null
        net_cash_flow_from_investing:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net cash flow from investing activities."
          examples:
            - null
        net_cash_flow_from_financing:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net cash flow from financing activities."
          examples:
            - null
        capital_expenditure:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Capital expenditure, negative as cash leaves."
          examples:
            - null
        free_cash_flow:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Free cash flow: operating cash flow plus capital expenditure."
          examples:
            - null
        gross_margin:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The gross margin as a decimal of revenue; absent without revenue."
          examples:
            - 0.48
        gross_margin_chg_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in gross margin against the period before, in basis points."
          examples:
            - 120
        gross_margin_chg_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in gross margin against the period before, as a decimal of the earlier margin."
          examples:
            - 0.02
        gross_margin_yoy_chg_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in gross margin against the same quarter a year before, in basis points."
          examples:
            - 113
        gross_margin_yoy_chg_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in gross margin against the same quarter a year before, as a decimal of the earlier margin."
          examples:
            - 0.02
        operating_margin:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The operating margin as a decimal of revenue; absent without revenue."
          examples:
            - 0.48
        operating_margin_chg_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in operating margin against the period before, in basis points."
          examples:
            - 120
        operating_margin_chg_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in operating margin against the period before, as a decimal of the earlier margin."
          examples:
            - 0.02
        operating_margin_yoy_chg_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in operating margin against the same quarter a year before, in basis points."
          examples:
            - 113
        operating_margin_yoy_chg_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in operating margin against the same quarter a year before, as a decimal of the earlier margin."
          examples:
            - 0.02
        net_margin:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The net margin as a decimal of revenue; absent without revenue."
          examples:
            - 0.48
        net_margin_chg_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net margin against the period before, in basis points."
          examples:
            - 120
        net_margin_chg_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net margin against the period before, as a decimal of the earlier margin."
          examples:
            - 0.02
        net_margin_yoy_chg_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net margin against the same quarter a year before, in basis points."
          examples:
            - 113
        net_margin_yoy_chg_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net margin against the same quarter a year before, as a decimal of the earlier margin."
          examples:
            - 0.02
        revenue_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in revenue against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        revenue_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in revenue against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        earnings_per_share_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in earnings per share against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        earnings_per_share_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in earnings per share against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        gross_profit_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in gross profit against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        gross_profit_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in gross profit against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        operating_income_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in operating income against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        operating_income_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in operating income against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        net_income_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net income against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        net_income_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net income against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        net_cash_flow_from_operations_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net cash flow from operations against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        net_cash_flow_from_operations_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net cash flow from operations against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        net_cash_flow_from_investing_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net cash flow from investing against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        net_cash_flow_from_investing_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net cash flow from investing against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        net_cash_flow_from_financing_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net cash flow from financing against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        net_cash_flow_from_financing_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in net cash flow from financing against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        capital_expenditure_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in capital expenditure against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        capital_expenditure_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in capital expenditure against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
        free_cash_flow_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in free cash flow against the period before, as a decimal: the quarter before in a quarterly block, the year before in an annual one. Absent when it cannot be computed."
          examples:
            - 0.1
        free_cash_flow_yoy_chg:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change in free cash flow against the same quarter a year before, as a decimal; quarterly blocks only."
          examples:
            - 0.1
      examples:
        - revenue: 114477000000
          earnings_per_share: 2.11
          earnings_per_share_diluted: 2.1
          gross_profit: null
          operating_income: null
          net_income: 30711000000
          weighted_average_shares: null
          weighted_average_shares_diluted: null
          cash_and_equivalents: null
          change_in_cash_and_equivalents: null
          total_debt: null
          total_assets: null
          total_liabilities: null
          shareholders_equity: null
          net_cash_flow_from_operations: null
          net_cash_flow_from_investing: null
          net_cash_flow_from_financing: null
          capital_expenditure: null
          free_cash_flow: null
          revenue_chg: 0.217374
          revenue_yoy_chg: 0.117229
          gross_margin: 0.478856
          gross_margin_yoy_chg_bps: 113.2
    EarningsRecord:
      type: "object"
      description: "One filing that reports a period."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "currency"
        - "source_type"
        - "filing_date"
        - "filing_datetime"
        - "filing_window"
        - "filing_url"
        - "accession_number"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company."
          examples:
            - "AAPL"
        report_period:
          type: "string"
          format: "date"
          description: "The last day of the period."
          examples:
            - "2026-09-26"
        fiscal_period:
          type: "string"
          pattern: "^[0-9]{4}-(FY|Q[1-4])$"
          description: "The fiscal period, as the company's 10-Q and 10-K name it."
          examples:
            - "2026-Q4"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The currency of the amounts."
          examples:
            - "USD"
        source_type:
          type: "string"
          pattern: "^[0-9A-Z-]{2,8}(/A)?$"
          description: "The form: 8-K for a release, 10-Q, 10-K, 20-F or 40-F."
          examples:
            - "8-K"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the filing, in Eastern Time."
          examples:
            - "2026-10-30"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "When SEC accepted the filing, in Eastern Time."
          examples:
            - "2026-10-30T16:30:21-04:00"
        filing_window:
          type:
            - "string"
            - "null"
          enum:
            - "PRE_MARKET"
            - "DURING_MARKET"
            - "AFTER_HOURS"
            - "WEEKEND"
            - null
          description: "The market session at acceptance, in Eastern Time: PRE_MARKET weekdays 04:00 to 09:30, DURING_MARKET 09:30 to 16:00, AFTER_HOURS the rest of a weekday, WEEKEND Saturday and Sunday."
          examples:
            - "AFTER_HOURS"
        signals:
          type: "array"
          maxItems: 8
          description: "Signals the filing's figures raise, most material first; absent when none."
          items:
            $ref: "#/components/schemas/EarningsSignal"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page on SEC EDGAR of the earnings filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The accession number of the earnings filing."
          examples:
            - "0000320193-26-000024"
        quarterly:
          $ref: "#/components/schemas/EarningsPeriod"
        annual:
          $ref: "#/components/schemas/EarningsPeriod"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-Q4"
          currency: "USD"
          source_type: "8-K"
          filing_date: "2026-10-30"
          filing_datetime: "2026-10-30T16:30:21-04:00"
          filing_window: "AFTER_HOURS"
          signals:
            - type: "REVENUE_INCREASE"
              importance: "MEDIUM"
              metric: "revenue"
              period: "2026-Q4"
              headline: "Revenue up 11.7% year over year"
              details:
                current: 114477000000
                yoy_chg: 0.117229
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm"
          accession_number: "0000320193-26-000024"
          quarterly:
            revenue: 114477000000
            earnings_per_share: 2.11
            earnings_per_share_diluted: 2.1
            gross_profit: null
            operating_income: null
            net_income: 30711000000
            weighted_average_shares: null
            weighted_average_shares_diluted: null
            cash_and_equivalents: null
            change_in_cash_and_equivalents: null
            total_debt: null
            total_assets: null
            total_liabilities: null
            shareholders_equity: null
            net_cash_flow_from_operations: null
            net_cash_flow_from_investing: null
            net_cash_flow_from_financing: null
            capital_expenditure: null
            free_cash_flow: null
            revenue_chg: 0.217374
            revenue_yoy_chg: 0.117229
            gross_margin: 0.478856
            gross_margin_yoy_chg_bps: 113.2
    EarningsResponse:
      type: "object"
      description: "The answer of GET /earnings."
      additionalProperties: false
      required:
        - "earnings"
      properties:
        earnings:
          type: "array"
          maxItems: 100
          description: "The filings, as the operation sorts them."
          items:
            $ref: "#/components/schemas/EarningsRecord"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The page of older periods; absent on the last one and in the feed."
          examples:
            - "https://api.darvas.app/v1/earnings?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - earnings:
            - ticker: "AAPL"
              report_period: "2026-09-26"
              fiscal_period: "2026-Q4"
              currency: "USD"
              source_type: "8-K"
              filing_date: "2026-10-30"
              filing_datetime: "2026-10-30T16:30:21-04:00"
              filing_window: "AFTER_HOURS"
              signals:
                - type: "REVENUE_INCREASE"
                  importance: "MEDIUM"
                  metric: "revenue"
                  period: "2026-Q4"
                  headline: "Revenue up 11.7% year over year"
                  details:
                    current: 114477000000
                    yoy_chg: 0.117229
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/0000320193-26-000024-index.htm"
              accession_number: "0000320193-26-000024"
              quarterly:
                revenue: 114477000000
                earnings_per_share: 2.11
                earnings_per_share_diluted: 2.1
                gross_profit: null
                operating_income: null
                net_income: 30711000000
                weighted_average_shares: null
                weighted_average_shares_diluted: null
                cash_and_equivalents: null
                change_in_cash_and_equivalents: null
                total_debt: null
                total_assets: null
                total_liabilities: null
                shareholders_equity: null
                net_cash_flow_from_operations: null
                net_cash_flow_from_investing: null
                net_cash_flow_from_financing: null
                capital_expenditure: null
                free_cash_flow: null
                revenue_chg: 0.217374
                revenue_yoy_chg: 0.117229
                gross_margin: 0.478856
                gross_margin_yoy_chg_bps: 113.2
    EarningsTickersResponse:
      type: "object"
      description: "The answer of GET /earnings/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "earnings"
          description: "Always earnings."
          examples:
            - "earnings"
        tickers:
          type: "array"
          maxItems: 50000
          description: "The tickers, in order."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            maxLength: 12
      examples:
        - resource: "earnings"
          tickers:
            - "AAPL"
            - "MSFT"
    KpiMetric:
      type: "object"
      description: "A sector KPI of an earnings release."
      additionalProperties: false
      required:
        - "ticker"
        - "metric_name"
        - "value"
        - "unit"
        - "period"
        - "period_type"
        - "source_text"
        - "source_url"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the KPI."
          examples:
            - "AAPL"
        metric_name:
          type: "string"
          pattern: "^[a-z0-9_]{1,80}$"
          description: "The name of the KPI, in snake case."
          examples:
            - "revenue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of the KPI; the midpoint of a range."
          examples:
            - 10.47
        unit:
          type: "string"
          enum:
            - "%"
            - "dollars"
            - "dollars per share"
            - "dollars per unit"
            - "count"
            - "ratio"
          description: "The unit of the KPI's numbers."
          examples:
            - "%"
        period:
          type: "string"
          pattern: "^(Q[1-4]|FY) [0-9]{4}$"
          description: "The period of the KPI, as Q2 2026 or FY 2026."
          examples:
            - "Q2 2026"
        period_type:
          type: "string"
          enum:
            - "quarterly"
            - "annual"
          description: "Whether the KPI is of a quarter or a year."
          examples:
            - "quarterly"
        source_text:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2000
          description: "The text the KPI was read from."
          examples:
            - "Adjusted EBITDA: 1054"
        source_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The exhibit on SEC EDGAR the KPI was read from, with a fragment that highlights the text."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
        sector:
          type: "string"
          pattern: "^[a-z_]{1,40}$"
          description: "The sector the KPI is listed under."
          examples:
            - "banks"
        yoy_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value a year before, when the release compares."
          examples:
            - 10.1
        yoy_change_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The change against that value, as a decimal."
          examples:
            - 0.036
      examples:
        - ticker: "ASB"
          metric_name: "cet1_ratio"
          value: 10.47
          unit: "%"
          period: "Q2 2026"
          period_type: "quarterly"
          sector: "banks"
          source_text: "Capital The Company’s capital position remains strong, with a CET1 capital ratio of 10.47% at June 30, 2026."
          source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
    KpiGuidance:
      type: "object"
      description: "Guidance of an earnings release."
      additionalProperties: false
      required:
        - "ticker"
        - "metric_name"
        - "value"
        - "unit"
        - "period"
        - "period_type"
        - "source_text"
        - "source_url"
        - "raw_text"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the guidance."
          examples:
            - "AAPL"
        metric_name:
          type: "string"
          pattern: "^[a-z0-9_]{1,80}$"
          description: "The name of the guidance, in snake case."
          examples:
            - "revenue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of the guidance; the midpoint of a range."
          examples:
            - 10.47
        unit:
          type: "string"
          enum:
            - "%"
            - "dollars"
            - "dollars per share"
            - "dollars per unit"
            - "count"
            - "ratio"
          description: "The unit of the guidance's numbers."
          examples:
            - "%"
        period:
          type: "string"
          pattern: "^(Q[1-4]|FY) [0-9]{4}$"
          description: "The period of the guidance, as Q2 2026 or FY 2026."
          examples:
            - "Q2 2026"
        period_type:
          type: "string"
          enum:
            - "quarterly"
            - "annual"
          description: "Whether the guidance is of a quarter or a year."
          examples:
            - "quarterly"
        source_text:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2000
          description: "The text the guidance was read from."
          examples:
            - "Adjusted EBITDA: 1054"
        source_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The exhibit on SEC EDGAR the guidance was read from, with a fragment that highlights the text."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The low end of a range."
          examples:
            - 105840000000
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The high end of a range."
          examples:
            - 110160000000
        point_estimate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "A single figure when the guidance gives no range."
          examples:
            - null
        prior_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The guidance a revision replaces."
          examples:
            - null
        change_direction:
          type: "string"
          enum:
            - "raised"
            - "lowered"
            - "maintained"
            - "initiated"
            - "withdrawn"
          description: "How the release says the guidance changed; absent when it does not."
          examples:
            - "raised"
        raw_text:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2000
          description: "The sentence or table line of the guidance."
          examples:
            - "Revenue is expected to be $108.0 billion, plus or minus 2%."
      examples:
        - ticker: "NVDA"
          metric_name: "revenue"
          value: 108000000000
          unit: "dollars"
          period: "Q3 2027"
          period_type: "quarterly"
          low: 105840000000
          high: 110160000000
          raw_text: "Revenue is expected to be $108.0 billion, plus or minus 2%."
          source_text: "Revenue is expected to be $108.0 billion, plus or minus 2%."
          source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
    KpiNonGaap:
      type: "object"
      description: "A non-GAAP metric of an earnings release reconciliation."
      additionalProperties: false
      required:
        - "ticker"
        - "metric_name"
        - "value"
        - "unit"
        - "period"
        - "period_type"
        - "source_text"
        - "source_url"
        - "gaap_equivalent"
        - "key_adjustments"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the company of the non-GAAP metric."
          examples:
            - "AAPL"
        metric_name:
          type: "string"
          pattern: "^[a-z0-9_]{1,80}$"
          description: "The name of the non-GAAP metric, in snake case."
          examples:
            - "revenue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of the non-GAAP metric; the midpoint of a range."
          examples:
            - 10.47
        unit:
          type: "string"
          enum:
            - "%"
            - "dollars"
            - "dollars per share"
            - "dollars per unit"
            - "count"
            - "ratio"
          description: "The unit of the non-GAAP metric's numbers."
          examples:
            - "%"
        period:
          type: "string"
          pattern: "^(Q[1-4]|FY) [0-9]{4}$"
          description: "The period of the non-GAAP metric, as Q2 2026 or FY 2026."
          examples:
            - "Q2 2026"
        period_type:
          type: "string"
          enum:
            - "quarterly"
            - "annual"
          description: "Whether the non-GAAP metric is of a quarter or a year."
          examples:
            - "quarterly"
        source_text:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2000
          description: "The text the non-GAAP metric was read from."
          examples:
            - "Adjusted EBITDA: 1054"
        source_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The exhibit on SEC EDGAR the non-GAAP metric was read from, with a fragment that highlights the text."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
        gaap_equivalent:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The GAAP line the reconciliation starts from."
          examples:
            - "Net income"
        key_adjustments:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2000
          description: "The reconciliation's lines between, separated by semicolons."
          examples:
            - "Interest expense; Income tax expense"
      examples:
        - ticker: "HLT"
          metric_name: "adjusted_ebitda"
          value: 1054000000
          unit: "dollars"
          period: "Q2 2026"
          period_type: "quarterly"
          gaap_equivalent: "Net income"
          key_adjustments: "Interest expense; Income tax expense; Depreciation and amortization expenses"
          source_text: "Adjusted EBITDA: 1054"
          source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
    KpiMetricsResponse:
      type: "object"
      description: "The answer of GET /kpi/metrics."
      additionalProperties: false
      required:
        - "kpi_metrics"
      properties:
        kpi_metrics:
          type: "array"
          maxItems: 2000
          description: "The kpi metrics of this page, newest release first."
          items:
            $ref: "#/components/schemas/KpiMetric"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The page of older releases of /kpi/metrics; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/kpi/metrics?cursor=eyJjaWsiOjc3ODl9"
      examples:
        - kpi_metrics:
            - ticker: "ASB"
              metric_name: "cet1_ratio"
              value: 10.47
              unit: "%"
              period: "Q2 2026"
              period_type: "quarterly"
              sector: "banks"
              source_text: "Capital The Company’s capital position remains strong, with a CET1 capital ratio of 10.47% at June 30, 2026."
              source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
    KpiGuidanceResponse:
      type: "object"
      description: "The answer of GET /kpi/guidance."
      additionalProperties: false
      required:
        - "kpi_guidance"
      properties:
        kpi_guidance:
          type: "array"
          maxItems: 2000
          description: "The kpi guidance of this page, newest release first."
          items:
            $ref: "#/components/schemas/KpiGuidance"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The page of older releases of /kpi/guidance; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/kpi/guidance?cursor=eyJjaWsiOjc3ODl9"
      examples:
        - kpi_guidance:
            - ticker: "NVDA"
              metric_name: "revenue"
              value: 108000000000
              unit: "dollars"
              period: "Q3 2027"
              period_type: "quarterly"
              low: 105840000000
              high: 110160000000
              raw_text: "Revenue is expected to be $108.0 billion, plus or minus 2%."
              source_text: "Revenue is expected to be $108.0 billion, plus or minus 2%."
              source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
    KpiNonGaapResponse:
      type: "object"
      description: "The answer of GET /kpi/non-gaap."
      additionalProperties: false
      required:
        - "kpi_non_gaap"
      properties:
        kpi_non_gaap:
          type: "array"
          maxItems: 2000
          description: "The kpi non gaap of this page, newest release first."
          items:
            $ref: "#/components/schemas/KpiNonGaap"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The page of older releases of /kpi/non-gaap; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/kpi/non-gaap?cursor=eyJjaWsiOjc3ODl9"
      examples:
        - kpi_non_gaap:
            - ticker: "HLT"
              metric_name: "adjusted_ebitda"
              value: 1054000000
              unit: "dollars"
              period: "Q2 2026"
              period_type: "quarterly"
              gaap_equivalent: "Net income"
              key_adjustments: "Interest expense; Income tax expense; Depreciation and amortization expenses"
              source_text: "Adjusted EBITDA: 1054"
              source_url: "https://www.sec.gov/Archives/edgar/data/7789/000000778926000191/ex991.htm#:~:text=Capital%20The%20Company%E2%80%99s%20capital%20position"
    KpiTickersResponse:
      type: "object"
      description: "The answer of GET /kpi/metrics/tickers."
      additionalProperties: false
      required:
        - "resource"
        - "tickers"
      properties:
        resource:
          type: "string"
          enum:
            - "kpi_metrics"
          description: "Always kpi_metrics, for the tickers."
          examples:
            - "kpi_metrics"
        tickers:
          type: "array"
          maxItems: 50000
          description: "The tickers with KPIs, in order."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            maxLength: 12
      examples:
        - resource: "kpi_metrics"
          tickers:
            - "ASB"
            - "DAL"
    KpiSectorsResponse:
      type: "object"
      description: "The answer of GET /kpi/metrics/sectors."
      additionalProperties: false
      required:
        - "resource"
        - "sectors"
      properties:
        resource:
          type: "string"
          enum:
            - "kpi_metrics"
          description: "Always kpi_metrics, for the sectors."
          examples:
            - "kpi_metrics"
        sectors:
          type: "array"
          maxItems: 100
          description: "The sectors, in order."
          items:
            type: "string"
            pattern: "^[a-z_]{1,40}$"
            maxLength: 40
      examples:
        - resource: "kpi_metrics"
          sectors:
            - "airlines"
            - "banks"
    News:
      type: "object"
      description: "One piece of news from its primary source."
      additionalProperties: false
      required:
        - "ticker"
        - "title"
        - "source"
        - "date"
        - "url"
        - "published_at"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of a company's news; null for market news."
          examples:
            - "AAPL"
        title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The headline."
          examples:
            - "Apple reports fourth quarter results"
        source:
          type: "string"
          pattern: "^[a-z.]{3,40}$"
          description: "The site that published it."
          examples:
            - "sec.gov"
        date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The day it was published."
          examples:
            - "2026-10-30"
        url:
          type: "string"
          format: "uri"
          maxLength: 1000
          description: "The release or filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991.htm"
        published_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "When it was published, in UTC, when the source says."
          examples:
            - "2026-10-30T20:30:21Z"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "A company's news: the filing's accession number."
          examples:
            - "0000320193-26-000024"
      examples:
        - ticker: "AAPL"
          title: "Apple reports fourth quarter results"
          source: "sec.gov"
          date: "2026-10-30"
          url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991.htm"
          published_at: "2026-10-30T20:30:21Z"
          accession_number: "0000320193-26-000024"
    NewsResponse:
      type: "object"
      description: "The answer of GET /news."
      additionalProperties: false
      required:
        - "news"
      properties:
        news:
          type: "array"
          maxItems: 100
          description: "The news, newest first."
          items:
            $ref: "#/components/schemas/News"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of older news; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/news?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - news:
            - ticker: "AAPL"
              title: "Apple reports fourth quarter results"
              source: "sec.gov"
              date: "2026-10-30"
              url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000024/a8-kex991.htm"
              published_at: "2026-10-30T20:30:21Z"
              accession_number: "0000320193-26-000024"
    SearchRequest:
      type: "object"
      description: "A question and the filings to search."
      additionalProperties: false
      required:
        - "query"
      properties:
        query:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "One question in plain English, 1 to 300 characters."
          examples:
            - "What supply chain risks does Apple face?"
        filters:
          $ref: "#/components/schemas/SearchFilters"
        limit:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 10
          default: 5
          description: "The most filings to return."
          examples:
            - 3
      examples:
        - query: "What supply chain risks does Apple face?"
          filters:
            identifiers:
              ticker:
                - "AAPL"
          limit: 3
    SearchFilters:
      type: "object"
      description: "Which filings to search."
      additionalProperties: false
      required: []
      properties:
        identifiers:
          $ref: "#/components/schemas/SearchIdentifiers"
        date:
          $ref: "#/components/schemas/SearchWindow"
        document_types:
          type: "array"
          maxItems: 3
          description: "Only these forms."
          items:
            type: "string"
            enum:
              - "10-K"
              - "10-Q"
              - "8-K"
      examples:
        - identifiers:
            ticker:
              - "AAPL"
    SearchIdentifiers:
      type: "object"
      description: "The companies to search; a ticker no listed company has is a 400."
      additionalProperties: false
      required: []
      properties:
        ticker:
          type: "array"
          maxItems: 20
          description: "Tickers, such as AAPL."
          items:
            type: "string"
            pattern: "^[A-Za-z0-9][A-Za-z0-9.-]{0,11}$"
            maxLength: 12
        cik:
          type: "array"
          maxItems: 20
          description: "SEC Central Index Keys, leading zeros optional."
          items:
            type: "string"
            pattern: "^[0-9]{1,10}$"
            maxLength: 10
      examples:
        - ticker:
            - "AAPL"
    SearchWindow:
      type: "object"
      description: "The days of the filings to search, both inclusive."
      additionalProperties: false
      required: []
      properties:
        after:
          type: "string"
          format: "date"
          maxLength: 10
          description: "Only filings made public on or after this day."
          examples:
            - "2025-01-01"
        before:
          type: "string"
          format: "date"
          maxLength: 10
          description: "Only filings made public on or before this day."
          examples:
            - "2026-12-31"
      examples:
        - after: "2025-01-01"
    SearchCitation:
      type: "object"
      description: "Where a passage was read, with a link that opens the filing there."
      additionalProperties: false
      required:
        - "document"
        - "date"
        - "section"
        - "link"
      properties:
        document:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The accession number of the cited filing."
          examples:
            - "0000320193-25-000079"
        date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The day the filing was made public."
          examples:
            - "2025-10-31"
        section:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The item or exhibit the passage is in."
          examples:
            - "Item 1A. Risk Factors"
        link:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The document, highlighted at the passage."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company"
      examples:
        - document: "0000320193-25-000079"
          date: "2025-10-31"
          section: "Item 1A. Risk Factors"
          link: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company%20depends%20on%20component%20suppliers"
    SearchExcerpt:
      type: "object"
      description: "One passage that answers, with its citation."
      additionalProperties: false
      required:
        - "text"
        - "citation"
        - "attributes"
      properties:
        text:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1000
          description: "The passage, verbatim, trimmed around its first match."
          examples:
            - "The Company depends on component suppliers."
        citation:
          $ref: "#/components/schemas/SearchCitation"
        attributes:
          $ref: "#/components/schemas/SearchExcerptAttributes"
      examples:
        - text: "The Company depends on component suppliers in its supply chain."
          citation:
            document: "0000320193-25-000079"
            date: "2025-10-31"
            section: "Item 1A. Risk Factors"
            link: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company%20depends%20on%20component%20suppliers"
          attributes:
            kind: "text"
    SearchExcerptAttributes:
      type: "object"
      description: "What is true of a passage."
      additionalProperties: false
      required:
        - "kind"
      properties:
        kind:
          type: "string"
          enum:
            - "text"
          description: "Running text."
          examples:
            - "text"
      examples:
        - kind: "text"
    SearchEntity:
      type: "object"
      description: "A company a result is about."
      additionalProperties: false
      required:
        - "name"
        - "identifiers"
      properties:
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The company's name."
          examples:
            - "Apple Inc."
        identifiers:
          $ref: "#/components/schemas/SearchEntityIdentifiers"
      examples:
        - name: "Apple Inc."
          identifiers:
            cik: "0000320193"
            ticker: "AAPL"
    SearchEntityIdentifiers:
      type: "object"
      description: "A company's identifiers."
      additionalProperties: false
      required:
        - "cik"
      properties:
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          description: "The CIK, zero-padded to 10 digits."
          examples:
            - "0000320193"
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The company's ticker, when it has one."
          examples:
            - "AAPL"
      examples:
        - cik: "0000320193"
          ticker: "AAPL"
    SearchResult:
      type: "object"
      description: "One filing and its passages that answer."
      additionalProperties: false
      required:
        - "title"
        - "url"
        - "date"
        - "source"
        - "excerpts"
        - "entities"
        - "attributes"
      properties:
        title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 400
          description: "The company, the form and the day."
          examples:
            - "Apple Inc. · 10-K 2025-10-31"
        url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page on SEC EDGAR of the result's filing."
          examples:
            - "https://www.sec.gov/x-index.htm"
        date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The day the result's filing was made public."
          examples:
            - "2025-10-31"
        source:
          type: "string"
          enum:
            - "sec.gov"
          description: "Always sec.gov."
          examples:
            - "sec.gov"
        excerpts:
          type: "array"
          maxItems: 10
          description: "The passages, best first; at most 10."
          items:
            $ref: "#/components/schemas/SearchExcerpt"
        entities:
          type: "array"
          maxItems: 5
          description: "The companies the filing is about."
          items:
            $ref: "#/components/schemas/SearchEntity"
        attributes:
          $ref: "#/components/schemas/SearchResultAttributes"
      examples:
        - title: "Apple Inc. · 10-K 2025-10-31"
          url: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm"
          date: "2025-10-31"
          source: "sec.gov"
          excerpts:
            - text: "The Company depends on component suppliers in its supply chain."
              citation:
                document: "0000320193-25-000079"
                date: "2025-10-31"
                section: "Item 1A. Risk Factors"
                link: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company%20depends%20on%20component%20suppliers"
              attributes:
                kind: "text"
          entities:
            - name: "Apple Inc."
              identifiers:
                cik: "0000320193"
                ticker: "AAPL"
          attributes:
            document_type: "10-K"
    SearchResultAttributes:
      type: "object"
      description: "What is true of a filing."
      additionalProperties: false
      required:
        - "document_type"
      properties:
        document_type:
          type: "string"
          enum:
            - "10-K"
            - "10-Q"
            - "8-K"
          description: "The form of the result's filing."
          examples:
            - "10-K"
      examples:
        - document_type: "10-K"
    SearchWarning:
      type: "object"
      description: "What a partial answer lacks."
      additionalProperties: false
      required:
        - "type"
        - "message"
        - "hint"
      properties:
        type:
          type: "string"
          pattern: "^[a-z_]{1,40}$"
          description: "A code to branch on."
          examples:
            - "filings_being_read"
        message:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What is missing."
          examples:
            - "Darvas is reading the newest 10-K and 10-Q of 1 of the companies."
        hint:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What to do."
          examples:
            - "Send the search again in a minute."
      examples:
        - type: "filings_being_read"
          message: "Darvas is reading filings."
          hint: "Send the search again in a minute."
    SearchResponse:
      type: "object"
      description: "The answer of POST /search."
      additionalProperties: false
      required:
        - "search_id"
        - "results"
      properties:
        search_id:
          type: "string"
          format: "uuid"
          maxLength: 36
          description: "The id of this search."
          examples:
            - "3120038d-9620-4b43-9412-a01b4a99d2a3"
        results:
          type: "array"
          maxItems: 10
          description: "One result per filing, best first."
          items:
            $ref: "#/components/schemas/SearchResult"
        warnings:
          type: "array"
          maxItems: 5
          description: "What the answer lacks; absent when nothing."
          items:
            $ref: "#/components/schemas/SearchWarning"
      examples:
        - search_id: "3120038d-9620-4b43-9412-a01b4a99d2a3"
          results:
            - title: "Apple Inc. · 10-K 2025-10-31"
              url: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm"
              date: "2025-10-31"
              source: "sec.gov"
              excerpts:
                - text: "The Company depends on component suppliers in its supply chain."
                  citation:
                    document: "0000320193-25-000079"
                    date: "2025-10-31"
                    section: "Item 1A. Risk Factors"
                    link: "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company%20depends%20on%20component%20suppliers"
                  attributes:
                    kind: "text"
              entities:
                - name: "Apple Inc."
                  identifiers:
                    cik: "0000320193"
                    ticker: "AAPL"
              attributes:
                document_type: "10-K"
    TokenTrade:
      type: "object"
      description: "The token's last trade in its pool."
      additionalProperties: false
      required:
        - "price"
        - "size_usd"
        - "side"
        - "transaction"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The dollars paid or got for one token, the pool's fee included."
          examples:
            - 148.7
        size_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The size of the trade in dollars."
          examples:
            - 1250.5
        side:
          type: "string"
          enum:
            - "buy"
            - "sell"
          description: "buy when the trader bought the token."
          examples:
            - "buy"
        transaction:
          type: "string"
          pattern: "^0x[0-9a-f]{64}$"
          description: "The trade's transaction on Base."
          examples:
            - "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
      examples:
        - price: 148.7
          size_usd: 1250.5
          side: "buy"
          transaction: "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
    TokenPool:
      type: "object"
      description: "The USDC pool the price comes from."
      additionalProperties: false
      required:
        - "address"
        - "venue"
        - "usdc"
        - "fee_percent"
      properties:
        address:
          type: "string"
          pattern: "^0x[0-9a-f]{40}$"
          description: "The pool's contract address, in lower case."
          examples:
            - "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
        venue:
          type: "string"
          enum:
            - "aerodrome"
            - "uniswap_v3"
          description: "The exchange the pool is on."
          examples:
            - "aerodrome"
        usdc:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The USDC the pool holds."
          examples:
            - 557129.41
        fee_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The pool's fee on a trade, in percent."
          examples:
            - 0.1122
      examples:
        - address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
          venue: "aerodrome"
          usdc: 557129.41
          fee_percent: 0.1122
    TokenStock:
      type: "object"
      description: "The stock's reference price: the token's published net asset value per share."
      additionalProperties: false
      required:
        - "ticker"
        - "price"
        - "time"
        - "source"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9.-]{1,12}$"
          description: "The stock's ticker as its price is stored."
          examples:
            - "NVDA"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The stock's reference price per share."
          examples:
            - 149.12
        time:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "When the feed last updated, in UTC."
          examples:
            - "2026-11-25T21:00:00.000Z"
        source:
          type: "string"
          enum:
            - "nav"
            - "stock_price"
          description: "Where the stock's price comes from: the token's net asset value, or /prices/snapshot."
          examples:
            - "nav"
      examples:
        - ticker: "NVDA"
          price: 149.11517182
          time: "2026-11-25T21:00:00.000Z"
          source: "nav"
    TokenizedStockSnapshot:
      type: "object"
      description: "A token's latest price."
      additionalProperties: false
      required:
        - "ticker"
        - "venue"
        - "market_type"
        - "instrument"
        - "chain"
        - "address"
        - "price"
        - "pool"
        - "shares_per_token"
        - "price_per_share"
        - "observed_at"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9.-]{1,24}$"
          description: "The instrument's ticker."
          examples:
            - "NVDAc"
        resolved_from:
          type: "string"
          pattern: "^[A-Za-z0-9.:_/-]{1,50}$"
          maxLength: 50
          description: "The ticker as sent, when it named the instrument another way, such as NVDA for NVDA-USDT-SWAP or NVDAx for NVDAX; absent when it was the ticker."
          examples:
            - "NVDA"
        venue:
          type: "string"
          enum:
            - "okx"
            - "bybit"
            - "base"
          description: "Where it trades: the exchange OKX or Bybit, or the Base chain."
          examples:
            - "base"
        market_type:
          type: "string"
          enum:
            - "swap"
            - "spot"
            - "token"
          description: "swap for an OKX perpetual, spot for a Bybit token, token on Base."
          examples:
            - "token"
        instrument:
          type: "string"
          pattern: "^[A-Za-z0-9:.-]{1,60}$"
          description: "The venue's own name for it; a Base token's address."
          examples:
            - "0xb20000000000000000000078ee7ce2fe4908108c"
        chain:
          type:
            - "string"
            - "null"
          enum:
            - "base"
            - null
          description: "The blockchain a Base token is on; null on an exchange."
          examples:
            - "base"
        address:
          type:
            - "string"
            - "null"
          pattern: "^0x[0-9a-f]{40}$"
          description: "A Base token's contract address, in lower case."
          examples:
            - "0xb20000000000000000000078ee7ce2fe4908108c"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The stock a Base token stands for."
          examples:
            - "NVIDIA"
        isin:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]{2}[A-Z0-9]{9}[0-9]$"
          description: "The stock's ISIN."
          examples:
            - "US67066G1040"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price of one token in dollars, from its pool; 1 USDC is 1 dollar."
          examples:
            - 148.62
        time:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "The time of the token's last trade, in UTC; null before one is seen."
          examples:
            - "2026-11-26T09:41:13Z"
        time_milliseconds:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The time of the last trade in milliseconds since epoch."
          examples:
            - 1795686073000
        last_trade:
          description: "The last trade; null before one is seen."
          anyOf:
            - $ref: "#/components/schemas/TokenTrade"
            - type: "null"
        pool:
          description: "A Base token's pool; null on an exchange."
          anyOf:
            - $ref: "#/components/schemas/TokenPool"
            - type: "null"
        shares_per_token:
          type:
            - "number"
            - "null"
          format: "double"
          description: "How many shares one token stands for."
          examples:
            - 1.0005
        price_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The token's price for one share: price over shares_per_token."
          examples:
            - 148.54
        stock:
          description: "The stock's reference price; null without a feed."
          anyOf:
            - $ref: "#/components/schemas/TokenStock"
            - type: "null"
        gap_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "price_per_share against the stock's price, in percent; below zero the token is cheaper."
          examples:
            - -0.3856
        observed_at:
          type: "string"
          format: "date-time"
          description: "When the pool was read."
          examples:
            - "2026-11-26T09:42:00.000Z"
      examples:
        - ticker: "NVDAc"
          venue: "base"
          market_type: "token"
          instrument: "0xb20000000000000000000078ee7ce2fe4908108c"
          chain: "base"
          address: "0xb20000000000000000000078ee7ce2fe4908108c"
          name: "NVIDIA"
          isin: "US67066G1040"
          price: 148.62
          time: "2026-11-26T09:41:13Z"
          time_milliseconds: 1795686073000
          last_trade:
            price: 148.7
            size_usd: 1250.5
            side: "buy"
            transaction: "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
          pool:
            address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
            venue: "aerodrome"
            usdc: 557129.41
            fee_percent: 0.1122
          shares_per_token: 1.0005379395763694
          price_per_share: 148.54
          stock:
            ticker: "NVDA"
            price: 149.11517182
            time: "2026-11-25T21:00:00.000Z"
            source: "nav"
          gap_percent: -0.3856
          observed_at: "2026-11-26T09:42:00.000Z"
    TokenizedStockSnapshotResponse:
      type: "object"
      description: "The answer of GET /tokenized-stocks/prices/snapshot."
      additionalProperties: false
      required:
        - "snapshot"
      properties:
        snapshot:
          $ref: "#/components/schemas/TokenizedStockSnapshot"
      examples:
        - snapshot:
            ticker: "NVDAc"
            venue: "base"
            market_type: "token"
            instrument: "0xb20000000000000000000078ee7ce2fe4908108c"
            chain: "base"
            address: "0xb20000000000000000000078ee7ce2fe4908108c"
            name: "NVIDIA"
            isin: "US67066G1040"
            price: 148.62
            time: "2026-11-26T09:41:13Z"
            time_milliseconds: 1795686073000
            last_trade:
              price: 148.7
              size_usd: 1250.5
              side: "buy"
              transaction: "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
            pool:
              address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
              venue: "aerodrome"
              usdc: 557129.41
              fee_percent: 0.1122
            shares_per_token: 1.0005379395763694
            price_per_share: 148.54
            stock:
              ticker: "NVDA"
              price: 149.11517182
              time: "2026-11-25T21:00:00.000Z"
              source: "nav"
            gap_percent: -0.3856
            observed_at: "2026-11-26T09:42:00.000Z"
    TokenizedStock:
      type: "object"
      description: "An instrument that tracks a US stock."
      additionalProperties: false
      required:
        - "ticker"
        - "venue"
        - "market_type"
        - "instrument"
        - "stock"
        - "shares_per_token"
        - "chain"
        - "address"
        - "name"
        - "isin"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9.-]{1,24}$"
          description: "The ticker /tokenized-stocks/prices/snapshot takes."
          examples:
            - "NVDAX"
        venue:
          type: "string"
          enum:
            - "okx"
            - "bybit"
            - "base"
          description: "The exchange or chain of a listed instrument."
          examples:
            - "bybit"
        market_type:
          type: "string"
          enum:
            - "swap"
            - "spot"
            - "token"
          description: "The kind of a listed instrument."
          examples:
            - "spot"
        instrument:
          type: "string"
          pattern: "^[A-Za-z0-9:.-]{1,60}$"
          description: "The venue's name of a listed instrument."
          examples:
            - "NVDAXUSDT"
        stock:
          type: "string"
          pattern: "^[A-Z0-9.]{1,15}$"
          description: "The stock a listed instrument tracks."
          examples:
            - "NVDA"
        shares_per_token:
          type:
            - "number"
            - "null"
          format: "double"
          description: "How many shares of the stock one token or contract stands for."
          examples:
            - 1.0017
        chain:
          type:
            - "string"
            - "null"
          enum:
            - "base"
            - null
          description: "The chain of a listed Base token; null on an exchange."
          examples:
            - null
        address:
          type:
            - "string"
            - "null"
          pattern: "^0x[0-9a-f]{40}$"
          description: "The address of a listed Base token, in lower case."
          examples:
            - "0xb20000000000000000000078ee7ce2fe4908108c"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The stock a listed Base token stands for."
          examples:
            - "NVIDIA"
        isin:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]{2}[A-Z0-9]{9}[0-9]$"
          description: "The ISIN of a listed token's stock."
          examples:
            - "US67066G1040"
      examples:
        - ticker: "NVDAX"
          venue: "bybit"
          market_type: "spot"
          instrument: "NVDAXUSDT"
          stock: "NVDA"
          shares_per_token: 1.0017
          chain: null
          address: null
          name: null
          isin: null
    TokenizedStocksResponse:
      type: "object"
      description: "The answer of GET /tokenized-stocks."
      additionalProperties: false
      required:
        - "resource"
        - "tokens"
      properties:
        resource:
          type: "string"
          enum:
            - "tokenized_stocks"
          description: "Always tokenized_stocks."
          examples:
            - "tokenized_stocks"
        tokens:
          type: "array"
          maxItems: 2000
          description: "The instruments, by ticker."
          items:
            $ref: "#/components/schemas/TokenizedStock"
      examples:
        - resource: "tokenized_stocks"
          tokens:
            - ticker: "NVDAX"
              venue: "bybit"
              market_type: "spot"
              instrument: "NVDAXUSDT"
              stock: "NVDA"
              shares_per_token: 1.0017
              chain: null
              address: null
              name: null
              isin: null
    WebhookCreate:
      type: "object"
      description: "A destination to make."
      additionalProperties: false
      required:
        - "url"
        - "events"
      properties:
        url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The HTTPS URL that receives the events."
          examples:
            - "https://hooks.example.com/darvas"
        events:
          type: "array"
          description: "The event types to receive."
          items:
            type: "string"
            enum:
              - "earnings.created"
              - "income_statements.created"
              - "balance_sheets.created"
              - "cash_flow_statements.created"
              - "financial_metrics.created"
              - "income_statement_segments.created"
              - "balance_sheet_segments.created"
              - "cash_flow_statement_segments.created"
              - "operating_kpis.created"
              - "forward_guidance.created"
              - "non_gaap_metrics.created"
              - "insider_trades.created"
              - "insider_ownership.created"
              - "insider_sale_notices.created"
              - "filing_items.metadata.created"
              - "yield_curve.created"
              - "inflation.created"
              - "labor.created"
              - "gdp.created"
              - "interest_rates.created"
            description: "An event type to receive."
          minItems: 1
          maxItems: 20
          examples:
            - - "earnings.created"
              - "income_statements.created"
      examples:
        - url: "https://hooks.example.com/darvas"
          events:
            - "earnings.created"
    Webhook:
      type: "object"
      description: "A webhook destination."
      additionalProperties: false
      required:
        - "id"
        - "url"
        - "events"
        - "active"
        - "consecutive_failures"
        - "created_at"
        - "disabled_at"
      properties:
        id:
          type: "string"
          format: "uuid"
          maxLength: 36
          description: "The destination's id."
          examples:
            - "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
        url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "Where the events go."
          examples:
            - "https://hooks.example.com/darvas"
        events:
          type: "array"
          description: "The event types the destination receives."
          items:
            type: "string"
            enum:
              - "earnings.created"
              - "income_statements.created"
              - "balance_sheets.created"
              - "cash_flow_statements.created"
              - "financial_metrics.created"
              - "income_statement_segments.created"
              - "balance_sheet_segments.created"
              - "cash_flow_statement_segments.created"
              - "operating_kpis.created"
              - "forward_guidance.created"
              - "non_gaap_metrics.created"
              - "insider_trades.created"
              - "insider_ownership.created"
              - "insider_sale_notices.created"
              - "filing_items.metadata.created"
              - "yield_curve.created"
              - "inflation.created"
              - "labor.created"
              - "gdp.created"
              - "interest_rates.created"
            description: "An event type it receives."
          minItems: 1
          maxItems: 20
          examples:
            - - "earnings.created"
              - "income_statements.created"
        active:
          type: "boolean"
          description: "False once 50 attempts in a row failed."
          examples:
            - true
        consecutive_failures:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 50
          description: "Failed attempts since the last delivery that succeeded."
          examples:
            - 0
        created_at:
          type: "string"
          format: "date-time"
          description: "When the destination was made."
          examples:
            - "2026-11-26T10:00:00.000Z"
        disabled_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "When the destination was disabled; null while active."
          examples:
            - null
      examples:
        - id: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
          url: "https://hooks.example.com/darvas"
          events:
            - "earnings.created"
            - "income_statements.created"
          active: true
          consecutive_failures: 0
          created_at: "2026-11-26T10:00:00.000Z"
          disabled_at: null
    WebhooksResponse:
      type: "object"
      description: "The answer of GET /webhooks."
      additionalProperties: false
      required:
        - "webhooks"
      properties:
        webhooks:
          type: "array"
          maxItems: 50
          description: "The destinations of the account, newest first."
          items:
            $ref: "#/components/schemas/Webhook"
      examples:
        - webhooks:
            - id: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
              url: "https://hooks.example.com/darvas"
              events:
                - "earnings.created"
                - "income_statements.created"
              active: true
              consecutive_failures: 0
              created_at: "2026-11-26T10:00:00.000Z"
              disabled_at: null
    WebhookCreatedResponse:
      type: "object"
      description: "The answer of POST /webhooks."
      additionalProperties: false
      required:
        - "webhook"
        - "secret"
      properties:
        webhook:
          $ref: "#/components/schemas/Webhook"
        secret:
          type: "string"
          pattern: "^whsec_[A-Za-z0-9_-]{43}$"
          description: "The destination's signing secret, shown this once."
          examples:
            - "whsec_4hY2k9vQ8mTzR1pL0sN3xW6bC7dE5fG8hJ2kL4mN6pQ"
      examples:
        - webhook:
            id: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
            url: "https://hooks.example.com/darvas"
            events:
              - "earnings.created"
              - "income_statements.created"
            active: true
            consecutive_failures: 0
            created_at: "2026-11-26T10:00:00.000Z"
            disabled_at: null
          secret: "whsec_4hY2k9vQ8mTzR1pL0sN3xW6bC7dE5fG8hJ2kL4mN6pQ"
    WebhookDeletedResponse:
      type: "object"
      description: "The answer of DELETE /webhooks/{webhook_id}."
      additionalProperties: false
      required:
        - "id"
        - "deleted"
      properties:
        id:
          type: "string"
          format: "uuid"
          maxLength: 36
          description: "The deleted destination's id."
          examples:
            - "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
        deleted:
          type: "boolean"
          enum:
            - true
          description: "Always true."
          examples:
            - true
      examples:
        - id: "7d0b6f3e-2a41-4c8e-9b55-1f2e3d4c5b6a"
          deleted: true
    WebhookTestResponse:
      type: "object"
      description: "The answer of POST /webhooks/{webhook_id}/test."
      additionalProperties: false
      required:
        - "id"
        - "type"
        - "livemode"
      properties:
        id:
          type: "string"
          pattern: "^evt_test_[0-9a-f]{32}$"
          description: "The test event's id."
          examples:
            - "evt_test_9c1f2e3d4b5a69788796a5b4c3d2e1f0"
        type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "The event type the test event carries."
          examples:
            - "earnings.created"
        livemode:
          type: "boolean"
          enum:
            - false
          description: "False for a test event."
          examples:
            - false
      examples:
        - id: "evt_test_9c1f2e3d4b5a69788796a5b4c3d2e1f0"
          type: "earnings.created"
          livemode: false
    FilingEvent:
      type: "object"
      description: "One 8-K or 8-K/A and the events it reports."
      additionalProperties: false
      required:
        - "ticker"
        - "cik"
        - "accession_number"
        - "form_type"
        - "filing_date"
        - "accepted_at"
        - "events"
        - "items"
        - "filing_url"
        - "items_url"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The filer's current ticker; null without one."
          examples:
            - "AAPL"
        cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 9999999999
          description: "The filer's CIK."
          examples:
            - 320193
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The 8-K's accession number."
          examples:
            - "0000320193-26-000200"
        form_type:
          type: "string"
          enum:
            - "8-K"
            - "8-K/A"
          description: "8-K, or 8-K/A for an amendment."
          examples:
            - "8-K"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the 8-K, in Eastern Time."
          examples:
            - "2026-11-25"
        accepted_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "When SEC accepted the 8-K, in UTC; null when SEC does not say."
          examples:
            - "2026-11-25T21:05:00Z"
        events:
          type: "array"
          description: "The event types of the 8-K's items, in item order."
          items:
            type: "string"
            enum:
              - "material_agreement"
              - "agreement_termination"
              - "bankruptcy"
              - "mine_safety"
              - "cybersecurity_incident"
              - "acquisition_or_disposition"
              - "results_of_operations"
              - "financial_obligation"
              - "obligation_acceleration"
              - "exit_costs"
              - "impairment"
              - "delisting"
              - "unregistered_equity_sale"
              - "holder_rights_change"
              - "auditor_change"
              - "non_reliance"
              - "change_in_control"
              - "executive_change"
              - "charter_amendment"
              - "trading_suspension"
              - "ethics_code_change"
              - "shell_status_change"
              - "shareholder_vote"
              - "shareholder_nominations"
              - "regulation_fd"
              - "other_event"
              - "financial_exhibits"
            description: "An event type the 8-K reports."
          maxItems: 40
          examples:
            - - "executive_change"
              - "financial_exhibits"
        items:
          type: "array"
          description: "The 8-K's item numbers as SEC lists them."
          items:
            type: "string"
            pattern: "^[0-9]{1,2}\\.[0-9]{2}$"
            description: "An item number."
            examples:
              - "5.02"
          maxItems: 40
          examples:
            - - "5.02"
              - "9.01"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The 8-K's index page on sec.gov."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000200/0000320193-26-000200-index.htm"
        items_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The request of /filings/items that answers the items' text."
          examples:
            - "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000200"
      examples:
        - ticker: "AAPL"
          cik: 320193
          accession_number: "0000320193-26-000200"
          form_type: "8-K"
          filing_date: "2026-11-25"
          accepted_at: "2026-11-25T21:05:00Z"
          events:
            - "executive_change"
            - "financial_exhibits"
          items:
            - "5.02"
            - "9.01"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000200/0000320193-26-000200-index.htm"
          items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000200"
    FilingEventsResponse:
      type: "object"
      description: "The answer of GET /filings/events."
      additionalProperties: false
      required:
        - "events"
      properties:
        events:
          type: "array"
          maxItems: 100
          description: "This page's 8-Ks, newest first."
          items:
            $ref: "#/components/schemas/FilingEvent"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 4000
          description: "The page of older 8-Ks; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/filings/events?cursor=eyJjaWsiOm51bGx9"
      examples:
        - events:
            - ticker: "AAPL"
              cik: 320193
              accession_number: "0000320193-26-000200"
              form_type: "8-K"
              filing_date: "2026-11-25"
              accepted_at: "2026-11-25T21:05:00Z"
              events:
                - "executive_change"
                - "financial_exhibits"
              items:
                - "5.02"
                - "9.01"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000200/0000320193-26-000200-index.htm"
              items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000200"
    FilingEventType:
      type: "object"
      description: "An 8-K event type."
      additionalProperties: false
      required:
        - "type"
        - "item"
        - "description"
      properties:
        type:
          type: "string"
          enum:
            - "material_agreement"
            - "agreement_termination"
            - "bankruptcy"
            - "mine_safety"
            - "cybersecurity_incident"
            - "acquisition_or_disposition"
            - "results_of_operations"
            - "financial_obligation"
            - "obligation_acceleration"
            - "exit_costs"
            - "impairment"
            - "delisting"
            - "unregistered_equity_sale"
            - "holder_rights_change"
            - "auditor_change"
            - "non_reliance"
            - "change_in_control"
            - "executive_change"
            - "charter_amendment"
            - "trading_suspension"
            - "ethics_code_change"
            - "shell_status_change"
            - "shareholder_vote"
            - "shareholder_nominations"
            - "regulation_fd"
            - "other_event"
            - "financial_exhibits"
          description: "The event type."
          examples:
            - "executive_change"
        item:
          type: "string"
          pattern: "^[0-9]{1,2}\\.[0-9]{2}$"
          description: "The 8-K item that reports it."
          examples:
            - "5.02"
        description:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "What the item reports, in SEC's words."
          examples:
            - "Departure or appointment of directors and officers"
      examples:
        - type: "executive_change"
          item: "5.02"
          description: "Departure or appointment of directors and officers"
    FilingEventTypesResponse:
      type: "object"
      description: "The answer of GET /filings/events/types."
      additionalProperties: false
      required:
        - "event_types"
      properties:
        event_types:
          type: "array"
          maxItems: 50
          description: "The event types, in item order."
          items:
            $ref: "#/components/schemas/FilingEventType"
      examples:
        - event_types:
            - type: "executive_change"
              item: "5.02"
              description: "Departure or appointment of directors and officers"
    FailToDeliver:
      type: "object"
      description: "The fails of one security on one settlement day."
      additionalProperties: false
      required:
        - "ticker"
        - "cusip"
        - "description"
        - "settlement_date"
        - "quantity"
        - "price"
        - "value"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The security's symbol as SEC lists it."
          examples:
            - "GME"
        cusip:
          type: "string"
          pattern: "^[0-9A-Z]{9}$"
          description: "The security's CUSIP."
          examples:
            - "36467W109"
        description:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The security as SEC describes it."
          examples:
            - "GAMESTOP CORP CL A"
        settlement_date:
          type: "string"
          format: "date"
          description: "The day the shares failed to settle."
          examples:
            - "2026-10-15"
        quantity:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Shares that failed to settle that day, all members together."
          examples:
            - 120500
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The security's closing price of the day before; null when SEC gives none."
          examples:
            - 20.5
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "quantity times price, in dollars; null without a price."
          examples:
            - 2470250
      examples:
        - ticker: "GME"
          cusip: "36467W109"
          description: "GAMESTOP CORP CL A"
          settlement_date: "2026-10-15"
          quantity: 120500
          price: 20.5
          value: 2470250
    FailsToDeliverResponse:
      type: "object"
      description: "The answer of GET /fails-to-deliver."
      additionalProperties: false
      required:
        - "fails_to_deliver"
      properties:
        fails_to_deliver:
          type: "array"
          maxItems: 100
          description: "This page's rows."
          items:
            $ref: "#/components/schemas/FailToDeliver"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The next page of rows; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/fails-to-deliver?cursor=eyJ0aWNrZXIiOiJHTUUifQ"
      examples:
        - fails_to_deliver:
            - ticker: "GME"
              cusip: "36467W109"
              description: "GAMESTOP CORP CL A"
              settlement_date: "2026-10-15"
              quantity: 120500
              price: 20.5
              value: 2470250
    CotConcentration:
      type: "object"
      description: "Top-4 and top-8 gross and net trader concentration ratios (% of open interest)."
      additionalProperties: false
      required:
        - "crowding_flag"
      properties:
        top_4_gross_long_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-4 gross long share of open interest (%)."
          examples:
            - 57.3
        top_4_gross_short_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-4 gross short share of open interest (%)."
          examples:
            - 33.8
        top_8_gross_long_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-8 gross long share of open interest (%)."
          examples:
            - 70.7
        top_8_gross_short_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-8 gross short share of open interest (%)."
          examples:
            - 49.6
        top_4_net_long_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-4 net long share of open interest (%)."
          examples:
            - 54.7
        top_4_net_short_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-4 net short share of open interest (%)."
          examples:
            - 30.9
        top_8_net_long_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-8 net long share of open interest (%)."
          examples:
            - 64.3
        top_8_net_short_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Top-8 net short share of open interest (%)."
          examples:
            - 43.4
        max_top_4_net_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Maximum of top-4 net long and net short shares (%)."
          examples:
            - 54.7
        crowding_flag:
          type: "boolean"
          description: "True when max_top_4_net_pct is at least 40%."
          examples:
            - true
      examples:
        - top_4_gross_long_pct: 57.3
          top_4_gross_short_pct: 33.8
          top_8_gross_long_pct: 70.7
          top_8_gross_short_pct: 49.6
          top_4_net_long_pct: 54.7
          top_4_net_short_pct: 30.9
          top_8_net_long_pct: 64.3
          top_8_net_short_pct: 43.4
          max_top_4_net_pct: 54.7
          crowding_flag: true
    CotGroup:
      type: "object"
      description: "One trader group's futures positions, open interest shares, and trader counts."
      additionalProperties: false
      required:
        - "long"
        - "short"
        - "spread"
        - "net"
        - "change_long"
        - "change_short"
        - "change_spread"
      properties:
        long:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Long positions of the group (contracts)."
          examples:
            - 6264
        short:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Short positions of the group (contracts)."
          examples:
            - 9875
        spread:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Spread positions (contracts); null when report omits spread."
          examples:
            - 412
        net:
          type:
            - "number"
            - "null"
          format: "double"
          description: "long minus short (contracts)."
          examples:
            - -3611
        change_long:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weekly change in long contracts."
          examples:
            - 120
        change_short:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weekly change in short contracts."
          examples:
            - -85
        change_spread:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weekly change in spread contracts."
          examples:
            - 10
        pct_of_oi_long:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Group long positions as percent of open interest."
          examples:
            - 32.5
        pct_of_oi_short:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Group short positions as percent of open interest."
          examples:
            - 51.3
        pct_of_oi_spread:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Group spread positions as percent of open interest."
          examples:
            - 2.1
        net_pct_of_oi:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Group net positions as percent of open interest."
          examples:
            - -18.75
        traders_long:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Count of reportable traders holding long positions."
          examples:
            - 31
        traders_short:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Count of reportable traders holding short positions."
          examples:
            - 36
        traders_spread:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Count of reportable traders holding spread positions."
          examples:
            - 15
      examples:
        - long: 6264
          short: 9875
          spread: 412
          net: -3611
          change_long: 120
          change_short: -85
          change_spread: 10
          pct_of_oi_long: 32.5
          pct_of_oi_short: 51.3
          pct_of_oi_spread: 2.1
          net_pct_of_oi: -18.75
          traders_long: 31
          traders_short: 36
          traders_spread: 15
    CotWeek:
      type: "object"
      description: "One week of a market in one report."
      additionalProperties: false
      required:
        - "report"
        - "market_code"
        - "market"
        - "exchange"
        - "commodity"
        - "report_date"
        - "open_interest"
        - "change_in_open_interest"
        - "concentration"
        - "groups"
      properties:
        report:
          type: "string"
          enum:
            - "legacy"
            - "disaggregated"
            - "tff"
          description: "The report the week comes from."
          examples:
            - "tff"
        market_code:
          type: "string"
          pattern: "^[0-9A-Z+]{6}$"
          description: "The CFTC's contract market code."
          examples:
            - "133741"
        market:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Latest official CFTC market name."
          examples:
            - "BITCOIN"
        exchange:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Latest official exchange name."
          examples:
            - "CHICAGO MERCANTILE EXCHANGE"
        commodity:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Latest official commodity name."
          examples:
            - "BITCOIN"
        report_date:
          type: "string"
          format: "date"
          description: "The Tuesday the positions are of."
          examples:
            - "2026-11-17"
        open_interest:
          type:
            - "number"
            - "null"
          format: "double"
          description: "All open contracts of the market."
          examples:
            - 19257
        change_in_open_interest:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weekly change in open_interest."
          examples:
            - -300
        traders_total:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Total reportable traders in the contract."
          examples:
            - 112
        traders_reportable_long:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Total reportable traders holding longs."
          examples:
            - 58
        traders_reportable_short:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Total reportable traders holding shorts."
          examples:
            - 78
        concentration:
          $ref: "#/components/schemas/CotConcentration"
        groups:
          type: "object"
          description: "The report's trader groups keyed by canonical group name."
          additionalProperties: false
          properties:
            noncommercial:
              $ref: "#/components/schemas/CotGroup"
            commercial:
              $ref: "#/components/schemas/CotGroup"
            producer_merchant:
              $ref: "#/components/schemas/CotGroup"
            swap_dealers:
              $ref: "#/components/schemas/CotGroup"
            managed_money:
              $ref: "#/components/schemas/CotGroup"
            dealer:
              $ref: "#/components/schemas/CotGroup"
            asset_manager:
              $ref: "#/components/schemas/CotGroup"
            leveraged_funds:
              $ref: "#/components/schemas/CotGroup"
            other_reportables:
              $ref: "#/components/schemas/CotGroup"
            non_reportables:
              $ref: "#/components/schemas/CotGroup"
          examples:
            - leveraged_funds:
                long: 6264
                short: 9875
                spread: 412
                net: -3611
                change_long: 120
                change_short: -85
                change_spread: 10
                pct_of_oi_long: 32.5
                pct_of_oi_short: 51.3
                pct_of_oi_spread: 2.1
                net_pct_of_oi: -18.75
                traders_long: 31
                traders_short: 36
                traders_spread: 15
      examples:
        - report: "tff"
          market_code: "133741"
          market: "BITCOIN"
          exchange: "CHICAGO MERCANTILE EXCHANGE"
          commodity: "BITCOIN"
          report_date: "2026-11-17"
          open_interest: 19257
          change_in_open_interest: -300
          traders_total: 112
          traders_reportable_long: 58
          traders_reportable_short: 78
          concentration:
            top_4_gross_long_pct: 57.3
            top_4_gross_short_pct: 33.8
            top_8_gross_long_pct: 70.7
            top_8_gross_short_pct: 49.6
            top_4_net_long_pct: 54.7
            top_4_net_short_pct: 30.9
            top_8_net_long_pct: 64.3
            top_8_net_short_pct: 43.4
            max_top_4_net_pct: 54.7
            crowding_flag: true
          groups:
            leveraged_funds:
              long: 6264
              short: 9875
              spread: 412
              net: -3611
              change_long: 120
              change_short: -85
              change_spread: 10
              pct_of_oi_long: 32.5
              pct_of_oi_short: 51.3
              pct_of_oi_spread: 2.1
              net_pct_of_oi: -18.75
              traders_long: 31
              traders_short: 36
              traders_spread: 15
    CotResponse:
      type: "object"
      description: "The answer of GET /cot."
      additionalProperties: false
      required:
        - "cot"
      properties:
        resolved_from:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Original futures alias when resolved to a CFTC code."
          examples:
            - "BTC"
        report_lag_note:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Explanation of CFTC Tuesday-to-Friday publication lag."
          examples:
            - "CFTC positions are captured Tuesday and published Friday at 15:30 ET."
        next_expected_release_day:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Standard weekly CFTC release schedule."
          examples:
            - "Friday 15:30 ET"
        cot:
          type: "array"
          maxItems: 100
          description: "This page's weeks, newest first."
          items:
            $ref: "#/components/schemas/CotWeek"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The page of older weeks; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/cot?cursor=eyJyZXBvcnQiOiJ0ZmYifQ"
      examples:
        - cot:
            - report: "tff"
              market_code: "133741"
              market: "BITCOIN"
              exchange: "CHICAGO MERCANTILE EXCHANGE"
              commodity: "BITCOIN"
              report_date: "2026-11-17"
              open_interest: 19257
              change_in_open_interest: -300
              traders_total: 112
              traders_reportable_long: 58
              traders_reportable_short: 78
              concentration:
                top_4_gross_long_pct: 57.3
                top_4_gross_short_pct: 33.8
                top_8_gross_long_pct: 70.7
                top_8_gross_short_pct: 49.6
                top_4_net_long_pct: 54.7
                top_4_net_short_pct: 30.9
                top_8_net_long_pct: 64.3
                top_8_net_short_pct: 43.4
                max_top_4_net_pct: 54.7
                crowding_flag: true
              groups:
                leveraged_funds:
                  long: 6264
                  short: 9875
                  spread: 412
                  net: -3611
                  change_long: 120
                  change_short: -85
                  change_spread: 10
                  pct_of_oi_long: 32.5
                  pct_of_oi_short: 51.3
                  pct_of_oi_spread: 2.1
                  net_pct_of_oi: -18.75
                  traders_long: 31
                  traders_short: 36
                  traders_spread: 15
    CotMarket:
      type: "object"
      description: "A futures market of the Commitments of Traders."
      additionalProperties: false
      required:
        - "market_code"
        - "market"
        - "exchange"
        - "commodity"
        - "asset_class"
        - "reports"
        - "first_date"
        - "last_date"
      properties:
        market_code:
          type: "string"
          pattern: "^[0-9A-Z+]{6}$"
          description: "The market's CFTC code, for market_code."
          examples:
            - "133741"
        market:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Latest official market name."
          examples:
            - "BITCOIN"
        exchange:
          $ref: "#/components/schemas/CotWeek/properties/exchange"
        commodity:
          $ref: "#/components/schemas/CotWeek/properties/commodity"
        asset_class:
          type: "string"
          enum:
            - "crypto"
            - "currencies"
            - "equity_indices"
            - "rates"
            - "energy"
            - "metals"
            - "grains"
            - "softs"
            - "livestock"
            - "other"
          description: "Canonical macro asset class."
          examples:
            - "crypto"
        reports:
          type: "array"
          description: "The reports with weeks of the market."
          items:
            type: "string"
            enum:
              - "legacy"
              - "disaggregated"
              - "tff"
            description: "A report."
          maxItems: 3
          examples:
            - - "legacy"
              - "tff"
        first_date:
          type: "string"
          format: "date"
          description: "The market's first week."
          examples:
            - "2017-12-19"
        last_date:
          type: "string"
          format: "date"
          description: "The market's newest week."
          examples:
            - "2026-11-17"
      examples:
        - market_code: "133741"
          market: "BITCOIN"
          exchange: "CHICAGO MERCANTILE EXCHANGE"
          commodity: "BITCOIN"
          asset_class: "crypto"
          reports:
            - "legacy"
            - "tff"
          first_date: "2017-12-19"
          last_date: "2026-11-17"
    CotMarketsResponse:
      type: "object"
      description: "The answer of GET /cot/markets."
      additionalProperties: false
      required:
        - "active_only"
        - "count"
        - "total_markets"
        - "markets"
      properties:
        active_only:
          type: "boolean"
          description: "Whether delisted/inactive contracts (>90 days old) were excluded."
          examples:
            - true
        count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 5000
          description: "Number of markets returned in this response."
          examples:
            - 1
        total_markets:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 5000
          description: "Total matching markets before limit truncation."
          examples:
            - 1
        markets:
          type: "array"
          maxItems: 5000
          description: "The matching CFTC markets sorted by latest name."
          items:
            $ref: "#/components/schemas/CotMarket"
      examples:
        - active_only: true
          count: 1
          total_markets: 1
          markets:
            - market_code: "133741"
              market: "BITCOIN"
              exchange: "CHICAGO MERCANTILE EXCHANGE"
              commodity: "BITCOIN"
              asset_class: "crypto"
              reports:
                - "legacy"
                - "tff"
              first_date: "2017-12-19"
              last_date: "2026-11-17"
    CotGroupAnalytics:
      type: "object"
      description: "Rolling COT positioning analytics for one trader group."
      additionalProperties: false
      required:
        - "positioning_state"
      properties:
        long_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Long contracts held by the group."
          examples:
            - 6264
        short_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Short contracts held by the group."
          examples:
            - 9875
        spread_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Spread contracts held by the group."
          examples:
            - 412
        net_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net contracts (long minus short)."
          examples:
            - -3611
        change_long_contracts:
          $ref: "#/components/schemas/CotGroup/properties/change_long"
        change_short_contracts:
          $ref: "#/components/schemas/CotGroup/properties/change_short"
        change_spread_contracts:
          $ref: "#/components/schemas/CotGroup/properties/change_spread"
        change_net_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weekly change in net contracts."
          examples:
            - 205
        long_pct_of_oi:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Long share of open interest (%)."
          examples:
            - 32.5
        short_pct_of_oi:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Short share of open interest (%)."
          examples:
            - 51.3
        spread_pct_of_oi:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Spread share of open interest (%)."
          examples:
            - 2.1
        net_pct_of_oi:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net share of open interest (%)."
          examples:
            - -18.75
        traders_long_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Count of reportable long traders."
          examples:
            - 31
        traders_short_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Count of reportable short traders."
          examples:
            - 36
        traders_spread_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Count of reportable spread traders."
          examples:
            - 15
        cot_index_52w:
          type:
            - "number"
            - "null"
          format: "double"
          description: "52-week min-max COT Index scaled 0 to 100."
          examples:
            - 18.4
        cot_index_156w:
          type:
            - "number"
            - "null"
          format: "double"
          description: "156-week min-max COT Index scaled 0 to 100."
          examples:
            - 22.1
        percentile_52w_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "52-week empirical percentile rank (0 to 100)."
          examples:
            - 15.38
        percentile_156w_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "156-week empirical percentile rank (0 to 100)."
          examples:
            - 19.23
        z_score_52w:
          type:
            - "number"
            - "null"
          format: "double"
          description: "52-week sample Z-score of net positioning."
          examples:
            - -1.62
        z_score_156w:
          type:
            - "number"
            - "null"
          format: "double"
          description: "156-week sample Z-score of net positioning."
          examples:
            - -1.34
        positioning_state:
          type: "string"
          enum:
            - "extreme_long"
            - "extreme_short"
            - "neutral"
          description: "Extreme positioning state based on COT Index and 52w Z-score."
          examples:
            - "extreme_short"
      examples:
        - long_contracts: 6264
          short_contracts: 9875
          spread_contracts: 412
          net_contracts: -3611
          change_long_contracts: 120
          change_short_contracts: -85
          change_spread_contracts: 10
          change_net_contracts: 205
          long_pct_of_oi: 32.5
          short_pct_of_oi: 51.3
          spread_pct_of_oi: 2.1
          net_pct_of_oi: -18.75
          traders_long_count: 31
          traders_short_count: 36
          traders_spread_count: 15
          cot_index_52w: 18.4
          cot_index_156w: 22.1
          percentile_52w_pct: 15.38
          percentile_156w_pct: 19.23
          z_score_52w: -1.62
          z_score_156w: -1.34
          positioning_state: "extreme_short"
    CotDivergenceFlags:
      type: "object"
      description: "Hedger vs speculator extreme positioning divergence summary."
      additionalProperties: false
      required:
        - "hedger_group"
        - "speculator_group"
        - "hedger_state"
        - "speculator_state"
        - "extreme_divergence"
        - "divergence_direction"
      properties:
        hedger_group:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Hedger group name for this report."
          examples:
            - "asset_manager"
        speculator_group:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Speculator group name for this report."
          examples:
            - "leveraged_funds"
        hedger_state:
          type: "string"
          enum:
            - "extreme_long"
            - "extreme_short"
            - "neutral"
          description: "Hedger positioning state."
          examples:
            - "extreme_long"
        speculator_state:
          type: "string"
          enum:
            - "extreme_long"
            - "extreme_short"
            - "neutral"
          description: "Speculator positioning state."
          examples:
            - "extreme_short"
        extreme_divergence:
          type: "boolean"
          description: "True when hedgers and speculators are at opposite extremes."
          examples:
            - true
        divergence_direction:
          type: "string"
          enum:
            - "hedger_bullish_speculator_bearish"
            - "hedger_bearish_speculator_bullish"
            - "none"
          description: "Directional summary of hedger vs speculator divergence."
          examples:
            - "hedger_bullish_speculator_bearish"
        divergence_z_spread:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Hedger 52w Z-score minus speculator 52w Z-score."
          examples:
            - 3.15
      examples:
        - hedger_group: "asset_manager"
          speculator_group: "leveraged_funds"
          hedger_state: "extreme_long"
          speculator_state: "extreme_short"
          extreme_divergence: true
          divergence_direction: "hedger_bullish_speculator_bearish"
          divergence_z_spread: 3.15
    CotAnalyticsWeek:
      type: "object"
      description: "One weekly COT analytics record for a futures market."
      additionalProperties: false
      required:
        - "report"
        - "market_code"
        - "market"
        - "asset_class"
        - "report_date"
        - "open_interest_contracts"
        - "concentration"
        - "divergence"
        - "groups"
        - "history_weeks_available"
      properties:
        report:
          type: "string"
          enum:
            - "legacy"
            - "disaggregated"
            - "tff"
          description: "CFTC report type."
          examples:
            - "tff"
        market_code:
          type: "string"
          pattern: "^[0-9A-Z+]{6}$"
          description: "Six-character CFTC market code."
          examples:
            - "133741"
        market:
          $ref: "#/components/schemas/CotWeek/properties/market"
        exchange:
          $ref: "#/components/schemas/CotWeek/properties/exchange"
        commodity:
          $ref: "#/components/schemas/CotWeek/properties/commodity"
        asset_class:
          $ref: "#/components/schemas/CotMarket/properties/asset_class"
        report_date:
          type: "string"
          format: "date"
          description: "Tuesday report date."
          examples:
            - "2026-11-17"
        open_interest_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total open interest in contracts."
          examples:
            - 19257
        change_open_interest_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Weekly change in open interest."
          examples:
            - -300
        traders_total_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Total reportable traders."
          examples:
            - 112
        traders_reportable_long_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Reportable long traders."
          examples:
            - 58
        traders_reportable_short_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000000
          description: "Reportable short traders."
          examples:
            - 78
        concentration:
          $ref: "#/components/schemas/CotConcentration"
        divergence:
          $ref: "#/components/schemas/CotDivergenceFlags"
        groups:
          type: "object"
          description: "Analytics by canonical trader group name."
          additionalProperties: false
          properties:
            noncommercial:
              $ref: "#/components/schemas/CotGroupAnalytics"
            commercial:
              $ref: "#/components/schemas/CotGroupAnalytics"
            producer_merchant:
              $ref: "#/components/schemas/CotGroupAnalytics"
            swap_dealers:
              $ref: "#/components/schemas/CotGroupAnalytics"
            managed_money:
              $ref: "#/components/schemas/CotGroupAnalytics"
            dealer:
              $ref: "#/components/schemas/CotGroupAnalytics"
            asset_manager:
              $ref: "#/components/schemas/CotGroupAnalytics"
            leveraged_funds:
              $ref: "#/components/schemas/CotGroupAnalytics"
            other_reportables:
              $ref: "#/components/schemas/CotGroupAnalytics"
            non_reportables:
              $ref: "#/components/schemas/CotGroupAnalytics"
          examples:
            - leveraged_funds:
                long_contracts: 6264
                short_contracts: 9875
                spread_contracts: 412
                net_contracts: -3611
                change_long_contracts: 120
                change_short_contracts: -85
                change_spread_contracts: 10
                change_net_contracts: 205
                long_pct_of_oi: 32.5
                short_pct_of_oi: 51.3
                spread_pct_of_oi: 2.1
                net_pct_of_oi: -18.75
                traders_long_count: 31
                traders_short_count: 36
                traders_spread_count: 15
                cot_index_52w: 18.4
                cot_index_156w: 22.1
                percentile_52w_pct: 15.38
                percentile_156w_pct: 19.23
                z_score_52w: -1.62
                z_score_156w: -1.34
                positioning_state: "extreme_short"
        history_weeks_available:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 5000
          description: "Historical weeks used to compute trailing statistics."
          examples:
            - 156
      examples:
        - report: "tff"
          market_code: "133741"
          market: "BITCOIN"
          exchange: "CHICAGO MERCANTILE EXCHANGE"
          commodity: "BITCOIN"
          asset_class: "crypto"
          report_date: "2026-11-17"
          open_interest_contracts: 19257
          change_open_interest_contracts: -300
          traders_total_count: 112
          traders_reportable_long_count: 58
          traders_reportable_short_count: 78
          concentration:
            top_4_gross_long_pct: 57.3
            top_4_gross_short_pct: 33.8
            top_8_gross_long_pct: 70.7
            top_8_gross_short_pct: 49.6
            top_4_net_long_pct: 54.7
            top_4_net_short_pct: 30.9
            top_8_net_long_pct: 64.3
            top_8_net_short_pct: 43.4
            max_top_4_net_pct: 54.7
            crowding_flag: true
          divergence:
            hedger_group: "asset_manager"
            speculator_group: "leveraged_funds"
            hedger_state: "extreme_long"
            speculator_state: "extreme_short"
            extreme_divergence: true
            divergence_direction: "hedger_bullish_speculator_bearish"
            divergence_z_spread: 3.15
          groups:
            leveraged_funds:
              long_contracts: 6264
              short_contracts: 9875
              spread_contracts: 412
              net_contracts: -3611
              change_long_contracts: 120
              change_short_contracts: -85
              change_spread_contracts: 10
              change_net_contracts: 205
              long_pct_of_oi: 32.5
              short_pct_of_oi: 51.3
              spread_pct_of_oi: 2.1
              net_pct_of_oi: -18.75
              traders_long_count: 31
              traders_short_count: 36
              traders_spread_count: 15
              cot_index_52w: 18.4
              cot_index_156w: 22.1
              percentile_52w_pct: 15.38
              percentile_156w_pct: 19.23
              z_score_52w: -1.62
              z_score_156w: -1.34
              positioning_state: "extreme_short"
          history_weeks_available: 156
    CotAnalyticsResponse:
      type: "object"
      description: "The answer of GET /cot/analytics in either single-market or all-markets screener mode."
      additionalProperties: false
      required:
        - "mode"
        - "report"
        - "count"
      properties:
        mode:
          type: "string"
          enum:
            - "market"
            - "snapshot"
          description: "market when market_code/symbol was supplied, snapshot for cross-market screen."
          examples:
            - "market"
        report:
          type: "string"
          enum:
            - "legacy"
            - "disaggregated"
            - "tff"
          description: "CFTC report analyzed."
          examples:
            - "tff"
        market_code:
          type: "string"
          pattern: "^[0-9A-Z+]{6}$"
          description: "Resolved CFTC code in market mode."
          examples:
            - "133741"
        resolved_from:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Original futures alias when resolved."
          examples:
            - "BTC"
        as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Latest report date across analyzed markets in snapshot mode."
          examples:
            - "2026-11-17"
        report_lag_note:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "CFTC publication lag notice."
          examples:
            - "CFTC positions are captured Tuesday and published Friday at 15:30 ET."
        next_expected_release_day:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Standard weekly CFTC release day."
          examples:
            - "Friday 15:30 ET"
        selected_group:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Trader group used for screener filtering in snapshot mode."
          examples:
            - "leveraged_funds"
        lookback:
          type: "string"
          enum:
            - "52w"
            - "156w"
          description: "Lookback window in snapshot mode."
          examples:
            - "52w"
        total_markets_analyzed:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 5000
          description: "Active markets analyzed in snapshot mode."
          examples:
            - 378
        extreme_divergence_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 5000
          description: "Active markets currently flagging extreme hedger-vs-speculator divergence."
          examples:
            - 14
        latest:
          $ref: "#/components/schemas/CotAnalyticsWeek"
        history:
          type: "array"
          maxItems: 156
          description: "Trailing weekly analytics in market mode, newest first."
          items:
            $ref: "#/components/schemas/CotAnalyticsWeek"
        markets:
          type: "array"
          maxItems: 500
          description: "Screened markets in snapshot mode."
          items:
            $ref: "#/components/schemas/CotAnalyticsWeek"
        count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 500
          description: "Number of weeks (market mode) or markets (snapshot mode) returned."
          examples:
            - 26
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1500
          description: "COT Index, percentile, Z-score, and divergence definitions."
          examples:
            - "COT Index scales net positioning from 0 to 100 over 52w or 156w."
      examples:
        - mode: "market"
          report: "tff"
          market_code: "133741"
          latest:
            report: "tff"
            market_code: "133741"
            market: "BITCOIN"
            exchange: "CHICAGO MERCANTILE EXCHANGE"
            commodity: "BITCOIN"
            asset_class: "crypto"
            report_date: "2026-11-17"
            open_interest_contracts: 19257
            change_open_interest_contracts: -300
            traders_total_count: 112
            traders_reportable_long_count: 58
            traders_reportable_short_count: 78
            concentration:
              top_4_gross_long_pct: 57.3
              top_4_gross_short_pct: 33.8
              top_8_gross_long_pct: 70.7
              top_8_gross_short_pct: 49.6
              top_4_net_long_pct: 54.7
              top_4_net_short_pct: 30.9
              top_8_net_long_pct: 64.3
              top_8_net_short_pct: 43.4
              max_top_4_net_pct: 54.7
              crowding_flag: true
            divergence:
              hedger_group: "asset_manager"
              speculator_group: "leveraged_funds"
              hedger_state: "extreme_long"
              speculator_state: "extreme_short"
              extreme_divergence: true
              divergence_direction: "hedger_bullish_speculator_bearish"
              divergence_z_spread: 3.15
            groups:
              leveraged_funds:
                long_contracts: 6264
                short_contracts: 9875
                spread_contracts: 412
                net_contracts: -3611
                change_long_contracts: 120
                change_short_contracts: -85
                change_spread_contracts: 10
                change_net_contracts: 205
                long_pct_of_oi: 32.5
                short_pct_of_oi: 51.3
                spread_pct_of_oi: 2.1
                net_pct_of_oi: -18.75
                traders_long_count: 31
                traders_short_count: 36
                traders_spread_count: 15
                cot_index_52w: 18.4
                cot_index_156w: 22.1
                percentile_52w_pct: 15.38
                percentile_156w_pct: 19.23
                z_score_52w: -1.62
                z_score_156w: -1.34
                positioning_state: "extreme_short"
            history_weeks_available: 156
          history:
            - report: "tff"
              market_code: "133741"
              market: "BITCOIN"
              exchange: "CHICAGO MERCANTILE EXCHANGE"
              commodity: "BITCOIN"
              asset_class: "crypto"
              report_date: "2026-11-17"
              open_interest_contracts: 19257
              change_open_interest_contracts: -300
              traders_total_count: 112
              traders_reportable_long_count: 58
              traders_reportable_short_count: 78
              concentration:
                top_4_gross_long_pct: 57.3
                top_4_gross_short_pct: 33.8
                top_8_gross_long_pct: 70.7
                top_8_gross_short_pct: 49.6
                top_4_net_long_pct: 54.7
                top_4_net_short_pct: 30.9
                top_8_net_long_pct: 64.3
                top_8_net_short_pct: 43.4
                max_top_4_net_pct: 54.7
                crowding_flag: true
              divergence:
                hedger_group: "asset_manager"
                speculator_group: "leveraged_funds"
                hedger_state: "extreme_long"
                speculator_state: "extreme_short"
                extreme_divergence: true
                divergence_direction: "hedger_bullish_speculator_bearish"
                divergence_z_spread: 3.15
              groups:
                leveraged_funds:
                  long_contracts: 6264
                  short_contracts: 9875
                  spread_contracts: 412
                  net_contracts: -3611
                  change_long_contracts: 120
                  change_short_contracts: -85
                  change_spread_contracts: 10
                  change_net_contracts: 205
                  long_pct_of_oi: 32.5
                  short_pct_of_oi: 51.3
                  spread_pct_of_oi: 2.1
                  net_pct_of_oi: -18.75
                  traders_long_count: 31
                  traders_short_count: 36
                  traders_spread_count: 15
                  cot_index_52w: 18.4
                  cot_index_156w: 22.1
                  percentile_52w_pct: 15.38
                  percentile_156w_pct: 19.23
                  z_score_52w: -1.62
                  z_score_156w: -1.34
                  positioning_state: "extreme_short"
              history_weeks_available: 156
          count: 1
    PriceBar:
      type: "object"
      description: "One bar of a stock, in its trading currency."
      additionalProperties: false
      required:
        - "open"
        - "close"
        - "high"
        - "low"
        - "volume"
        - "adjusted_close"
        - "time"
      properties:
        open:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The first trade's price."
          examples:
            - 350.1
        close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The last trade's price."
          examples:
            - 354.07
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest price."
          examples:
            - 356
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest price."
          examples:
            - 349.2
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares traded; null when unknown."
          examples:
            - 48000000
        adjusted_close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "close adjusted for later dividends and splits; null when unknown."
          examples:
            - 353.8
        time:
          type: "string"
          format: "date"
          description: "The bar's first session."
          examples:
            - "2026-11-24"
      examples:
        - open: 350.1
          close: 354.07
          high: 356
          low: 349.2
          volume: 48000000
          adjusted_close: 353.8
          time: "2026-11-24"
    PricesResponse:
      type: "object"
      description: "The answer of GET /prices."
      additionalProperties: false
      required:
        - "ticker"
        - "interval"
        - "order"
        - "prices"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The stock asked for."
          examples:
            - "AAPL"
        interval:
          type: "string"
          enum:
            - "day"
            - "week"
            - "month"
            - "year"
          description: "The length of a bar."
          examples:
            - "day"
        order:
          type: "string"
          enum:
            - "desc"
            - "asc"
          description: "desc when the newest bar comes first, asc when the oldest does."
          examples:
            - "desc"
        prices:
          type: "array"
          maxItems: 1000
          description: "This page's bars, in order."
          items:
            $ref: "#/components/schemas/PriceBar"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The next page, further on in order; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/prices?cursor=eyJ0aWNrZXIiOiJBQVBMIn0"
      examples:
        - ticker: "AAPL"
          interval: "day"
          order: "desc"
          prices:
            - open: 350.1
              close: 354.07
              high: 356
              low: 349.2
              volume: 48000000
              adjusted_close: 353.8
              time: "2026-11-24"
    PriceSnapshot:
      type: "object"
      description: "A stock's latest price."
      additionalProperties: false
      required:
        - "price"
        - "ticker"
        - "previous_close"
        - "day_change"
        - "day_change_percent"
        - "price_source"
        - "time"
        - "time_milliseconds"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The latest price in US dollars; always above 0."
          examples:
            - 355.58
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The stock."
          examples:
            - "AAPL"
        previous_close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The previous session's close in US dollars; null when it is not stored."
          examples:
            - 354.07
        day_change:
          type:
            - "number"
            - "null"
          format: "double"
          description: "price minus the previous session's close, in US dollars; null without that close."
          examples:
            - 1.51
        day_change_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "day_change in percent of that close."
          examples:
            - 0.4265
        price_source:
          type: "string"
          enum:
            - "session"
            - "close"
          description: "session when price was read in a session after the last stored close, close when it is that close."
          examples:
            - "session"
        time:
          type: "string"
          format: "date-time"
          description: "When the price traded, in UTC; a close is at 16:00 New York time, 13:00 on an early close."
          examples:
            - "2026-11-25T20:55:00Z"
        time_milliseconds:
          type:
            - "number"
            - "null"
          format: "double"
          description: "time in milliseconds since 1970."
          examples:
            - 1795640100000
      examples:
        - price: 355.58
          ticker: "AAPL"
          previous_close: 354.07
          day_change: 1.51
          day_change_percent: 0.4265
          price_source: "session"
          time: "2026-11-25T20:55:00Z"
          time_milliseconds: 1795640100000
    Dividend:
      type: "object"
      description: "A cash dividend per share."
      additionalProperties: false
      required:
        - "ex_date"
        - "amount"
        - "adjusted_amount"
        - "currency"
      properties:
        ex_date:
          type: "string"
          format: "date"
          description: "The ex-dividend date."
          examples:
            - "2020-08-07"
        amount:
          type:
            - "number"
            - "null"
          format: "double"
          description: "What one share received, in currency."
          examples:
            - 0.82
        adjusted_amount:
          type:
            - "number"
            - "null"
          format: "double"
          description: "amount divided by every later split."
          examples:
            - 0.205
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          description: "The dividend's currency."
          examples:
            - "USD"
      examples:
        - ex_date: "2020-08-07"
          amount: 0.82
          adjusted_amount: 0.205
          currency: "USD"
    DividendsResponse:
      type: "object"
      description: "The answer of GET /dividends."
      additionalProperties: false
      required:
        - "ticker"
        - "dividends"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The stock whose dividends these are."
          examples:
            - "AAPL"
        dividends:
          type: "array"
          maxItems: 2000
          description: "The dividends, oldest first."
          items:
            $ref: "#/components/schemas/Dividend"
      examples:
        - ticker: "AAPL"
          dividends:
            - ex_date: "2020-08-07"
              amount: 0.82
              adjusted_amount: 0.205
              currency: "USD"
    Split:
      type: "object"
      description: "A stock split."
      additionalProperties: false
      required:
        - "date"
        - "numerator"
        - "denominator"
      properties:
        date:
          type: "string"
          format: "date"
          description: "The first session at the new share count."
          examples:
            - "2020-08-31"
        numerator:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares after the split for every denominator before it."
          examples:
            - 4
        denominator:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares before the split."
          examples:
            - 1
      examples:
        - date: "2020-08-31"
          numerator: 4
          denominator: 1
    SplitsResponse:
      type: "object"
      description: "The answer of GET /splits."
      additionalProperties: false
      required:
        - "ticker"
        - "splits"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The stock whose splits these are."
          examples:
            - "AAPL"
        splits:
          type: "array"
          maxItems: 200
          description: "The splits, oldest first."
          items:
            $ref: "#/components/schemas/Split"
      examples:
        - ticker: "AAPL"
          splits:
            - date: "2020-08-31"
              numerator: 4
              denominator: 1
    PriceSnapshotResponse:
      type: "object"
      description: "The answer of GET /prices/snapshot."
      additionalProperties: false
      required:
        - "snapshot"
      properties:
        snapshot:
          $ref: "#/components/schemas/PriceSnapshot"
      examples:
        - snapshot:
            price: 355.58
            ticker: "AAPL"
            previous_close: 354.07
            day_change: 1.51
            day_change_percent: 0.4265
            price_source: "session"
            time: "2026-11-25T20:55:00Z"
            time_milliseconds: 1795640100000
    MarketSnapshotResponse:
      type: "object"
      description: "The answer of GET /prices/snapshot/market."
      additionalProperties: false
      required:
        - "sort"
        - "snapshots"
      properties:
        sort:
          type: "string"
          enum:
            - "ticker"
            - "day_change_percent_desc"
            - "day_change_percent_asc"
            - "price_desc"
            - "price_asc"
          description: "The order of the stocks on the page."
          examples:
            - "ticker"
        snapshots:
          type: "array"
          maxItems: 1000
          description: "This page's stocks, in sort order."
          items:
            $ref: "#/components/schemas/PriceSnapshot"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/prices/snapshot/market?cursor=eyJzb3J0IjoidGlja2VyIn0"
      examples:
        - sort: "ticker"
          snapshots:
            - price: 355.58
              ticker: "AAPL"
              previous_close: 354.07
              day_change: 1.51
              day_change_percent: 0.4265
              price_source: "session"
              time: "2026-11-25T20:55:00Z"
              time_milliseconds: 1795640100000
    PriceTickersResponse:
      type: "object"
      description: "The answer of GET /prices/tickers and /prices/snapshot/tickers."
      additionalProperties: false
      required:
        - "tickers"
      properties:
        tickers:
          type: "array"
          description: "The stock tickers, in alphabetical order."
          items:
            type: "string"
            pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
            maxLength: 12
            description: "A ticker."
          maxItems: 20000
          examples:
            - - "AAPL"
              - "MSFT"
      examples:
        - tickers:
            - "AAPL"
            - "MSFT"
    GpuSpotPrice:
      type: "object"
      description: "The spot offers of the same reading: interruptible capacity at a discount."
      additionalProperties: false
      required:
        - "value"
        - "min"
        - "max"
        - "offer_count"
      properties:
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The median spot price of a GPU hour in US dollars."
          examples:
            - 2.4526
        min:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest spot offer in US dollars."
          examples:
            - 1.4183
        max:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest spot offer in US dollars."
          examples:
            - 5.4606
        offer_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "The spot offers behind value."
          examples:
            - 97
      examples:
        - value: 2.4526
          min: 1.4183
          max: 5.4606
          offer_count: 97
    GpuPricesObservation:
      type: "object"
      description: "One day's price of a GPU hour."
      additionalProperties: false
      required:
        - "series"
        - "title"
        - "units"
        - "frequency"
        - "source"
        - "date"
        - "value"
        - "stability_band"
        - "min"
        - "p25"
        - "p75"
        - "max"
        - "offer_count"
        - "region_count"
        - "spot"
        - "change_1d"
        - "change_1d_pct"
        - "change_7d_pct"
        - "change_30d_pct"
        - "as_of"
      properties:
        series:
          type: "string"
          enum:
            - "h100"
            - "h200"
            - "gb200"
            - "a100"
            - "mi300x"
          description: "The GPU model."
          examples:
            - "h100"
        title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The GPU model the series prices."
          examples:
            - "NVIDIA H100 rental price"
        units:
          type: "string"
          enum:
            - "USD per GPU hour"
          description: "The units of value and of every price in the row."
          examples:
            - "USD per GPU hour"
        frequency:
          type: "string"
          enum:
            - "daily"
          description: "How often a value is published."
          examples:
            - "daily"
        source:
          type: "string"
          enum:
            - "darvas_gpu_index"
          description: "The index the value belongs to."
          examples:
            - "darvas_gpu_index"
        date:
          type: "string"
          format: "date"
          description: "The UTC day; today is refreshed hourly."
          examples:
            - "2026-11-26"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The median on-demand price of a GPU hour in US dollars."
          examples:
            - 10.365
        stability_band:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The standard deviation of the offers behind value, across sizes and regions; null with one offer."
          examples:
            - 0.385
        min:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest on-demand offer in US dollars."
          examples:
            - 6.98
        p25:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 25th percentile of the on-demand offers in US dollars."
          examples:
            - 8.725
        p75:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 75th percentile of the on-demand offers in US dollars."
          examples:
            - 14.3793
        max:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest on-demand offer in US dollars."
          examples:
            - 23.326
        offer_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "The on-demand offers behind value: sizes times regions."
          examples:
            - 101
        region_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "The regions with an on-demand offer."
          examples:
            - 34
        spot:
          description: "The spot price of the same reading; null without spot offers."
          anyOf:
            - $ref: "#/components/schemas/GpuSpotPrice"
            - type: "null"
        change_1d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "value minus the day before's, in dollars; null without that day."
          examples:
            - -0.02
        change_1d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change from the day before, to two decimals."
          examples:
            - -0.19
        change_7d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change from 7 days before, to two decimals."
          examples:
            - null
        change_30d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change from 30 days before, to two decimals."
          examples:
            - null
        as_of:
          type: "string"
          format: "date-time"
          description: "When the day's value was read, in UTC."
          examples:
            - "2026-11-26T10:00:00Z"
      examples:
        - series: "h100"
          title: "NVIDIA H100 rental price"
          units: "USD per GPU hour"
          frequency: "daily"
          source: "darvas_gpu_index"
          date: "2026-11-26"
          value: 10.365
          stability_band: 0.385
          min: 6.98
          p25: 8.725
          p75: 14.3793
          max: 23.326
          offer_count: 101
          region_count: 34
          spot:
            value: 2.4526
            min: 1.4183
            max: 5.4606
            offer_count: 97
          change_1d: -0.02
          change_1d_pct: -0.19
          change_7d_pct: null
          change_30d_pct: null
          as_of: "2026-11-26T10:00:00Z"
    GpuPricesResponse:
      type: "object"
      description: "The answer of GET /macro/gpu-prices."
      additionalProperties: false
      required:
        - "series"
        - "gpu_prices"
        - "attribution"
      properties:
        series:
          $ref: "#/components/schemas/GpuPricesObservation/properties/series"
        resolved_from:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The series as sent, when it named the model another way, such as NVIDIA H100 for h100; absent when it was the id."
          examples:
            - "NVIDIA H100"
        gpu_prices:
          type: "array"
          maxItems: 10
          description: "This page's days, newest first."
          items:
            $ref: "#/components/schemas/GpuPricesObservation"
        attribution:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The source credit to keep when showing the daily prices."
          examples:
            - "Darvas GPU index."
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "The page of older days; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/macro/gpu-prices?cursor=eyJzZXJpZXMiOiJoMTAwIn0"
      examples:
        - series: "h100"
          gpu_prices:
            - series: "h100"
              title: "NVIDIA H100 rental price"
              units: "USD per GPU hour"
              frequency: "daily"
              source: "darvas_gpu_index"
              date: "2026-11-26"
              value: 10.365
              stability_band: 0.385
              min: 6.98
              p25: 8.725
              p75: 14.3793
              max: 23.326
              offer_count: 101
              region_count: 34
              spot:
                value: 2.4526
                min: 1.4183
                max: 5.4606
                offer_count: 97
              change_1d: -0.02
              change_1d_pct: -0.19
              change_7d_pct: null
              change_30d_pct: null
              as_of: "2026-11-26T10:00:00Z"
          attribution: "Darvas GPU index."
    GpuPricesSnapshotResponse:
      type: "object"
      description: "The answer of GET /macro/gpu-prices/snapshot."
      additionalProperties: false
      required:
        - "gpu_prices"
        - "attribution"
      properties:
        resolved_from:
          $ref: "#/components/schemas/GpuPricesResponse/properties/resolved_from"
        gpu_prices:
          type: "array"
          maxItems: 10
          description: "Each model's newest day."
          items:
            $ref: "#/components/schemas/GpuPricesObservation"
        attribution:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The source credit to keep when showing the snapshot."
          examples:
            - "Darvas GPU index."
      examples:
        - gpu_prices:
            - series: "h100"
              title: "NVIDIA H100 rental price"
              units: "USD per GPU hour"
              frequency: "daily"
              source: "darvas_gpu_index"
              date: "2026-11-26"
              value: 10.365
              stability_band: 0.385
              min: 6.98
              p25: 8.725
              p75: 14.3793
              max: 23.326
              offer_count: 101
              region_count: 34
              spot:
                value: 2.4526
                min: 1.4183
                max: 5.4606
                offer_count: 97
              change_1d: -0.02
              change_1d_pct: -0.19
              change_7d_pct: null
              change_30d_pct: null
              as_of: "2026-11-26T10:00:00Z"
          attribution: "Darvas GPU index."
    GpuPriceSeries:
      type: "object"
      description: "A GPU model priced."
      additionalProperties: false
      required:
        - "series_id"
        - "title"
        - "units"
        - "frequency"
        - "first_date"
      properties:
        series_id:
          type: "string"
          pattern: "^[a-z0-9]{2,10}$"
          description: "The series id."
          examples:
            - "h100"
        title:
          $ref: "#/components/schemas/GpuPricesObservation/properties/title"
        units:
          type: "string"
          enum:
            - "USD per GPU hour"
          description: "The series' units."
          examples:
            - "USD per GPU hour"
        frequency:
          type: "string"
          enum:
            - "daily"
          description: "How often a GPU price is published."
          examples:
            - "daily"
        first_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The first day with a value; null before the first reading."
          examples:
            - "2026-11-26"
      examples:
        - series_id: "h100"
          title: "NVIDIA H100 rental price"
          units: "USD per GPU hour"
          frequency: "daily"
          first_date: "2026-11-26"
    GpuPricesSeriesResponse:
      type: "object"
      description: "The answer of GET /macro/gpu-prices/series."
      additionalProperties: false
      required:
        - "resource"
        - "series"
        - "attribution"
      properties:
        resource:
          type: "string"
          enum:
            - "gpu_prices"
          description: "Always gpu_prices."
          examples:
            - "gpu_prices"
        series:
          type: "array"
          maxItems: 10
          description: "The models."
          items:
            $ref: "#/components/schemas/GpuPriceSeries"
        attribution:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The source credit to keep when showing the series list."
          examples:
            - "Darvas GPU index."
      examples:
        - resource: "gpu_prices"
          series:
            - series_id: "h100"
              title: "NVIDIA H100 rental price"
              units: "USD per GPU hour"
              frequency: "daily"
              first_date: "2026-11-26"
          attribution: "Darvas GPU index."
    InterestRate:
      type: "object"
      description: "A central bank's policy rate on one day."
      additionalProperties: false
      required:
        - "bank"
        - "name"
        - "rate"
        - "date"
        - "first_published_rate"
      properties:
        bank:
          type: "string"
          pattern: "^[A-Z_]{2,20}$"
          description: "The bank symbol."
          examples:
            - "FED"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The bank's name."
          examples:
            - "Federal Reserve"
        rate:
          type: "number"
          format: "double"
          description: "The policy rate in percent; for the Federal Reserve the midpoint of the target range."
          examples:
            - 4.125
        date:
          type: "string"
          format: "date"
          description: "The day the rate is in effect."
          examples:
            - "2026-11-24"
        first_published_rate:
          type: "number"
          format: "double"
          description: "The first rate Darvas recorded for the day; BIS rarely revises."
          examples:
            - 4.125
      examples:
        - bank: "FED"
          name: "Federal Reserve"
          rate: 4.125
          date: "2026-11-24"
          first_published_rate: 4.125
    YieldCurve:
      type: "object"
      description: "The Treasury par yield curve of one business day; a tenor not published that day is absent."
      additionalProperties: false
      required:
        - "date"
      properties:
        date:
          type: "string"
          format: "date"
          description: "The business day."
          examples:
            - "2026-11-24"
        "1_month":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 1 month par yield in percent."
          examples:
            - 4.2
        "1_5_month":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 1.5 month par yield in percent."
          examples:
            - 4.2
        "2_month":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 2 month par yield in percent."
          examples:
            - 4.2
        "3_month":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 3 month par yield in percent."
          examples:
            - 4.2
        "4_month":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 4 month par yield in percent."
          examples:
            - 4.2
        "6_month":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 6 month par yield in percent."
          examples:
            - 4.2
        "1_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 1 year par yield in percent."
          examples:
            - 4.2
        "2_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 2 year par yield in percent."
          examples:
            - 4.2
        "3_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 3 year par yield in percent."
          examples:
            - 4.2
        "5_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 5 year par yield in percent."
          examples:
            - 4.2
        "7_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 7 year par yield in percent."
          examples:
            - 4.2
        "10_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 10 year par yield in percent."
          examples:
            - 4.2
        "20_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 20 year par yield in percent."
          examples:
            - 4.2
        "30_year":
          type:
            - "number"
            - "null"
          format: "double"
          description: "The 30 year par yield in percent."
          examples:
            - 4.2
      examples:
        - date: "2026-11-24"
          "1_month": 4.21
          "10_year": 4.91
          "30_year": 5.3
    InflationObservation:
      type: "object"
      description: "One month of an inflation series."
      additionalProperties: false
      required:
        - "series"
        - "date"
        - "value"
        - "first_published_value"
      properties:
        series:
          type: "string"
          pattern: "^[a-z0-9_]{1,40}$"
          description: "The inflation series id."
          examples:
            - "cpi_all_sa"
        date:
          type: "string"
          format: "date"
          description: "The reference month as its first day."
          examples:
            - "2026-10-01"
        value:
          type: "number"
          format: "double"
          description: "The index level, revisions included."
          examples:
            - 331.2
        change_1m_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change from the prior month, one decimal."
          examples:
            - 0.2
        change_12m_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change from the same month a year earlier, one decimal."
          examples:
            - 2.9
        first_published_value:
          type: "number"
          format: "double"
          description: "The first index level Darvas recorded: the first release for months published since 25 November 2026."
          examples:
            - 331.2
      examples:
        - series: "cpi_all_sa"
          date: "2026-10-01"
          value: 331.2
          change_1m_pct: 0.2
          change_12m_pct: 2.9
          first_published_value: 331.2
    LaborObservation:
      type: "object"
      description: "One of the labor market observations."
      additionalProperties: false
      required:
        - "series"
        - "date"
        - "value"
        - "first_published_value"
      properties:
        series:
          type: "string"
          pattern: "^[a-z0-9_]{1,40}$"
          description: "The series id of the labor market observations."
          examples:
            - "payrolls_sa"
        date:
          type: "string"
          format: "date"
          description: "The first day of the period of the labor market observations."
          examples:
            - "2026-10-01"
        value:
          type: "number"
          format: "double"
          description: "The current figure of the labor market observations, revisions included."
          examples:
            - 159834
        change_prior:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The labor market observations: value minus the prior period's."
          examples:
            - 112
        change_year:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The labor market observations: value minus the value a year earlier."
          examples:
            - 1650
        change_year_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The labor market observations: change_year as a percent of the year-earlier value, one decimal."
          examples:
            - 1
        first_published_value:
          type: "number"
          format: "double"
          description: "The first figure Darvas recorded for the labor market observations: the first release for periods published since 25 November 2026."
          examples:
            - 159800
      examples:
        - series: "payrolls_sa"
          date: "2026-10-01"
          value: 159834
          change_prior: 112
          change_year: 1650
          change_year_pct: 1
          first_published_value: 159800
    GdpObservation:
      type: "object"
      description: "One of the growth and income observations."
      additionalProperties: false
      required:
        - "series"
        - "date"
        - "value"
        - "first_published_value"
      properties:
        series:
          type: "string"
          pattern: "^[a-z0-9_]{1,40}$"
          description: "The series id of the growth and income observations."
          examples:
            - "payrolls_sa"
        date:
          type: "string"
          format: "date"
          description: "The first day of the period of the growth and income observations."
          examples:
            - "2026-10-01"
        value:
          type: "number"
          format: "double"
          description: "The current figure of the growth and income observations, revisions included."
          examples:
            - 159834
        change_prior:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The growth and income observations: value minus the prior period's."
          examples:
            - 112
        change_year:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The growth and income observations: value minus the value a year earlier."
          examples:
            - 1650
        change_year_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The growth and income observations: change_year as a percent of the year-earlier value, one decimal."
          examples:
            - 1
        first_published_value:
          type: "number"
          format: "double"
          description: "The first figure Darvas recorded for the growth and income observations: the first release for periods published since 25 November 2026."
          examples:
            - 159800
      examples:
        - series: "real_gdp_growth"
          date: "2026-07-01"
          value: 2.8
          change_prior: 0.4
          change_year: -0.3
          change_year_pct: -9.7
          first_published_value: 2.6
    MacroSeries:
      type: "object"
      description: "A macro series and where it comes from."
      additionalProperties: false
      required: []
      properties:
        series:
          type: "string"
          pattern: "^[A-Za-z0-9_]{1,40}$"
          description: "The series identifier to pass as the series query parameter."
          examples:
            - "cpi_all_sa"
        series_id:
          type: "string"
          pattern: "^[A-Za-z0-9_]{1,40}$"
          description: "Alias of series: pass this value as the series query parameter."
          examples:
            - "cpi_all_sa"
        bank:
          type: "string"
          pattern: "^[A-Z_]{2,20}$"
          description: "The bank symbol, in bank_details."
          examples:
            - "FED"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The bank's name, in bank_details."
          examples:
            - "Federal Reserve: midpoint of the federal funds target range"
        title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "What the series measures."
          examples:
            - "CPI-U, all items"
        seasonal_adjustment:
          type:
            - "string"
            - "null"
          enum:
            - "sa"
            - "nsa"
            - null
          description: "sa, nsa, or null when it does not apply."
          examples:
            - "sa"
        units:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Units of the values."
          examples:
            - "Index 1982-84=100"
        frequency:
          type: "string"
          enum:
            - "daily"
            - "weekly"
            - "monthly"
            - "quarterly"
          description: "How often the series has a value."
          examples:
            - "monthly"
        first_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The first period Darvas holds."
          examples:
            - "1947-01-01"
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The publisher and the series' code there."
          examples:
            - "BLS CUSR0000SA0"
      examples:
        - series: "cpi_all_sa"
          series_id: "cpi_all_sa"
          title: "CPI-U, all items"
          seasonal_adjustment: "sa"
          units: "Index 1982-84=100"
          frequency: "monthly"
          first_date: "1947-01-01"
          source: "BLS CUSR0000SA0"
    InterestRatesResponse:
      type: "object"
      description: "The answer of GET /macro/interest-rates."
      additionalProperties: false
      required:
        - "interest_rates"
      properties:
        interest_rates:
          type: "array"
          maxItems: 1000
          description: "This page of central bank policy rates, in date order."
          items:
            $ref: "#/components/schemas/InterestRate"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of central bank policy rates; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/macro/interest-rates?cursor=eyJzZXJpZXMiOiIifQ"
      examples:
        - interest_rates:
            - bank: "FED"
              name: "Federal Reserve"
              rate: 4.125
              date: "2026-11-24"
              first_published_rate: 4.125
    InterestRatesSnapshot:
      type: "object"
      description: "The answer of GET /macro/interest-rates/snapshot."
      additionalProperties: false
      required:
        - "interest_rates"
      properties:
        interest_rates:
          type: "array"
          maxItems: 200
          description: "The newest of the central bank policy rates, one per series."
          items:
            $ref: "#/components/schemas/InterestRate"
      examples:
        - interest_rates:
            - bank: "FED"
              name: "Federal Reserve"
              rate: 4.125
              date: "2026-11-24"
              first_published_rate: 4.125
    InterestRatesCatalog:
      type: "object"
      description: "The banks of the central bank policy rates."
      additionalProperties: false
      required:
        - "resource"
        - "banks"
      properties:
        resource:
          type: "string"
          enum:
            - "interest_rates"
          description: "Always interest_rates."
          examples:
            - "interest_rates"
        banks:
          type: "array"
          maxItems: 200
          description: "Bank symbols to pass as bank."
          items:
            type: "string"
            pattern: "^[A-Z_]{2,20}$"
            maxLength: 20
        bank_details:
          type: "array"
          maxItems: 200
          description: "Each bank with its name, first date and source."
          items:
            $ref: "#/components/schemas/MacroSeries"
      examples:
        - resource: "interest_rates"
          banks:
            - "FED"
            - "ECB"
    YieldCurveResponse:
      type: "object"
      description: "The answer of GET /macro/yield-curve."
      additionalProperties: false
      required:
        - "yield_curve"
      properties:
        yield_curve:
          type: "array"
          maxItems: 1000
          description: "This page of Treasury par yield curves, in date order."
          items:
            $ref: "#/components/schemas/YieldCurve"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of Treasury par yield curves; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/macro/yield-curve?cursor=eyJzZXJpZXMiOiIifQ"
      examples:
        - yield_curve:
            - date: "2026-11-24"
              "1_month": 4.21
              "10_year": 4.91
              "30_year": 5.3
    YieldCurveSnapshot:
      type: "object"
      description: "The answer of GET /macro/yield-curve/snapshot."
      additionalProperties: false
      required:
        - "yield_curve"
      properties:
        yield_curve:
          $ref: "#/components/schemas/YieldCurve"
      examples:
        - yield_curve:
            date: "2026-11-24"
            "1_month": 4.21
            "10_year": 4.91
            "30_year": 5.3
    InflationResponse:
      type: "object"
      description: "The answer of GET /macro/inflation."
      additionalProperties: false
      required:
        - "inflation"
      properties:
        inflation:
          type: "array"
          maxItems: 1000
          description: "This page of inflation observations, in date order."
          items:
            $ref: "#/components/schemas/InflationObservation"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of inflation observations; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/macro/inflation?cursor=eyJzZXJpZXMiOiIifQ"
      examples:
        - inflation:
            - series: "cpi_all_sa"
              date: "2026-10-01"
              value: 331.2
              change_1m_pct: 0.2
              change_12m_pct: 2.9
              first_published_value: 331.2
    InflationSnapshot:
      type: "object"
      description: "The answer of GET /macro/inflation/snapshot."
      additionalProperties: false
      required:
        - "inflation"
      properties:
        inflation:
          type: "array"
          maxItems: 200
          description: "The newest of the inflation observations, one per series."
          items:
            $ref: "#/components/schemas/InflationObservation"
      examples:
        - inflation:
            - series: "cpi_all_sa"
              date: "2026-10-01"
              value: 331.2
              change_1m_pct: 0.2
              change_12m_pct: 2.9
              first_published_value: 331.2
    InflationCatalog:
      type: "object"
      description: "The series of the inflation observations."
      additionalProperties: false
      required:
        - "resource"
        - "series"
      properties:
        resource:
          type: "string"
          enum:
            - "inflation"
          description: "Always inflation."
          examples:
            - "inflation"
        series:
          type: "array"
          maxItems: 200
          description: "Every series of the inflation observations."
          items:
            $ref: "#/components/schemas/MacroSeries"
      examples:
        - resource: "inflation"
          series: []
    LaborResponse:
      type: "object"
      description: "The answer of GET /macro/labor."
      additionalProperties: false
      required:
        - "labor"
      properties:
        labor:
          type: "array"
          maxItems: 1000
          description: "This page of labor market observations, in date order."
          items:
            $ref: "#/components/schemas/LaborObservation"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of labor market observations; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/macro/labor?cursor=eyJzZXJpZXMiOiIifQ"
      examples:
        - labor:
            - series: "payrolls_sa"
              date: "2026-10-01"
              value: 159834
              change_prior: 112
              change_year: 1650
              change_year_pct: 1
              first_published_value: 159800
    LaborSnapshot:
      type: "object"
      description: "The answer of GET /macro/labor/snapshot."
      additionalProperties: false
      required:
        - "labor"
      properties:
        labor:
          type: "array"
          maxItems: 200
          description: "The newest of the labor market observations, one per series."
          items:
            $ref: "#/components/schemas/LaborObservation"
      examples:
        - labor:
            - series: "payrolls_sa"
              date: "2026-10-01"
              value: 159834
              change_prior: 112
              change_year: 1650
              change_year_pct: 1
              first_published_value: 159800
    LaborCatalog:
      type: "object"
      description: "The series of the labor market observations."
      additionalProperties: false
      required:
        - "resource"
        - "series"
      properties:
        resource:
          type: "string"
          enum:
            - "labor"
          description: "Always labor."
          examples:
            - "labor"
        series:
          type: "array"
          maxItems: 200
          description: "Every series of the labor market observations."
          items:
            $ref: "#/components/schemas/MacroSeries"
      examples:
        - resource: "labor"
          series: []
    GdpResponse:
      type: "object"
      description: "The answer of GET /macro/gdp."
      additionalProperties: false
      required:
        - "gdp"
      properties:
        gdp:
          type: "array"
          maxItems: 1000
          description: "This page of growth and income observations, in date order."
          items:
            $ref: "#/components/schemas/GdpObservation"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The next page of growth and income observations; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/macro/gdp?cursor=eyJzZXJpZXMiOiIifQ"
      examples:
        - gdp:
            - series: "real_gdp_growth"
              date: "2026-07-01"
              value: 2.8
              change_prior: 0.4
              change_year: -0.3
              change_year_pct: -9.7
              first_published_value: 2.6
    GdpSnapshot:
      type: "object"
      description: "The answer of GET /macro/gdp/snapshot."
      additionalProperties: false
      required:
        - "gdp"
      properties:
        gdp:
          type: "array"
          maxItems: 200
          description: "The newest of the growth and income observations, one per series."
          items:
            $ref: "#/components/schemas/GdpObservation"
      examples:
        - gdp:
            - series: "real_gdp_growth"
              date: "2026-07-01"
              value: 2.8
              change_prior: 0.4
              change_year: -0.3
              change_year_pct: -9.7
              first_published_value: 2.6
    GdpCatalog:
      type: "object"
      description: "The series of the growth and income observations."
      additionalProperties: false
      required:
        - "resource"
        - "series"
      properties:
        resource:
          type: "string"
          enum:
            - "gdp"
          description: "Always gdp."
          examples:
            - "gdp"
        series:
          type: "array"
          maxItems: 200
          description: "Every series of the growth and income observations."
          items:
            $ref: "#/components/schemas/MacroSeries"
      examples:
        - resource: "gdp"
          series: []
    EconomicCalendarEvent:
      type: "object"
      description: "One scheduled or released macroeconomic calendar event."
      additionalProperties: false
      required:
        - "id"
        - "series_key"
        - "event_name"
        - "canonical_event_name"
        - "currency"
        - "importance"
        - "event_type"
        - "time_mode"
        - "status"
        - "release_at"
        - "updated_at"
      properties:
        id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Unique release identifier."
          examples:
            - "6f1c2a9e-1b2c-4d3e-8f4a-5b6c7d8e9f01"
        series_key:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 160
          description: "Series identifier for recurring releases."
          examples:
            - "united-states/cpi-yoy"
        event_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Display title of the macro release."
          examples:
            - "US CPI YoY"
        canonical_event_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Canonical English release name."
          examples:
            - "Consumer Price Index YoY"
        currency:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "Three-letter currency code impacted."
          examples:
            - "USD"
        country_code:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 999
          description: "Numeric ISO-3166 country code (999 Eurozone, 0 Global)."
          examples:
            - 840
        country_iso2:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "ISO 3166-1 alpha-2 country code (or EU for Eurozone)."
          examples:
            - "US"
        country_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Country or region name."
          examples:
            - "United States"
        importance:
          type: "string"
          enum:
            - "none"
            - "low"
            - "medium"
            - "high"
          description: "Impact rating: none (holiday), low, medium, or high."
          examples:
            - "high"
        event_type:
          type: "string"
          enum:
            - "event"
            - "indicator"
            - "holiday"
            - "unknown"
          description: "Release classification."
          examples:
            - "indicator"
        event_type_code:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 99
          description: "Numeric event type code (0 event, 1 indicator, 2 holiday)."
          examples:
            - 1
        time_mode:
          type: "string"
          enum:
            - "exact"
            - "all_day"
            - "tentative"
            - "unknown"
          description: "Schedule time precision."
          examples:
            - "exact"
        time_mode_code:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 99
          description: "Numeric time mode code (0 exact, 1 all_day, 2 tentative)."
          examples:
            - 0
        status:
          type: "string"
          enum:
            - "released"
            - "scheduled"
          description: "Whether the release has published an actual print."
          examples:
            - "released"
        release_at:
          type: "string"
          format: "date-time"
          description: "Release timestamp in UTC."
          examples:
            - "2026-11-13T13:30:00.000Z"
        updated_at:
          type: "string"
          format: "date-time"
          description: "Last update timestamp in UTC."
          examples:
            - "2026-11-13T13:31:00.000Z"
        actual:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Published actual value string."
          examples:
            - "2.7%"
        forecast:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Consensus forecast string."
          examples:
            - "2.6%"
        previous:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Prior release value string."
          examples:
            - "2.6%"
        old_previous:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Unrevised prior value when revised."
          examples:
            - null
        actual_numeric:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Parsed numeric actual value."
          examples:
            - 2.7
        forecast_numeric:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Parsed numeric consensus forecast value."
          examples:
            - 2.6
        previous_numeric:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Parsed numeric prior value."
          examples:
            - 2.6
        old_previous_numeric:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Parsed numeric unrevised prior value."
          examples:
            - null
        unit:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Display unit suffix."
          examples:
            - "%"
        surprise:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Actual minus consensus forecast numerically when both exist."
          examples:
            - 0.1
        surprise_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percentage surprise relative to consensus forecast (null when |forecast| < 0.25)."
          examples:
            - 3.8462
        surprise_z_score:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Point-in-time z-score standardized against strictly prior releases of the same series."
          examples:
            - 1.42
        surprise_direction:
          type:
            - "string"
            - "null"
          enum:
            - "beat"
            - "miss"
            - "inline"
            - null
          description: "Direction of actual relative to consensus forecast."
          examples:
            - "beat"
      examples:
        - id: "6f1c2a9e-1b2c-4d3e-8f4a-5b6c7d8e9f01"
          series_key: "united-states/cpi-yoy"
          event_name: "US CPI YoY"
          canonical_event_name: "Consumer Price Index YoY"
          currency: "USD"
          country_code: 840
          country_iso2: "US"
          country_name: "United States"
          importance: "high"
          event_type: "indicator"
          event_type_code: 1
          time_mode: "exact"
          time_mode_code: 0
          status: "released"
          release_at: "2026-11-13T13:30:00.000Z"
          updated_at: "2026-11-13T13:31:00.000Z"
          actual: "2.7%"
          forecast: "2.6%"
          previous: "2.6%"
          old_previous: null
          actual_numeric: 2.7
          forecast_numeric: 2.6
          previous_numeric: 2.6
          old_previous_numeric: null
          unit: "%"
          surprise: 0.1
          surprise_pct: 3.8462
          surprise_z_score: 1.42
          surprise_direction: "beat"
    EconomicCalendarSeriesSummary:
      type: "object"
      description: "Historical surprise distribution for a filtered series_key."
      additionalProperties: false
      required:
        - "series_key"
        - "releases_with_surprise_count"
        - "beat_count"
        - "miss_count"
        - "inline_count"
      properties:
        series_key:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 160
          description: "Series identifier."
          examples:
            - "united-states/cpi-yoy"
        releases_with_surprise_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Count of historical releases with both actual and forecast values."
          examples:
            - 12
        mean_surprise:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Mean numerical surprise across stored releases."
          examples:
            - 0.04
        std_surprise:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Sample standard deviation of numerical surprises."
          examples:
            - 0.12
        beat_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Count of releases beating forecast."
          examples:
            - 7
        miss_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Count of releases missing forecast."
          examples:
            - 3
        inline_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Count of releases matching forecast exactly."
          examples:
            - 2
        beat_rate_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percentage of releases that beat consensus forecast."
          examples:
            - 58.33
      examples:
        - series_key: "united-states/cpi-yoy"
          releases_with_surprise_count: 12
          mean_surprise: 0.04
          std_surprise: 0.12
          beat_count: 7
          miss_count: 3
          inline_count: 2
          beat_rate_pct: 58.33
    EconomicCalendarSource:
      type: "object"
      description: "Data source attribution for the economic calendar."
      additionalProperties: false
      required:
        - "id"
        - "name"
        - "url"
        - "coverage"
      properties:
        id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Source identifier."
          examples:
            - "darvas_economic_calendar"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 160
          description: "Human-readable source name."
          examples:
            - "Darvas Global Macroeconomic Release Schedule"
        url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "Canonical documentation or API URL."
          examples:
            - "https://api.darvas.app/v1/macro/economic-calendar"
        coverage:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 400
          description: "Scope of covered countries and macroeconomic events."
          examples:
            - "Central bank decisions, inflation, labor, GDP, trade, and Treasury releases across major global economies and central bank calendars"
      examples:
        - id: "darvas_economic_calendar"
          name: "Darvas Global Macroeconomic Release Schedule"
          url: "https://api.darvas.app/v1/macro/economic-calendar"
          coverage: "Central bank decisions, inflation, labor, GDP, trade, and Treasury releases across major global economies and central bank calendars"
    EconomicCalendarResponse:
      type: "object"
      description: "The answer of GET /macro/economic-calendar."
      additionalProperties: false
      required:
        - "economic_calendar"
        - "count"
        - "has_more"
      properties:
        economic_calendar:
          type: "array"
          maxItems: 200
          description: "Page of matching releases."
          items:
            $ref: "#/components/schemas/EconomicCalendarEvent"
        count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 200
          description: "Number of releases in this page."
          examples:
            - 1
        has_more:
          type: "boolean"
          description: "True when more matching releases exist on a subsequent page."
          examples:
            - false
        next_cursor:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "Opaque keyset pagination cursor for the next page."
          examples:
            - "eyJyZWxlYXNlQXQiOiIyMDI2LTExLTEzVDEzOjMwOjAwLjAwMFoifQ"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 2000
          description: "Next page URL when more releases remain."
          examples:
            - "https://api.darvas.app/v1/macro/economic-calendar?cursor=eyJyZWxlYXNlQXQiOiIyMDI2LTExLTEzVDEzOjMwOjAwLjAwMFoifQ"
        series_summary:
          $ref: "#/components/schemas/EconomicCalendarSeriesSummary"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1000
          description: "Calculation notes for surprise, surprise_pct, and surprise_z_score."
          examples:
            - "Surprise equals actual_numeric minus forecast_numeric."
        sources:
          type: "array"
          maxItems: 10
          description: "Source attribution records."
          items:
            $ref: "#/components/schemas/EconomicCalendarSource"
      examples:
        - economic_calendar:
            - id: "6f1c2a9e-1b2c-4d3e-8f4a-5b6c7d8e9f01"
              series_key: "united-states/cpi-yoy"
              event_name: "US CPI YoY"
              canonical_event_name: "Consumer Price Index YoY"
              currency: "USD"
              country_code: 840
              country_iso2: "US"
              country_name: "United States"
              importance: "high"
              event_type: "indicator"
              event_type_code: 1
              time_mode: "exact"
              time_mode_code: 0
              status: "released"
              release_at: "2026-11-13T13:30:00.000Z"
              updated_at: "2026-11-13T13:31:00.000Z"
              actual: "2.7%"
              forecast: "2.6%"
              previous: "2.6%"
              old_previous: null
              actual_numeric: 2.7
              forecast_numeric: 2.6
              previous_numeric: 2.6
              old_previous_numeric: null
              unit: "%"
              surprise: 0.1
              surprise_pct: 3.8462
              surprise_z_score: 1.42
              surprise_direction: "beat"
          count: 1
          has_more: false
          sources:
            - id: "darvas_economic_calendar"
              name: "Darvas Global Macroeconomic Release Schedule"
              url: "https://api.darvas.app/v1/macro/economic-calendar"
              coverage: "Central bank decisions, inflation, labor, GDP, trade, and Treasury releases across major global economies and central bank calendars"
    EconomicCalendarCountry:
      type: "object"
      description: "Country summary in the economic calendar."
      additionalProperties: false
      required:
        - "country_code"
        - "release_count"
        - "currencies"
      properties:
        country_code:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 999
          description: "The country's numeric ISO-3166 code (999 Eurozone, 0 Global)."
          examples:
            - 840
        country_iso2:
          $ref: "#/components/schemas/EconomicCalendarEvent/properties/country_iso2"
        country_name:
          $ref: "#/components/schemas/EconomicCalendarEvent/properties/country_name"
        release_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000000
          description: "Stored historical and scheduled release count."
          examples:
            - 1450
        currencies:
          type: "array"
          maxItems: 10
          description: "Associated currency codes."
          items:
            type: "string"
            pattern: "^[A-Z0-9]{2,16}$"
            maxLength: 16
          examples:
            - - "USD"
      examples:
        - country_code: 840
          country_iso2: "US"
          country_name: "United States"
          release_count: 1450
          currencies:
            - "USD"
    EconomicCalendarCountriesResponse:
      type: "object"
      description: "The answer of GET /macro/economic-calendar/countries."
      additionalProperties: false
      required:
        - "countries"
      properties:
        countries:
          type: "array"
          maxItems: 300
          description: "Covered countries and currencies."
          items:
            $ref: "#/components/schemas/EconomicCalendarCountry"
      examples:
        - countries:
            - country_code: 840
              country_iso2: "US"
              country_name: "United States"
              release_count: 1450
              currencies:
                - "USD"
    EtfFlowSummary:
      type: "object"
      description: "Window summary for one crypto spot ETF asset."
      additionalProperties: false
      required:
        - "asset"
        - "latest_total_flow_usd_m"
        - "latest_pending"
        - "period_net_flow_usd_m"
        - "positive_days"
        - "negative_days"
      properties:
        asset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "Asset symbol."
          examples:
            - "BTC"
        latest_flow_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 16
          description: "Most recent flow date."
          examples:
            - "2026-11-27"
        latest_total_flow_usd_m:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Latest daily total net flow in USD millions."
          examples:
            - 312.4
        latest_pending:
          type: "boolean"
          description: "Whether latest flow day has pending issuers."
          examples:
            - false
        period_net_flow_usd_m:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cumulative net flow over completed days."
          examples:
            - 1840.2
        positive_days:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000
          description: "Count of net inflow days."
          examples:
            - 15
        negative_days:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000
          description: "Count of net outflow days."
          examples:
            - 5
      examples:
        - asset: "BTC"
          latest_flow_date: "2026-11-27"
          latest_total_flow_usd_m: 312.4
          latest_pending: false
          period_net_flow_usd_m: 1840.2
          positive_days: 15
          negative_days: 5
    EtfFlowPoint:
      type: "object"
      description: "Single ETF flow observation by asset, date, and issuer."
      additionalProperties: false
      required:
        - "asset"
        - "flow_date"
        - "provider"
        - "flow_usd_m"
        - "is_total"
        - "is_pending"
      properties:
        asset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "Crypto ETF asset ticker."
          examples:
            - "BTC"
        flow_date:
          type: "string"
          format: "date"
          maxLength: 16
          description: "Flow UTC date."
          examples:
            - "2026-11-27"
        bucket_end:
          type: "string"
          format: "date"
          maxLength: 16
          description: "Exclusive UTC end date of a rolled-up weekly or monthly crypto ETF flow bucket."
          examples:
            - "2026-11-30"
        provider:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "ETF issuer ticker or Total aggregate."
          examples:
            - "IBIT"
        flow_usd_m:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net flow in USD millions."
          examples:
            - 245.1
        is_total:
          type: "boolean"
          description: "True for aggregate asset total rows."
          examples:
            - false
        is_pending:
          type: "boolean"
          description: "True when issuer report is pending."
          examples:
            - false
      examples:
        - asset: "BTC"
          flow_date: "2026-11-27"
          provider: "IBIT"
          flow_usd_m: 245.1
          is_total: false
          is_pending: false
    CryptoEtfFlowsResponse:
      type: "object"
      description: "The answer of GET /crypto/etf-flows."
      additionalProperties: false
      required:
        - "unit"
        - "summaries"
        - "etf_flows"
      properties:
        unit:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Flow monetary unit."
          examples:
            - "USD millions"
        interval:
          type: "string"
          enum:
            - "day"
            - "week"
            - "month"
          description: "Bucket interval applied to the returned crypto ETF flows."
          examples:
            - "day"
        start_date:
          type: "string"
          format: "date"
          maxLength: 16
          description: "Inclusive UTC start date applied when querying ranged or rolled-up crypto ETF flows."
          examples:
            - "2026-09-01"
        end_date:
          type: "string"
          format: "date"
          maxLength: 16
          description: "Inclusive UTC end date applied when querying ranged or rolled-up crypto ETF flows."
          examples:
            - "2026-11-27"
        summaries:
          type: "array"
          maxItems: 10
          description: "Per-asset ETF flow summaries."
          items:
            $ref: "#/components/schemas/EtfFlowSummary"
        etf_flows:
          type: "array"
          maxItems: 5000
          description: "Daily and issuer-level ETF flow rows."
          items:
            $ref: "#/components/schemas/EtfFlowPoint"
      examples:
        - unit: "USD millions"
          interval: "day"
          summaries:
            - asset: "BTC"
              latest_flow_date: "2026-11-27"
              latest_total_flow_usd_m: 312.4
              latest_pending: false
              period_net_flow_usd_m: 1840.2
              positive_days: 15
              negative_days: 5
          etf_flows:
            - asset: "BTC"
              flow_date: "2026-11-27"
              provider: "IBIT"
              flow_usd_m: 245.1
              is_total: false
              is_pending: false
    CryptoDerivativesResponse:
      type: "object"
      description: "The answer of GET /crypto/derivatives."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "metric"
        - "period"
        - "points"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9._:/-]{1,64}$"
          description: "The perpetual answered: the OKX id, BTC-USDC-SWAP form on Hyperliquid, or perpetual:<symbol> on Binance and Bybit."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange of the series."
          examples:
            - "okx"
        metric:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Queried positioning metric."
          examples:
            - "funding-history"
        period:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "Aggregation interval."
          examples:
            - "1H"
        points:
          type: "array"
          maxItems: 500
          description: "Chronological positioning points newest first."
          items:
            type: "object"
            description: "Derivative metric observation with its time. Stored OKX positioning points carry OKX fields; basis points carry futures_price, index_price, basis, and basis_bps; oi-snapshots points carry open_interest_contracts, open_interest_base, and open_interest_usd; Binance, Bybit, and Hyperliquid points carry ts in Unix milliseconds and snake_case values such as funding_rate, premium, open_interest, open_interest_usd, long_short_ratio, long_share, short_share, buy_sell_ratio, buy_volume, and sell_volume."
            examples:
              - time: "2026-11-28T12:00:00.000Z"
                instId: "BTC-USDT-SWAP"
                fundingRate: 0.00012
                realizedRate: 0.00011
          examples:
            - - time: "2026-11-28T12:00:00.000Z"
                instId: "BTC-USDT-SWAP"
                fundingRate: 0.00012
                realizedRate: 0.00011
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          metric: "funding-history"
          period: "1H"
          points:
            - time: "2026-11-28T12:00:00.000Z"
              instId: "BTC-USDT-SWAP"
              fundingRate: 0.00012
              realizedRate: 0.00011
    CryptoLargeTrade:
      type: "object"
      description: "High-notional aggressive crypto trade."
      additionalProperties: false
      required:
        - "id"
        - "ticker"
        - "base_currency"
        - "side"
        - "price"
        - "size_base"
        - "notional_usd"
        - "time"
      properties:
        id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Unique execution key: aggregated on OKX contracts, the exchange's trade id elsewhere."
          examples:
            - "BTC-USDT-SWAP:123456:1795870000000"
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Instrument identifier."
          examples:
            - "BTC-USDT-SWAP"
        base_currency:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "Base asset symbol."
          examples:
            - "BTC"
        side:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "Taker aggressor direction."
          examples:
            - "buy"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Execution price."
          examples:
            - 97811.4
        size_base:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Quantity in base units."
          examples:
            - 5.2
        notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional USD execution size."
          examples:
            - 508619.28
        time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "Execution timestamp UTC."
          examples:
            - "2026-11-28T12:00:00.000Z"
      examples:
        - id: "BTC-USDT-SWAP:123456:1795870000000"
          ticker: "BTC-USDT-SWAP"
          base_currency: "BTC"
          side: "buy"
          price: 97811.4
          size_base: 5.2
          notional_usd: 508619.28
          time: "2026-11-28T12:00:00.000Z"
    CryptoLargeTradesResponse:
      type: "object"
      description: "The answer of GET /crypto/large-trades."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "min_notional_usd"
        - "large_trades"
      properties:
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Queried instrument identifier."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange of the large trades."
          examples:
            - "okx"
        min_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum notional filter applied."
          examples:
            - 100000
        large_trades:
          type: "array"
          maxItems: 100
          description: "Matching large trade executions."
          items:
            $ref: "#/components/schemas/CryptoLargeTrade"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          min_notional_usd: 100000
          large_trades:
            - id: "BTC-USDT-SWAP:123456:1795870000000"
              ticker: "BTC-USDT-SWAP"
              base_currency: "BTC"
              side: "buy"
              price: 97811.4
              size_base: 5.2
              notional_usd: 508619.28
              time: "2026-11-28T12:00:00.000Z"
    CryptoLiquidation:
      type: "object"
      description: "Forced derivatives liquidation fill."
      additionalProperties: false
      required:
        - "ticker"
        - "side"
        - "price"
        - "size_base"
        - "notional_usd"
        - "source_quality"
        - "time"
      properties:
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Liquidated futures instrument ticker."
          examples:
            - "BTC-USDT-SWAP"
        side:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "Liquidated side: long or short."
          examples:
            - "short"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Liquidation fill price."
          examples:
            - 97950
        size_base:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Liquidated base quantity."
          examples:
            - 1.85
        notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Liquidated notional USD."
          examples:
            - 181207.5
        source_quality:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Feed quality tag."
          examples:
            - "okx_ws"
        time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "Event timestamp UTC."
          examples:
            - "2026-11-28T12:00:00.000Z"
      examples:
        - ticker: "BTC-USDT-SWAP"
          side: "short"
          price: 97950
          size_base: 1.85
          notional_usd: 181207.5
          source_quality: "okx_ws"
          time: "2026-11-28T12:00:00.000Z"
    CryptoLiquidationsResponse:
      type: "object"
      description: "The answer of GET /crypto/liquidations."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "liquidations"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Liquidated contract symbol requested, or null for market-wide liquidation queries."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "Exchange queried for forced crypto liquidation events."
          examples:
            - "okx"
        side:
          type:
            - "string"
            - "null"
          enum:
            - "long"
            - "short"
            - null
          description: "Position side filter applied to forced liquidation events, or null when unfiltered."
          examples:
            - "short"
        min_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum USD notional threshold applied to forced liquidation events, or null when unfiltered."
          examples:
            - 50000
        liquidations:
          type: "array"
          maxItems: 500
          description: "Forced liquidation events."
          items:
            $ref: "#/components/schemas/CryptoLiquidation"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          side: null
          min_notional_usd: null
          liquidations:
            - ticker: "BTC-USDT-SWAP"
              side: "short"
              price: 97950
              size_base: 1.85
              notional_usd: 181207.5
              source_quality: "okx_ws"
              time: "2026-11-28T12:00:00.000Z"
    HyperliquidMarket:
      type: "object"
      description: "Live perpetual market state on Hyperliquid."
      additionalProperties: false
      required:
        - "ticker"
        - "mark_price"
        - "open_interest"
        - "open_interest_usd"
        - "volume_24h_usd"
      properties:
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Hyperliquid contract symbol."
          examples:
            - "BTC"
        mark_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current mark price USD."
          examples:
            - 97810.5
        oracle_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current index oracle price USD."
          examples:
            - 97805.2
        prev_day_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Previous UTC day reference price."
          examples:
            - 96500
        day_change_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "24-hour percentage price change."
          examples:
            - 1.36
        funding_rate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current hourly funding rate."
          examples:
            - 0.0000125
        open_interest:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Open interest in base contracts."
          examples:
            - 18420.5
        open_interest_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Open interest notional USD."
          examples:
            - 1801718315.25
        volume_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Rolling 24-hour notional volume USD."
          examples:
            - 4215000000
        premium:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Perpetual mark-index premium."
          examples:
            - 0.00005
        max_leverage:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Maximum allowed leverage."
          examples:
            - 40
      examples:
        - ticker: "BTC"
          mark_price: 97810.5
          oracle_price: 97805.2
          prev_day_price: 96500
          day_change_pct: 1.36
          funding_rate: 0.0000125
          open_interest: 18420.5
          open_interest_usd: 1801718315.25
          volume_24h_usd: 4215000000
          premium: 0.00005
          max_leverage: 40
    HyperliquidMarketsResponse:
      type: "object"
      description: "The answer of GET /crypto/hyperliquid/markets."
      additionalProperties: false
      required:
        - "exchange"
        - "markets"
      properties:
        exchange:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "Exchange identifier."
          examples:
            - "hyperliquid"
        markets:
          type: "array"
          maxItems: 200
          description: "Perpetual market rows."
          items:
            $ref: "#/components/schemas/HyperliquidMarket"
      examples:
        - exchange: "hyperliquid"
          markets:
            - ticker: "BTC"
              mark_price: 97810.5
              oracle_price: 97805.2
              prev_day_price: 96500
              day_change_pct: 1.36
              funding_rate: 0.0000125
              open_interest: 18420.5
              open_interest_usd: 1801718315.25
              volume_24h_usd: 4215000000
              premium: 0.00005
              max_leverage: 40
    StockTechnicals:
      type: "object"
      description: "Server-computed technical indicator snapshot."
      additionalProperties: false
      required:
        - "latest_date"
        - "latest_close"
        - "bars_analyzed"
      properties:
        latest_date:
          type: "string"
          format: "date"
          maxLength: 16
          description: "Latest analyzed bar date."
          examples:
            - "2026-11-27"
        latest_close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Latest bar close price."
          examples:
            - 235.12
        bars_analyzed:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 1000
          description: "Count of historical bars analyzed."
          examples:
            - 280
        sma_20:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period simple moving average."
          examples:
            - 229.4
        sma_50:
          type:
            - "number"
            - "null"
          format: "double"
          description: "50-period simple moving average."
          examples:
            - 222.8
        sma_200:
          type:
            - "number"
            - "null"
          format: "double"
          description: "200-period simple moving average."
          examples:
            - 205.6
        ema_12:
          type:
            - "number"
            - "null"
          format: "double"
          description: "12-period exponential moving average."
          examples:
            - 232.1
        ema_26:
          type:
            - "number"
            - "null"
          format: "double"
          description: "26-period exponential moving average."
          examples:
            - 228.5
        rsi_14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "14-period Wilder RSI (0 to 100)."
          examples:
            - 61.4
        macd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "MACD line (EMA12 minus EMA26)."
          examples:
            - 3.6
        macd_signal:
          type:
            - "number"
            - "null"
          format: "double"
          description: "9-period EMA signal line of MACD."
          examples:
            - 2.9
        macd_histogram:
          type:
            - "number"
            - "null"
          format: "double"
          description: "MACD minus MACD signal."
          examples:
            - 0.7
        bollinger_upper:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period +2 sigma upper Bollinger band."
          examples:
            - 241.2
        bollinger_middle:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period middle Bollinger SMA."
          examples:
            - 229.4
        bollinger_lower:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-period -2 sigma lower Bollinger band."
          examples:
            - 217.6
        atr_14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "14-period Average True Range."
          examples:
            - 4.15
        high_52w:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Rolling 52-week high price."
          examples:
            - 237.49
        low_52w:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Rolling 52-week low price."
          examples:
            - 164.08
        pct_from_52w_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent distance from 52-week high."
          examples:
            - -1
        avg_volume_20d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "20-bar average share volume."
          examples:
            - 44120300
        relative_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Latest volume divided by 20-bar average volume."
          examples:
            - 1.12
        return_1d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-day trailing percentage return."
          examples:
            - 0.85
        return_1w_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-week trailing percentage return."
          examples:
            - 2.41
        return_1m_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-month trailing percentage return."
          examples:
            - 5.12
        return_3m_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "3-month trailing percentage return."
          examples:
            - 12.3
        return_6m_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "6-month trailing percentage return."
          examples:
            - 19.4
        return_1y_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-year trailing percentage return."
          examples:
            - 31.8
      examples:
        - latest_date: "2026-11-27"
          latest_close: 235.12
          bars_analyzed: 280
          sma_20: 229.4
          sma_50: 222.8
          sma_200: 205.6
          ema_12: 232.1
          ema_26: 228.5
          rsi_14: 61.4
          macd: 3.6
          macd_signal: 2.9
          macd_histogram: 0.7
          bollinger_upper: 241.2
          bollinger_middle: 229.4
          bollinger_lower: 217.6
          atr_14: 4.15
          high_52w: 237.49
          low_52w: 164.08
          pct_from_52w_high: -1
          avg_volume_20d: 44120300
          relative_volume: 1.12
          return_1d_pct: 0.85
          return_1w_pct: 2.41
          return_1m_pct: 5.12
          return_3m_pct: 12.3
          return_6m_pct: 19.4
          return_1y_pct: 31.8
    StockTechnicalsResponse:
      type: "object"
      description: "The answer of GET /prices/technicals."
      additionalProperties: false
      required:
        - "ticker"
        - "interval"
        - "technicals"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9.-]{1,12}$"
          description: "Stock ticker symbol."
          examples:
            - "AAPL"
        interval:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "Bar timeframe analyzed."
          examples:
            - "day"
        technicals:
          $ref: "#/components/schemas/StockTechnicals"
      examples:
        - ticker: "AAPL"
          interval: "day"
          technicals:
            latest_date: "2026-11-27"
            latest_close: 235.12
            bars_analyzed: 280
            sma_20: 229.4
            sma_50: 222.8
            sma_200: 205.6
            ema_12: 232.1
            ema_26: 228.5
            rsi_14: 61.4
            macd: 3.6
            macd_signal: 2.9
            macd_histogram: 0.7
            bollinger_upper: 241.2
            bollinger_middle: 229.4
            bollinger_lower: 217.6
            atr_14: 4.15
            high_52w: 237.49
            low_52w: 164.08
            pct_from_52w_high: -1
            avg_volume_20d: 44120300
            relative_volume: 1.12
            return_1d_pct: 0.85
            return_1w_pct: 2.41
            return_1m_pct: 5.12
            return_3m_pct: 12.3
            return_6m_pct: 19.4
            return_1y_pct: 31.8
    PeerComparisonResponse:
      type: "object"
      description: "The answer of GET /financials/peer-comparison."
      additionalProperties: false
      required:
        - "tickers"
        - "peers"
        - "medians"
      properties:
        tickers:
          type: "array"
          maxItems: 20
          description: "Requested ticker list."
          items:
            type: "string"
            pattern: "^[A-Z0-9.-]{1,12}$"
            maxLength: 12
          examples:
            - - "AAPL"
              - "MSFT"
        peers:
          type: "array"
          maxItems: 20
          description: "Latest valuation, margins, and price snapshot per peer ticker."
          items:
            type: "object"
            description: "Peer company metrics."
            examples:
              - ticker: "AAPL"
                status: "ok"
                price: 235.12
                day_change_percent: 0.85
                market_cap: 3560000000000
                price_to_earnings_ratio: 31.4
                gross_margin: 0.462
                operating_margin: 0.318
                return_on_equity: 1.45
          examples:
            - - ticker: "AAPL"
                status: "ok"
                price: 235.12
                day_change_percent: 0.85
                market_cap: 3560000000000
                price_to_earnings_ratio: 31.4
                gross_margin: 0.462
                operating_margin: 0.318
                return_on_equity: 1.45
        medians:
          type: "object"
          description: "Peer group median across valuation and profitability metrics."
          examples:
            - market_cap: 3300000000000
              price_to_earnings_ratio: 31.4
      examples:
        - tickers:
            - "AAPL"
            - "MSFT"
          peers:
            - ticker: "AAPL"
              status: "ok"
              price: 235.12
              day_change_percent: 0.85
              market_cap: 3560000000000
              price_to_earnings_ratio: 31.4
              gross_margin: 0.462
              operating_margin: 0.318
              return_on_equity: 1.45
          medians:
            price_to_earnings_ratio: 31.4
    CompanyDossierResponse:
      type: "object"
      description: "The answer of GET /company/dossier."
      additionalProperties: false
      required:
        - "ticker"
        - "dossier"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9.-]{1,12}$"
          description: "Resolved US stock ticker."
          examples:
            - "AAPL"
        dossier:
          type: "object"
          description: "Combined profile, price, technicals, valuation, earnings, insider trades, 13F holders, and 8-K events."
          examples:
            - profile:
                ticker: "AAPL"
              latest_earnings: []
      examples:
        - ticker: "AAPL"
          dossier:
            profile:
              ticker: "AAPL"
            latest_earnings: []
    ShortVolumeEntry:
      type: "object"
      description: "One FINRA Reg SHO consolidated short sale volume observation."
      additionalProperties: false
      required:
        - "ticker"
        - "date"
        - "short_volume"
        - "short_exempt_volume"
        - "total_volume"
        - "short_ratio"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9.-]{1,16}$"
          description: "Reported security symbol."
          examples:
            - "GME"
        date:
          type: "string"
          format: "date"
          maxLength: 16
          description: "Settlement trade date."
          examples:
            - "2026-11-25"
        short_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Daily short sale volume in shares."
          examples:
            - 4200000
        short_exempt_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Daily short-exempt share volume."
          examples:
            - 12000
        total_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total consolidated NMS volume reported."
          examples:
            - 6000000
        short_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "short_volume divided by total_volume."
          examples:
            - 0.7
        markets:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Reporting FINRA facility codes."
          examples:
            - "B,Q,N"
      examples:
        - ticker: "GME"
          date: "2026-11-25"
          short_volume: 4200000
          short_exempt_volume: 12000
          total_volume: 6000000
          short_ratio: 0.7
          markets: "B,Q,N"
    ShortVolumeResponse:
      type: "object"
      description: "The answer of GET /short-volume."
      additionalProperties: false
      required:
        - "date"
        - "short_volume"
      properties:
        date:
          type: "string"
          format: "date"
          maxLength: 16
          description: "FINRA session date returned."
          examples:
            - "2026-11-25"
        short_volume:
          type: "array"
          maxItems: 200
          description: "Sorted FINRA short volume entries."
          items:
            $ref: "#/components/schemas/ShortVolumeEntry"
      examples:
        - date: "2026-11-25"
          short_volume:
            - ticker: "GME"
              date: "2026-11-25"
              short_volume: 4200000
              short_exempt_volume: 12000
              total_volume: 6000000
              short_ratio: 0.7
              markets: "B,Q,N"
    PredictionMarketEntry:
      type: "object"
      description: "Normalized binary prediction market contract."
      additionalProperties: false
      required:
        - "venue"
        - "market_id"
        - "ticker"
        - "question"
        - "yes_price"
        - "no_price"
        - "implied_probability"
        - "url"
      properties:
        venue:
          type: "string"
          enum:
            - "polymarket"
            - "kalshi"
            - "okx"
          description: "Exchange venue: polymarket, kalshi, or okx."
          examples:
            - "polymarket"
        market_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 128
          description: "Venue-specific market identifier."
          examples:
            - "559651"
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Market ticker or URL slug."
          examples:
            - "fed-rate-cut-december"
        question:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "Event contract question."
          examples:
            - "Will the Fed cut interest rates at its December meeting?"
        category:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Market category label."
          examples:
            - "Economics"
        yes_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "YES share price from 0 to 1."
          examples:
            - 0.64
        no_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "NO share price from 0 to 1."
          examples:
            - 0.36
        implied_probability:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Implied YES probability percentage (0 to 100)."
          examples:
            - 64
        best_bid:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best YES bid price."
          examples:
            - 0.63
        best_ask:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best YES ask price."
          examples:
            - 0.65
        spread:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bid-ask spread."
          examples:
            - 0.02
        volume_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Rolling 24-hour trading volume."
          examples:
            - 1250000
        volume_total:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Cumulative trading volume."
          examples:
            - 8400000
        liquidity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Order book or pool liquidity."
          examples:
            - 420000
        open_interest:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Contract open interest when reported."
          examples:
            - null
        end_date:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Contract resolution date/time ISO string."
          examples:
            - "2026-12-18T19:00:00Z"
        url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "Direct market page URL."
          examples:
            - "https://polymarket.com/event/fed-rate-cut-december"
      examples:
        - venue: "polymarket"
          market_id: "559651"
          ticker: "fed-rate-cut-december"
          question: "Will the Fed cut interest rates at its December meeting?"
          category: "Economics"
          yes_price: 0.64
          no_price: 0.36
          implied_probability: 64
          best_bid: 0.63
          best_ask: 0.65
          spread: 0.02
          volume_24h: 1250000
          volume_total: 8400000
          liquidity: 420000
          open_interest: null
          end_date: "2026-12-18T19:00:00Z"
          url: "https://polymarket.com/event/fed-rate-cut-december"
    PredictionMarketsResponse:
      type: "object"
      description: "The answer of GET /prediction-markets."
      additionalProperties: false
      required:
        - "prediction_markets"
      properties:
        prediction_markets:
          type: "array"
          maxItems: 200
          description: "Normalized prediction market contracts."
          items:
            $ref: "#/components/schemas/PredictionMarketEntry"
      examples:
        - prediction_markets:
            - venue: "polymarket"
              market_id: "559651"
              ticker: "fed-rate-cut-december"
              question: "Will the Fed cut interest rates at its December meeting?"
              category: "Economics"
              yes_price: 0.64
              no_price: 0.36
              implied_probability: 64
              best_bid: 0.63
              best_ask: 0.65
              spread: 0.02
              volume_24h: 1250000
              volume_total: 8400000
              liquidity: 420000
              open_interest: null
              end_date: "2026-12-18T19:00:00Z"
              url: "https://polymarket.com/event/fed-rate-cut-december"
    PredictionArbitrageEntry:
      type: "object"
      description: "Matched cross-venue binary market pair with edge."
      additionalProperties: false
      required:
        - "edge_percent"
        - "combined_cost"
        - "buy_yes_venue"
        - "buy_yes_price"
        - "buy_no_venue"
        - "buy_no_price"
        - "similarity"
      properties:
        edge_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Gross percentage edge equal to (1 - combined_cost) * 100."
          examples:
            - 4.5
        combined_cost:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Sum of buy YES price plus buy NO price across venues."
          examples:
            - 0.955
        buy_yes_venue:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "Venue where YES is cheaper."
          examples:
            - "polymarket"
        buy_yes_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "YES contract price on buy_yes_venue."
          examples:
            - 0.455
        buy_no_venue:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "Venue where NO complements YES."
          examples:
            - "kalshi"
        buy_no_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "NO contract price on buy_no_venue."
          examples:
            - 0.5
        similarity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Jaccard token similarity score between questions (0 to 1)."
          examples:
            - 0.72
        min_liquidity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum liquidity across the two venues."
          examples:
            - 18500
        polymarket_market_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 128
          description: "Polymarket market id."
          examples:
            - "559651"
        kalshi_ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 128
          description: "Kalshi contract ticker."
          examples:
            - "FED-26DEC-CUT"
        polymarket_question:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "Polymarket contract title."
          examples:
            - "Federal Reserve cuts rates in December 2026?"
        kalshi_question:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "Kalshi contract title."
          examples:
            - "Federal Reserve cut rates December 2026 meeting?"
        polymarket_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "Polymarket market URL."
          examples:
            - "https://polymarket.com/event/fed-rate-cut-december"
        kalshi_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "Kalshi market URL."
          examples:
            - "https://kalshi.com/markets/FED-26DEC-CUT"
      examples:
        - edge_percent: 4.5
          combined_cost: 0.955
          buy_yes_venue: "polymarket"
          buy_yes_price: 0.455
          buy_no_venue: "kalshi"
          buy_no_price: 0.5
          similarity: 0.72
          min_liquidity: 18500
          polymarket_market_id: "559651"
          kalshi_ticker: "FED-26DEC-CUT"
          polymarket_question: "Federal Reserve cuts rates in December 2026?"
          kalshi_question: "Federal Reserve cut rates December 2026 meeting?"
          polymarket_url: "https://polymarket.com/event/fed-rate-cut-december"
          kalshi_url: "https://kalshi.com/markets/FED-26DEC-CUT"
    PredictionArbitrageResponse:
      type: "object"
      description: "The answer of GET /prediction-markets/arbitrage."
      additionalProperties: false
      required:
        - "arbitrage_opportunities"
      properties:
        arbitrage_opportunities:
          type: "array"
          maxItems: 100
          description: "Ranked cross-venue spreads."
          items:
            $ref: "#/components/schemas/PredictionArbitrageEntry"
      examples:
        - arbitrage_opportunities:
            - edge_percent: 4.5
              combined_cost: 0.955
              buy_yes_venue: "polymarket"
              buy_yes_price: 0.455
              buy_no_venue: "kalshi"
              buy_no_price: 0.5
              similarity: 0.72
              min_liquidity: 18500
              polymarket_market_id: "559651"
              kalshi_ticker: "FED-26DEC-CUT"
              polymarket_question: "Federal Reserve cuts rates in December 2026?"
              kalshi_question: "Federal Reserve cut rates December 2026 meeting?"
              polymarket_url: "https://polymarket.com/event/fed-rate-cut-december"
              kalshi_url: "https://kalshi.com/markets/FED-26DEC-CUT"
    DefiProtocolEntry:
      type: "object"
      description: "DeFi protocol TVL and valuation snapshot."
      additionalProperties: false
      required:
        - "slug"
        - "name"
        - "chains"
        - "tvl_usd"
      properties:
        slug:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Protocol slug."
          examples:
            - "aave"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 160
          description: "Protocol display name."
          examples:
            - "Aave"
        symbol:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Governance token ticker."
          examples:
            - "AAVE"
        category:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "Protocol sector."
          examples:
            - "Lending"
        chain:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Primary chain label."
          examples:
            - "Multi-Chain"
        chains:
          type: "array"
          maxItems: 100
          description: "Supported networks."
          items:
            type: "string"
            pattern: "^[A-Za-z0-9 ._-]{1,40}$"
            maxLength: 40
          examples:
            - - "Ethereum"
              - "Base"
        tvl_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total value locked USD."
          examples:
            - 21450000000
        change_1d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-day TVL percent change."
          examples:
            - 1.4
        change_7d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "7-day TVL percent change."
          examples:
            - 4.8
        mcap_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Token market capitalization USD."
          examples:
            - 3200000000
        url:
          type:
            - "string"
            - "null"
          format: "uri"
          maxLength: 500
          description: "Protocol homepage URL."
          examples:
            - "https://aave.com"
      examples:
        - slug: "aave"
          name: "Aave"
          symbol: "AAVE"
          category: "Lending"
          chain: "Multi-Chain"
          chains:
            - "Ethereum"
            - "Arbitrum"
            - "Base"
          tvl_usd: 21450000000
          change_1d_pct: 1.4
          change_7d_pct: 4.8
          mcap_usd: 3200000000
          url: "https://aave.com"
    DefiProtocolsResponse:
      type: "object"
      description: "The answer of GET /defi/protocols."
      additionalProperties: false
      required:
        - "protocols"
      properties:
        protocols:
          type: "array"
          maxItems: 200
          description: "Ranked DeFi protocols."
          items:
            $ref: "#/components/schemas/DefiProtocolEntry"
      examples:
        - protocols:
            - slug: "aave"
              name: "Aave"
              symbol: "AAVE"
              category: "Lending"
              chain: "Multi-Chain"
              chains:
                - "Ethereum"
                - "Arbitrum"
                - "Base"
              tvl_usd: 21450000000
              change_1d_pct: 1.4
              change_7d_pct: 4.8
              mcap_usd: 3200000000
              url: "https://aave.com"
    DefiStablecoinEntry:
      type: "object"
      description: "Circulating supply snapshot of a stablecoin."
      additionalProperties: false
      required:
        - "id"
        - "name"
        - "symbol"
        - "circulating_usd"
        - "chains"
      properties:
        id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Stablecoin identifier."
          examples:
            - "1"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Stablecoin name."
          examples:
            - "Tether"
        symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 24
          description: "Stablecoin symbol."
          examples:
            - "USDT"
        peg_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 24
          description: "Peg denomination."
          examples:
            - "peggedUSD"
        peg_mechanism:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Collateral mechanism."
          examples:
            - "fiat-backed"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current USD price."
          examples:
            - 1
        circulating_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Circulating supply USD."
          examples:
            - 138000000000
        circulating_prev_day_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Prior day circulating supply USD."
          examples:
            - 137850000000
        circulating_prev_week_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Prior week circulating supply USD."
          examples:
            - 136900000000
        chains:
          type: "array"
          maxItems: 150
          description: "Networks issuing the stablecoin."
          items:
            type: "string"
            pattern: "^[A-Za-z0-9 ._-]{1,40}$"
            maxLength: 40
          examples:
            - - "Ethereum"
              - "Tron"
      examples:
        - id: "1"
          name: "Tether"
          symbol: "USDT"
          peg_type: "peggedUSD"
          peg_mechanism: "fiat-backed"
          price: 1
          circulating_usd: 138000000000
          circulating_prev_day_usd: 137850000000
          circulating_prev_week_usd: 136900000000
          chains:
            - "Ethereum"
            - "Tron"
            - "Arbitrum"
            - "Solana"
    DefiStablecoinsResponse:
      type: "object"
      description: "The answer of GET /defi/stablecoins."
      additionalProperties: false
      required:
        - "stablecoins"
      properties:
        stablecoins:
          type: "array"
          maxItems: 200
          description: "Stablecoins ranked by supply."
          items:
            $ref: "#/components/schemas/DefiStablecoinEntry"
      examples:
        - stablecoins:
            - id: "1"
              name: "Tether"
              symbol: "USDT"
              peg_type: "peggedUSD"
              peg_mechanism: "fiat-backed"
              price: 1
              circulating_usd: 138000000000
              circulating_prev_day_usd: 137850000000
              circulating_prev_week_usd: 136900000000
              chains:
                - "Ethereum"
                - "Tron"
                - "Arbitrum"
                - "Solana"
    DefiYieldPoolEntry:
      type: "object"
      description: "On-chain DeFi yield pool observation."
      additionalProperties: false
      required:
        - "pool_id"
        - "chain"
        - "project"
        - "symbol"
        - "tvl_usd"
        - "apy"
        - "stablecoin"
      properties:
        pool_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 128
          description: "Pool identifier."
          examples:
            - "aa70268e-4d52-4298-a97a-8782d16522e1"
        chain:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Blockchain name."
          examples:
            - "Ethereum"
        project:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "Yield pool protocol slug."
          examples:
            - "lido"
        symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "Pool asset symbol pair."
          examples:
            - "STETH"
        tvl_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Pool TVL in USD."
          examples:
            - 15973473405
        apy:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total APY percentage."
          examples:
            - 2.95
        apy_base:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Organic base yield percentage."
          examples:
            - 2.95
        apy_reward:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Incentive emission APY percentage."
          examples:
            - 0
        stablecoin:
          type: "boolean"
          description: "True if pool holds stablecoins only."
          examples:
            - false
        il_risk:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "Impermanent loss classification."
          examples:
            - "no"
      examples:
        - pool_id: "aa70268e-4d52-4298-a97a-8782d16522e1"
          chain: "Ethereum"
          project: "lido"
          symbol: "STETH"
          tvl_usd: 15973473405
          apy: 2.95
          apy_base: 2.95
          apy_reward: 0
          stablecoin: false
          il_risk: "no"
    DefiYieldsResponse:
      type: "object"
      description: "The answer of GET /defi/yields."
      additionalProperties: false
      required:
        - "pools"
      properties:
        pools:
          type: "array"
          maxItems: 200
          description: "Ranked DeFi yield pools."
          items:
            $ref: "#/components/schemas/DefiYieldPoolEntry"
      examples:
        - pools:
            - pool_id: "aa70268e-4d52-4298-a97a-8782d16522e1"
              chain: "Ethereum"
              project: "lido"
              symbol: "STETH"
              tvl_usd: 15973473405
              apy: 2.95
              apy_base: 2.95
              apy_reward: 0
              stablecoin: false
              il_risk: "no"
    DefiDexTokensResponse:
      type: "object"
      description: "The answer of GET /defi/dex-tokens."
      additionalProperties: false
      required:
        - "dex_tokens"
      properties:
        dex_tokens:
          type: "array"
          maxItems: 100
          description: "On-chain DEX pairs or trending tokens."
          items:
            type: "object"
            description: "DEX token or pair record."
            examples:
              - chain: "solana"
                dex: "raydium"
                pair_address: "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
                base_symbol: "SOL"
                base_address: "So11111111111111111111111111111111111111112"
                quote_symbol: "USDC"
                price_usd: 242.15
                liquidity_usd: 45200000
                volume_24h_usd: 185000000
                price_change_24h_pct: 3.12
                fdv_usd: 141000000000
                market_cap_usd: 115000000000
          examples:
            - - chain: "solana"
                dex: "raydium"
                pair_address: "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
                base_symbol: "SOL"
                base_address: "So11111111111111111111111111111111111111112"
                quote_symbol: "USDC"
                price_usd: 242.15
                liquidity_usd: 45200000
                volume_24h_usd: 185000000
                price_change_24h_pct: 3.12
                fdv_usd: 141000000000
                market_cap_usd: 115000000000
      examples:
        - dex_tokens:
            - chain: "solana"
              dex: "raydium"
              pair_address: "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
              base_symbol: "SOL"
              base_address: "So11111111111111111111111111111111111111112"
              quote_symbol: "USDC"
              price_usd: 242.15
              liquidity_usd: 45200000
              volume_24h_usd: 185000000
              price_change_24h_pct: 3.12
              fdv_usd: 141000000000
              market_cap_usd: 115000000000
    CryptoOrderBookLevel:
      type: "object"
      description: "One price level of the book."
      additionalProperties: false
      required:
        - "price"
        - "size"
        - "notional"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The level's price."
          examples:
            - 97810.5
        size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Size resting at the level, in the base asset."
          examples:
            - 4.21
        notional:
          type:
            - "number"
            - "null"
          format: "double"
          description: "price times size, in the quote currency."
          examples:
            - 411782.2
      examples:
        - price: 97810.5
          size: 4.21
          notional: 411782.2
    CryptoOrderBookWall:
      type: "object"
      description: "One of the largest levels of a side."
      additionalProperties: false
      required:
        - "price"
        - "size"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The wall's price."
          examples:
            - 97500
        size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Size resting at the wall, in the base asset."
          examples:
            - 38.6
      examples:
        - price: 97500
          size: 38.6
    CryptoOrderBookDepthBand:
      type: "object"
      description: "The size resting within a percent of the mid price."
      additionalProperties: false
      required:
        - "percent"
        - "bid_size"
        - "ask_size"
        - "bid_notional"
        - "ask_notional"
        - "bid_share"
      properties:
        percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The band's distance from the mid, in percent: 0.25, 0.5, 1 or 2."
          examples:
            - 0.5
        bid_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bid size within the band, in the base asset."
          examples:
            - 182.4
        ask_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ask size within the band, in the base asset."
          examples:
            - 141.9
        bid_notional:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bid notional within the band, in the quote currency."
          examples:
            - 17752000.5
        ask_notional:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ask notional within the band, in the quote currency."
          examples:
            - 13961000.2
        bid_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The bids' share of both sides' size; null when both are empty."
          examples:
            - 0.5624
      examples:
        - percent: 0.5
          bid_size: 182.4
          ask_size: 141.9
          bid_notional: 17752000.5
          ask_notional: 13961000.2
          bid_share: 0.5624
    CryptoOrderBookSource:
      type: "object"
      description: "The book of one exchange the answer read."
      additionalProperties: false
      required:
        - "exchange"
        - "ticker"
        - "status"
        - "as_of"
        - "best_bid"
        - "best_ask"
        - "bid_levels"
        - "ask_levels"
      properties:
        exchange:
          type: "string"
          pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
          maxLength: 32
          description: "The exchange."
          examples:
            - "okx"
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The exchange's own instrument id."
          examples:
            - "BTC-USDT-SWAP"
        status:
          type: "string"
          enum:
            - "ok"
            - "unavailable"
            - "unsupported"
          description: "ok when read; unavailable when the exchange failed just now; unsupported when Darvas reads no book of it."
          examples:
            - "ok"
        as_of:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When the exchange built the book, in UTC; null without one."
          examples:
            - "2026-11-28T12:00:00.120Z"
        best_bid:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The exchange's best bid; null without a book."
          examples:
            - 97810.4
        best_ask:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The exchange's best ask; null without a book."
          examples:
            - 97810.5
        bid_levels:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Bid levels the exchange served."
          examples:
            - 50
        ask_levels:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Ask levels the exchange served."
          examples:
            - 50
      examples:
        - exchange: "okx"
          ticker: "BTC-USDT-SWAP"
          status: "ok"
          as_of: "2026-11-28T12:00:00.120Z"
          best_bid: 97810.4
          best_ask: 97810.5
          bid_levels: 50
          ask_levels: 50
    CryptoOrderBookResponse:
      type: "object"
      description: "The answer of GET /crypto/order-book."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "as_of"
        - "size_unit"
        - "grouping"
        - "best_bid"
        - "best_ask"
        - "mid_price"
        - "spread"
        - "spread_percent"
        - "depth"
        - "bid_walls"
        - "ask_walls"
        - "bid_levels"
        - "ask_levels"
        - "sources"
        - "bids"
        - "asks"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The instrument id of the book."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange of the book, or darvas for the merged books."
          examples:
            - "darvas"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
          description: "The market of the book."
          examples:
            - "swap"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange the pair's book combines. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges the book kept when venues narrowed them, null when all are. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When the newest book read was built, in UTC."
          examples:
            - "2026-11-28T12:00:00.180Z"
        size_unit:
          type: "string"
          enum:
            - "base"
          description: "The unit of every size: the base asset."
          examples:
            - "base"
        grouping:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price step levels were merged onto; null for each exchange's own prices."
          examples:
            - null
        best_bid:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest bid."
          examples:
            - 97810.4
        best_ask:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest ask."
          examples:
            - 97810.5
        mid_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the best bid and ask."
          examples:
            - 97810.45
        spread:
          type:
            - "number"
            - "null"
          format: "double"
          description: "best_ask less best_bid; negative when merged exchanges cross."
          examples:
            - 0.1
        spread_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The spread as a percent of the mid; null at a zero mid."
          examples:
            - 0.000102
        depth:
          type: "array"
          maxItems: 4
          description: "Size resting within 0.25, 0.5, 1 and 2 percent of the mid."
          items:
            $ref: "#/components/schemas/CryptoOrderBookDepthBand"
        bid_walls:
          type: "array"
          maxItems: 5
          description: "The five largest bid levels."
          items:
            $ref: "#/components/schemas/CryptoOrderBookWall"
        ask_walls:
          type: "array"
          maxItems: 5
          description: "The five largest ask levels."
          items:
            $ref: "#/components/schemas/CryptoOrderBookWall"
        bid_levels:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 400
          description: "Bid levels in the answer's book."
          examples:
            - 50
        ask_levels:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 400
          description: "Ask levels in the answer's book."
          examples:
            - 50
        sources:
          type: "array"
          maxItems: 16
          description: "Each exchange read, with its status."
          items:
            $ref: "#/components/schemas/CryptoOrderBookSource"
        bids:
          type: "array"
          maxItems: 400
          description: "The bids, best first; empty with include_levels=false."
          items:
            $ref: "#/components/schemas/CryptoOrderBookLevel"
        asks:
          type: "array"
          maxItems: 400
          description: "The asks, best first; empty with include_levels=false."
          items:
            $ref: "#/components/schemas/CryptoOrderBookLevel"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "darvas"
          market_type: "swap"
          constituents:
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "okx"
          venues: null
          as_of: "2026-11-28T12:00:00.180Z"
          size_unit: "base"
          grouping: null
          best_bid: 97810.4
          best_ask: 97810.5
          mid_price: 97810.45
          spread: 0.1
          spread_percent: 0.000102
          depth:
            - percent: 0.5
              bid_size: 182.4
              ask_size: 141.9
              bid_notional: 17752000.5
              ask_notional: 13961000.2
              bid_share: 0.5624
          bid_walls:
            - price: 97500
              size: 38.6
          ask_walls:
            - price: 98200
              size: 31.2
          bid_levels: 50
          ask_levels: 50
          sources:
            - exchange: "okx"
              ticker: "BTC-USDT-SWAP"
              status: "ok"
              as_of: "2026-11-28T12:00:00.120Z"
              best_bid: 97810.4
              best_ask: 97810.5
              bid_levels: 50
              ask_levels: 50
          bids:
            - price: 97810.5
              size: 4.21
              notional: 411782.2
          asks:
            - price: 97810.5
              size: 2.05
              notional: 200511.53
    CryptoBookHeatmapCell:
      type: "object"
      description: "One price row of one heatmap bar."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "price"
        - "bid_size"
        - "ask_size"
        - "bid_max"
        - "ask_max"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The heatmap bar's start, in UTC."
          examples:
            - "2026-11-28T11:45:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The heatmap bar's start in Unix milliseconds."
          examples:
            - 1795866300000
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The heatmap row's low price; the row spans row_size above it."
          examples:
            - 97500
        bid_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Time-weighted average bid size resting in the row over the bar."
          examples:
            - 21.4
        ask_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Time-weighted average ask size resting in the row over the bar."
          examples:
            - 0
        bid_max:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The largest bid size one sample of the bar saw in the row."
          examples:
            - 44.8
        ask_max:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The largest ask size one sample of the bar saw in the row."
          examples:
            - 0
      examples:
        - time: "2026-11-28T11:45:00.000Z"
          time_milliseconds: 1795866300000
          price: 97500
          bid_size: 21.4
          ask_size: 0
          bid_max: 44.8
          ask_max: 0
    CryptoBookHeatmapWall:
      type: "object"
      description: "A row with much size resting over the whole window."
      additionalProperties: false
      required:
        - "price"
        - "average_size"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The wall row's low price."
          examples:
            - 97500
        average_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row's average resting size over the window's bars."
          examples:
            - 18.9
      examples:
        - price: 97500
          average_size: 18.9
    CryptoOrderBookHeatmapResponse:
      type: "object"
      description: "The answer of GET /crypto/order-book/heatmap."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "interval"
        - "start_time"
        - "end_time"
        - "low"
        - "high"
        - "row_size"
        - "limited"
        - "bid_walls"
        - "ask_walls"
        - "cells"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The instrument id of the heatmap."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
          description: "The exchange of the book heatmap."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
          description: "The market of the book heatmap."
          examples:
            - "swap"
        interval:
          type: "string"
          enum:
            - "1m"
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "2H"
            - "4H"
            - "1D"
            - "1W"
          description: "The bar size of the book heatmap."
          examples:
            - "15m"
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The window's first bar start, in UTC."
          examples:
            - "2026-11-27T00:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The window's end, in UTC."
          examples:
            - "2026-11-28T12:00:00.000Z"
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest price answered."
          examples:
            - 95210.4
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest price answered."
          examples:
            - 99120.8
        row_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each row's height in price; 0 when the window holds no book."
          examples:
            - 10
        limited:
          type: "boolean"
          description: "Whether the cells reached the 120,000-cell cap, which keeps the newest bars."
          examples:
            - false
        bid_walls:
          type: "array"
          maxItems: 5
          description: "The five rows with the most bid size on average."
          items:
            $ref: "#/components/schemas/CryptoBookHeatmapWall"
        ask_walls:
          type: "array"
          maxItems: 5
          description: "The five rows with the most ask size on average."
          items:
            $ref: "#/components/schemas/CryptoBookHeatmapWall"
        cells:
          type: "array"
          maxItems: 120000
          description: "Every bar's rows, newest bar first, lowest row first."
          items:
            $ref: "#/components/schemas/CryptoBookHeatmapCell"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          market_type: "swap"
          interval: "15m"
          start_time: "2026-11-27T00:00:00.000Z"
          end_time: "2026-11-28T12:00:00.000Z"
          low: 95210.4
          high: 99120.8
          row_size: 10
          limited: false
          bid_walls:
            - price: 97500
              average_size: 18.9
          ask_walls:
            - price: 98500
              average_size: 15.2
          cells:
            - time: "2026-11-28T11:45:00.000Z"
              time_milliseconds: 1795866300000
              price: 97500
              bid_size: 21.4
              ask_size: 0
              bid_max: 44.8
              ask_max: 0
    CryptoVolumeProfileResponse:
      type: "object"
      description: "The answer of GET /crypto/volume-profile."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "period"
        - "resolution"
        - "value_area_percent"
        - "profiles"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The perpetual of the profiles."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
          description: "The exchange of the profiles."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "swap"
          description: "The market of the profiles."
          examples:
            - "swap"
        period:
          type: "string"
          enum:
            - "1D"
            - "1W"
            - "1M"
          description: "The volume profile's session length."
          examples:
            - "1D"
        resolution:
          type: "string"
          enum:
            - "fine"
            - "medium"
            - "coarse"
          description: "The bucket size."
          examples:
            - "medium"
        value_area_percent:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100
          description: "The share of volume each value area holds, in percent."
          examples:
            - 70
        profiles:
          type: "array"
          maxItems: 30
          description: "The volume profile of each session, oldest first."
          items:
            $ref: "#/components/schemas/CryptoSessionVolumeProfile"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          market_type: "swap"
          period: "1D"
          resolution: "medium"
          value_area_percent: 70
          profiles:
            - period_start: "2026-11-28T00:00:00.000Z"
              period_end: "2026-11-29T00:00:00.000Z"
              bucket_size: 50
              buy_notional_usd: 1820500000.4
              sell_notional_usd: 1790200000.1
              total_notional_usd: 3610700000.5
              delta_notional_usd: 30300000.3
              trade_count: 912400
              poc_price: 97525
              value_area_high: 98150
              value_area_low: 96900
              buckets:
                - price_from: 97500
                  price_to: 97550
                  buy_notional_usd: 18250000.5
                  sell_notional_usd: 16120000.2
                  total_notional_usd: 34370000.7
                  delta_notional_usd: 2130000.3
                  trade_count: 8412
    CryptoFixedRangeVolumeProfileResponse:
      type: "object"
      description: "The answer of GET /crypto/volume-profile/fixed-range."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "start_time"
        - "end_time"
        - "rows"
        - "value_area_percent"
        - "bucket_size"
        - "price_low"
        - "price_high"
        - "total_volume"
        - "volume_unit"
        - "poc"
        - "value_area_high"
        - "value_area_low"
        - "quality"
        - "coverage_percent"
        - "source_candles"
        - "expected_source_candles"
        - "buckets"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The instrument id of the profile."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
          description: "The exchange of the profile."
          examples:
            - "darvas"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
          description: "The market of the profile."
          examples:
            - "swap"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange the pair's profile combines. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges the profile kept when venues narrowed them, null when all are. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The range's first minute, in UTC."
          examples:
            - "2026-11-27T00:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The range's end, in UTC."
          examples:
            - "2026-11-28T00:00:00.000Z"
        rows:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 200
          description: "Price rows asked for."
          examples:
            - 48
        value_area_percent:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100
          description: "The share of volume the value area holds, in percent."
          examples:
            - 70
        bucket_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each row's height in price; 0 without candles."
          examples:
            - 50
        price_low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The range's lowest price; null without candles."
          examples:
            - 95210.4
        price_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The range's highest price; null without candles."
          examples:
            - 99120.8
        total_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The range's volume in the quote currency."
          examples:
            - 9812000000.4
        volume_unit:
          type: "string"
          enum:
            - "quote"
          description: "Volumes are in the quote currency, estimated as base volume times close where a candle has none."
          examples:
            - "quote"
        poc:
          description: "The fixed range's row with the most volume; null without volume."
          anyOf:
            - $ref: "#/components/schemas/CryptoFixedRangeLevel"
            - type: "null"
        value_area_high:
          description: "The value area's top row; null without volume."
          anyOf:
            - $ref: "#/components/schemas/CryptoFixedRangeLevel"
            - type: "null"
        value_area_low:
          description: "The value area's bottom row; null without volume."
          anyOf:
            - $ref: "#/components/schemas/CryptoFixedRangeLevel"
            - type: "null"
        quality:
          type: "string"
          enum:
            - "complete"
            - "partial"
            - "no_data"
          description: "complete when Darvas holds at least 98 percent of the expected candles, partial below, no_data without any."
          examples:
            - "complete"
        coverage_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The share of expected candles Darvas holds, in percent."
          examples:
            - 100
        source_candles:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Candles the profile was built from."
          examples:
            - 1440
        expected_source_candles:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Candles the range spans."
          examples:
            - 1440
        buckets:
          type: "array"
          maxItems: 200
          description: "The price rows, lowest first."
          items:
            $ref: "#/components/schemas/CryptoFixedRangeBucket"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "darvas"
          market_type: "swap"
          constituents:
            - "binance"
            - "bybit"
            - "okx"
          venues: null
          start_time: "2026-11-27T00:00:00.000Z"
          end_time: "2026-11-28T00:00:00.000Z"
          rows: 48
          value_area_percent: 70
          bucket_size: 50
          price_low: 95210.4
          price_high: 99120.8
          total_volume: 9812000000.4
          volume_unit: "quote"
          poc:
            price: 97525
            price_from: 97500
            price_to: 97550
            volume: 412000000.5
          value_area_high:
            price: 98175
            price_from: 98150
            price_to: 98200
            volume: 151000000.2
          value_area_low:
            price: 96925
            price_from: 96900
            price_to: 96950
            volume: 138000000.9
          quality: "complete"
          coverage_percent: 100
          source_candles: 1440
          expected_source_candles: 1440
          buckets:
            - price_from: 97500
              price_to: 97550
              price: 97525
              volume: 412000000.5
              in_value_area: true
              is_poc: true
    CryptoTpoResponse:
      type: "object"
      description: "The answer of GET /crypto/tpo."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "timeframe"
        - "session_period"
        - "block_size"
        - "value_area_percent"
        - "rows_target"
        - "timezone"
        - "last_price"
        - "last_bar_time"
        - "current"
        - "sessions"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The instrument id of the sessions."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
          description: "The exchange of the sessions."
          examples:
            - "darvas"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
          description: "The market of the sessions."
          examples:
            - "swap"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange the pair's TPO profiles combines. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges the TPO profiles kept when venues narrowed them, null when all are. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "okx"
        timeframe:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "2H"
            - "4H"
            - "1D"
            - "1W"
          description: "The chart timeframe asked for."
          examples:
            - "30m"
        session_period:
          type: "string"
          enum:
            - "daily"
            - "weekly"
            - "monthly"
          description: "The TPO session length."
          examples:
            - "daily"
        block_size:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "2H"
            - "4H"
            - "1D"
          description: "The time one TPO letter stands for."
          examples:
            - "30m"
        value_area_percent:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100
          description: "The share of TPOs each value area holds, in percent."
          examples:
            - 70
        rows_target:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 400
          description: "About how many price rows a session spans."
          examples:
            - 60
        timezone:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9_+/-]{0,63}$"
          maxLength: 64
          description: "The time zone of session starts."
          examples:
            - "UTC"
        last_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The newest candle's close; null without candles."
          examples:
            - 97811.4
        last_bar_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "The newest candle's start, in UTC; null without candles."
          examples:
            - "2026-11-28T11:30:00.000Z"
        current:
          description: "The last price against the newest session; null without sessions."
          anyOf:
            - $ref: "#/components/schemas/CryptoTpoComparison"
            - type: "null"
        sessions:
          type: "array"
          maxItems: 12
          description: "The TPO profile of each session, oldest first."
          items:
            $ref: "#/components/schemas/CryptoTpoSession"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "darvas"
          market_type: "swap"
          constituents:
            - "binance"
            - "bybit"
            - "okx"
          venues: null
          timeframe: "30m"
          session_period: "daily"
          block_size: "30m"
          value_area_percent: 70
          rows_target: 60
          timezone: "UTC"
          last_price: 97811.4
          last_bar_time: "2026-11-28T11:30:00.000Z"
          current:
            value_area_position: "inside_value_area"
            poc_change: 350
            value_area_overlap_percent: 64
          sessions:
            - session: "D:2026-11-28"
              start_time: "2026-11-28T00:00:00.000Z"
              end_time: "2026-11-29T00:00:00.000Z"
              open: 96820.1
              high: 98240
              low: 96410.2
              close: 97811.4
              poc_price: 97500
              value_area_high: 98050
              value_area_low: 96950
              volume_poc_price: 97450
              row_size: 50
              tpo_count: 412
              blocks: 24
              initial_balance:
                high: 97210.5
                low: 96410.2
              high_tail_rows: 2
              low_tail_rows: 0
              poor_high: false
              poor_low: true
              single_prints:
                - low: 97650
                  high: 97750
              high_volume_nodes:
                - price: 97450
                  tpo_count: 13
              low_volume_nodes:
                - price: 97700
                  tpo_count: 2
              rows:
                - price: 97500
                  tpo_count: 14
                  volume: 2412.5
                  buy_volume: 1250.1
                  sell_volume: 1162.4
                  in_value_area: true
    CryptoVolumeProfileBucket:
      type: "object"
      description: "One price bucket of a session."
      additionalProperties: false
      required:
        - "price_from"
        - "price_to"
        - "buy_notional_usd"
        - "sell_notional_usd"
        - "total_notional_usd"
        - "delta_notional_usd"
        - "trade_count"
      properties:
        price_from:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The bucket's low price."
          examples:
            - 97500
        price_to:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The bucket's high price."
          examples:
            - 97550
        buy_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional takers bought in the bucket, in USD."
          examples:
            - 18250000.5
        sell_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional takers sold in the bucket, in USD."
          examples:
            - 16120000.2
        total_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional traded in the bucket, in USD."
          examples:
            - 34370000.7
        delta_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bought less sold notional in the bucket, in USD."
          examples:
            - 2130000.3
        trade_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Trades in the bucket."
          examples:
            - 8412
      examples:
        - price_from: 97500
          price_to: 97550
          buy_notional_usd: 18250000.5
          sell_notional_usd: 16120000.2
          total_notional_usd: 34370000.7
          delta_notional_usd: 2130000.3
          trade_count: 8412
    CryptoSessionVolumeProfile:
      type: "object"
      description: "One session's volume profile."
      additionalProperties: false
      required:
        - "period_start"
        - "period_end"
        - "bucket_size"
        - "buy_notional_usd"
        - "sell_notional_usd"
        - "total_notional_usd"
        - "delta_notional_usd"
        - "trade_count"
        - "poc_price"
        - "value_area_high"
        - "value_area_low"
        - "buckets"
      properties:
        period_start:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The volume profile session's start, in UTC."
          examples:
            - "2026-11-28T00:00:00.000Z"
        period_end:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The volume profile session's end, in UTC."
          examples:
            - "2026-11-29T00:00:00.000Z"
        bucket_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each bucket's height in price."
          examples:
            - 50
        buy_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional takers bought in the session, in USD."
          examples:
            - 1820500000.4
        sell_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional takers sold in the session, in USD."
          examples:
            - 1790200000.1
        total_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional traded in the session, in USD."
          examples:
            - 3610700000.5
        delta_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bought less sold notional in the session, in USD."
          examples:
            - 30300000.3
        trade_count:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Trades in the session."
          examples:
            - 912400
        poc_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the bucket with the most notional; null without trades."
          examples:
            - 97525
        value_area_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The top of the 70 percent value area; null without trades."
          examples:
            - 98150
        value_area_low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The bottom of the 70 percent value area; null without trades."
          examples:
            - 96900
        buckets:
          type: "array"
          maxItems: 5000
          description: "The session's buckets, lowest first."
          items:
            $ref: "#/components/schemas/CryptoVolumeProfileBucket"
      examples:
        - period_start: "2026-11-28T00:00:00.000Z"
          period_end: "2026-11-29T00:00:00.000Z"
          bucket_size: 50
          buy_notional_usd: 1820500000.4
          sell_notional_usd: 1790200000.1
          total_notional_usd: 3610700000.5
          delta_notional_usd: 30300000.3
          trade_count: 912400
          poc_price: 97525
          value_area_high: 98150
          value_area_low: 96900
          buckets:
            - price_from: 97500
              price_to: 97550
              buy_notional_usd: 18250000.5
              sell_notional_usd: 16120000.2
              total_notional_usd: 34370000.7
              delta_notional_usd: 2130000.3
              trade_count: 8412
    CryptoFixedRangeLevel:
      type: "object"
      description: "A row of a fixed range profile named as a level."
      additionalProperties: false
      required:
        - "price"
        - "price_from"
        - "price_to"
        - "volume"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The level's middle price."
          examples:
            - 97525
        price_from:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The level's low price."
          examples:
            - 97500
        price_to:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The level's high price."
          examples:
            - 97550
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The level's volume in the quote currency."
          examples:
            - 412000000.5
      examples:
        - price: 97525
          price_from: 97500
          price_to: 97550
          volume: 412000000.5
    CryptoFixedRangeBucket:
      type: "object"
      description: "One price row of a fixed range profile."
      additionalProperties: false
      required:
        - "price_from"
        - "price_to"
        - "price"
        - "volume"
        - "in_value_area"
        - "is_poc"
      properties:
        price_from:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row's low price."
          examples:
            - 97500
        price_to:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row's high price."
          examples:
            - 97550
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row's middle price."
          examples:
            - 97525
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row's volume in the quote currency."
          examples:
            - 412000000.5
        in_value_area:
          type: "boolean"
          description: "Whether the row is in the fixed range's value area."
          examples:
            - true
        is_poc:
          type: "boolean"
          description: "Whether the row is the point of control."
          examples:
            - true
      examples:
        - price_from: 97500
          price_to: 97550
          price: 97525
          volume: 412000000.5
          in_value_area: true
          is_poc: true
    CryptoTpoRow:
      type: "object"
      description: "One price row of a TPO session."
      additionalProperties: false
      required:
        - "price"
        - "tpo_count"
        - "volume"
        - "buy_volume"
        - "sell_volume"
        - "in_value_area"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row's price."
          examples:
            - 97500
        tpo_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100000
          description: "Blocks that traded at the row."
          examples:
            - 14
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume traded at the row, in the base asset."
          examples:
            - 2412.5
        buy_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume of up blocks at the row."
          examples:
            - 1250.1
        sell_volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume of down blocks at the row."
          examples:
            - 1162.4
        in_value_area:
          type: "boolean"
          description: "Whether the row is in the session's value area."
          examples:
            - true
      examples:
        - price: 97500
          tpo_count: 14
          volume: 2412.5
          buy_volume: 1250.1
          sell_volume: 1162.4
          in_value_area: true
    CryptoTpoNode:
      type: "object"
      description: "A row with many or few TPOs."
      additionalProperties: false
      required:
        - "price"
        - "tpo_count"
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The node's price."
          examples:
            - 97450
        tpo_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100000
          description: "Blocks that traded at the node."
          examples:
            - 13
      examples:
        - price: 97450
          tpo_count: 13
    CryptoTpoPriceRun:
      type: "object"
      description: "A run of rows inside the session that a single block traded."
      additionalProperties: false
      required:
        - "low"
        - "high"
      properties:
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The run's lowest row price."
          examples:
            - 97650
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The run's highest row price."
          examples:
            - 97750
      examples:
        - low: 97650
          high: 97750
    CryptoTpoInitialBalance:
      type: "object"
      description: "The range of a session's first two blocks."
      additionalProperties: false
      required:
        - "high"
        - "low"
      properties:
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The initial balance high."
          examples:
            - 97210.5
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The initial balance low."
          examples:
            - 96410.2
      examples:
        - high: 97210.5
          low: 96410.2
    CryptoTpoComparison:
      type: "object"
      description: "The last price against the newest session, and the session against the one before."
      additionalProperties: false
      required:
        - "value_area_position"
        - "poc_change"
        - "value_area_overlap_percent"
      properties:
        value_area_position:
          type: "string"
          enum:
            - "above_value_area"
            - "inside_value_area"
            - "below_value_area"
          description: "Where the last price sits against the newest session's value area."
          examples:
            - "inside_value_area"
        poc_change:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The point of control's move from the session before; null with one session."
          examples:
            - 350
        value_area_overlap_percent:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 100
          description: "How much of the narrower of the two value areas overlaps the other, in percent; null with one session."
          examples:
            - 64
      examples:
        - value_area_position: "inside_value_area"
          poc_change: 350
          value_area_overlap_percent: 64
    CryptoTpoSession:
      type: "object"
      description: "One TPO session."
      additionalProperties: false
      required:
        - "session"
        - "start_time"
        - "end_time"
        - "open"
        - "high"
        - "low"
        - "close"
        - "poc_price"
        - "value_area_high"
        - "value_area_low"
        - "volume_poc_price"
        - "row_size"
        - "tpo_count"
        - "blocks"
        - "initial_balance"
        - "high_tail_rows"
        - "low_tail_rows"
        - "poor_high"
        - "poor_low"
        - "single_prints"
        - "high_volume_nodes"
        - "low_volume_nodes"
        - "rows"
      properties:
        session:
          type: "string"
          pattern: "^[A-Z]:[0-9-]{4,16}$"
          maxLength: 18
          description: "The session's key: its kind and first day."
          examples:
            - "D:2026-11-28"
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The TPO session's start, in UTC."
          examples:
            - "2026-11-28T00:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The TPO session's end, in UTC."
          examples:
            - "2026-11-29T00:00:00.000Z"
        open:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The session's open."
          examples:
            - 96820.1
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The session's high."
          examples:
            - 98240
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The session's low."
          examples:
            - 96410.2
        close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The session's close so far."
          examples:
            - 97811.4
        poc_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The row with the most TPOs."
          examples:
            - 97500
        value_area_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value area's top row."
          examples:
            - 98050
        value_area_low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value area's bottom row."
          examples:
            - 96950
        volume_poc_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price of the session's row with the most volume; null without volume."
          examples:
            - 97450
        row_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each row's height in price."
          examples:
            - 50
        tpo_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "TPOs in the session."
          examples:
            - 412
        blocks:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 10000
          description: "Blocks the session holds so far."
          examples:
            - 24
        initial_balance:
          description: "The first two blocks' range; null without candles."
          anyOf:
            - $ref: "#/components/schemas/CryptoTpoInitialBalance"
            - type: "null"
        high_tail_rows:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000
          description: "Single-TPO rows at the session's top."
          examples:
            - 2
        low_tail_rows:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000
          description: "Single-TPO rows at the session's bottom."
          examples:
            - 0
        poor_high:
          type: "boolean"
          description: "Whether the session's top has no tail."
          examples:
            - false
        poor_low:
          type: "boolean"
          description: "Whether the session's bottom has no tail."
          examples:
            - true
        single_prints:
          type: "array"
          maxItems: 5
          description: "Up to five single-print runs inside the session."
          items:
            $ref: "#/components/schemas/CryptoTpoPriceRun"
        high_volume_nodes:
          type: "array"
          maxItems: 3
          description: "The three rows after the point of control with the most TPOs."
          items:
            $ref: "#/components/schemas/CryptoTpoNode"
        low_volume_nodes:
          type: "array"
          maxItems: 3
          description: "The three value area rows with the fewest TPOs."
          items:
            $ref: "#/components/schemas/CryptoTpoNode"
        rows:
          type: "array"
          maxItems: 400
          description: "The session's rows, lowest first."
          items:
            $ref: "#/components/schemas/CryptoTpoRow"
      examples:
        - session: "D:2026-11-28"
          start_time: "2026-11-28T00:00:00.000Z"
          end_time: "2026-11-29T00:00:00.000Z"
          open: 96820.1
          high: 98240
          low: 96410.2
          close: 97811.4
          poc_price: 97500
          value_area_high: 98050
          value_area_low: 96950
          volume_poc_price: 97450
          row_size: 50
          tpo_count: 412
          blocks: 24
          initial_balance:
            high: 97210.5
            low: 96410.2
          high_tail_rows: 2
          low_tail_rows: 0
          poor_high: false
          poor_low: true
          single_prints:
            - low: 97650
              high: 97750
          high_volume_nodes:
            - price: 97450
              tpo_count: 13
          low_volume_nodes:
            - price: 97700
              tpo_count: 2
          rows:
            - price: 97500
              tpo_count: 14
              volume: 2412.5
              buy_volume: 1250.1
              sell_volume: 1162.4
              in_value_area: true
    CryptoLiquidationLevel:
      type: "object"
      description: "A band of the newest bar."
      additionalProperties: false
      required:
        - "price_low"
        - "price_high"
        - "long_usd"
        - "short_usd"
        - "total_usd"
        - "event_usd"
        - "score"
        - "confidence"
        - "side"
        - "distance_percent"
      properties:
        price_low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The low price of the newest bar's band."
          examples:
            - 95120.5
        price_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The high price of the newest bar's band."
          examples:
            - 95365.3
        long_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Estimated long positions that would be liquidated in the newest bar's band, in USD."
          examples:
            - 41200000.5
        short_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Estimated short positions that would be liquidated in the newest bar's band, in USD."
          examples:
            - 0
        total_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "long_usd, short_usd and event_usd of the newest bar's band together, in USD."
          examples:
            - 41200000.5
        event_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Reported liquidations in the newest bar's band that calibrate the estimate, in USD."
          examples:
            - 2100000.2
        score:
          type:
            - "number"
            - "null"
          format: "double"
          description: "total_usd of the newest bar's band against the heatmap's largest band, on a log scale from 0 to 1."
          examples:
            - 0.94
        confidence:
          type: "string"
          enum:
            - "low"
            - "medium"
            - "high"
          description: "How well reported liquidations back the newest bar's band."
          examples:
            - "high"
        side:
          type: "string"
          enum:
            - "below_price"
            - "above_price"
          description: "Whether the band's middle is below the last price, where long liquidations wait, or above it, where short ones do."
          examples:
            - "below_price"
        distance_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The band's middle against the last price, in percent."
          examples:
            - -2.62
      examples:
        - price_low: 95120.5
          price_high: 95365.3
          long_usd: 41200000.5
          short_usd: 0
          total_usd: 41200000.5
          event_usd: 2100000.2
          score: 0.94
          confidence: "high"
          side: "below_price"
          distance_percent: -2.62
    CryptoLiquidationCell:
      type: "object"
      description: "A band of one bar."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "end_time_milliseconds"
        - "price_low"
        - "price_high"
        - "long_usd"
        - "short_usd"
        - "total_usd"
        - "event_usd"
        - "score"
        - "confidence"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The liquidation bar's start, in UTC."
          examples:
            - "2026-11-28T11:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The liquidation bar's start in Unix milliseconds."
          examples:
            - 1795863600000
        end_time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The liquidation bar's end in Unix milliseconds."
          examples:
            - 1795867200000
        price_low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The low price of the bar's band."
          examples:
            - 95120.5
        price_high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The high price of the bar's band."
          examples:
            - 95365.3
        long_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Estimated long positions that would be liquidated in the bar's band, in USD."
          examples:
            - 41200000.5
        short_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Estimated short positions that would be liquidated in the bar's band, in USD."
          examples:
            - 0
        total_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "long_usd, short_usd and event_usd of the bar's band together, in USD."
          examples:
            - 41200000.5
        event_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Reported liquidations in the bar's band that calibrate the estimate, in USD."
          examples:
            - 2100000.2
        score:
          type:
            - "number"
            - "null"
          format: "double"
          description: "total_usd of the bar's band against the heatmap's largest band, on a log scale from 0 to 1."
          examples:
            - 0.94
        confidence:
          type: "string"
          enum:
            - "low"
            - "medium"
            - "high"
          description: "How well reported liquidations back the bar's band."
          examples:
            - "high"
      examples:
        - time: "2026-11-28T11:00:00.000Z"
          time_milliseconds: 1795863600000
          end_time_milliseconds: 1795867200000
          price_low: 95120.5
          price_high: 95365.3
          long_usd: 41200000.5
          short_usd: 0
          total_usd: 41200000.5
          event_usd: 2100000.2
          score: 0.94
          confidence: "high"
    CryptoLiquidationHeatmapInputs:
      type: "object"
      description: "How many points of each input the heatmap read."
      additionalProperties: false
      required:
        - "open_interest_points"
        - "long_short_points"
        - "top_trader_points"
        - "taker_volume_points"
        - "funding_points"
        - "liquidation_events"
      properties:
        open_interest_points:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Open interest points."
          examples:
            - 180
        long_short_points:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Long/short account ratio points."
          examples:
            - 180
        top_trader_points:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Top-trader position ratio points."
          examples:
            - 180
        taker_volume_points:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Taker buy and sell volume points."
          examples:
            - 180
        funding_points:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Funding rate points."
          examples:
            - 23
        liquidation_events:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Reported liquidations in the window."
          examples:
            - 412
      examples:
        - open_interest_points: 180
          long_short_points: 180
          top_trader_points: 180
          taker_volume_points: 180
          funding_points: 23
          liquidation_events: 412
    CryptoLiquidationHeatmapResponse:
      type: "object"
      description: "The answer of GET /crypto/liquidations/heatmap."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "interval"
        - "start_time"
        - "end_time"
        - "lookback_bars"
        - "threshold"
        - "price_bucket_percent"
        - "leverage_sensitivity"
        - "coverage"
        - "bucket_size"
        - "max_usd"
        - "last_price"
        - "inputs"
        - "levels"
        - "limited"
        - "cells"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The perpetual of the heatmap."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
          description: "The exchange of the liquidation heatmap."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "swap"
          description: "The market of the liquidation heatmap."
          examples:
            - "swap"
        interval:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "4H"
            - "1D"
          description: "The bar size of the liquidation heatmap."
          examples:
            - "1H"
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The first bar's start, in UTC."
          examples:
            - "2026-11-21T00:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The newest bar's end, in UTC."
          examples:
            - "2026-11-28T12:00:00.000Z"
        lookback_bars:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 500
          description: "Bars asked for."
          examples:
            - 180
        threshold:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The least score in percent a cell needed."
          examples:
            - 15
        price_bucket_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each band's height as a percent of the last price."
          examples:
            - 0.25
        leverage_sensitivity:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The weight on higher leverage levels."
          examples:
            - 1
        coverage:
          type: "string"
          enum:
            - "calibrated"
            - "estimated"
            - "fallback"
          description: "calibrated with reported liquidations, estimated with open interest, fallback with candles alone."
          examples:
            - "calibrated"
        bucket_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each band's height in price."
          examples:
            - 244.53
        max_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The largest band's total, in USD."
          examples:
            - 58100000.2
        last_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The newest bar's close."
          examples:
            - 97811.4
        inputs:
          $ref: "#/components/schemas/CryptoLiquidationHeatmapInputs"
        levels:
          type: "array"
          maxItems: 25
          description: "Up to 25 bands of the newest bar, the most exposure first."
          items:
            $ref: "#/components/schemas/CryptoLiquidationLevel"
        limited:
          type: "boolean"
          description: "Whether the cells reached the 20,000-cell cap, which keeps the newest."
          examples:
            - false
        cells:
          type: "array"
          maxItems: 20000
          description: "Every bar's bands that pass threshold, oldest bar first."
          items:
            $ref: "#/components/schemas/CryptoLiquidationCell"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          market_type: "swap"
          interval: "1H"
          start_time: "2026-11-21T00:00:00.000Z"
          end_time: "2026-11-28T12:00:00.000Z"
          lookback_bars: 180
          threshold: 15
          price_bucket_percent: 0.25
          leverage_sensitivity: 1
          coverage: "calibrated"
          bucket_size: 244.53
          max_usd: 58100000.2
          last_price: 97811.4
          inputs:
            open_interest_points: 180
            long_short_points: 180
            top_trader_points: 180
            taker_volume_points: 180
            funding_points: 23
            liquidation_events: 412
          levels:
            - price_low: 95120.5
              price_high: 95365.3
              long_usd: 41200000.5
              short_usd: 0
              total_usd: 41200000.5
              event_usd: 2100000.2
              score: 0.94
              confidence: "high"
              side: "below_price"
              distance_percent: -2.62
          limited: false
          cells:
            - time: "2026-11-28T11:00:00.000Z"
              time_milliseconds: 1795863600000
              end_time_milliseconds: 1795867200000
              price_low: 95120.5
              price_high: 95365.3
              long_usd: 41200000.5
              short_usd: 0
              total_usd: 41200000.5
              event_usd: 2100000.2
              score: 0.94
              confidence: "high"
    CryptoLargeTradeZone:
      type: "object"
      description: "A price zone and the notional traded in it."
      additionalProperties: false
      required:
        - "price_from"
        - "price_to"
        - "mid_price"
        - "buy_notional_usd"
        - "sell_notional_usd"
        - "total_notional_usd"
        - "delta_notional_usd"
        - "trade_count"
        - "last_trade_time"
        - "pressure"
      properties:
        price_from:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The zone's low price."
          examples:
            - 97500
        price_to:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The zone's high price."
          examples:
            - 97550
        mid_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The zone's middle price."
          examples:
            - 97525
        buy_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional takers bought in the zone, in USD."
          examples:
            - 182500000.5
        sell_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional takers sold in the zone, in USD."
          examples:
            - 141200000.2
        total_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional traded in the zone, in USD."
          examples:
            - 323700000.7
        delta_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bought less sold notional in the zone, in USD."
          examples:
            - 41300000.3
        trade_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000000000000
          description: "Trades in the zone."
          examples:
            - 48210
        last_trade_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "The zone's newest trade, in UTC; null when unknown."
          examples:
            - "2026-11-28T11:59:58.120Z"
        pressure:
          type: "string"
          enum:
            - "buy_pressure"
            - "sell_pressure"
            - "balanced"
          description: "buy_pressure or sell_pressure when the delta is at least 8 percent of the zone's notional, else balanced."
          examples:
            - "buy_pressure"
      examples:
        - price_from: 97500
          price_to: 97550
          mid_price: 97525
          buy_notional_usd: 182500000.5
          sell_notional_usd: 141200000.2
          total_notional_usd: 323700000.7
          delta_notional_usd: 41300000.3
          trade_count: 48210
          last_trade_time: "2026-11-28T11:59:58.120Z"
          pressure: "buy_pressure"
    CryptoLargeTradeZonesResponse:
      type: "object"
      description: "The answer of GET /crypto/large-trades/zones."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "window"
        - "since"
        - "bucket_size"
        - "zones"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The perpetual of the zones."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
          description: "The exchange of the zones."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "swap"
          description: "The market of the zones."
          examples:
            - "swap"
        window:
          type: "string"
          enum:
            - "1D"
            - "1W"
            - "1M"
          description: "The window asked for."
          examples:
            - "1D"
        since:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The window's start, in UTC."
          examples:
            - "2026-11-27T12:00:00.000Z"
        bucket_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Each zone's height in price."
          examples:
            - 50
        zones:
          type: "array"
          maxItems: 100
          description: "The zones, the most notional first."
          items:
            $ref: "#/components/schemas/CryptoLargeTradeZone"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          market_type: "swap"
          window: "1D"
          since: "2026-11-27T12:00:00.000Z"
          bucket_size: 50
          zones:
            - price_from: 97500
              price_to: 97550
              mid_price: 97525
              buy_notional_usd: 182500000.5
              sell_notional_usd: 141200000.2
              total_notional_usd: 323700000.7
              delta_notional_usd: 41300000.3
              trade_count: 48210
              last_trade_time: "2026-11-28T11:59:58.120Z"
              pressure: "buy_pressure"
    CryptoScreenerCondition:
      type: "object"
      description: "One filter predicate comparing a crypto screener metric with a number, a range, or another metric."
      additionalProperties: false
      required:
        - "metric"
        - "operator"
      properties:
        metric:
          type: "string"
          enum:
            - "price"
            - "change24h"
            - "volume24h"
            - "high24h"
            - "low24h"
            - "range24h"
            - "performance1h"
            - "performance4h"
            - "performance7d"
            - "performance30d"
            - "openInterestUsd"
            - "openInterestChange1h"
            - "openInterestChange24h"
            - "openInterestVolumeRatio24h"
            - "fundingRate"
            - "accountLongShortRatio"
            - "topTraderLongShortRatio"
            - "takerBuyRatio1h"
            - "technicalRating"
            - "oscillatorRating"
            - "trendRating"
            - "rsi7"
            - "rsi14"
            - "rsi21"
            - "macd.macd"
            - "macd.signal"
            - "macd.histogram"
            - "stochRsi.k"
            - "stochRsi.d"
            - "mfi14"
            - "cci20"
            - "williamsR14"
            - "adx14.adx"
            - "adx14.plusDI"
            - "adx14.minusDI"
            - "ema9"
            - "ema20"
            - "ema21"
            - "ema50"
            - "ema100"
            - "ema200"
            - "sma20"
            - "sma50"
            - "sma200"
            - "wma20"
            - "distEma20Pct"
            - "distEma50Pct"
            - "distEma200Pct"
            - "distVwapPct"
            - "supertrend.line"
            - "supertrend.direction"
            - "parabolicSar"
            - "ichimoku.tenkan"
            - "ichimoku.kijun"
            - "ichimoku.senkouA"
            - "ichimoku.senkouB"
            - "alphaTrend.line"
            - "tillsonT3.line"
            - "mavilimW.line"
            - "atr14"
            - "atrPct"
            - "bollinger.upper"
            - "bollinger.middle"
            - "bollinger.lower"
            - "bollinger.width"
            - "bollinger.percentB"
            - "donchian.upper"
            - "donchian.basis"
            - "donchian.lower"
            - "vwap"
            - "obv"
            - "volume"
            - "relativeVolume"
            - "effortResult.effortResult"
            - "effortResult.spreadRatio"
            - "effortResult.zVol"
            - "priceChange1"
          maxLength: 40
          description: "Left-hand metric ID to evaluate on each instrument."
          examples:
            - "rsi14"
        operator:
          type: "string"
          enum:
            - "lt"
            - "lte"
            - "gt"
            - "gte"
            - "eq"
            - "between"
            - "outside"
            - "crosses_above"
            - "crosses_below"
          maxLength: 13
          description: "lt, lte, gt, gte and eq compare the newest values; between (bounds included) and outside test value to upper_value; crosses_above and crosses_below match when the left side crossed the right side from the previous bar to the newest one."
          examples:
            - "between"
        value:
          type: "number"
          format: "double"
          minimum: -1000000000000
          maximum: 1000000000000
          description: "Constant right-hand threshold, or the lower bound for between and outside; omit when setting right_metric."
          examples:
            - 50
        upper_value:
          type: "number"
          format: "double"
          minimum: -1000000000000
          maximum: 1000000000000
          description: "Upper bound for between and outside, at least value; refused with any other operator."
          examples:
            - 70
        right_metric:
          type: "string"
          enum:
            - "price"
            - "change24h"
            - "volume24h"
            - "high24h"
            - "low24h"
            - "range24h"
            - "performance1h"
            - "performance4h"
            - "performance7d"
            - "performance30d"
            - "openInterestUsd"
            - "openInterestChange1h"
            - "openInterestChange24h"
            - "openInterestVolumeRatio24h"
            - "fundingRate"
            - "accountLongShortRatio"
            - "topTraderLongShortRatio"
            - "takerBuyRatio1h"
            - "technicalRating"
            - "oscillatorRating"
            - "trendRating"
            - "rsi7"
            - "rsi14"
            - "rsi21"
            - "macd.macd"
            - "macd.signal"
            - "macd.histogram"
            - "stochRsi.k"
            - "stochRsi.d"
            - "mfi14"
            - "cci20"
            - "williamsR14"
            - "adx14.adx"
            - "adx14.plusDI"
            - "adx14.minusDI"
            - "ema9"
            - "ema20"
            - "ema21"
            - "ema50"
            - "ema100"
            - "ema200"
            - "sma20"
            - "sma50"
            - "sma200"
            - "wma20"
            - "distEma20Pct"
            - "distEma50Pct"
            - "distEma200Pct"
            - "distVwapPct"
            - "supertrend.line"
            - "supertrend.direction"
            - "parabolicSar"
            - "ichimoku.tenkan"
            - "ichimoku.kijun"
            - "ichimoku.senkouA"
            - "ichimoku.senkouB"
            - "alphaTrend.line"
            - "tillsonT3.line"
            - "mavilimW.line"
            - "atr14"
            - "atrPct"
            - "bollinger.upper"
            - "bollinger.middle"
            - "bollinger.lower"
            - "bollinger.width"
            - "bollinger.percentB"
            - "donchian.upper"
            - "donchian.basis"
            - "donchian.lower"
            - "vwap"
            - "obv"
            - "volume"
            - "relativeVolume"
            - "effortResult.effortResult"
            - "effortResult.spreadRatio"
            - "effortResult.zVol"
            - "priceChange1"
          maxLength: 40
          description: "Right-hand metric ID for metric-to-metric comparisons and crossovers; omit when setting value."
          examples:
            - "ema200"
        right_multiplier:
          type: "number"
          format: "double"
          exclusiveMinimum: 0
          maximum: 1000
          description: "Multiplies right_metric before the comparison, such as 1.05 for 5% above it; requires right_metric."
          examples:
            - 1.05
        timeframe:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "1H"
            - "4H"
            - "1D"
          maxLength: 4
          description: "Timeframe this condition reads when it differs from the request timeframe, such as a daily RSI inside a 1H screen."
          examples:
            - "1D"
      examples:
        - metric: "rsi14"
          operator: "between"
          value: 50
          upper_value: 70
    CryptoScreenerSort:
      type: "object"
      description: "Sorting rule for matched crypto screener instruments."
      additionalProperties: false
      required:
        - "metric"
      properties:
        metric:
          type: "string"
          enum:
            - "price"
            - "change24h"
            - "volume24h"
            - "high24h"
            - "low24h"
            - "range24h"
            - "performance1h"
            - "performance4h"
            - "performance7d"
            - "performance30d"
            - "openInterestUsd"
            - "openInterestChange1h"
            - "openInterestChange24h"
            - "openInterestVolumeRatio24h"
            - "fundingRate"
            - "accountLongShortRatio"
            - "topTraderLongShortRatio"
            - "takerBuyRatio1h"
            - "technicalRating"
            - "oscillatorRating"
            - "trendRating"
            - "rsi7"
            - "rsi14"
            - "rsi21"
            - "macd.macd"
            - "macd.signal"
            - "macd.histogram"
            - "stochRsi.k"
            - "stochRsi.d"
            - "mfi14"
            - "cci20"
            - "williamsR14"
            - "adx14.adx"
            - "adx14.plusDI"
            - "adx14.minusDI"
            - "ema9"
            - "ema20"
            - "ema21"
            - "ema50"
            - "ema100"
            - "ema200"
            - "sma20"
            - "sma50"
            - "sma200"
            - "wma20"
            - "distEma20Pct"
            - "distEma50Pct"
            - "distEma200Pct"
            - "distVwapPct"
            - "supertrend.line"
            - "supertrend.direction"
            - "parabolicSar"
            - "ichimoku.tenkan"
            - "ichimoku.kijun"
            - "ichimoku.senkouA"
            - "ichimoku.senkouB"
            - "alphaTrend.line"
            - "tillsonT3.line"
            - "mavilimW.line"
            - "atr14"
            - "atrPct"
            - "bollinger.upper"
            - "bollinger.middle"
            - "bollinger.lower"
            - "bollinger.width"
            - "bollinger.percentB"
            - "donchian.upper"
            - "donchian.basis"
            - "donchian.lower"
            - "vwap"
            - "obv"
            - "volume"
            - "relativeVolume"
            - "effortResult.effortResult"
            - "effortResult.spreadRatio"
            - "effortResult.zVol"
            - "priceChange1"
          maxLength: 40
          description: "Screener metric ID, on the request timeframe, used to order matched instruments."
          examples:
            - "technicalRating"
        direction:
          type: "string"
          enum:
            - "asc"
            - "desc"
          default: "desc"
          maxLength: 4
          description: "Sort direction for matched screener rows; missing values always sort last."
          examples:
            - "desc"
      examples:
        - metric: "technicalRating"
          direction: "desc"
    CryptoScreenerRequest:
      type: "object"
      description: "Query payload for POST /crypto/screener."
      additionalProperties: false
      required: []
      properties:
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
          default: "swap"
          maxLength: 10
          description: "Crypto market segment to scan: spot, swap, or futures."
          examples:
            - "swap"
        timeframe:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "1H"
            - "4H"
            - "1D"
          default: "1H"
          maxLength: 4
          description: "Candle timeframe of the screen: conditions without their own timeframe and the sort read it."
          examples:
            - "1H"
        universe:
          type: "string"
          enum:
            - "all"
            - "altcoins"
          default: "all"
          maxLength: 12
          description: "Instrument universe: all includes BTC pairs; altcoins excludes BTC-base pairs."
          examples:
            - "all"
        combine:
          type: "string"
          enum:
            - "AND"
            - "OR"
          default: "AND"
          maxLength: 4
          description: "Logical combinator across supplied screener conditions: AND or OR."
          examples:
            - "AND"
        tickers:
          type: "array"
          minItems: 1
          maxItems: 200
          description: "Optional watchlist of up to 200 OKX instrument IDs; the screen evaluates only these instruments."
          items:
            type: "string"
            pattern: "^[A-Za-z0-9-]{1,64}$"
            maxLength: 64
          examples:
            - - "BTC-USDT-SWAP"
              - "ETH-USDT-SWAP"
              - "SOL-USDT-SWAP"
        conditions:
          type: "array"
          maxItems: 12
          description: "Up to 12 metric conditions; empty lists return all active instruments sorted."
          items:
            $ref: "#/components/schemas/CryptoScreenerCondition"
        sort:
          $ref: "#/components/schemas/CryptoScreenerSort"
        limit:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 200
          default: 50
          description: "Maximum matched crypto screener instruments returned (1 to 200)."
          examples:
            - 50
      examples:
        - market_type: "swap"
          timeframe: "1H"
          universe: "all"
          combine: "AND"
          conditions:
            - metric: "technicalRating"
              operator: "gte"
              value: 0.5
            - metric: "rsi14"
              operator: "between"
              value: 50
              upper_value: 70
            - metric: "price"
              operator: "gt"
              right_metric: "ema200"
              right_multiplier: 1.05
            - metric: "macd.macd"
              operator: "crosses_above"
              right_metric: "macd.signal"
            - metric: "rsi14"
              operator: "gt"
              value: 50
              timeframe: "1D"
          sort:
            metric: "technicalRating"
            direction: "desc"
          limit: 50
    CryptoScreenerRow:
      type: "object"
      description: "One crypto instrument matching a POST /crypto/screener query."
      additionalProperties: false
      required:
        - "ticker"
        - "price"
        - "candle_time"
        - "updated_at"
        - "metrics"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9-]{3,64}$"
          description: "Matched USDT instrument identifier."
          examples:
            - "BTC-USDT-SWAP"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Latest traded price of the screened instrument."
          examples:
            - 97811.4
        candle_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "Start timestamp of the latest evaluated bar in UTC."
          examples:
            - "2026-11-28T12:00:00.000Z"
        updated_at:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "Timestamp when this instrument's screener snapshot was refreshed in UTC."
          examples:
            - "2026-11-28T12:04:10.000Z"
        metrics:
          $ref: "#/components/schemas/CryptoScreenerMetricValues"
        mtf_metrics:
          type: "object"
          description: "Values of conditions that read another timeframe, keyed by timeframe; present only when a condition sets timeframe."
          additionalProperties: false
          properties:
            "5m":
              $ref: "#/components/schemas/CryptoScreenerMetricValues"
            "15m":
              $ref: "#/components/schemas/CryptoScreenerMetricValues"
            "1H":
              $ref: "#/components/schemas/CryptoScreenerMetricValues"
            "4H":
              $ref: "#/components/schemas/CryptoScreenerMetricValues"
            "1D":
              $ref: "#/components/schemas/CryptoScreenerMetricValues"
          examples:
            - "1D":
                rsi14: 58.7
      examples:
        - ticker: "BTC-USDT-SWAP"
          price: 97811.4
          candle_time: "2026-11-28T12:00:00.000Z"
          updated_at: "2026-11-28T12:04:10.000Z"
          metrics:
            price: 97811.4
            technicalRating: 0.62
            rsi14: 64.2
            ema200: 91200.5
            macd.macd: 412.8
            macd.signal: 377.1
          mtf_metrics:
            "1D":
              rsi14: 58.7
    CryptoScreenerMetricValues:
      type: "object"
      description: "Metric values of one instrument keyed by metric ID: price, the sort metric and every metric the conditions name; a metric without a value is left out."
      additionalProperties: false
      required: []
      properties:
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for price on the matched instrument."
          examples:
            - 97811.4
        change24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for change24h on the matched instrument."
          examples:
            - null
        volume24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for volume24h on the matched instrument."
          examples:
            - 1250000000
        high24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for high24h on the matched instrument."
          examples:
            - null
        low24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for low24h on the matched instrument."
          examples:
            - null
        range24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for range24h on the matched instrument."
          examples:
            - null
        performance1h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for performance1h on the matched instrument."
          examples:
            - null
        performance4h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for performance4h on the matched instrument."
          examples:
            - null
        performance7d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for performance7d on the matched instrument."
          examples:
            - null
        performance30d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for performance30d on the matched instrument."
          examples:
            - null
        openInterestUsd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for openInterestUsd on the matched instrument."
          examples:
            - null
        openInterestChange1h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for openInterestChange1h on the matched instrument."
          examples:
            - null
        openInterestChange24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for openInterestChange24h on the matched instrument."
          examples:
            - null
        openInterestVolumeRatio24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for openInterestVolumeRatio24h on the matched instrument."
          examples:
            - null
        fundingRate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for fundingRate on the matched instrument."
          examples:
            - null
        accountLongShortRatio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for accountLongShortRatio on the matched instrument."
          examples:
            - null
        topTraderLongShortRatio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for topTraderLongShortRatio on the matched instrument."
          examples:
            - null
        takerBuyRatio1h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for takerBuyRatio1h on the matched instrument."
          examples:
            - null
        technicalRating:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for technicalRating on the matched instrument."
          examples:
            - 0.62
        oscillatorRating:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for oscillatorRating on the matched instrument."
          examples:
            - null
        trendRating:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for trendRating on the matched instrument."
          examples:
            - null
        rsi7:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for rsi7 on the matched instrument."
          examples:
            - null
        rsi14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for rsi14 on the matched instrument."
          examples:
            - 64.2
        rsi21:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for rsi21 on the matched instrument."
          examples:
            - null
        macd.macd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for macd.macd on the matched instrument."
          examples:
            - 412.8
        macd.signal:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for macd.signal on the matched instrument."
          examples:
            - 377.1
        macd.histogram:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for macd.histogram on the matched instrument."
          examples:
            - null
        stochRsi.k:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for stochRsi.k on the matched instrument."
          examples:
            - null
        stochRsi.d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for stochRsi.d on the matched instrument."
          examples:
            - null
        mfi14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for mfi14 on the matched instrument."
          examples:
            - null
        cci20:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for cci20 on the matched instrument."
          examples:
            - null
        williamsR14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for williamsR14 on the matched instrument."
          examples:
            - null
        adx14.adx:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for adx14.adx on the matched instrument."
          examples:
            - null
        adx14.plusDI:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for adx14.plusDI on the matched instrument."
          examples:
            - null
        adx14.minusDI:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for adx14.minusDI on the matched instrument."
          examples:
            - null
        ema9:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ema9 on the matched instrument."
          examples:
            - null
        ema20:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ema20 on the matched instrument."
          examples:
            - null
        ema21:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ema21 on the matched instrument."
          examples:
            - null
        ema50:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ema50 on the matched instrument."
          examples:
            - null
        ema100:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ema100 on the matched instrument."
          examples:
            - null
        ema200:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ema200 on the matched instrument."
          examples:
            - 91200.5
        sma20:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for sma20 on the matched instrument."
          examples:
            - null
        sma50:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for sma50 on the matched instrument."
          examples:
            - null
        sma200:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for sma200 on the matched instrument."
          examples:
            - null
        wma20:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for wma20 on the matched instrument."
          examples:
            - null
        distEma20Pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for distEma20Pct on the matched instrument."
          examples:
            - null
        distEma50Pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for distEma50Pct on the matched instrument."
          examples:
            - null
        distEma200Pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for distEma200Pct on the matched instrument."
          examples:
            - null
        distVwapPct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for distVwapPct on the matched instrument."
          examples:
            - null
        supertrend.line:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for supertrend.line on the matched instrument."
          examples:
            - null
        supertrend.direction:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for supertrend.direction on the matched instrument."
          examples:
            - null
        parabolicSar:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for parabolicSar on the matched instrument."
          examples:
            - null
        ichimoku.tenkan:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ichimoku.tenkan on the matched instrument."
          examples:
            - null
        ichimoku.kijun:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ichimoku.kijun on the matched instrument."
          examples:
            - null
        ichimoku.senkouA:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ichimoku.senkouA on the matched instrument."
          examples:
            - null
        ichimoku.senkouB:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for ichimoku.senkouB on the matched instrument."
          examples:
            - null
        alphaTrend.line:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for alphaTrend.line on the matched instrument."
          examples:
            - null
        tillsonT3.line:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for tillsonT3.line on the matched instrument."
          examples:
            - null
        mavilimW.line:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for mavilimW.line on the matched instrument."
          examples:
            - null
        atr14:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for atr14 on the matched instrument."
          examples:
            - null
        atrPct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for atrPct on the matched instrument."
          examples:
            - null
        bollinger.upper:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for bollinger.upper on the matched instrument."
          examples:
            - null
        bollinger.middle:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for bollinger.middle on the matched instrument."
          examples:
            - null
        bollinger.lower:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for bollinger.lower on the matched instrument."
          examples:
            - null
        bollinger.width:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for bollinger.width on the matched instrument."
          examples:
            - null
        bollinger.percentB:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for bollinger.percentB on the matched instrument."
          examples:
            - null
        donchian.upper:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for donchian.upper on the matched instrument."
          examples:
            - null
        donchian.basis:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for donchian.basis on the matched instrument."
          examples:
            - null
        donchian.lower:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for donchian.lower on the matched instrument."
          examples:
            - null
        vwap:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for vwap on the matched instrument."
          examples:
            - null
        obv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for obv on the matched instrument."
          examples:
            - null
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for volume on the matched instrument."
          examples:
            - null
        relativeVolume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for relativeVolume on the matched instrument."
          examples:
            - null
        effortResult.effortResult:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for effortResult.effortResult on the matched instrument."
          examples:
            - null
        effortResult.spreadRatio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for effortResult.spreadRatio on the matched instrument."
          examples:
            - null
        effortResult.zVol:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for effortResult.zVol on the matched instrument."
          examples:
            - null
        priceChange1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Screener metric value for priceChange1 on the matched instrument."
          examples:
            - null
      examples:
        - price: 97811.4
          technicalRating: 0.62
          rsi14: 64.2
          ema200: 91200.5
          macd.macd: 412.8
          macd.signal: 377.1
    CryptoScreenerResponse:
      type: "object"
      description: "The answer of POST /crypto/screener."
      additionalProperties: false
      required:
        - "market_type"
        - "timeframe"
        - "universe"
        - "combine"
        - "total_scanned"
        - "matched"
        - "returned"
        - "complete"
        - "as_of"
        - "results"
      properties:
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
          description: "Echoed crypto screener market segment."
          examples:
            - "swap"
        timeframe:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "1H"
            - "4H"
            - "1D"
          description: "Echoed crypto screener bar timeframe."
          examples:
            - "1H"
        universe:
          type: "string"
          enum:
            - "all"
            - "altcoins"
          description: "Echoed crypto screener universe scope."
          examples:
            - "all"
        combine:
          type: "string"
          enum:
            - "AND"
            - "OR"
          description: "Echoed logical combinator applied to conditions."
          examples:
            - "AND"
        total_scanned:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Total active instruments evaluated within the selected universe."
          examples:
            - 240
        matched:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Total instruments satisfying the screen conditions."
          examples:
            - 18
        returned:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 200
          description: "Number of matched rows included in this response."
          examples:
            - 1
        complete:
          type: "boolean"
          description: "True when the entire selected universe was evaluated; the screener evaluates every condition on every instrument, so matched is exact."
          examples:
            - true
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "Newest snapshot update timestamp across returned screener rows in UTC."
          examples:
            - "2026-11-28T12:04:10.000Z"
        results:
          type: "array"
          maxItems: 200
          description: "Matched crypto instruments ordered by sort."
          items:
            $ref: "#/components/schemas/CryptoScreenerRow"
      examples:
        - market_type: "swap"
          timeframe: "1H"
          universe: "all"
          combine: "AND"
          total_scanned: 240
          matched: 18
          returned: 1
          complete: true
          as_of: "2026-11-28T12:04:10.000Z"
          results:
            - ticker: "BTC-USDT-SWAP"
              price: 97811.4
              candle_time: "2026-11-28T12:00:00.000Z"
              updated_at: "2026-11-28T12:04:10.000Z"
              metrics:
                price: 97811.4
                technicalRating: 0.62
                rsi14: 64.2
                ema200: 91200.5
                macd.macd: 412.8
                macd.signal: 377.1
              mtf_metrics:
                "1D":
                  rsi14: 58.7
    CryptoScreenerMetricInfo:
      type: "object"
      description: "Metadata describing one metric supported by POST /crypto/screener."
      additionalProperties: false
      required:
        - "id"
        - "category"
        - "label"
        - "derivatives_only"
        - "decimals"
        - "compact"
        - "percent"
        - "rating"
      properties:
        id:
          type: "string"
          enum:
            - "price"
            - "change24h"
            - "volume24h"
            - "high24h"
            - "low24h"
            - "range24h"
            - "performance1h"
            - "performance4h"
            - "performance7d"
            - "performance30d"
            - "openInterestUsd"
            - "openInterestChange1h"
            - "openInterestChange24h"
            - "openInterestVolumeRatio24h"
            - "fundingRate"
            - "accountLongShortRatio"
            - "topTraderLongShortRatio"
            - "takerBuyRatio1h"
            - "technicalRating"
            - "oscillatorRating"
            - "trendRating"
            - "rsi7"
            - "rsi14"
            - "rsi21"
            - "macd.macd"
            - "macd.signal"
            - "macd.histogram"
            - "stochRsi.k"
            - "stochRsi.d"
            - "mfi14"
            - "cci20"
            - "williamsR14"
            - "adx14.adx"
            - "adx14.plusDI"
            - "adx14.minusDI"
            - "ema9"
            - "ema20"
            - "ema21"
            - "ema50"
            - "ema100"
            - "ema200"
            - "sma20"
            - "sma50"
            - "sma200"
            - "wma20"
            - "distEma20Pct"
            - "distEma50Pct"
            - "distEma200Pct"
            - "distVwapPct"
            - "supertrend.line"
            - "supertrend.direction"
            - "parabolicSar"
            - "ichimoku.tenkan"
            - "ichimoku.kijun"
            - "ichimoku.senkouA"
            - "ichimoku.senkouB"
            - "alphaTrend.line"
            - "tillsonT3.line"
            - "mavilimW.line"
            - "atr14"
            - "atrPct"
            - "bollinger.upper"
            - "bollinger.middle"
            - "bollinger.lower"
            - "bollinger.width"
            - "bollinger.percentB"
            - "donchian.upper"
            - "donchian.basis"
            - "donchian.lower"
            - "vwap"
            - "obv"
            - "volume"
            - "relativeVolume"
            - "effortResult.effortResult"
            - "effortResult.spreadRatio"
            - "effortResult.zVol"
            - "priceChange1"
          description: "Canonical screener metric ID to pass in conditions or sort."
          examples:
            - "rsi14"
        category:
          type: "string"
          enum:
            - "ratings"
            - "market"
            - "performance"
            - "derivatives"
            - "momentum"
            - "trend"
            - "volatility"
            - "volume"
          description: "Functional category grouping this screener metric."
          examples:
            - "momentum"
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Human-readable display name of the screener metric."
          examples:
            - "RSI (14)"
        derivatives_only:
          type: "boolean"
          description: "True when the metric is populated only for derivatives contracts such as swaps and futures."
          examples:
            - false
        decimals:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 10
          description: "Suggested decimal display precision for this metric, or null for price-scaled values."
          examples:
            - 2
        compact:
          type: "boolean"
          description: "True when the metric is typically rendered with compact magnitude suffixes."
          examples:
            - false
        percent:
          type: "boolean"
          description: "True when the metric value is a percentage, such as 2.5 for 2.5%."
          examples:
            - false
        rating:
          type: "boolean"
          description: "True for composite ratings from -1 (strong sell) to 1 (strong buy) that summarise oscillator or moving average signals."
          examples:
            - false
      examples:
        - id: "rsi14"
          category: "momentum"
          label: "RSI (14)"
          derivatives_only: false
          decimals: 2
          compact: false
          percent: false
          rating: false
    CryptoScreenerMetricsResponse:
      type: "object"
      description: "The answer of GET /crypto/screener/metrics."
      additionalProperties: false
      required:
        - "total_metrics"
        - "market_types"
        - "timeframes"
        - "universes"
        - "combine_modes"
        - "operators"
        - "categories"
        - "metrics"
      properties:
        total_metrics:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 500
          description: "Total number of supported crypto screener metrics."
          examples:
            - 77
        market_types:
          type: "array"
          maxItems: 10
          description: "Supported market_type values for POST /crypto/screener."
          items:
            type: "string"
            enum:
              - "spot"
              - "swap"
              - "futures"
            maxLength: 10
          examples:
            - - "spot"
              - "swap"
              - "futures"
        timeframes:
          type: "array"
          maxItems: 10
          description: "Supported timeframe values for POST /crypto/screener and its conditions."
          items:
            type: "string"
            enum:
              - "5m"
              - "15m"
              - "1H"
              - "4H"
              - "1D"
            maxLength: 4
          examples:
            - - "5m"
              - "15m"
              - "1H"
              - "4H"
              - "1D"
        universes:
          type: "array"
          maxItems: 5
          description: "Supported universe values for POST /crypto/screener."
          items:
            type: "string"
            enum:
              - "all"
              - "altcoins"
            maxLength: 12
          examples:
            - - "all"
              - "altcoins"
        combine_modes:
          type: "array"
          maxItems: 5
          description: "Supported logical combinators for POST /crypto/screener conditions."
          items:
            type: "string"
            enum:
              - "AND"
              - "OR"
            maxLength: 4
          examples:
            - - "AND"
              - "OR"
        operators:
          type: "array"
          maxItems: 10
          description: "Supported comparison, range, and crossover operators for POST /crypto/screener conditions."
          items:
            type: "string"
            enum:
              - "lt"
              - "lte"
              - "gt"
              - "gte"
              - "eq"
              - "between"
              - "outside"
              - "crosses_above"
              - "crosses_below"
            maxLength: 13
          examples:
            - - "lt"
              - "lte"
              - "gt"
              - "gte"
              - "eq"
              - "between"
              - "outside"
              - "crosses_above"
              - "crosses_below"
        categories:
          type: "array"
          maxItems: 20
          description: "Metric categories present in the screener discovery catalog."
          items:
            type: "string"
            enum:
              - "ratings"
              - "market"
              - "performance"
              - "derivatives"
              - "momentum"
              - "trend"
              - "volatility"
              - "volume"
            maxLength: 20
          examples:
            - - "ratings"
              - "market"
              - "performance"
              - "derivatives"
              - "momentum"
              - "trend"
              - "volatility"
              - "volume"
        metrics:
          type: "array"
          maxItems: 100
          description: "All 77 crypto screener metrics with metadata."
          items:
            $ref: "#/components/schemas/CryptoScreenerMetricInfo"
      examples:
        - total_metrics: 77
          market_types:
            - "spot"
            - "swap"
            - "futures"
          timeframes:
            - "5m"
            - "15m"
            - "1H"
            - "4H"
            - "1D"
          universes:
            - "all"
            - "altcoins"
          combine_modes:
            - "AND"
            - "OR"
          operators:
            - "lt"
            - "lte"
            - "gt"
            - "gte"
            - "eq"
            - "between"
            - "outside"
            - "crosses_above"
            - "crosses_below"
          categories:
            - "ratings"
            - "market"
            - "performance"
            - "derivatives"
            - "momentum"
            - "trend"
            - "volatility"
            - "volume"
          metrics:
            - id: "rsi14"
              category: "momentum"
              label: "RSI (14)"
              derivatives_only: false
              decimals: 2
              compact: false
              percent: false
              rating: false
    CryptoOiScanRequest:
      type: "object"
      description: "Query payload for POST /crypto/derivatives/oi-scan."
      additionalProperties: false
      required: []
      properties:
        market_type:
          type: "string"
          enum:
            - "swap"
            - "futures"
          default: "swap"
          maxLength: 10
          description: "Derivatives contract category to scan for open interest changes: swap or futures."
          examples:
            - "swap"
        timeframe:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "1H"
            - "4H"
            - "1D"
          default: "1H"
          maxLength: 4
          description: "Lookback bar window over which open interest change is measured."
          examples:
            - "1H"
        min_oi_usd:
          type: "number"
          format: "double"
          minimum: 0
          maximum: 1000000000000
          description: "Minimum current open interest in USD required to include a contract."
          examples:
            - 10000000
        min_vol_usd_24h:
          type: "number"
          format: "double"
          minimum: 0
          maximum: 1000000000000
          description: "Minimum rolling 24-hour trading volume in USD required to include a contract."
          examples:
            - 25000000
        min_abs_oi_delta_pct:
          type: "number"
          format: "double"
          minimum: 0
          maximum: 100000
          description: "Minimum absolute open interest percent change (for example 1.5 for 1.5%)."
          examples:
            - 1.5
        sort_by:
          type: "string"
          enum:
            - "oi_delta_pct"
            - "oi_usd"
            - "oi_delta_usd"
            - "vol_usd_24h"
            - "last"
          default: "oi_delta_pct"
          maxLength: 16
          description: "Metric field used to rank open interest change scan results."
          examples:
            - "oi_delta_pct"
        sort_order:
          type: "string"
          enum:
            - "asc"
            - "desc"
          default: "desc"
          maxLength: 4
          description: "Sort direction for ranked open interest scan contracts."
          examples:
            - "desc"
        limit:
          type: "integer"
          format: "int32"
          minimum: 1
          maximum: 100
          default: 25
          description: "Maximum ranked open interest contracts returned (1 to 100)."
          examples:
            - 25
      examples:
        - market_type: "swap"
          timeframe: "1H"
          min_oi_usd: 10000000
          min_vol_usd_24h: 25000000
          min_abs_oi_delta_pct: 1.5
          sort_by: "oi_delta_pct"
          sort_order: "desc"
          limit: 25
    CryptoOiScanRow:
      type: "object"
      description: "One derivatives contract ranked by open interest accumulation or distribution."
      additionalProperties: false
      required:
        - "ticker"
        - "oi_usd"
        - "oi_delta_usd"
        - "oi_delta_pct"
        - "vol_usd_24h"
        - "last"
        - "direction"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9-]{3,64}$"
          description: "Derivatives contract identifier."
          examples:
            - "BTC-USDT-SWAP"
        oi_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current contract open interest in USD."
          examples:
            - 3450000000
        oi_delta_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Dollar change in open interest over the requested timeframe."
          examples:
            - 125000000
        oi_delta_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percentage change in open interest over the requested timeframe."
          examples:
            - 3.76
        vol_usd_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Rolling 24-hour notional contract trading volume in USD."
          examples:
            - 18500000000
        last:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Latest traded contract price."
          examples:
            - 97811.4
        direction:
          type: "string"
          enum:
            - "accumulation"
            - "distribution"
            - "flat"
          description: "Open interest regime derived from oi_delta_pct sign."
          examples:
            - "accumulation"
      examples:
        - ticker: "BTC-USDT-SWAP"
          oi_usd: 3450000000
          oi_delta_usd: 125000000
          oi_delta_pct: 3.76
          vol_usd_24h: 18500000000
          last: 97811.4
          direction: "accumulation"
    CryptoOiScanResponse:
      type: "object"
      description: "The answer of POST /crypto/derivatives/oi-scan."
      additionalProperties: false
      required:
        - "exchange"
        - "scope"
        - "market_type"
        - "timeframe"
        - "sort_by"
        - "sort_order"
        - "as_of"
        - "results"
      properties:
        exchange:
          type: "string"
          enum:
            - "okx"
          description: "The venue scanned; its tickers are that venue's instrument ids, which the other crypto endpoints take with this exchange."
          examples:
            - "okx"
        scope:
          type: "string"
          enum:
            - "every OKX perpetual swap"
            - "every OKX dated future"
          description: "The contracts the scan ranks, by market_type."
          examples:
            - "every OKX perpetual swap"
        market_type:
          type: "string"
          enum:
            - "swap"
            - "futures"
          description: "Echoed derivatives contract category scanned for open interest changes."
          examples:
            - "swap"
        timeframe:
          type: "string"
          enum:
            - "5m"
            - "15m"
            - "1H"
            - "4H"
            - "1D"
          description: "Echoed bar window used for the open interest change calculation."
          examples:
            - "1H"
        sort_by:
          type: "string"
          enum:
            - "oi_delta_pct"
            - "oi_usd"
            - "oi_delta_usd"
            - "vol_usd_24h"
            - "last"
          description: "Echoed ranking metric applied to open interest scan rows."
          examples:
            - "oi_delta_pct"
        sort_order:
          type: "string"
          enum:
            - "asc"
            - "desc"
          description: "Echoed ranking direction for open interest scan rows."
          examples:
            - "desc"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "UTC timestamp when the open interest scan response was produced."
          examples:
            - "2026-11-28T12:05:00.000Z"
        results:
          type: "array"
          maxItems: 100
          description: "Ranked open interest scan contracts."
          items:
            $ref: "#/components/schemas/CryptoOiScanRow"
      examples:
        - exchange: "okx"
          scope: "every OKX perpetual swap"
          market_type: "swap"
          timeframe: "1H"
          sort_by: "oi_delta_pct"
          sort_order: "desc"
          as_of: "2026-11-28T12:05:00.000Z"
          results:
            - ticker: "BTC-USDT-SWAP"
              oi_usd: 3450000000
              oi_delta_usd: 125000000
              oi_delta_pct: 3.76
              vol_usd_24h: 18500000000
              last: 97811.4
              direction: "accumulation"
    CryptoOptionContract:
      type: "object"
      description: "One live crypto option contract with market quotes, contract specs, and optional Greeks."
      additionalProperties: false
      required:
        - "ticker"
        - "expiry"
        - "expiry_time"
        - "strike"
        - "option_type"
        - "last"
        - "bid_price"
        - "ask_price"
        - "bid_size"
        - "ask_size"
        - "volume_24h"
        - "open_interest"
        - "contract_value"
        - "lot_size"
        - "tick_size"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9]{2,10}-USD-[0-9]{6}-[0-9]+-[CP]$"
          description: "Option contract instrument identifier."
          examples:
            - "BTC-USD-261225-100000-C"
        expiry:
          type: "string"
          pattern: "^[0-9]{6}$"
          description: "Option expiration code in YYMMDD format."
          examples:
            - "261225"
        expiry_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "Option settlement timestamp in UTC."
          examples:
            - "2026-12-25T08:00:00.000Z"
        strike:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Option strike price in USD."
          examples:
            - 100000
        option_type:
          type: "string"
          enum:
            - "call"
            - "put"
          description: "Option exercise right: call or put."
          examples:
            - "call"
        last:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Last traded option premium in underlying coin units."
          examples:
            - 0.042
        bid_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best bid option premium in underlying coin units."
          examples:
            - 0.0415
        ask_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best ask option premium in underlying coin units."
          examples:
            - 0.043
        bid_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Contract quantity available at the best option bid."
          examples:
            - 25
        ask_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Contract quantity available at the best option ask."
          examples:
            - 30
        volume_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Rolling 24-hour traded option contract volume."
          examples:
            - 412
        open_interest:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current option open interest in contracts."
          examples:
            - 1850
        contract_value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Underlying asset multiplier per single option contract."
          examples:
            - 0.01
        lot_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum option order size increment in contracts."
          examples:
            - 1
        tick_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum option quote price increment."
          examples:
            - 0.0005
        delta:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Option delta sensitivity to underlying price."
          examples:
            - 0.482
        gamma:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Option gamma convexity of delta."
          examples:
            - 0.000024
        vega:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Option vega sensitivity to implied volatility."
          examples:
            - 98.4
        theta:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Option daily time decay theta."
          examples:
            - -84.2
        mark_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Mark implied volatility as an annualized decimal (0.54 = 54%)."
          examples:
            - 0.54
        bid_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bid implied volatility as an annualized decimal."
          examples:
            - 0.532
        ask_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ask implied volatility as an annualized decimal."
          examples:
            - 0.548
        forward_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Implied forward price of the underlying at this option expiry."
          examples:
            - 98450.5
      examples:
        - ticker: "BTC-USD-261225-100000-C"
          expiry: "261225"
          expiry_time: "2026-12-25T08:00:00.000Z"
          strike: 100000
          option_type: "call"
          last: 0.042
          bid_price: 0.0415
          ask_price: 0.043
          bid_size: 25
          ask_size: 30
          volume_24h: 412
          open_interest: 1850
          contract_value: 0.01
          lot_size: 1
          tick_size: 0.0005
          delta: 0.482
          gamma: 0.000024
          vega: 98.4
          theta: -84.2
          mark_iv: 0.54
          bid_iv: 0.532
          ask_iv: 0.548
          forward_price: 98450.5
    CryptoOptionsChainResponse:
      type: "object"
      description: "The answer of GET /crypto/derivatives/option-chain."
      additionalProperties: false
      required:
        - "underlying"
        - "exchange"
        - "include_greeks"
        - "total_matched"
        - "expiries"
        - "as_of"
        - "contracts"
      properties:
        underlying:
          type: "string"
          pattern: "^[A-Z0-9]{2,10}-USD$"
          description: "Option underlying family returned for the chain query."
          examples:
            - "BTC-USD"
        exchange:
          type: "string"
          enum:
            - "okx"
          description: "Options exchange source for the chain snapshot."
          examples:
            - "okx"
        include_greeks:
          type: "boolean"
          description: "Whether Greeks and implied volatilities are populated on contracts."
          examples:
            - true
        total_matched:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Total option contracts matching the active chain filters before limit slicing."
          examples:
            - 42
        expiries:
          type: "array"
          maxItems: 100
          description: "Sorted list of available YYMMDD expiration codes for the underlying."
          items:
            type: "string"
            pattern: "^[0-9]{6}$"
            maxLength: 6
          examples:
            - - "261204"
              - "261225"
              - "270326"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "Latest quote or Greeks timestamp across returned options contracts in UTC."
          examples:
            - "2026-11-28T12:00:00.000Z"
        contracts:
          type: "array"
          maxItems: 500
          description: "Filtered option contracts ordered by expiry and strike."
          items:
            $ref: "#/components/schemas/CryptoOptionContract"
      examples:
        - underlying: "BTC-USD"
          exchange: "okx"
          include_greeks: true
          total_matched: 42
          expiries:
            - "261204"
            - "261225"
            - "270326"
          as_of: "2026-11-28T12:00:00.000Z"
          contracts:
            - ticker: "BTC-USD-261225-100000-C"
              expiry: "261225"
              expiry_time: "2026-12-25T08:00:00.000Z"
              strike: 100000
              option_type: "call"
              last: 0.042
              bid_price: 0.0415
              ask_price: 0.043
              bid_size: 25
              ask_size: 30
              volume_24h: 412
              open_interest: 1850
              contract_value: 0.01
              lot_size: 1
              tick_size: 0.0005
              delta: 0.482
              gamma: 0.000024
              vega: 98.4
              theta: -84.2
              mark_iv: 0.54
              bid_iv: 0.532
              ask_iv: 0.548
              forward_price: 98450.5
    CryptoOptionExpirySkew:
      type: "object"
      description: "Implied volatility skew summary for one option expiration date."
      additionalProperties: false
      required:
        - "expiry"
        - "expiry_date"
        - "days_to_expiry"
        - "atm_iv"
        - "atm_strike"
        - "call_25d_iv"
        - "put_25d_iv"
        - "rr25"
        - "bf25"
        - "forward_price"
        - "contract_count"
      properties:
        expiry:
          type: "string"
          pattern: "^[0-9]{6}$"
          description: "Skew bucket expiration code in YYMMDD format."
          examples:
            - "261225"
        expiry_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "Calendar expiration date of the skew bucket in YYYY-MM-DD."
          examples:
            - "2026-12-25"
        days_to_expiry:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Remaining calendar days until 08:00 UTC option expiry."
          examples:
            - 26.83
        atm_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "At-the-money implied volatility as an annualized decimal."
          examples:
            - 0.54
        atm_strike:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Strike price closest to 50-delta for this expiry."
          examples:
            - 98000
        call_25d_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta call mark implied volatility as an annualized decimal."
          examples:
            - 0.565
        put_25d_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta put mark implied volatility as an annualized decimal."
          examples:
            - 0.59
        rr25:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta risk reversal (call_25d_iv minus put_25d_iv)."
          examples:
            - -0.025
        bf25:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta butterfly (average of 25-delta wings minus atm_iv)."
          examples:
            - 0.0375
        forward_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Implied forward price of the underlying for this skew expiry."
          examples:
            - 98450.5
        contract_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 10000
          description: "Count of valid option contracts included in this expiry skew bucket."
          examples:
            - 68
      examples:
        - expiry: "261225"
          expiry_date: "2026-12-25"
          days_to_expiry: 26.83
          atm_iv: 0.54
          atm_strike: 98000
          call_25d_iv: 0.565
          put_25d_iv: 0.59
          rr25: -0.025
          bf25: 0.0375
          forward_price: 98450.5
          contract_count: 68
    CryptoOptionTermPoint:
      type: "object"
      description: "One maturity point on the ATM implied volatility term structure curve."
      additionalProperties: false
      required:
        - "expiry"
        - "expiry_date"
        - "days_to_expiry"
        - "atm_iv"
      properties:
        expiry:
          type: "string"
          pattern: "^[0-9]{6}$"
          description: "Term structure maturity code in YYMMDD format."
          examples:
            - "261225"
        expiry_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "Term structure maturity calendar date in YYYY-MM-DD."
          examples:
            - "2026-12-25"
        days_to_expiry:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Days remaining until this term structure maturity."
          examples:
            - 26.83
        atm_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "ATM implied volatility at this term structure maturity."
          examples:
            - 0.54
      examples:
        - expiry: "261225"
          expiry_date: "2026-12-25"
          days_to_expiry: 26.83
          atm_iv: 0.54
    CryptoOptionTermStructure:
      type: "object"
      description: "ATM implied volatility term structure across available expirations."
      additionalProperties: false
      required:
        - "front_expiry"
        - "front_atm_iv"
        - "back_expiry"
        - "back_atm_iv"
        - "slope"
        - "regime"
        - "points"
      properties:
        front_expiry:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{6}$"
          maxLength: 6
          description: "Nearest liquid expiration code."
          examples:
            - "261204"
        front_atm_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "ATM implied volatility of the nearest liquid expiration."
          examples:
            - 0.51
        back_expiry:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{6}$"
          maxLength: 6
          description: "Farthest liquid expiration code."
          examples:
            - "270326"
        back_atm_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "ATM implied volatility of the farthest liquid expiration."
          examples:
            - 0.58
        slope:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Term structure slope equal to back_atm_iv minus front_atm_iv."
          examples:
            - 0.07
        regime:
          type:
            - "string"
            - "null"
          enum:
            - "contango"
            - "backwardation"
            - "flat"
            - null
          description: "Term structure slope classification (contango, backwardation, or flat)."
          examples:
            - "contango"
        points:
          type: "array"
          maxItems: 100
          description: "Ordered ATM implied volatility term curve points."
          items:
            $ref: "#/components/schemas/CryptoOptionTermPoint"
      examples:
        - front_expiry: "261204"
          front_atm_iv: 0.51
          back_expiry: "270326"
          back_atm_iv: 0.58
          slope: 0.07
          regime: "contango"
          points:
            - expiry: "261225"
              expiry_date: "2026-12-25"
              days_to_expiry: 26.83
              atm_iv: 0.54
    CryptoOptionRealizedVol:
      type: "object"
      description: "Spot realized volatility windows and implied-minus-realized volatility spreads."
      additionalProperties: false
      required:
        - "spot_ticker"
        - "rv_7d"
        - "rv_30d"
        - "rv_90d"
        - "reference_expiry"
        - "reference_days_to_expiry"
        - "reference_atm_iv"
        - "iv_rv_spread_7d"
        - "iv_rv_spread_30d"
        - "iv_rv_spread_90d"
      properties:
        spot_ticker:
          type: "string"
          pattern: "^[A-Z0-9]{2,10}-USDT$"
          description: "Spot market ticker whose daily closes are used for realized volatility."
          examples:
            - "BTC-USDT"
        rv_7d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "7-day annualized close-to-close realized volatility (decimal)."
          examples:
            - 0.44
        rv_30d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "30-day annualized close-to-close realized volatility (decimal)."
          examples:
            - 0.48
        rv_90d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "90-day annualized close-to-close realized volatility (decimal)."
          examples:
            - 0.51
        reference_expiry:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{6}$"
          maxLength: 6
          description: "Expiration closest to 30 days to expiry used for IV minus RV spreads."
          examples:
            - "261225"
        reference_days_to_expiry:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Days remaining to the reference expiration used for IV minus RV spreads."
          examples:
            - 26.83
        reference_atm_iv:
          type:
            - "number"
            - "null"
          format: "double"
          description: "ATM implied volatility of the reference expiration used for IV minus RV spreads."
          examples:
            - 0.54
        iv_rv_spread_7d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Reference ATM IV minus 7-day realized volatility."
          examples:
            - 0.1
        iv_rv_spread_30d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Reference ATM IV minus 30-day realized volatility."
          examples:
            - 0.06
        iv_rv_spread_90d:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Reference ATM IV minus 90-day realized volatility."
          examples:
            - 0.03
      examples:
        - spot_ticker: "BTC-USDT"
          rv_7d: 0.44
          rv_30d: 0.48
          rv_90d: 0.51
          reference_expiry: "261225"
          reference_days_to_expiry: 26.83
          reference_atm_iv: 0.54
          iv_rv_spread_7d: 0.1
          iv_rv_spread_30d: 0.06
          iv_rv_spread_90d: 0.03
    CryptoOptionsIvSkewResponse:
      type: "object"
      description: "The answer of GET /crypto/derivatives/iv-skew."
      additionalProperties: false
      required:
        - "underlying"
        - "exchange"
        - "vol_unit"
        - "as_of"
        - "expiries"
        - "term_structure"
        - "realized_vol"
      properties:
        underlying:
          type: "string"
          pattern: "^[A-Z0-9]{2,10}-USD$"
          description: "Option underlying family analyzed for IV skew and term structure."
          examples:
            - "BTC-USD"
        exchange:
          type: "string"
          enum:
            - "okx"
          description: "Options exchange source for the IV skew analysis."
          examples:
            - "okx"
        vol_unit:
          type: "string"
          enum:
            - "annualized_decimal"
          description: "Volatility unit across all IV and RV fields (0.54 equals 54% annualized)."
          examples:
            - "annualized_decimal"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "Latest options summary timestamp used for skew calculations in UTC."
          examples:
            - "2026-11-28T12:00:00.000Z"
        expiries:
          type: "array"
          maxItems: 100
          description: "Per-expiry ATM IV, 25-delta skew, and wing pricing rows sorted ascending."
          items:
            $ref: "#/components/schemas/CryptoOptionExpirySkew"
        term_structure:
          $ref: "#/components/schemas/CryptoOptionTermStructure"
        realized_vol:
          description: "Spot 7d/30d/90d realized volatility and IV minus RV spread; null when include_realized_vol is false."
          anyOf:
            - $ref: "#/components/schemas/CryptoOptionRealizedVol"
            - type: "null"
      examples:
        - underlying: "BTC-USD"
          exchange: "okx"
          vol_unit: "annualized_decimal"
          as_of: "2026-11-28T12:00:00.000Z"
          expiries:
            - expiry: "261225"
              expiry_date: "2026-12-25"
              days_to_expiry: 26.83
              atm_iv: 0.54
              atm_strike: 98000
              call_25d_iv: 0.565
              put_25d_iv: 0.59
              rr25: -0.025
              bf25: 0.0375
              forward_price: 98450.5
              contract_count: 68
          term_structure:
            front_expiry: "261204"
            front_atm_iv: 0.51
            back_expiry: "270326"
            back_atm_iv: 0.58
            slope: 0.07
            regime: "contango"
            points:
              - expiry: "261225"
                expiry_date: "2026-12-25"
                days_to_expiry: 26.83
                atm_iv: 0.54
          realized_vol:
            spot_ticker: "BTC-USDT"
            rv_7d: 0.44
            rv_30d: 0.48
            rv_90d: 0.51
            reference_expiry: "261225"
            reference_days_to_expiry: 26.83
            reference_atm_iv: 0.54
            iv_rv_spread_7d: 0.1
            iv_rv_spread_30d: 0.06
            iv_rv_spread_90d: 0.03
    SmcStructureEvent:
      type: "object"
      description: "A break of structure (BOS) or change of character (CHoCH)."
      additionalProperties: false
      required:
        - "scope"
        - "bias"
        - "tag"
        - "level"
        - "start_time"
        - "end_time"
      properties:
        scope:
          type: "string"
          enum:
            - "internal"
            - "swing"
          description: "Whether the SMC break is of the internal or the swing structure."
          examples:
            - "swing"
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "The side the SMC break points to."
          examples:
            - "bullish"
        tag:
          type: "string"
          enum:
            - "BOS"
            - "CHoCH"
          description: "BOS when the SMC break continues the trend, CHoCH when it turns it."
          examples:
            - "BOS"
        level:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price of the pivot the SMC break took out."
          examples:
            - 97250.5
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When the pivot the SMC break took out formed."
          examples:
            - "2026-11-27T08:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle whose close made the SMC break."
          examples:
            - "2026-11-28T03:00:00.000Z"
      examples:
        - scope: "swing"
          bias: "bullish"
          tag: "BOS"
          level: 97250.5
          start_time: "2026-11-27T08:00:00.000Z"
          end_time: "2026-11-28T03:00:00.000Z"
    SmcOrderBlock:
      type: "object"
      description: "An order block of the internal or swing structure."
      additionalProperties: false
      required:
        - "scope"
        - "bias"
        - "top"
        - "bottom"
        - "midpoint"
        - "start_time"
        - "mitigated"
      properties:
        scope:
          type: "string"
          enum:
            - "internal"
            - "swing"
          description: "Whether the SMC order block is of the internal or the swing structure."
          examples:
            - "internal"
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "Bullish SMC order blocks support price, bearish ones resist it."
          examples:
            - "bullish"
        top:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The SMC order block's top price."
          examples:
            - 96980
        bottom:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The SMC order block's bottom price."
          examples:
            - 96610.5
        midpoint:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the SMC order block."
          examples:
            - 96795.25
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle the SMC order block was drawn from."
          examples:
            - "2026-11-27T14:00:00.000Z"
        mitigated:
          type: "boolean"
          description: "Whether price has traded through the SMC order block."
          examples:
            - false
      examples:
        - scope: "internal"
          bias: "bullish"
          top: 96980
          bottom: 96610.5
          midpoint: 96795.25
          start_time: "2026-11-27T14:00:00.000Z"
          mitigated: false
    SmcFairValueGap:
      type: "object"
      description: "A three-candle fair value gap."
      additionalProperties: false
      required:
        - "bias"
        - "top"
        - "bottom"
        - "midpoint"
        - "start_time"
        - "mitigated"
      properties:
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "The side the SMC fair value gap opened toward."
          examples:
            - "bearish"
        top:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The SMC fair value gap's top price."
          examples:
            - 98120
        bottom:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The SMC fair value gap's bottom price."
          examples:
            - 97960.4
        midpoint:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the SMC fair value gap."
          examples:
            - 98040.2
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The first candle of the SMC fair value gap."
          examples:
            - "2026-11-28T06:00:00.000Z"
        mitigated:
          type: "boolean"
          description: "Whether price has filled the SMC fair value gap."
          examples:
            - false
      examples:
        - bias: "bearish"
          top: 98120
          bottom: 97960.4
          midpoint: 98040.2
          start_time: "2026-11-28T06:00:00.000Z"
          mitigated: false
    SmcEqualLevel:
      type: "object"
      description: "Equal highs (EQH) or equal lows (EQL): resting liquidity."
      additionalProperties: false
      required:
        - "type"
        - "bias"
        - "level"
        - "start_time"
        - "end_time"
      properties:
        type:
          type: "string"
          enum:
            - "EQH"
            - "EQL"
          description: "EQH for equal highs, EQL for equal lows."
          examples:
            - "EQH"
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "Bearish for equal highs, bullish for equal lows."
          examples:
            - "bearish"
        level:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price the equal highs or lows share."
          examples:
            - 98240
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The first of the two equal pivots."
          examples:
            - "2026-11-26T19:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The second of the two equal pivots."
          examples:
            - "2026-11-28T05:00:00.000Z"
      examples:
        - type: "EQH"
          bias: "bearish"
          level: 98240
          start_time: "2026-11-26T19:00:00.000Z"
          end_time: "2026-11-28T05:00:00.000Z"
    SmcZone:
      type: "object"
      description: "The premium, equilibrium or discount part of the swing range."
      additionalProperties: false
      required:
        - "type"
        - "top"
        - "bottom"
        - "midpoint"
        - "start_time"
      properties:
        type:
          type: "string"
          enum:
            - "premium"
            - "equilibrium"
            - "discount"
          description: "Which part of the swing range the zone is."
          examples:
            - "premium"
        top:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The premium or discount zone's top price."
          examples:
            - 98240
        bottom:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The premium or discount zone's bottom price."
          examples:
            - 97790.6
        midpoint:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the premium or discount zone."
          examples:
            - 98015.3
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "Where the swing range of the zone begins."
          examples:
            - "2026-11-25T10:00:00.000Z"
      examples:
        - type: "premium"
          top: 98240
          bottom: 97790.6
          midpoint: 98015.3
          start_time: "2026-11-25T10:00:00.000Z"
    SmcStrongWeakLevel:
      type: "object"
      description: "The swing range's high or low, strong when the trend protects it."
      additionalProperties: false
      required:
        - "type"
        - "bias"
        - "strength"
        - "level"
        - "start_time"
      properties:
        type:
          type: "string"
          enum:
            - "high"
            - "low"
          description: "The swing range's high or its low."
          examples:
            - "high"
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "Bearish for the range high, bullish for the range low."
          examples:
            - "bearish"
        strength:
          type: "string"
          enum:
            - "strong"
            - "weak"
          description: "Strong when the trend protects the extreme, weak when it is a target."
          examples:
            - "weak"
        level:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price of the range extreme."
          examples:
            - 98240
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When the range extreme formed."
          examples:
            - "2026-11-26T19:00:00.000Z"
      examples:
        - type: "high"
          bias: "bearish"
          strength: "weak"
          level: 98240
          start_time: "2026-11-26T19:00:00.000Z"
    SmcSwingPoint:
      type: "object"
      description: "A swing pivot labelled against the one before it."
      additionalProperties: false
      required:
        - "type"
        - "bias"
        - "level"
        - "time"
      properties:
        type:
          type: "string"
          enum:
            - "HH"
            - "HL"
            - "LH"
            - "LL"
          description: "HH, HL, LH or LL against the SMC pivot of its kind before it."
          examples:
            - "HL"
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "Bullish for HH and HL, bearish for LH and LL."
          examples:
            - "bullish"
        level:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price of the SMC swing pivot."
          examples:
            - 95910.2
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle of the SMC swing pivot."
          examples:
            - "2026-11-27T02:00:00.000Z"
      examples:
        - type: "HL"
          bias: "bullish"
          level: 95910.2
          time: "2026-11-27T02:00:00.000Z"
    CryptoSmartMoneyConcepts:
      type: "object"
      description: "Smart Money Concepts, newest first where a list is cut."
      additionalProperties: false
      required:
        - "structures"
        - "order_blocks"
        - "fair_value_gaps"
        - "equal_levels"
        - "zones"
        - "strong_weak_levels"
        - "swing_points"
      properties:
        structures:
          type: "array"
          maxItems: 20
          description: "The newest 20 SMC breaks, newest first."
          items:
            $ref: "#/components/schemas/SmcStructureEvent"
        order_blocks:
          type: "array"
          maxItems: 10
          description: "Up to 10 SMC order blocks."
          items:
            $ref: "#/components/schemas/SmcOrderBlock"
        fair_value_gaps:
          type: "array"
          maxItems: 10
          description: "Up to 10 SMC fair value gaps."
          items:
            $ref: "#/components/schemas/SmcFairValueGap"
        equal_levels:
          type: "array"
          maxItems: 10
          description: "The newest 10 equal highs and lows."
          items:
            $ref: "#/components/schemas/SmcEqualLevel"
        zones:
          type: "array"
          maxItems: 3
          description: "The premium, equilibrium and discount zones."
          items:
            $ref: "#/components/schemas/SmcZone"
        strong_weak_levels:
          type: "array"
          maxItems: 2
          description: "The swing range's strong or weak high and low."
          items:
            $ref: "#/components/schemas/SmcStrongWeakLevel"
        swing_points:
          type: "array"
          maxItems: 10
          description: "The newest 10 SMC swing pivots, newest first."
          items:
            $ref: "#/components/schemas/SmcSwingPoint"
      examples:
        - structures:
            - scope: "swing"
              bias: "bullish"
              tag: "BOS"
              level: 97250.5
              start_time: "2026-11-27T08:00:00.000Z"
              end_time: "2026-11-28T03:00:00.000Z"
          order_blocks:
            - scope: "internal"
              bias: "bullish"
              top: 96980
              bottom: 96610.5
              midpoint: 96795.25
              start_time: "2026-11-27T14:00:00.000Z"
              mitigated: false
          fair_value_gaps:
            - bias: "bearish"
              top: 98120
              bottom: 97960.4
              midpoint: 98040.2
              start_time: "2026-11-28T06:00:00.000Z"
              mitigated: false
          equal_levels:
            - type: "EQH"
              bias: "bearish"
              level: 98240
              start_time: "2026-11-26T19:00:00.000Z"
              end_time: "2026-11-28T05:00:00.000Z"
          zones:
            - type: "premium"
              top: 98240
              bottom: 97790.6
              midpoint: 98015.3
              start_time: "2026-11-25T10:00:00.000Z"
          strong_weak_levels:
            - type: "high"
              bias: "bearish"
              strength: "weak"
              level: 98240
              start_time: "2026-11-26T19:00:00.000Z"
          swing_points:
            - type: "HL"
              bias: "bullish"
              level: 95910.2
              time: "2026-11-27T02:00:00.000Z"
    StructureOrderBlock:
      type: "object"
      description: "An active order block from a swing break."
      additionalProperties: false
      required:
        - "bias"
        - "top"
        - "bottom"
        - "midpoint"
        - "start_time"
        - "distance_pct"
        - "overlapping_blocks"
      properties:
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "Bullish swing order blocks support price, bearish ones resist it."
          examples:
            - "bullish"
        top:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The swing order block's top price."
          examples:
            - 96980
        bottom:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The swing order block's bottom price."
          examples:
            - 96610.5
        midpoint:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the swing order block."
          examples:
            - 96795.25
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle the swing order block was drawn from."
          examples:
            - "2026-11-27T14:00:00.000Z"
        distance_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "How far the swing order block's middle is from the last price, in percent: negative below it."
          examples:
            - -1.04
        overlapping_blocks:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 500
          description: "Other active swing order blocks it overlaps: more makes it stronger."
          examples:
            - 0
      examples:
        - bias: "bullish"
          top: 96980
          bottom: 96610.5
          midpoint: 96795.25
          start_time: "2026-11-27T14:00:00.000Z"
          distance_pct: -1.04
          overlapping_blocks: 0
    StructureBreakerBlock:
      type: "object"
      description: "An order block price closed through, which now acts the other way."
      additionalProperties: false
      required:
        - "bias"
        - "top"
        - "bottom"
        - "midpoint"
        - "start_time"
        - "distance_pct"
        - "break_time"
      properties:
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "The breaker block's side before price broke it."
          examples:
            - "bearish"
        top:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The breaker block's top price."
          examples:
            - 99120
        bottom:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The breaker block's bottom price."
          examples:
            - 98760
        midpoint:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the breaker block."
          examples:
            - 98940
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle the breaker block was drawn from."
          examples:
            - "2026-11-24T21:00:00.000Z"
        distance_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "How far the breaker block's middle is from the last price, in percent: negative below it."
          examples:
            - 1.15
        break_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When price closed through the block and made it a breaker."
          examples:
            - "2026-11-26T09:00:00.000Z"
      examples:
        - bias: "bearish"
          top: 99120
          bottom: 98760
          midpoint: 98940
          start_time: "2026-11-24T21:00:00.000Z"
          distance_pct: 1.15
          break_time: "2026-11-26T09:00:00.000Z"
    CryptoOrderBlocks:
      type: "object"
      description: "Order and breaker blocks, nearest the last price first."
      additionalProperties: false
      required:
        - "order_blocks"
        - "breaker_blocks"
      properties:
        order_blocks:
          type: "array"
          maxItems: 500
          description: "Active swing order blocks, nearest first."
          items:
            $ref: "#/components/schemas/StructureOrderBlock"
        breaker_blocks:
          type: "array"
          maxItems: 500
          description: "Breaker blocks, nearest first."
          items:
            $ref: "#/components/schemas/StructureBreakerBlock"
      examples:
        - order_blocks:
            - bias: "bullish"
              top: 96980
              bottom: 96610.5
              midpoint: 96795.25
              start_time: "2026-11-27T14:00:00.000Z"
              distance_pct: -1.04
              overlapping_blocks: 0
          breaker_blocks:
            - bias: "bearish"
              top: 99120
              bottom: 98760
              midpoint: 98940
              start_time: "2026-11-24T21:00:00.000Z"
              distance_pct: 1.15
              break_time: "2026-11-26T09:00:00.000Z"
    FvgSessionGap:
      type: "object"
      description: "The first fair value gap of a UTC session."
      additionalProperties: false
      required:
        - "bias"
        - "top"
        - "bottom"
        - "midpoint"
        - "average"
        - "start_time"
        - "end_time"
        - "mitigated"
        - "mitigation_time"
      properties:
        bias:
          type: "string"
          enum:
            - "bullish"
            - "bearish"
          description: "The side the session gap opened toward."
          examples:
            - "bullish"
        top:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The session gap's top price."
          examples:
            - 97310
        bottom:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The session gap's bottom price."
          examples:
            - 97150.2
        midpoint:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the session gap."
          examples:
            - 97230.1
        average:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The average price of the session gap."
          examples:
            - 97230.1
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The first candle of the session gap."
          examples:
            - "2026-11-28T02:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle the session gap is drawn to."
          examples:
            - "2026-11-28T12:00:00.000Z"
        mitigated:
          type: "boolean"
          description: "Whether price has filled the session gap."
          examples:
            - true
        mitigation_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When price filled the session gap."
          examples:
            - "2026-11-28T07:00:00.000Z"
      examples:
        - bias: "bullish"
          top: 97310
          bottom: 97150.2
          midpoint: 97230.1
          average: 97230.1
          start_time: "2026-11-28T02:00:00.000Z"
          end_time: "2026-11-28T12:00:00.000Z"
          mitigated: true
          mitigation_time: "2026-11-28T07:00:00.000Z"
    FvgSession:
      type: "object"
      description: "The current UTC session's range."
      additionalProperties: false
      required:
        - "direction"
        - "high"
        - "low"
        - "start_time"
        - "end_time"
      properties:
        direction:
          type:
            - "string"
            - "null"
          enum:
            - "bullish"
            - "bearish"
            - null
          description: "The side of the session's first gap; null before one opens."
          examples:
            - "bullish"
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The current UTC session's high."
          examples:
            - 98240
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The current UTC session's low."
          examples:
            - 96900.4
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When the current UTC session began."
          examples:
            - "2026-11-28T00:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The newest candle of the current UTC session."
          examples:
            - "2026-11-28T12:00:00.000Z"
      examples:
        - direction: "bullish"
          high: 98240
          low: 96900.4
          start_time: "2026-11-28T00:00:00.000Z"
          end_time: "2026-11-28T12:00:00.000Z"
    CryptoFvgSessions:
      type: "object"
      description: "Session fair value gaps."
      additionalProperties: false
      required:
        - "current_session"
        - "gaps"
      properties:
        current_session:
          description: "The current UTC session; null without candles."
          anyOf:
            - $ref: "#/components/schemas/FvgSession"
            - type: "null"
        gaps:
          type: "array"
          maxItems: 10
          description: "The newest 10 session gaps, newest first."
          items:
            $ref: "#/components/schemas/FvgSessionGap"
      examples:
        - current_session:
            direction: "bullish"
            high: 98240
            low: 96900.4
            start_time: "2026-11-28T00:00:00.000Z"
            end_time: "2026-11-28T12:00:00.000Z"
          gaps:
            - bias: "bullish"
              top: 97310
              bottom: 97150.2
              midpoint: 97230.1
              average: 97230.1
              start_time: "2026-11-28T02:00:00.000Z"
              end_time: "2026-11-28T12:00:00.000Z"
              mitigated: true
              mitigation_time: "2026-11-28T07:00:00.000Z"
    StructureBreak:
      type: "object"
      description: "A break of a zigzag pivot."
      additionalProperties: false
      required:
        - "type"
        - "direction"
        - "level"
        - "time"
        - "confirmed_at"
      properties:
        type:
          type: "string"
          enum:
            - "BOS"
            - "CHoCH"
          description: "BOS when the zigzag break continues the trend, CHoCH when it turns it."
          examples:
            - "BOS"
        direction:
          type: "string"
          enum:
            - "up"
            - "down"
          description: "Up through a swing high, down through a swing low."
          examples:
            - "up"
        level:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price of the zigzag pivot that broke."
          examples:
            - 97250.5
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The zigzag pivot that broke."
          examples:
            - "2026-11-27T08:00:00.000Z"
        confirmed_at:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The zigzag pivot whose print confirmed the break."
          examples:
            - "2026-11-28T03:00:00.000Z"
      examples:
        - type: "BOS"
          direction: "up"
          level: 97250.5
          time: "2026-11-27T08:00:00.000Z"
          confirmed_at: "2026-11-28T03:00:00.000Z"
    StructureSwingPoint:
      type: "object"
      description: "A zigzag pivot."
      additionalProperties: false
      required:
        - "type"
        - "label"
        - "price"
        - "time"
        - "change_pct"
      properties:
        type:
          type: "string"
          enum:
            - "high"
            - "low"
          description: "A zigzag swing high or swing low."
          examples:
            - "high"
        label:
          type:
            - "string"
            - "null"
          enum:
            - "HH"
            - "LH"
            - "HL"
            - "LL"
            - null
          description: "Against the zigzag pivot of its kind before it; null for the first."
          examples:
            - "HH"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The price of the zigzag pivot."
          examples:
            - 98240
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle of the zigzag pivot."
          examples:
            - "2026-11-28T05:00:00.000Z"
        change_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The move from the zigzag pivot before it, in percent."
          examples:
            - 2.43
      examples:
        - type: "high"
          label: "HH"
          price: 98240
          time: "2026-11-28T05:00:00.000Z"
          change_pct: 2.43
    CryptoSwings:
      type: "object"
      description: "Zigzag swings and the trend they make."
      additionalProperties: false
      required:
        - "deviation_pct"
        - "regime"
        - "last_bos"
        - "last_choch"
        - "points"
      properties:
        deviation_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The smallest move that made a zigzag swing, in percent."
          examples:
            - 1
        regime:
          type: "string"
          enum:
            - "uptrend"
            - "downtrend"
            - "range"
            - "transition"
            - "indeterminate"
          description: "The trend the zigzag swings make."
          examples:
            - "uptrend"
        last_bos:
          description: "The newest zigzag break of structure."
          anyOf:
            - $ref: "#/components/schemas/StructureBreak"
            - type: "null"
        last_choch:
          description: "The newest zigzag change of character."
          anyOf:
            - $ref: "#/components/schemas/StructureBreak"
            - type: "null"
        points:
          type: "array"
          maxItems: 50
          description: "The newest 50 zigzag pivots, oldest first."
          items:
            $ref: "#/components/schemas/StructureSwingPoint"
      examples:
        - deviation_pct: 1
          regime: "uptrend"
          last_bos:
            type: "BOS"
            direction: "up"
            level: 97250.5
            time: "2026-11-27T08:00:00.000Z"
            confirmed_at: "2026-11-28T03:00:00.000Z"
          last_choch: null
          points:
            - type: "high"
              label: "HH"
              price: 98240
              time: "2026-11-28T05:00:00.000Z"
              change_pct: 2.43
    StructureVolumeZone:
      type: "object"
      description: "A support or resistance zone where volume stood out."
      additionalProperties: false
      required:
        - "type"
        - "top"
        - "bottom"
        - "midpoint"
        - "start_time"
        - "volume_delta"
        - "broken"
        - "break_time"
        - "distance_pct"
      properties:
        type:
          type: "string"
          enum:
            - "support"
            - "resistance"
          description: "Support below the price, resistance above it."
          examples:
            - "support"
        top:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The volume zone's top price."
          examples:
            - 97120
        bottom:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The volume zone's bottom price."
          examples:
            - 96880
        midpoint:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The middle of the volume zone."
          examples:
            - 97000
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle the volume zone was drawn from."
          examples:
            - "2026-11-27T11:00:00.000Z"
        volume_delta:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Buying minus selling volume of the candles that formed the volume zone."
          examples:
            - 1824.6
        broken:
          type: "boolean"
          description: "Whether price closed through the volume zone."
          examples:
            - false
        break_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When price closed through the volume zone."
          examples:
            - null
        distance_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "How far the volume zone's middle is from the last price, in percent: negative below it."
          examples:
            - -0.83
      examples:
        - type: "support"
          top: 97120
          bottom: 96880
          midpoint: 97000
          start_time: "2026-11-27T11:00:00.000Z"
          volume_delta: 1824.6
          broken: false
          break_time: null
          distance_pct: -0.83
    CryptoVolumeZones:
      type: "object"
      description: "High-volume zones, nearest the last price first."
      additionalProperties: false
      required:
        - "zones"
      properties:
        zones:
          type: "array"
          maxItems: 20
          description: "The 20 volume zones nearest the last price."
          items:
            $ref: "#/components/schemas/StructureVolumeZone"
      examples:
        - zones:
            - type: "support"
              top: 97120
              bottom: 96880
              midpoint: 97000
              start_time: "2026-11-27T11:00:00.000Z"
              volume_delta: 1824.6
              broken: false
              break_time: null
              distance_pct: -0.83
    MonteCarloPoint:
      type: "object"
      description: "The simulated range one bar ahead."
      additionalProperties: false
      required:
        - "time"
        - "upper"
        - "lower"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The bar the Monte Carlo range is for."
          examples:
            - "2026-11-28T13:00:00.000Z"
        upper:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest simulated price at that bar."
          examples:
            - 98120.4
        lower:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest simulated price at that bar."
          examples:
            - 97510.2
      examples:
        - time: "2026-11-28T13:00:00.000Z"
          upper: 98120.4
          lower: 97510.2
    CryptoMonteCarlo:
      type: "object"
      description: "The newest 50 candle bodies shuffled into 100 paths forward."
      additionalProperties: false
      required:
        - "lookback_bars"
        - "simulations"
        - "start_price"
        - "end_price"
        - "highest_price"
        - "lowest_price"
        - "standard_deviation"
        - "envelope"
      properties:
        lookback_bars:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 50
          description: "The candle bodies the Monte Carlo projection shuffled."
          examples:
            - 50
        simulations:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 1000
          description: "The Monte Carlo paths simulated."
          examples:
            - 100
        start_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The last close, where every Monte Carlo path starts."
          examples:
            - 97811.4
        end_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Where every Monte Carlo path ends: a shuffle keeps the sum of the moves."
          examples:
            - 98402.7
        highest_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The highest price any Monte Carlo path reached."
          examples:
            - 99630.1
        lowest_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lowest price any Monte Carlo path reached."
          examples:
            - 96220.8
        standard_deviation:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The average spread of the Monte Carlo paths at a bar."
          examples:
            - 512.3
        envelope:
          type: "array"
          maxItems: 50
          description: "The Monte Carlo range at each projected bar."
          items:
            $ref: "#/components/schemas/MonteCarloPoint"
      examples:
        - lookback_bars: 50
          simulations: 100
          start_price: 97811.4
          end_price: 98402.7
          highest_price: 99630.1
          lowest_price: 96220.8
          standard_deviation: 512.3
          envelope:
            - time: "2026-11-28T13:00:00.000Z"
              upper: 98120.4
              lower: 97510.2
    CryptoMarketStructureResponse:
      type: "object"
      description: "The answer of GET /crypto/market-structure: one object per engine named in modules."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "timeframe"
        - "bars"
        - "from"
        - "to"
        - "price"
        - "modules"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9 ._:@/()\\[\\]*+^-]{1,512}$"
          maxLength: 512
          description: "The instrument id of the candles the engines read, or with exchange formula the canonical formula, such as 1 / [okx:BTC-USDT-SWAP]."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
            - "formula"
          description: "The exchange of the candles the engines read, or formula."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
            - "synthetic"
          description: "The market of the candles the engines read; synthetic for a formula."
          examples:
            - "spot"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange the analyzed pair combines. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges the analyzed candles combine when venues narrowed them, null when they combine all of them. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - null
        display_symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 512
          description: "With exchange formula: the name Darvas shows for the formula of the candles the engines read, such as USDTBTC or BTC/NVDA. Absent otherwise."
          examples:
            - "USDTBTC"
        legs:
          type: "array"
          maxItems: 10
          description: "With exchange formula: the listed crypto instruments the formula of the candles the engines read reads. Absent otherwise."
          items:
            $ref: "#/components/schemas/CryptoFormulaLeg"
        timeframe:
          type: "string"
          enum:
            - "1m"
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "4H"
            - "1D"
            - "1W"
          description: "The candle frame the engines read."
          examples:
            - "1H"
        bars:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 500
          description: "The number of candles the engines read."
          examples:
            - 300
        from:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The oldest candle the engines read."
          examples:
            - "2026-11-16T01:00:00.000Z"
        to:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The newest candle the engines read, perhaps still open."
          examples:
            - "2026-11-28T12:00:00.000Z"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The close of the newest candle the engines read."
          examples:
            - 97811.4
        modules:
          type: "array"
          maxItems: 6
          description: "The structure engines in the answer."
          items:
            type: "string"
            enum:
              - "smc"
              - "order_blocks"
              - "fvg_sessions"
              - "swings"
              - "volume_zones"
              - "monte_carlo"
          examples:
            - - "smc"
              - "swings"
        smc:
          $ref: "#/components/schemas/CryptoSmartMoneyConcepts"
        order_blocks:
          $ref: "#/components/schemas/CryptoOrderBlocks"
        fvg_sessions:
          $ref: "#/components/schemas/CryptoFvgSessions"
        swings:
          $ref: "#/components/schemas/CryptoSwings"
        volume_zones:
          $ref: "#/components/schemas/CryptoVolumeZones"
        monte_carlo:
          description: "The Monte Carlo projection; null with too few candles."
          anyOf:
            - $ref: "#/components/schemas/CryptoMonteCarlo"
            - type: "null"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "darvas"
          market_type: "swap"
          constituents:
            - "binance"
            - "bybit"
            - "okx"
          venues: null
          timeframe: "1H"
          bars: 300
          from: "2026-11-16T01:00:00.000Z"
          to: "2026-11-28T12:00:00.000Z"
          price: 97811.4
          modules:
            - "smc"
            - "swings"
          smc:
            structures:
              - scope: "swing"
                bias: "bullish"
                tag: "BOS"
                level: 97250.5
                start_time: "2026-11-27T08:00:00.000Z"
                end_time: "2026-11-28T03:00:00.000Z"
            order_blocks:
              - scope: "internal"
                bias: "bullish"
                top: 96980
                bottom: 96610.5
                midpoint: 96795.25
                start_time: "2026-11-27T14:00:00.000Z"
                mitigated: false
            fair_value_gaps:
              - bias: "bearish"
                top: 98120
                bottom: 97960.4
                midpoint: 98040.2
                start_time: "2026-11-28T06:00:00.000Z"
                mitigated: false
            equal_levels:
              - type: "EQH"
                bias: "bearish"
                level: 98240
                start_time: "2026-11-26T19:00:00.000Z"
                end_time: "2026-11-28T05:00:00.000Z"
            zones:
              - type: "premium"
                top: 98240
                bottom: 97790.6
                midpoint: 98015.3
                start_time: "2026-11-25T10:00:00.000Z"
            strong_weak_levels:
              - type: "high"
                bias: "bearish"
                strength: "weak"
                level: 98240
                start_time: "2026-11-26T19:00:00.000Z"
            swing_points:
              - type: "HL"
                bias: "bullish"
                level: 95910.2
                time: "2026-11-27T02:00:00.000Z"
          swings:
            deviation_pct: 1
            regime: "uptrend"
            last_bos:
              type: "BOS"
              direction: "up"
              level: 97250.5
              time: "2026-11-27T08:00:00.000Z"
              confirmed_at: "2026-11-28T03:00:00.000Z"
            last_choch: null
            points:
              - type: "high"
                label: "HH"
                price: 98240
                time: "2026-11-28T05:00:00.000Z"
                change_pct: 2.43
    CryptoMarketSnapshotRow:
      type: "object"
      description: "One pair's latest price and last 24 hours."
      additionalProperties: false
      required:
        - "ticker"
        - "base"
        - "quote"
        - "market_type"
        - "price"
        - "change_24h_percent"
        - "quote_volume_24h"
        - "time"
        - "time_milliseconds"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The pair's instrument id."
          examples:
            - "BTC-USDT-SWAP"
        base:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 24
          description: "The pair's base currency, null where its id does not say."
          examples:
            - "BTC"
        quote:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 24
          description: "The pair's quote currency, null where its id does not say."
          examples:
            - "USDT"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
          description: "The pair's market."
          examples:
            - "swap"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The pair's latest price."
          examples:
            - 97811.4
        change_24h_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The pair's change over the last 24 hours, in percent."
          examples:
            - 1.3378
        quote_volume_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of the pair traded over the last 24 hours, in its quote currency."
          examples:
            - 18412093311.4
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The pair's newest stored minute."
          examples:
            - "2026-11-28T11:59:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The pair's newest stored minute in Unix milliseconds."
          examples:
            - 1795867140000
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: the exchanges whose prices the pair combines. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
      examples:
        - ticker: "BTC-USDT-SWAP"
          base: "BTC"
          quote: "USDT"
          market_type: "swap"
          price: 97811.4
          change_24h_percent: 1.3378
          quote_volume_24h: 18412093311.4
          time: "2026-11-28T11:59:00.000Z"
          time_milliseconds: 1795867140000
          constituents:
            - "binance"
            - "bybit"
            - "okx"
    CryptoMarketSnapshotResponse:
      type: "object"
      description: "The answer of GET /crypto/prices/snapshot/market."
      additionalProperties: false
      required:
        - "exchange"
        - "market_type"
        - "quote"
        - "sort"
        - "order"
        - "snapshots"
      properties:
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
          description: "The exchange of the ranked pairs."
          examples:
            - "darvas"
        market_type:
          type:
            - "string"
            - "null"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - null
          description: "The market the ranked pairs were filtered to."
          examples:
            - null
        quote:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 12
          description: "The quote currency the ranked pairs were filtered to."
          examples:
            - null
        sort:
          type: "string"
          enum:
            - "volume_24h"
            - "change_24h"
            - "price"
          description: "What the pairs are ranked by."
          examples:
            - "volume_24h"
        order:
          type: "string"
          enum:
            - "desc"
            - "asc"
          description: "The direction of the pair ranking."
          examples:
            - "desc"
        snapshots:
          type: "array"
          maxItems: 2000
          description: "The ranked pairs."
          items:
            $ref: "#/components/schemas/CryptoMarketSnapshotRow"
      examples:
        - exchange: "darvas"
          market_type: null
          quote: null
          sort: "volume_24h"
          order: "desc"
          snapshots:
            - ticker: "BTC-USDT-SWAP"
              base: "BTC"
              quote: "USDT"
              market_type: "swap"
              price: 97811.4
              change_24h_percent: 1.3378
              quote_volume_24h: 18412093311.4
              time: "2026-11-28T11:59:00.000Z"
              time_milliseconds: 1795867140000
              constituents:
                - "binance"
                - "bybit"
                - "okx"
    AggregatedVolumeExchange:
      type: "object"
      description: "One exchange's 24-hour volume of the perpetual."
      additionalProperties: false
      required:
        - "exchange"
        - "symbol"
        - "status"
        - "notional_volume_usd_24h"
        - "base_volume_24h"
        - "share_percent"
      properties:
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange whose volume this is."
          examples:
            - "binance"
        symbol:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The exchange's own symbol of the perpetual."
          examples:
            - "BTCUSDT"
        status:
          type: "string"
          enum:
            - "ok"
            - "not_found"
            - "unavailable"
          description: "ok when it answered, not_found when it lists no such perpetual, unavailable when it did not answer."
          examples:
            - "ok"
        notional_volume_usd_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value of the perpetual traded there, in US dollars."
          examples:
            - 14820331201.5
        base_volume_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The amount of the perpetual traded there, in its base asset."
          examples:
            - 151524.3
        share_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "That exchange's share of the perpetual's dollar volume, in percent."
          examples:
            - 52.31
      examples:
        - exchange: "binance"
          symbol: "BTCUSDT"
          status: "ok"
          notional_volume_usd_24h: 14820331201.5
          base_volume_24h: 151524.3
          share_percent: 52.31
    CryptoAggregatedVolumeResponse:
      type: "object"
      description: "The answer of GET /crypto/volume/aggregated."
      additionalProperties: false
      required:
        - "ticker"
        - "base_asset"
        - "quote_asset"
        - "market_type"
        - "notional_volume_usd_24h"
        - "base_volume_24h"
        - "complete"
        - "time"
        - "time_milliseconds"
        - "exchanges"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The perpetual whose volume is summed."
          examples:
            - "BTC-USDT-SWAP"
        base_asset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The perpetual's base asset."
          examples:
            - "BTC"
        quote_asset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The perpetual's quote asset."
          examples:
            - "USDT"
        market_type:
          type: "string"
          enum:
            - "swap"
          description: "Always swap: the volume is of perpetuals."
          examples:
            - "swap"
        notional_volume_usd_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value traded on the exchanges that answered, in US dollars."
          examples:
            - 28331904120.8
        base_volume_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The amount traded on the exchanges that answered, in the base asset."
          examples:
            - 289662.1
        complete:
          type: "boolean"
          description: "Whether every exchange answered."
          examples:
            - true
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The newest exchange reading of the volume."
          examples:
            - "2026-11-28T12:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The newest exchange reading in Unix milliseconds."
          examples:
            - 1795867200000
        exchanges:
          type: "array"
          maxItems: 4
          description: "Each exchange's 24-hour volume of the perpetual."
          items:
            $ref: "#/components/schemas/AggregatedVolumeExchange"
      examples:
        - ticker: "BTC-USDT-SWAP"
          base_asset: "BTC"
          quote_asset: "USDT"
          market_type: "swap"
          notional_volume_usd_24h: 28331904120.8
          base_volume_24h: 289662.1
          complete: true
          time: "2026-11-28T12:00:00.000Z"
          time_milliseconds: 1795867200000
          exchanges:
            - exchange: "binance"
              symbol: "BTCUSDT"
              status: "ok"
              notional_volume_usd_24h: 14820331201.5
              base_volume_24h: 151524.3
              share_percent: 52.31
    ContextPrice:
      type: "object"
      description: "The newest five-minute candle's close."
      additionalProperties: false
      required:
        - "last"
        - "time"
        - "time_milliseconds"
        - "bar_interval"
        - "last_bar_closed"
      properties:
        last:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The context's last price."
          examples:
            - 97811.4
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The open of the newest five-minute candle."
          examples:
            - "2026-11-28T11:55:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "That open in Unix milliseconds."
          examples:
            - 1795866900000
        bar_interval:
          type: "string"
          enum:
            - "5m"
          description: "The candle frame the context reads."
          examples:
            - "5m"
        last_bar_closed:
          type: "boolean"
          description: "Whether the newest five-minute candle has closed."
          examples:
            - false
      examples:
        - last: 97811.4
          time: "2026-11-28T11:55:00.000Z"
          time_milliseconds: 1795866900000
          bar_interval: "5m"
          last_bar_closed: false
    ContextWindow:
      type: "object"
      description: "The candles of one trailing window."
      additionalProperties: false
      required:
        - "from"
        - "to"
        - "bars"
        - "change_percent"
        - "high"
        - "high_time"
        - "low"
        - "low_time"
      properties:
        from:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The first candle of the trailing window."
          examples:
            - "2026-11-28T11:00:00.000Z"
        to:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The last candle of the trailing window."
          examples:
            - "2026-11-28T11:55:00.000Z"
        bars:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 288
          description: "The candles in the trailing window."
          examples:
            - 12
        change_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "From the window's first open to its last close, in percent."
          examples:
            - 0.42
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The trailing window's highest price."
          examples:
            - 97990
        high_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle of the trailing window's high."
          examples:
            - "2026-11-28T11:35:00.000Z"
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The trailing window's lowest price."
          examples:
            - 97302.6
        low_time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The candle of the trailing window's low."
          examples:
            - "2026-11-28T11:05:00.000Z"
      examples:
        - from: "2026-11-28T11:00:00.000Z"
          to: "2026-11-28T11:55:00.000Z"
          bars: 12
          change_percent: 0.42
          high: 97990
          high_time: "2026-11-28T11:35:00.000Z"
          low: 97302.6
          low_time: "2026-11-28T11:05:00.000Z"
    ContextWindows:
      type: "object"
      description: "The trailing hour, four hours and day; null without a candle in it."
      additionalProperties: false
      required:
        - "last_1h"
        - "last_4h"
        - "last_24h"
      properties:
        last_1h:
          description: "The hour before the last candle."
          anyOf:
            - $ref: "#/components/schemas/ContextWindow"
            - type: "null"
        last_4h:
          description: "The four hours before the last candle."
          anyOf:
            - $ref: "#/components/schemas/ContextWindow"
            - type: "null"
        last_24h:
          description: "The day before the last candle."
          anyOf:
            - $ref: "#/components/schemas/ContextWindow"
            - type: "null"
      examples:
        - last_1h:
            from: "2026-11-28T11:00:00.000Z"
            to: "2026-11-28T11:55:00.000Z"
            bars: 12
            change_percent: 0.42
            high: 97990
            high_time: "2026-11-28T11:35:00.000Z"
            low: 97302.6
            low_time: "2026-11-28T11:05:00.000Z"
          last_4h:
            from: "2026-11-28T08:00:00.000Z"
            to: "2026-11-28T11:55:00.000Z"
            bars: 12
            change_percent: 0.42
            high: 97990
            high_time: "2026-11-28T11:35:00.000Z"
            low: 97302.6
            low_time: "2026-11-28T11:05:00.000Z"
          last_24h:
            from: "2026-11-27T12:00:00.000Z"
            to: "2026-11-28T11:55:00.000Z"
            bars: 12
            change_percent: 0.42
            high: 97990
            high_time: "2026-11-28T11:35:00.000Z"
            low: 97302.6
            low_time: "2026-11-28T11:05:00.000Z"
    ContextHourlyBar:
      type: "object"
      description: "One UTC hour of the day."
      additionalProperties: false
      required:
        - "time"
        - "open"
        - "high"
        - "low"
        - "close"
        - "volume"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The UTC hour of the context bar."
          examples:
            - "2026-11-28T11:00:00.000Z"
        open:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The hour's first price."
          examples:
            - 97401.2
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The hour's highest price."
          examples:
            - 97990
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The hour's lowest price."
          examples:
            - 97302.6
        close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The hour's last price."
          examples:
            - 97811.4
        volume:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The amount traded in the hour, in the base currency."
          examples:
            - 1204.36
      examples:
        - time: "2026-11-28T11:00:00.000Z"
          open: 97401.2
          high: 97990
          low: 97302.6
          close: 97811.4
          volume: 1204.36
    ContextVenueDerivatives:
      type: "object"
      description: "One exchange's funding and open interest of the perpetual; null where it did not answer."
      additionalProperties: false
      required:
        - "exchange"
        - "ticker"
        - "funding_rate"
        - "next_funding_rate"
        - "next_funding_time"
        - "funding_interval_hours"
        - "open_interest_usd"
        - "open_interest_time"
        - "open_interest_change_pct_1h"
        - "open_interest_change_pct_4h"
        - "open_interest_change_pct_24h"
      properties:
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The exchange that lists the perpetual."
          examples:
            - "okx"
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "That exchange's id of the perpetual."
          examples:
            - "BTC-USDT-SWAP"
        funding_rate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The perpetual's current funding rate there, as a fraction."
          examples:
            - 0.0001
        next_funding_rate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The predicted next funding rate, where the exchange gives one."
          examples:
            - null
        next_funding_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "The perpetual's next funding there."
          examples:
            - "2026-11-28T16:00:00.000Z"
        funding_interval_hours:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Hours between the perpetual's fundings, where the exchange says."
          examples:
            - null
        open_interest_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The perpetual's open interest there, in US dollars."
          examples:
            - 3120440211.2
        open_interest_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "When the exchange's open interest was read."
          examples:
            - "2026-11-28T11:00:00.000Z"
        open_interest_change_pct_1h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The open interest's change over the last hour, in percent."
          examples:
            - 0.35
        open_interest_change_pct_4h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The open interest's change over the last four hours, in percent."
          examples:
            - 1.12
        open_interest_change_pct_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The open interest's change over the last 24 hours, in percent."
          examples:
            - -2.08
      examples:
        - exchange: "okx"
          ticker: "BTC-USDT-SWAP"
          funding_rate: 0.0001
          next_funding_rate: null
          next_funding_time: "2026-11-28T16:00:00.000Z"
          funding_interval_hours: null
          open_interest_usd: 3120440211.2
          open_interest_time: "2026-11-28T11:00:00.000Z"
          open_interest_change_pct_1h: 0.35
          open_interest_change_pct_4h: 1.12
          open_interest_change_pct_24h: -2.08
    ContextDerivatives:
      type: "object"
      description: "The perpetual's positioning on each exchange."
      additionalProperties: false
      required:
        - "total_open_interest_usd"
        - "venues"
      properties:
        total_open_interest_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The open interest of the exchanges that answered, in US dollars."
          examples:
            - 3120440211.2
        venues:
          type: "array"
          maxItems: 16
          description: "Each exchange's funding and open interest of the perpetual."
          items:
            $ref: "#/components/schemas/ContextVenueDerivatives"
      examples:
        - total_open_interest_usd: 3120440211.2
          venues:
            - exchange: "okx"
              ticker: "BTC-USDT-SWAP"
              funding_rate: 0.0001
              next_funding_rate: null
              next_funding_time: "2026-11-28T16:00:00.000Z"
              funding_interval_hours: null
              open_interest_usd: 3120440211.2
              open_interest_time: "2026-11-28T11:00:00.000Z"
              open_interest_change_pct_1h: 0.35
              open_interest_change_pct_4h: 1.12
              open_interest_change_pct_24h: -2.08
    ContextMacroRelease:
      type: "object"
      description: "One high-impact macro release."
      additionalProperties: false
      required:
        - "event_name"
        - "currency"
        - "country_name"
        - "importance"
        - "release_at"
        - "released"
        - "actual"
        - "forecast"
        - "previous"
      properties:
        event_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The macro release's name."
          examples:
            - "Nonfarm Payrolls"
        currency:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "The currency the release moves."
          examples:
            - "USD"
        country_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The country that publishes the release."
          examples:
            - "United States"
        importance:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "The release's expected impact."
          examples:
            - "high"
        release_at:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When the release is published."
          examples:
            - "2026-12-04T13:30:00.000Z"
        released:
          type: "boolean"
          description: "Whether the release has been published."
          examples:
            - false
        actual:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The release's published value."
          examples:
            - null
        forecast:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The release's consensus forecast."
          examples:
            - "180K"
        previous:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The release's value the time before."
          examples:
            - "150K"
      examples:
        - event_name: "Nonfarm Payrolls"
          currency: "USD"
          country_name: "United States"
          importance: "high"
          release_at: "2026-12-04T13:30:00.000Z"
          released: false
          actual: null
          forecast: "180K"
          previous: "150K"
    ContextMacro:
      type: "object"
      description: "High-impact macro releases around now."
      additionalProperties: false
      required:
        - "past_hours"
        - "future_hours"
        - "releases"
      properties:
        past_hours:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 168
          description: "Hours before now the macro releases cover."
          examples:
            - 24
        future_hours:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 168
          description: "Hours after now the macro releases cover."
          examples:
            - 48
        releases:
          type: "array"
          maxItems: 30
          description: "The releases, up to 15 on each side of now."
          items:
            $ref: "#/components/schemas/ContextMacroRelease"
      examples:
        - past_hours: 24
          future_hours: 48
          releases:
            - event_name: "Nonfarm Payrolls"
              currency: "USD"
              country_name: "United States"
              importance: "high"
              release_at: "2026-12-04T13:30:00.000Z"
              released: false
              actual: null
              forecast: "180K"
              previous: "150K"
    CryptoMarketContextResponse:
      type: "object"
      description: "The answer of GET /crypto/context."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "observed_at"
        - "price"
        - "windows"
        - "hourly_bars"
        - "derivatives"
        - "macro"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "The instrument id of the context."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "darvas"
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
            - "coinbase"
            - "kraken"
            - "bitstamp"
            - "deribit"
            - "bitfinex"
          description: "The exchange of the context's candles."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
            - "futures"
            - "option"
          description: "The market of the context's candles."
          examples:
            - "swap"
        constituents:
          type: "array"
          maxItems: 16
          description: "With exchange darvas: every exchange the pair of the context combines. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - - "binance"
              - "bybit"
              - "okx"
        venues:
          type:
            - "array"
            - "null"
          maxItems: 16
          description: "With exchange darvas: the exchanges the context's candles combine when venues narrowed them, null when they combine all of them. Absent for one exchange."
          items:
            type: "string"
            pattern: "^[a-z0-9][a-z0-9-]{0,31}$"
            maxLength: 32
          examples:
            - null
        observed_at:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When Darvas read the context."
          examples:
            - "2026-11-28T12:00:00.000Z"
        price:
          $ref: "#/components/schemas/ContextPrice"
        windows:
          $ref: "#/components/schemas/ContextWindows"
        hourly_bars:
          type:
            - "array"
            - "null"
          maxItems: 25
          description: "The day as UTC hours, oldest first; null with include_hourly_bars false."
          items:
            $ref: "#/components/schemas/ContextHourlyBar"
        derivatives:
          description: "Funding and open interest; null for spot."
          anyOf:
            - $ref: "#/components/schemas/ContextDerivatives"
            - type: "null"
        macro:
          description: "Macro releases; null with include_macro false or while the calendar is unavailable."
          anyOf:
            - $ref: "#/components/schemas/ContextMacro"
            - type: "null"
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          market_type: "swap"
          observed_at: "2026-11-28T12:00:00.000Z"
          price:
            last: 97811.4
            time: "2026-11-28T11:55:00.000Z"
            time_milliseconds: 1795866900000
            bar_interval: "5m"
            last_bar_closed: false
          windows:
            last_1h:
              from: "2026-11-28T11:00:00.000Z"
              to: "2026-11-28T11:55:00.000Z"
              bars: 12
              change_percent: 0.42
              high: 97990
              high_time: "2026-11-28T11:35:00.000Z"
              low: 97302.6
              low_time: "2026-11-28T11:05:00.000Z"
            last_4h:
              from: "2026-11-28T08:00:00.000Z"
              to: "2026-11-28T11:55:00.000Z"
              bars: 12
              change_percent: 0.42
              high: 97990
              high_time: "2026-11-28T11:35:00.000Z"
              low: 97302.6
              low_time: "2026-11-28T11:05:00.000Z"
            last_24h:
              from: "2026-11-27T12:00:00.000Z"
              to: "2026-11-28T11:55:00.000Z"
              bars: 12
              change_percent: 0.42
              high: 97990
              high_time: "2026-11-28T11:35:00.000Z"
              low: 97302.6
              low_time: "2026-11-28T11:05:00.000Z"
          hourly_bars:
            - time: "2026-11-28T11:00:00.000Z"
              open: 97401.2
              high: 97990
              low: 97302.6
              close: 97811.4
              volume: 1204.36
          derivatives:
            total_open_interest_usd: 3120440211.2
            venues:
              - exchange: "okx"
                ticker: "BTC-USDT-SWAP"
                funding_rate: 0.0001
                next_funding_rate: null
                next_funding_time: "2026-11-28T16:00:00.000Z"
                funding_interval_hours: null
                open_interest_usd: 3120440211.2
                open_interest_time: "2026-11-28T11:00:00.000Z"
                open_interest_change_pct_1h: 0.35
                open_interest_change_pct_4h: 1.12
                open_interest_change_pct_24h: -2.08
          macro:
            past_hours: 24
            future_hours: 48
            releases:
              - event_name: "Nonfarm Payrolls"
                currency: "USD"
                country_name: "United States"
                importance: "high"
                release_at: "2026-12-04T13:30:00.000Z"
                released: false
                actual: null
                forecast: "180K"
                previous: "150K"
    CryptoIndexPrice:
      type: "object"
      description: "One candle of a composite index."
      additionalProperties: false
      required:
        - "open"
        - "high"
        - "low"
        - "close"
        - "confirmed"
        - "time"
        - "time_milliseconds"
      properties:
        open:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index candle's first price."
          examples:
            - 97401.2
        high:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index candle's highest price."
          examples:
            - 97990
        low:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index candle's lowest price."
          examples:
            - 97302.6
        close:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index candle's last price."
          examples:
            - 97811.4
        confirmed:
          type: "boolean"
          description: "Whether the index candle has closed."
          examples:
            - false
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "The index candle's open."
          examples:
            - "2026-11-28T11:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "The index candle's open in Unix milliseconds."
          examples:
            - 1795863600000
      examples:
        - open: 97401.2
          high: 97990
          low: 97302.6
          close: 97811.4
          confirmed: false
          time: "2026-11-28T11:00:00.000Z"
          time_milliseconds: 1795863600000
    CryptoIndexPricesResponse:
      type: "object"
      description: "The answer of GET /crypto/index/prices."
      additionalProperties: false
      required:
        - "index"
        - "interval"
        - "prices"
      properties:
        index:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 31
          description: "The index of the candles."
          examples:
            - "BTC-USD"
        interval:
          type: "string"
          enum:
            - "1m"
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "4H"
            - "1D"
            - "1W"
          description: "The frame of the index candles."
          examples:
            - "1H"
        prices:
          type: "array"
          maxItems: 100
          description: "The index candles, oldest first."
          items:
            $ref: "#/components/schemas/CryptoIndexPrice"
      examples:
        - index: "BTC-USD"
          interval: "1H"
          prices:
            - open: 97401.2
              high: 97990
              low: 97302.6
              close: 97811.4
              confirmed: false
              time: "2026-11-28T11:00:00.000Z"
              time_milliseconds: 1795863600000
    CryptoIndexTicker:
      type: "object"
      description: "One composite index's latest price."
      additionalProperties: false
      required:
        - "index"
        - "price"
        - "open_24h"
        - "high_24h"
        - "low_24h"
        - "change_24h_percent"
        - "open_utc_day"
        - "change_utc_day_percent"
        - "time"
        - "time_milliseconds"
      properties:
        index:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 31
          description: "The composite index's name."
          examples:
            - "BTC-USD"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The composite index's latest price."
          examples:
            - 97811.4
        open_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index price 24 hours ago."
          examples:
            - 96520.1
        high_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index's 24-hour high."
          examples:
            - 98240
        low_24h:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index's 24-hour low."
          examples:
            - 95910.2
        change_24h_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index's change over 24 hours, in percent."
          examples:
            - 1.34
        open_utc_day:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index price when the UTC day began."
          examples:
            - 97020.5
        change_utc_day_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The index's change since the UTC day began, in percent."
          examples:
            - 0.82
        time:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "When the index price was read."
          examples:
            - "2026-11-28T12:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "When the index price was read, in Unix milliseconds."
          examples:
            - 1795867200000
      examples:
        - index: "BTC-USD"
          price: 97811.4
          open_24h: 96520.1
          high_24h: 98240
          low_24h: 95910.2
          change_24h_percent: 1.34
          open_utc_day: 97020.5
          change_utc_day_percent: 0.82
          time: "2026-11-28T12:00:00.000Z"
          time_milliseconds: 1795867200000
    CryptoIndexSnapshotResponse:
      type: "object"
      description: "The answer of GET /crypto/index/snapshot."
      additionalProperties: false
      required:
        - "index"
        - "quote_currency"
        - "indices"
      properties:
        index:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 31
          description: "The index asked for, null for a quote currency's."
          examples:
            - null
        quote_currency:
          type:
            - "string"
            - "null"
          enum:
            - "USD"
            - "USDT"
            - "USDC"
            - "BTC"
            - null
          description: "The quote currency of the indices asked for."
          examples:
            - "USD"
        indices:
          type: "array"
          maxItems: 2000
          description: "The indices, by name."
          items:
            $ref: "#/components/schemas/CryptoIndexTicker"
      examples:
        - index: null
          quote_currency: "USD"
          indices:
            - index: "BTC-USD"
              price: 97811.4
              open_24h: 96520.1
              high_24h: 98240
              low_24h: 95910.2
              change_24h_percent: 1.34
              open_utc_day: 97020.5
              change_utc_day_percent: 0.82
              time: "2026-11-28T12:00:00.000Z"
              time_milliseconds: 1795867200000
    CryptoDerivativesSnapshot:
      type: "object"
      description: "Live funding, open interest, mark price, index price, and basis snapshot for one crypto derivatives contract."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "observed_at"
        - "observed_at_milliseconds"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$"
          maxLength: 64
          description: "Canonical contract identifier resolved for this live derivatives snapshot."
          examples:
            - "BTC-USDT-SWAP"
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "Derivatives exchange that supplied this live contract snapshot."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "swap"
            - "futures"
          description: "Contract market type of the live derivatives snapshot: swap or futures."
          examples:
            - "swap"
        funding_rate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current funding rate paid or accrued at the upcoming settlement, as a decimal fraction."
          examples:
            - 0.00012
        next_funding_rate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Predicted funding rate for the next settlement cycle when the venue publishes one, otherwise null."
          examples:
            - 0.00014
        funding_interval_hours:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Hours between consecutive funding settlements for this derivatives contract."
          examples:
            - 8
        next_funding_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 30
          description: "UTC timestamp of the next scheduled funding settlement for this derivatives snapshot."
          examples:
            - "2026-11-29T16:00:00.000Z"
        next_funding_time_milliseconds:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "Next scheduled funding settlement time in Unix milliseconds for this derivatives snapshot."
          examples:
            - 1795968000000
        funding_countdown_seconds:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 604800
          description: "Seconds remaining until the next scheduled funding settlement."
          examples:
            - 5400
        open_interest_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Live open interest in native exchange contracts when the venue reports fixed contract units, otherwise null."
          examples:
            - 3150000
        open_interest_base:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Live open interest denominated in the underlying base asset for this derivatives snapshot."
          examples:
            - 31500
        open_interest_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Live open interest notional value in US dollars for this derivatives snapshot."
          examples:
            - 3081015000
        mark_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Live contract mark price in quote currency used for margin and liquidation valuation."
          examples:
            - 97810
        index_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Live underlying spot or oracle index price referenced by this derivatives contract."
          examples:
            - 97795.5
        basis:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Live mark price minus underlying index price for this derivatives contract."
          examples:
            - 14.5
        basis_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Live mark-index basis expressed in basis points relative to the index price."
          examples:
            - 1.4827
        observed_at:
          type: "string"
          format: "date-time"
          maxLength: 30
          description: "UTC timestamp when Darvas assembled this live derivatives snapshot."
          examples:
            - "2026-11-29T14:30:00.000Z"
        observed_at_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "Unix milliseconds timestamp when Darvas assembled this live derivatives snapshot."
          examples:
            - 1795962600000
      examples:
        - ticker: "BTC-USDT-SWAP"
          exchange: "okx"
          market_type: "swap"
          funding_rate: 0.00012
          next_funding_rate: 0.00014
          funding_interval_hours: 8
          next_funding_time: "2026-11-29T16:00:00.000Z"
          next_funding_time_milliseconds: 1795968000000
          funding_countdown_seconds: 5400
          open_interest_contracts: 3150000
          open_interest_base: 31500
          open_interest_usd: 3081015000
          mark_price: 97810
          index_price: 97795.5
          basis: 14.5
          basis_bps: 1.4827
          observed_at: "2026-11-29T14:30:00.000Z"
          observed_at_milliseconds: 1795962600000
    CryptoDerivativesSnapshotResponse:
      type: "object"
      description: "The answer of GET /crypto/derivatives/snapshot."
      additionalProperties: false
      required:
        - "snapshot"
      properties:
        snapshot:
          $ref: "#/components/schemas/CryptoDerivativesSnapshot"
      examples:
        - snapshot:
            ticker: "BTC-USDT-SWAP"
            exchange: "okx"
            market_type: "swap"
            funding_rate: 0.00012
            next_funding_rate: 0.00014
            funding_interval_hours: 8
            next_funding_time: "2026-11-29T16:00:00.000Z"
            next_funding_time_milliseconds: 1795968000000
            funding_countdown_seconds: 5400
            open_interest_contracts: 3150000
            open_interest_base: 31500
            open_interest_usd: 3081015000
            mark_price: 97810
            index_price: 97795.5
            basis: 14.5
            basis_bps: 1.4827
            observed_at: "2026-11-29T14:30:00.000Z"
            observed_at_milliseconds: 1795962600000
    TokenizedStockPricePoint:
      type: "object"
      description: "One historical tokenized stock price observation."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "price"
        - "shares_per_token"
        - "price_per_share"
        - "nav_price"
        - "nav_updated_at"
        - "gap_percent"
        - "pool_address"
        - "pool_venue"
        - "pool_usdc"
        - "pool_fee_percent"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "UTC timestamp of the price observation."
          examples:
            - "2026-11-26T09:42:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "Observation timestamp in Unix milliseconds."
          examples:
            - 1795686120000
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Observed price of one token in USD."
          examples:
            - 148.62
        shares_per_token:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Underlying share ratio per token unit."
          examples:
            - 1.000538
        price_per_share:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Token price divided by shares_per_token."
          examples:
            - 148.54
        nav_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The stock's reference price per share in USD: a Base token's published NAV at observation time; for OKX and Bybit, the stock's last daily close, outside US regular hours only, as no minute price of the stock is stored; null otherwise."
          examples:
            - 149.115172
        nav_updated_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "UTC timestamp when the NAV feed last updated, or when the close's session ended."
          examples:
            - "2026-11-25T21:00:00.000Z"
        gap_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percentage spread of price_per_share versus nav_price."
          examples:
            - -0.3856
        pool_address:
          type:
            - "string"
            - "null"
          pattern: "^0x[0-9a-f]{40}$"
          maxLength: 42
          description: "Base USDC pool contract address, or null on centralized venues."
          examples:
            - "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
        pool_venue:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Pool protocol or exchange name for the price reading."
          examples:
            - "aerodrome"
        pool_usdc:
          type:
            - "number"
            - "null"
          format: "double"
          description: "USDC depth held in the pricing pool, or null on centralized venues."
          examples:
            - 557129.41
        pool_fee_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Pool swap fee in percent, or null on centralized venues."
          examples:
            - 0.1122
      examples:
        - time: "2026-11-26T09:42:00.000Z"
          time_milliseconds: 1795686120000
          price: 148.62
          shares_per_token: 1.000538
          price_per_share: 148.54
          nav_price: 149.115172
          nav_updated_at: "2026-11-25T21:00:00.000Z"
          gap_percent: -0.3856
          pool_address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
          pool_venue: "aerodrome"
          pool_usdc: 557129.41
          pool_fee_percent: 0.1122
    TokenizedStockPricesResponse:
      type: "object"
      description: "The answer of GET /tokenized-stocks/prices."
      additionalProperties: false
      required:
        - "ticker"
        - "venue"
        - "market_type"
        - "instrument"
        - "chain"
        - "address"
        - "name"
        - "isin"
        - "prices"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9.-]{1,24}$"
          maxLength: 24
          description: "Resolved tokenized stock ticker for tokenized stock price history."
          examples:
            - "NVDAc"
        resolved_from:
          $ref: "#/components/schemas/TokenizedStockSnapshot/properties/resolved_from"
        venue:
          type: "string"
          enum:
            - "okx"
            - "bybit"
            - "base"
          description: "Venue where the instrument in tokenized stock price history trades."
          examples:
            - "base"
        market_type:
          type: "string"
          enum:
            - "swap"
            - "spot"
            - "token"
          description: "Market type of the tokenized instrument in tokenized stock price history."
          examples:
            - "token"
        instrument:
          type: "string"
          pattern: "^[A-Za-z0-9:.-]{1,64}$"
          maxLength: 64
          description: "Venue instrument identifier for tokenized stock price history."
          examples:
            - "0xb20000000000000000000078ee7ce2fe4908108c"
        chain:
          type:
            - "string"
            - "null"
          enum:
            - "base"
            - null
          description: "Blockchain name for Base tokens in tokenized stock price history; null on centralized venues."
          examples:
            - "base"
        address:
          type:
            - "string"
            - "null"
          pattern: "^0x[0-9a-f]{40}$"
          maxLength: 42
          description: "Lowercase Base token contract address for tokenized stock price history."
          examples:
            - "0xb20000000000000000000078ee7ce2fe4908108c"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Underlying equity name for Base tokens in tokenized stock price history."
          examples:
            - "NVIDIA"
        isin:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]{2}[A-Z0-9]{9}[0-9]$"
          maxLength: 12
          description: "Underlying equity ISIN for tokenized stock price history."
          examples:
            - "US67066G1040"
        prices:
          type: "array"
          maxItems: 1000
          description: "Historical tokenized stock price points, newest first."
          items:
            $ref: "#/components/schemas/TokenizedStockPricePoint"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "Next page of older tokenized stock price observations; absent on the last page."
          examples:
            - "https://api.darvas.app/v1/tokenized-stocks/prices?cursor=eyJsaW1pdCI6MjAwfQ"
      examples:
        - ticker: "NVDAc"
          venue: "base"
          market_type: "token"
          instrument: "0xb20000000000000000000078ee7ce2fe4908108c"
          chain: "base"
          address: "0xb20000000000000000000078ee7ce2fe4908108c"
          name: "NVIDIA"
          isin: "US67066G1040"
          prices:
            - time: "2026-11-26T09:42:00.000Z"
              time_milliseconds: 1795686120000
              price: 148.62
              shares_per_token: 1.000538
              price_per_share: 148.54
              nav_price: 149.115172
              nav_updated_at: "2026-11-25T21:00:00.000Z"
              gap_percent: -0.3856
              pool_address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
              pool_venue: "aerodrome"
              pool_usdc: 557129.41
              pool_fee_percent: 0.1122
    TokenizedStockTradePoint:
      type: "object"
      description: "One historical tokenized stock trade execution."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "side"
        - "price"
        - "size_usd"
        - "pool_address"
        - "transaction"
        - "log_index"
        - "block"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "UTC timestamp when the tokenized stock trade executed."
          examples:
            - "2026-11-26T09:41:13.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "Trade execution timestamp in Unix milliseconds."
          examples:
            - 1795686073000
        side:
          type: "string"
          enum:
            - "buy"
            - "sell"
          description: "Trade direction: buy when the trader acquired the stock token."
          examples:
            - "buy"
        price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Executed price per token in USD."
          examples:
            - 148.7
        size_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Trade notional value in USD."
          examples:
            - 1250.5
        pool_address:
          type:
            - "string"
            - "null"
          pattern: "^0x[0-9a-f]{40}$"
          maxLength: 42
          description: "Pool address where a Base swap executed; null on exchanges."
          examples:
            - "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
        transaction:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "On-chain transaction hash on Base, or exchange trade id."
          examples:
            - "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
        log_index:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "Swap event log index inside the Base transaction; null on exchanges."
          examples:
            - 42
        block:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 9999999999999
          description: "Base block number containing the swap; null on exchanges."
          examples:
            - 23456789
      examples:
        - time: "2026-11-26T09:41:13.000Z"
          time_milliseconds: 1795686073000
          side: "buy"
          price: 148.7
          size_usd: 1250.5
          pool_address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
          transaction: "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
          log_index: 42
          block: 23456789
    TokenizedStockTradesResponse:
      type: "object"
      description: "The answer of GET /tokenized-stocks/trades."
      additionalProperties: false
      required:
        - "ticker"
        - "venue"
        - "market_type"
        - "instrument"
        - "chain"
        - "address"
        - "name"
        - "isin"
        - "trades"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Za-z0-9.-]{1,24}$"
          maxLength: 24
          description: "Resolved tokenized stock ticker for tokenized stock trade history."
          examples:
            - "NVDAc"
        resolved_from:
          $ref: "#/components/schemas/TokenizedStockSnapshot/properties/resolved_from"
        venue:
          type: "string"
          enum:
            - "okx"
            - "bybit"
            - "base"
          description: "Venue where the instrument in tokenized stock trade history trades."
          examples:
            - "base"
        market_type:
          type: "string"
          enum:
            - "swap"
            - "spot"
            - "token"
          description: "Market type of the tokenized instrument in tokenized stock trade history."
          examples:
            - "token"
        instrument:
          type: "string"
          pattern: "^[A-Za-z0-9:.-]{1,64}$"
          maxLength: 64
          description: "Venue instrument identifier for tokenized stock trade history."
          examples:
            - "0xb20000000000000000000078ee7ce2fe4908108c"
        chain:
          type:
            - "string"
            - "null"
          enum:
            - "base"
            - null
          description: "Blockchain name for Base tokens in tokenized stock trade history; null on centralized venues."
          examples:
            - "base"
        address:
          type:
            - "string"
            - "null"
          pattern: "^0x[0-9a-f]{40}$"
          maxLength: 42
          description: "Lowercase Base token contract address for tokenized stock trade history."
          examples:
            - "0xb20000000000000000000078ee7ce2fe4908108c"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Underlying equity name for Base tokens in tokenized stock trade history."
          examples:
            - "NVIDIA"
        isin:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z]{2}[A-Z0-9]{9}[0-9]$"
          maxLength: 12
          description: "Underlying equity ISIN for tokenized stock trade history."
          examples:
            - "US67066G1040"
        trades:
          type: "array"
          maxItems: 1000
          description: "Historical tokenized stock trades, newest first."
          items:
            $ref: "#/components/schemas/TokenizedStockTradePoint"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "Next page of older tokenized stock trades; absent on the last page."
          examples:
            - "https://api.darvas.app/v1/tokenized-stocks/trades?cursor=eyJsaW1pdCI6MjAwfQ"
      examples:
        - ticker: "NVDAc"
          venue: "base"
          market_type: "token"
          instrument: "0xb20000000000000000000078ee7ce2fe4908108c"
          chain: "base"
          address: "0xb20000000000000000000078ee7ce2fe4908108c"
          name: "NVIDIA"
          isin: "US67066G1040"
          trades:
            - time: "2026-11-26T09:41:13.000Z"
              time_milliseconds: 1795686073000
              side: "buy"
              price: 148.7
              size_usd: 1250.5
              pool_address: "0xf668e21993f0acd7ab00bb1cfbaed0df28a3c8ec"
              transaction: "0x5d3cfd2bc0b8a8a3fbd64e44b1f51c0f4e3a4f8b3d2b47a1b3a0f09dfb6d9e21"
              log_index: 42
              block: 23456789
    XbrlFactEntry:
      type: "object"
      description: "One raw SEC EDGAR XBRL company fact row."
      additionalProperties: false
      required:
        - "cik"
        - "taxonomy"
        - "tag"
        - "unit"
        - "period_start"
        - "period_end"
        - "value"
        - "accession_number"
        - "fiscal_year"
        - "fiscal_period"
        - "form"
        - "filed"
        - "frame"
        - "filing_url"
      properties:
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded CIK of the filing entity."
          examples:
            - "0000320193"
        taxonomy:
          type: "string"
          enum:
            - "us-gaap"
            - "ifrs-full"
            - "dei"
          description: "XBRL taxonomy namespace of the reported fact."
          examples:
            - "us-gaap"
        tag:
          type: "string"
          pattern: "^[A-Za-z][A-Za-z0-9_]{0,199}$"
          maxLength: 200
          description: "XBRL concept tag name."
          examples:
            - "LongTermDebtNoncurrent"
        unit:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Measurement unit of the XBRL fact value."
          examples:
            - "USD"
        period_start:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "Start date of a duration fact; null for balance-sheet instants."
          examples:
            - "2025-09-28"
        period_end:
          type: "string"
          format: "date"
          maxLength: 10
          description: "End date or instant date of the XBRL fact."
          examples:
            - "2026-09-26"
        value:
          type: "number"
          format: "double"
          description: "Numeric value reported in the XBRL filing."
          examples:
            - 68208000000
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          maxLength: 25
          description: "SEC accession number of the filing reporting this fact."
          examples:
            - "0000320193-26-000105"
        fiscal_year:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 1900
          maximum: 2200
          description: "Fiscal year tag reported by SEC for this fact."
          examples:
            - 2026
        fiscal_period:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 12
          description: "Fiscal period label such as FY, Q1, Q2, Q3, or Q4."
          examples:
            - "FY"
        form:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "SEC form type containing this fact, such as 10-K or 10-Q."
          examples:
            - "10-K"
        filed:
          type: "string"
          format: "date"
          maxLength: 10
          description: "Date SEC received the filing containing this fact."
          examples:
            - "2026-10-31"
        frame:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "SEC calendarized frame identifier such as CY2026Q3I; null when absent."
          examples:
            - "CY2026Q3I"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "SEC EDGAR index page URL for this fact's filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
      examples:
        - cik: "0000320193"
          taxonomy: "us-gaap"
          tag: "LongTermDebtNoncurrent"
          unit: "USD"
          period_start: null
          period_end: "2026-09-26"
          value: 68208000000
          accession_number: "0000320193-26-000105"
          fiscal_year: 2026
          fiscal_period: "FY"
          form: "10-K"
          filed: "2026-10-31"
          frame: "CY2026Q3I"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
    XbrlFactsResponse:
      type: "object"
      description: "The answer of GET /financials/xbrl-facts."
      additionalProperties: false
      required:
        - "ticker"
        - "cik"
        - "facts"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          maxLength: 12
          description: "Resolved stock ticker of the XBRL facts company."
          examples:
            - "AAPL"
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Zero-padded ten-digit CIK of the XBRL facts company."
          examples:
            - "0000320193"
        facts:
          type: "array"
          maxItems: 1000
          description: "This page of raw SEC XBRL facts, newest period_end first."
          items:
            $ref: "#/components/schemas/XbrlFactEntry"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "Next page of older SEC XBRL facts; absent on the last page."
          examples:
            - "https://api.darvas.app/v1/financials/xbrl-facts?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - ticker: "AAPL"
          cik: "0000320193"
          facts:
            - cik: "0000320193"
              taxonomy: "us-gaap"
              tag: "LongTermDebtNoncurrent"
              unit: "USD"
              period_start: null
              period_end: "2026-09-26"
              value: 68208000000
              accession_number: "0000320193-26-000105"
              fiscal_year: 2026
              fiscal_period: "FY"
              form: "10-K"
              filed: "2026-10-31"
              frame: "CY2026Q3I"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
    DebtMaturityShare:
      type: "object"
      description: "Percentage share of total scheduled maturities falling in each maturity bucket."
      additionalProperties: false
      required:
        - "year_1"
        - "year_2"
        - "year_3"
        - "year_4"
        - "year_5"
        - "thereafter"
      properties:
        year_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of total scheduled maturities due in year 1."
          examples:
            - 12.68
        year_2:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of total scheduled maturities due in year 2."
          examples:
            - 14.34
        year_3:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of total scheduled maturities due in year 3."
          examples:
            - 13.44
        year_4:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of total scheduled maturities due in year 4."
          examples:
            - 11.2
        year_5:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of total scheduled maturities due in year 5."
          examples:
            - 9.6
        thereafter:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of total scheduled maturities due after year 5."
          examples:
            - 38.74
      examples:
        - year_1: 12.68
          year_2: 14.34
          year_3: 13.44
          year_4: 11.2
          year_5: 9.6
          thereafter: 38.74
    DebtScheduleSourceTags:
      type: "object"
      description: "Exact XBRL tags or composite formulas used to populate each debt schedule field."
      additionalProperties: false
      required:
        - "year_1"
        - "year_2"
        - "year_3"
        - "year_4"
        - "year_5"
        - "thereafter"
        - "short_term_debt"
        - "long_term_debt"
        - "total_debt"
      properties:
        year_1:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Source XBRL tag used for year_1 maturities."
          examples:
            - "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"
        year_2:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Source XBRL tag used for year_2 maturities."
          examples:
            - "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"
        year_3:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Source XBRL tag used for year_3 maturities."
          examples:
            - "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"
        year_4:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Source XBRL tag used for year_4 maturities."
          examples:
            - "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"
        year_5:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Source XBRL tag used for year_5 maturities."
          examples:
            - "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"
        thereafter:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 240
          description: "Source XBRL tag used for maturities after year 5."
          examples:
            - "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"
        short_term_debt:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Source XBRL tag or sum used for short_term_debt."
          examples:
            - "us-gaap:CommercialPaper+us-gaap:LongTermDebtCurrent"
        long_term_debt:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Source XBRL tag or difference used for long_term_debt."
          examples:
            - "us-gaap:LongTermDebtNoncurrent"
        total_debt:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Source XBRL tag or formula used for total_debt."
          examples:
            - "computed:short_term_debt+long_term_debt"
      examples:
        - year_1: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"
          year_2: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"
          year_3: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"
          year_4: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"
          year_5: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"
          thereafter: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"
          short_term_debt: "us-gaap:CommercialPaper+us-gaap:LongTermDebtCurrent"
          long_term_debt: "us-gaap:LongTermDebtNoncurrent"
          total_debt: "computed:short_term_debt+long_term_debt"
    DebtScheduleEntry:
      type: "object"
      description: "One filing's standardized 5-year plus thereafter debt maturity ladder and debt balances."
      additionalProperties: false
      required:
        - "accession_number"
        - "form"
        - "filed"
        - "report_date"
        - "currency"
        - "filing_url"
        - "year_1"
        - "year_2"
        - "year_3"
        - "year_4"
        - "year_5"
        - "thereafter"
        - "total_maturities"
        - "short_term_debt"
        - "long_term_debt"
        - "total_debt"
        - "weighted_average_maturity_years"
        - "share_by_year"
        - "source_tags"
      properties:
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          maxLength: 25
          description: "SEC accession number of the debt schedule filing."
          examples:
            - "0000320193-26-000105"
        form:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "SEC form type of the debt schedule filing."
          examples:
            - "10-K"
        filed:
          type: "string"
          format: "date"
          maxLength: 10
          description: "SEC filing date of the debt schedule report."
          examples:
            - "2026-10-31"
        report_date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "Balance-sheet period end date of the debt schedule."
          examples:
            - "2026-09-26"
        currency:
          type: "string"
          pattern: "^[A-Z]{3}$"
          maxLength: 3
          description: "ISO 4217 currency code of the debt schedule amounts."
          examples:
            - "USD"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "SEC EDGAR index page URL for the debt schedule filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
        year_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Principal repayments due in the next twelve months."
          examples:
            - 9906000000
        year_2:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Principal repayments due in year two."
          examples:
            - 11200000000
        year_3:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Principal repayments due in year three."
          examples:
            - 10500000000
        year_4:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Principal repayments due in year four."
          examples:
            - 8750000000
        year_5:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Principal repayments due in year five."
          examples:
            - 7500000000
        thereafter:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Principal repayments due after year five."
          examples:
            - 30258000000
        total_maturities:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Sum of reported maturity buckets from year_1 through thereafter."
          examples:
            - 78114000000
        short_term_debt:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Balance-sheet current debt and short-term borrowings."
          examples:
            - 13824000000
        long_term_debt:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Balance-sheet noncurrent long-term debt."
          examples:
            - 68208000000
        total_debt:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Combined short-term and long-term balance-sheet debt."
          examples:
            - 82032000000
        weighted_average_maturity_years:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Estimated weighted-average maturity in years using bucket midpoints (0.5, 1.5, 2.5, 3.5, 4.5, and 7.5 years)."
          examples:
            - 4.42
        share_by_year:
          $ref: "#/components/schemas/DebtMaturityShare"
        source_tags:
          $ref: "#/components/schemas/DebtScheduleSourceTags"
      examples:
        - accession_number: "0000320193-26-000105"
          form: "10-K"
          filed: "2026-10-31"
          report_date: "2026-09-26"
          currency: "USD"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
          year_1: 9906000000
          year_2: 11200000000
          year_3: 10500000000
          year_4: 8750000000
          year_5: 7500000000
          thereafter: 30258000000
          total_maturities: 78114000000
          short_term_debt: 13824000000
          long_term_debt: 68208000000
          total_debt: 82032000000
          weighted_average_maturity_years: 4.42
          share_by_year:
            year_1: 12.68
            year_2: 14.34
            year_3: 13.44
            year_4: 11.2
            year_5: 9.6
            thereafter: 38.74
          source_tags:
            year_1: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"
            year_2: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"
            year_3: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"
            year_4: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"
            year_5: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"
            thereafter: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"
            short_term_debt: "us-gaap:CommercialPaper+us-gaap:LongTermDebtCurrent"
            long_term_debt: "us-gaap:LongTermDebtNoncurrent"
            total_debt: "computed:short_term_debt+long_term_debt"
    DebtScheduleResponse:
      type: "object"
      description: "The answer of GET /financials/debt-schedule."
      additionalProperties: false
      required:
        - "ticker"
        - "cik"
        - "period"
        - "debt_schedules"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          maxLength: 12
          description: "Resolved stock ticker for the debt schedule company."
          examples:
            - "AAPL"
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Zero-padded ten-digit CIK for the debt schedule company."
          examples:
            - "0000320193"
        period:
          type: "string"
          enum:
            - "annual"
            - "quarterly"
            - "latest"
          description: "Requested filing cadence for the debt schedules."
          examples:
            - "latest"
        debt_schedules:
          type: "array"
          maxItems: 20
          description: "Debt maturity schedules per filing, newest report_date first."
          items:
            $ref: "#/components/schemas/DebtScheduleEntry"
      examples:
        - ticker: "AAPL"
          cik: "0000320193"
          period: "latest"
          debt_schedules:
            - accession_number: "0000320193-26-000105"
              form: "10-K"
              filed: "2026-10-31"
              report_date: "2026-09-26"
              currency: "USD"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000105/0000320193-26-000105-index.htm"
              year_1: 9906000000
              year_2: 11200000000
              year_3: 10500000000
              year_4: 8750000000
              year_5: 7500000000
              thereafter: 30258000000
              total_maturities: 78114000000
              short_term_debt: 13824000000
              long_term_debt: 68208000000
              total_debt: 82032000000
              weighted_average_maturity_years: 4.42
              share_by_year:
                year_1: 12.68
                year_2: 14.34
                year_3: 13.44
                year_4: 11.2
                year_5: 9.6
                thereafter: 38.74
              source_tags:
                year_1: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"
                year_2: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"
                year_3: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"
                year_4: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour"
                year_5: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive"
                thereafter: "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive"
                short_term_debt: "us-gaap:CommercialPaper+us-gaap:LongTermDebtCurrent"
                long_term_debt: "us-gaap:LongTermDebtNoncurrent"
                total_debt: "computed:short_term_debt+long_term_debt"
    PredictionMarketSeriesEntry:
      type: "object"
      description: "Normalized prediction market event series or venue category group."
      additionalProperties: false
      required:
        - "venue"
        - "series_id"
        - "title"
        - "category"
        - "frequency"
        - "underlying"
        - "settlement_method"
        - "settlement_source"
        - "close_early"
        - "market_count"
      properties:
        venue:
          type: "string"
          enum:
            - "polymarket"
            - "kalshi"
            - "okx"
          description: "Prediction market venue publishing the series."
          examples:
            - "okx"
        series_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 128
          description: "Venue-specific event series identifier."
          examples:
            - "BTC_USD_DAILY"
        title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Human-readable title of the event series."
          examples:
            - "BTC daily price range"
        category:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Event series category label, or null when uncategorized."
          examples:
            - "Crypto"
        frequency:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Contract recurrence cadence such as daily or weekly; null when unscheduled."
          examples:
            - "daily"
        underlying:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Underlying reference asset or index symbol; null for non-price events."
          examples:
            - "BTC-USD"
        settlement_method:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "Settlement calculation method reported by the venue."
          examples:
            - "expiry_price"
        settlement_source:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Authoritative price or outcome settlement source."
          examples:
            - "OKX Index"
        close_early:
          type:
            - "boolean"
            - "null"
          description: "Whether contracts in this series can settle before scheduled expiry."
          examples:
            - false
        market_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Count of active contracts in derived venue category series; null for native OKX catalog entries."
          examples:
            - null
      examples:
        - venue: "okx"
          series_id: "BTC_USD_DAILY"
          title: "BTC daily price range"
          category: "Crypto"
          frequency: "daily"
          underlying: "BTC-USD"
          settlement_method: "expiry_price"
          settlement_source: "OKX Index"
          close_early: false
          market_count: null
    PredictionMarketSeriesResponse:
      type: "object"
      description: "The answer of GET /prediction-markets/series."
      additionalProperties: false
      required:
        - "series"
      properties:
        series:
          type: "array"
          maxItems: 200
          description: "Normalized prediction market event series."
          items:
            $ref: "#/components/schemas/PredictionMarketSeriesEntry"
      examples:
        - series:
            - venue: "okx"
              series_id: "BTC_USD_DAILY"
              title: "BTC daily price range"
              category: "Crypto"
              frequency: "daily"
              underlying: "BTC-USD"
              settlement_method: "expiry_price"
              settlement_source: "OKX Index"
              close_early: false
              market_count: null
    FormDExemption:
      type: "object"
      description: "A federal exemption or exclusion a Form D claims."
      additionalProperties: false
      required:
        - "code"
        - "name"
      properties:
        code:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The code as SEC's XML writes it."
          examples:
            - "06b"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The rule it names; null for a code the form does not list."
          examples:
            - "Rule 506(b)"
      examples:
        - code: "06b"
          name: "Rule 506(b)"
    FormDRelatedPerson:
      type: "object"
      description: "An executive officer, director or promoter of the issuer: the name and roles the notice lists, never an address."
      additionalProperties: false
      required:
        - "name"
        - "relationships"
        - "clarification"
      properties:
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The person or entity, as filed."
          examples:
            - "Avery J. Quill"
        relationships:
          type: "array"
          maxItems: 3
          description: "Executive Officer, Director or Promoter."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 50
          examples:
            - - "Executive Officer"
        clarification:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The role in the filer's words."
          examples:
            - "Chief Executive Officer"
      examples:
        - name: "Avery J. Quill"
          relationships:
            - "Executive Officer"
            - "Director"
          clarification: "Chief Executive Officer"
    FormDSalesRecipient:
      type: "object"
      description: "A broker or finder paid for sales in the offering."
      additionalProperties: false
      required:
        - "name"
        - "crd_number"
        - "broker_dealer"
        - "broker_dealer_crd_number"
        - "states_of_solicitation"
        - "all_states"
        - "foreign_solicitation"
      properties:
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The recipient, as filed."
          examples:
            - "Example Capital Markets LLC"
        crd_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The recipient's CRD number at FINRA."
          examples:
            - "123456"
        broker_dealer:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The broker-dealer the recipient works with."
          examples:
            - "Example Securities Corp."
        broker_dealer_crd_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "That broker-dealer's CRD number."
          examples:
            - "654321"
        states_of_solicitation:
          type: "array"
          maxItems: 60
          description: "The states the recipient solicits in."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2
          examples:
            - - "CA"
              - "NY"
        all_states:
          type: "boolean"
          description: "The recipient solicits in every state."
          examples:
            - false
        foreign_solicitation:
          type: "boolean"
          description: "The recipient solicits outside the United States."
          examples:
            - false
      examples:
        - name: "Example Capital Markets LLC"
          crd_number: "123456"
          broker_dealer: null
          broker_dealer_crd_number: null
          states_of_solicitation:
            - "CA"
            - "MA"
            - "NY"
          all_states: false
          foreign_solicitation: false
    FormDOffering:
      type: "object"
      description: "One Form D or D/A notice of a private offering."
      additionalProperties: false
      required:
        - "ticker"
        - "issuer_name"
        - "issuer_cik"
        - "co_issuer_ciks"
        - "form_type"
        - "is_amendment"
        - "replaces_accession_number"
        - "filing_date"
        - "accession_number"
        - "filing_url"
        - "details_available"
        - "entity_type"
        - "jurisdiction_of_incorporation"
        - "incorporation_age"
        - "year_of_incorporation"
        - "issuer_city"
        - "issuer_state_or_country"
        - "issuer_state_or_country_name"
        - "industry_group"
        - "industry_group_id"
        - "industry_sector"
        - "investment_fund_type"
        - "revenue_range"
        - "net_asset_value_range"
        - "federal_exemptions"
        - "securities_offered"
        - "other_securities_description"
        - "is_business_combination"
        - "first_sale_date"
        - "first_sale_yet_to_occur"
        - "offering_more_than_one_year"
        - "minimum_investment_usd"
        - "total_offering_amount_usd"
        - "total_offering_amount_indefinite"
        - "total_amount_sold_usd"
        - "total_remaining_usd"
        - "amount_sold_percent"
        - "has_non_accredited_investors"
        - "non_accredited_investor_count"
        - "investor_count"
        - "sales_commissions_usd"
        - "finders_fees_usd"
        - "proceeds_to_related_persons_usd"
        - "related_persons"
        - "sales_recipients"
        - "signature_date"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The issuer's ticker when it is listed, else null."
          examples:
            - "AAPL"
        issuer_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The issuer, as filed; null when SEC names none yet."
          examples:
            - "Lumen Grid Robotics, Inc."
        issuer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "The issuer's SEC Central Index Key, 10 digits."
          examples:
            - "0009990001"
        co_issuer_ciks:
          type: "array"
          maxItems: 100
          description: "The other issuers of a joint notice, such as a fund's parallel funds."
          items:
            type: "string"
            pattern: "^[0-9]{10}$"
            maxLength: 10
          examples:
            - - "0009990003"
        form_type:
          type: "string"
          enum:
            - "D"
            - "D/A"
          description: "D for a notice, D/A for an amendment that restates it."
          examples:
            - "D"
        is_amendment:
          type: "boolean"
          description: "The notice is a D/A."
          examples:
            - false
        replaces_accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "On a D/A, the notice it amends, once read."
          examples:
            - "0009990002-25-000004"
        filing_date:
          $ref: "#/components/schemas/SaleNotice/properties/filing_date"
        accession_number:
          $ref: "#/components/schemas/SaleNotice/properties/accession_number"
        filing_url:
          $ref: "#/components/schemas/SaleNotice/properties/filing_url"
        details_available:
          type: "boolean"
          description: "The notice's XML has been read; when false, every detail below is null or empty."
          examples:
            - true
        entity_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Corporation, Limited Liability Company, Limited Partnership and the like."
          examples:
            - "Corporation"
        jurisdiction_of_incorporation:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Where the issuer was formed, as filed."
          examples:
            - "DELAWARE"
        incorporation_age:
          type:
            - "string"
            - "null"
          enum:
            - "within_five_years"
            - "over_five_years"
            - "yet_to_be_formed"
            - null
          description: "How long ago the issuer was formed, as item 2 of Form D asks."
          examples:
            - "within_five_years"
        year_of_incorporation:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 4294967295
          description: "The year the issuer was formed, given when within five years."
          examples:
            - 2023
        issuer_city:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The city of the issuer's principal place of business."
          examples:
            - "San Francisco"
        issuer_state_or_country:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9]{2}$"
          maxLength: 2
          description: "SEC's code of its state or country."
          examples:
            - "CA"
        issuer_state_or_country_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "That state or country by name."
          examples:
            - "CALIFORNIA"
        industry_group:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The industry group as filed (item 4)."
          examples:
            - "Other Technology"
        industry_group_id:
          type:
            - "string"
            - "null"
          pattern: "^[a-z_]{1,60}$"
          maxLength: 60
          description: "The group as an industry_group value; null for one the form does not list."
          examples:
            - "other_technology"
        industry_sector:
          type:
            - "string"
            - "null"
          enum:
            - "agriculture"
            - "banking_and_financial_services"
            - "business_services"
            - "energy"
            - "health_care"
            - "manufacturing"
            - "real_estate"
            - "retailing"
            - "restaurants"
            - "technology"
            - "travel"
            - "other"
            - null
          description: "The sector the group belongs to."
          examples:
            - "technology"
        investment_fund_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "For a pooled investment fund: hedge, private equity, venture capital and the others."
          examples:
            - "Venture Capital Fund"
        revenue_range:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "The issuer's revenue range, as filed; many decline to disclose."
          examples:
            - "Decline to Disclose"
        net_asset_value_range:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "For a fund, its net asset value range, as filed."
          examples:
            - "Decline to Disclose"
        federal_exemptions:
          type: "array"
          maxItems: 30
          description: "The exemptions and exclusions claimed (item 6)."
          items:
            $ref: "#/components/schemas/FormDExemption"
        securities_offered:
          type: "array"
          maxItems: 8
          description: "The kinds of securities offered (item 9)."
          items:
            type: "string"
            enum:
              - "equity"
              - "debt"
              - "option_to_acquire"
              - "security_to_be_acquired"
              - "pooled_investment_fund_interest"
              - "tenant_in_common"
              - "mineral_property"
              - "other"
          examples:
            - - "equity"
              - "option_to_acquire"
        other_securities_description:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1000
          description: "What other securities are, as filed, such as a SAFE."
          examples:
            - "Simple agreement for future equity"
        is_business_combination:
          type:
            - "boolean"
            - "null"
          description: "The offering is part of a merger or acquisition."
          examples:
            - false
        first_sale_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day of the first sale; null before it or when not read."
          examples:
            - "2026-11-10"
        first_sale_yet_to_occur:
          type:
            - "boolean"
            - "null"
          description: "No sale has happened yet."
          examples:
            - false
        offering_more_than_one_year:
          type:
            - "boolean"
            - "null"
          description: "The offering is meant to last more than a year."
          examples:
            - false
        minimum_investment_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The smallest investment accepted, in US dollars."
          examples:
            - 0
        total_offering_amount_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The offering's size in US dollars; null when it is indefinite."
          examples:
            - 12000000
        total_offering_amount_indefinite:
          type:
            - "boolean"
            - "null"
          description: "The notice calls the offering's size indefinite, as funds often do."
          examples:
            - false
        total_amount_sold_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "US dollars sold so far."
          examples:
            - 9500000
        total_remaining_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "US dollars left to sell; null when indefinite."
          examples:
            - 2500000
        amount_sold_percent:
          type:
            - "number"
            - "null"
          format: "double"
          description: "total_amount_sold_usd as a percentage of the offering's size."
          examples:
            - 79.17
        has_non_accredited_investors:
          type:
            - "boolean"
            - "null"
          description: "Investors who are not accredited have bought."
          examples:
            - false
        non_accredited_investor_count:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 4294967295
          description: "How many of them."
          examples:
            - null
        investor_count:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 4294967295
          description: "How many investors have bought so far."
          examples:
            - 14
        sales_commissions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Sales commissions in US dollars."
          examples:
            - 0
        finders_fees_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Finders' fees in US dollars."
          examples:
            - 0
        proceeds_to_related_persons_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Gross proceeds paid to the issuer's officers, directors or promoters, in US dollars."
          examples:
            - 0
        related_persons:
          type: "array"
          maxItems: 200
          description: "Executive officers, directors and promoters, as the notice lists them (item 3)."
          items:
            $ref: "#/components/schemas/FormDRelatedPerson"
        sales_recipients:
          type: "array"
          maxItems: 100
          description: "Brokers and finders paid for sales (item 12)."
          items:
            $ref: "#/components/schemas/FormDSalesRecipient"
        signature_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day the notice was signed."
          examples:
            - "2026-11-24"
      examples:
        - ticker: null
          issuer_name: "Lumen Grid Robotics, Inc."
          issuer_cik: "0009990001"
          co_issuer_ciks: []
          form_type: "D"
          is_amendment: false
          replaces_accession_number: null
          filing_date: "2026-11-25"
          accession_number: "0009990001-26-000001"
          filing_url: "https://www.sec.gov/Archives/edgar/data/9990001/000999000126000001/0009990001-26-000001-index.htm"
          details_available: true
          entity_type: "Corporation"
          jurisdiction_of_incorporation: "DELAWARE"
          incorporation_age: "within_five_years"
          year_of_incorporation: 2023
          issuer_city: "San Francisco"
          issuer_state_or_country: "CA"
          issuer_state_or_country_name: "CALIFORNIA"
          industry_group: "Other Technology"
          industry_group_id: "other_technology"
          industry_sector: "technology"
          investment_fund_type: null
          revenue_range: "Decline to Disclose"
          net_asset_value_range: null
          federal_exemptions:
            - code: "06b"
              name: "Rule 506(b)"
          securities_offered:
            - "equity"
            - "option_to_acquire"
            - "security_to_be_acquired"
          other_securities_description: null
          is_business_combination: false
          first_sale_date: "2026-11-10"
          first_sale_yet_to_occur: false
          offering_more_than_one_year: false
          minimum_investment_usd: 0
          total_offering_amount_usd: 12000000
          total_offering_amount_indefinite: false
          total_amount_sold_usd: 9500000
          total_remaining_usd: 2500000
          amount_sold_percent: 79.17
          has_non_accredited_investors: false
          non_accredited_investor_count: null
          investor_count: 14
          sales_commissions_usd: 0
          finders_fees_usd: 0
          proceeds_to_related_persons_usd: 0
          related_persons:
            - name: "Avery J. Quill"
              relationships:
                - "Executive Officer"
                - "Director"
              clarification: "Chief Executive Officer"
          sales_recipients: []
          signature_date: "2026-11-24"
    FormDOfferingsResponse:
      type: "object"
      description: "The answer of GET /filings/form-d."
      additionalProperties: false
      required:
        - "form_d_offerings"
      properties:
        form_d_offerings:
          type: "array"
          maxItems: 100
          description: "This page of Form D notices, newest filing first."
          items:
            $ref: "#/components/schemas/FormDOffering"
        next_page_url:
          $ref: "#/components/schemas/SaleNoticesResponse/properties/next_page_url"
      examples:
        - form_d_offerings:
            - ticker: null
              issuer_name: "Lumen Grid Robotics, Inc."
              issuer_cik: "0009990001"
              co_issuer_ciks: []
              form_type: "D"
              is_amendment: false
              replaces_accession_number: null
              filing_date: "2026-11-25"
              accession_number: "0009990001-26-000001"
              filing_url: "https://www.sec.gov/Archives/edgar/data/9990001/000999000126000001/0009990001-26-000001-index.htm"
              details_available: true
              entity_type: "Corporation"
              jurisdiction_of_incorporation: "DELAWARE"
              incorporation_age: "within_five_years"
              year_of_incorporation: 2023
              issuer_city: "San Francisco"
              issuer_state_or_country: "CA"
              issuer_state_or_country_name: "CALIFORNIA"
              industry_group: "Other Technology"
              industry_group_id: "other_technology"
              industry_sector: "technology"
              investment_fund_type: null
              revenue_range: "Decline to Disclose"
              net_asset_value_range: null
              federal_exemptions:
                - code: "06b"
                  name: "Rule 506(b)"
              securities_offered:
                - "equity"
                - "option_to_acquire"
                - "security_to_be_acquired"
              other_securities_description: null
              is_business_combination: false
              first_sale_date: "2026-11-10"
              first_sale_yet_to_occur: false
              offering_more_than_one_year: false
              minimum_investment_usd: 0
              total_offering_amount_usd: 12000000
              total_offering_amount_indefinite: false
              total_amount_sold_usd: 9500000
              total_remaining_usd: 2500000
              amount_sold_percent: 79.17
              has_non_accredited_investors: false
              non_accredited_investor_count: null
              investor_count: 14
              sales_commissions_usd: 0
              finders_fees_usd: 0
              proceeds_to_related_persons_usd: 0
              related_persons:
                - name: "Avery J. Quill"
                  relationships:
                    - "Executive Officer"
                    - "Director"
                  clarification: "Chief Executive Officer"
              sales_recipients: []
              signature_date: "2026-11-24"
    MacroReferenceRate:
      type: "object"
      description: "Latest NY Fed overnight reference rate observation."
      additionalProperties: false
      required:
        - "rate_pct"
        - "effective_date"
      properties:
        rate_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume-weighted median rate in percent."
          examples:
            - 4.58
        effective_date:
          type: "string"
          format: "date"
          description: "Effective business date of the rate."
          examples:
            - "2026-11-27"
        volume_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Underlying transaction volume in billions of USD."
          examples:
            - 2140
        percentile_1_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1st percentile rate (%)."
          examples:
            - 4.5
        percentile_25_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25th percentile rate (%)."
          examples:
            - 4.55
        percentile_75_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "75th percentile rate (%)."
          examples:
            - 4.62
        percentile_99_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "99th percentile rate (%)."
          examples:
            - 4.72
        target_from_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "FOMC target range lower bound (%)."
          examples:
            - 4.5
        target_to_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "FOMC target range upper bound (%)."
          examples:
            - 4.75
        avg_30d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "30-day compounded SOFR average (%)."
          examples:
            - 4.59
        avg_90d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "90-day compounded SOFR average (%)."
          examples:
            - 4.71
        avg_180d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "180-day compounded SOFR average (%)."
          examples:
            - 4.95
      examples:
        - rate_pct: 4.58
          effective_date: "2026-11-27"
          volume_billions_usd: 2140
          percentile_1_pct: 4.5
          percentile_25_pct: 4.55
          percentile_75_pct: 4.62
          percentile_99_pct: 4.72
          target_from_pct: 4.5
          target_to_pct: 4.75
          avg_30d_pct: 4.59
          avg_90d_pct: 4.71
          avg_180d_pct: 4.95
    MacroOvernightSpreads:
      type: "object"
      description: "Overnight money market funding spreads in basis points."
      additionalProperties: false
      required:
        - "funding_stress_flag"
      properties:
        sofr_minus_effr_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "SOFR minus EFFR in basis points."
          examples:
            - 0
        effr_minus_target_mid_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "EFFR minus FOMC target midpoint in bps."
          examples:
            - -4.5
        sofr_minus_target_upper_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "SOFR minus FOMC target upper bound in bps."
          examples:
            - -17
        obfr_minus_effr_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "OBFR minus EFFR in basis points."
          examples:
            - 0
        funding_stress_flag:
          type: "boolean"
          description: "True when SOFR exceeds EFFR by at least 15 bps."
          examples:
            - false
      examples:
        - sofr_minus_effr_bps: 0
          effr_minus_target_mid_bps: -4.5
          sofr_minus_target_upper_bps: -17
          obfr_minus_effr_bps: 0
          funding_stress_flag: false
    MacroLiquiditySnapshot:
      type: "object"
      description: "Latest US Federal Reserve net liquidity snapshot (billions of USD)."
      additionalProperties: false
      required:
        - "fed_balance_sheet_basis"
        - "tga_source"
        - "on_rrp_source"
      properties:
        as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Latest component observation date."
          examples:
            - "2026-11-27"
        fed_total_assets_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Fed H.4.1 WALCL total assets ($B)."
          examples:
            - 6895.4
        fed_total_assets_as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "As-of date of Fed total assets."
          examples:
            - "2026-11-25"
        fed_balance_sheet_basis:
          type: "string"
          enum:
            - "fed_h41_walcl"
            - "fed_h41_factors_supplying_fallback"
            - "ny_fed_soma_fallback"
            - "unavailable"
          description: "Primary or fallback balance sheet source used."
          examples:
            - "fed_h41_walcl"
        securities_held_outright_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "SOMA securities held outright ($B)."
          examples:
            - 6520.1
        soma_treasuries_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "SOMA US Treasury holdings ($B)."
          examples:
            - 4290.5
        soma_mbs_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "SOMA agency MBS holdings ($B)."
          examples:
            - 2229.6
        reserve_balances_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Depository institution reserve balances ($B)."
          examples:
            - 3240.8
        reserve_balances_as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "As-of date of reserve balances."
          examples:
            - "2026-11-25"
        tga_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Treasury General Account closing balance ($B)."
          examples:
            - 812.3
        tga_as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "As-of date of TGA balance."
          examples:
            - "2026-11-27"
        tga_source:
          type: "string"
          enum:
            - "us_treasury_dts"
            - "fed_h41_fallback"
            - "unavailable"
          description: "TGA data feed used."
          examples:
            - "us_treasury_dts"
        on_rrp_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "NY Fed ON RRP accepted balance ($B)."
          examples:
            - 145.6
        on_rrp_as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "As-of date of ON RRP balance."
          examples:
            - "2026-11-27"
        on_rrp_award_rate_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "ON RRP award rate (%)."
          examples:
            - 4.55
        on_rrp_counterparties_count:
          type:
            - "integer"
            - "null"
          format: "int32"
          minimum: 0
          maximum: 1000
          description: "Accepted ON RRP counterparties count."
          examples:
            - 42
        on_rrp_source:
          type: "string"
          enum:
            - "ny_fed_rrp_results"
            - "ny_fed_rrp_propositions_fallback"
            - "fed_h41_fallback"
            - "unavailable"
          description: "ON RRP feed used."
          examples:
            - "ny_fed_rrp_results"
        net_liquidity_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "WALCL minus TGA minus ON RRP ($B)."
          examples:
            - 5937.5
        net_liquidity_change_1w_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-week change in net liquidity ($B)."
          examples:
            - 42.1
        net_liquidity_change_1w_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-week percent change in net liquidity (%)."
          examples:
            - 0.71
        net_liquidity_change_4w_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "4-week change in net liquidity ($B)."
          examples:
            - 85.4
        net_liquidity_change_4w_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "4-week percent change in net liquidity (%)."
          examples:
            - 1.46
        liquidity_regime:
          type:
            - "string"
            - "null"
          enum:
            - "expanding"
            - "contracting"
            - "neutral"
            - null
          description: "4-week net liquidity impulse regime (+/- $25B threshold)."
          examples:
            - "expanding"
      examples:
        - as_of: "2026-11-27"
          fed_total_assets_billions_usd: 6895.4
          fed_total_assets_as_of: "2026-11-25"
          fed_balance_sheet_basis: "fed_h41_walcl"
          securities_held_outright_billions_usd: 6520.1
          soma_treasuries_billions_usd: 4290.5
          soma_mbs_billions_usd: 2229.6
          reserve_balances_billions_usd: 3240.8
          reserve_balances_as_of: "2026-11-25"
          tga_billions_usd: 812.3
          tga_as_of: "2026-11-27"
          tga_source: "us_treasury_dts"
          on_rrp_billions_usd: 145.6
          on_rrp_as_of: "2026-11-27"
          on_rrp_award_rate_pct: 4.55
          on_rrp_counterparties_count: 42
          on_rrp_source: "ny_fed_rrp_results"
          net_liquidity_billions_usd: 5937.5
          net_liquidity_change_1w_billions_usd: 42.1
          net_liquidity_change_1w_pct: 0.71
          net_liquidity_change_4w_billions_usd: 85.4
          net_liquidity_change_4w_pct: 1.46
          liquidity_regime: "expanding"
    MacroLiquidityHistoryRow:
      type: "object"
      description: "One aligned daily US liquidity observation."
      additionalProperties: false
      required:
        - "date"
      properties:
        date:
          type: "string"
          format: "date"
          description: "Business day UTC."
          examples:
            - "2026-11-27"
        fed_total_assets_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Carried-forward Fed total assets ($B)."
          examples:
            - 6895.4
        fed_total_assets_as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "As-of date of Fed balance sheet."
          examples:
            - "2026-11-25"
        tga_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Treasury General Account balance ($B)."
          examples:
            - 812.3
        tga_as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "As-of date of TGA reading."
          examples:
            - "2026-11-27"
        on_rrp_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "NY Fed ON RRP accepted volume ($B)."
          examples:
            - 145.6
        on_rrp_as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "As-of date of ON RRP reading."
          examples:
            - "2026-11-27"
        net_liquidity_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net Liquidity = WALCL - TGA - ON RRP ($B)."
          examples:
            - 5937.5
        reserve_balances_billions_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Reserve balances ($B)."
          examples:
            - 3240.8
        sofr_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "SOFR rate (%)."
          examples:
            - 4.58
        effr_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "EFFR rate (%)."
          examples:
            - 4.58
        obfr_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "OBFR rate (%)."
          examples:
            - 4.58
        sofr_minus_effr_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "SOFR minus EFFR spread (bps)."
          examples:
            - 0
      examples:
        - date: "2026-11-27"
          fed_total_assets_billions_usd: 6895.4
          fed_total_assets_as_of: "2026-11-25"
          tga_billions_usd: 812.3
          tga_as_of: "2026-11-27"
          on_rrp_billions_usd: 145.6
          on_rrp_as_of: "2026-11-27"
          net_liquidity_billions_usd: 5937.5
          reserve_balances_billions_usd: 3240.8
          sofr_pct: 4.58
          effr_pct: 4.58
          obfr_pct: 4.58
          sofr_minus_effr_bps: 0
    MacroLiquiditySource:
      type: "object"
      description: "Official US government liquidity data source metadata."
      additionalProperties: false
      required:
        - "id"
        - "name"
        - "url"
        - "series"
        - "frequency"
      properties:
        id:
          $ref: "#/components/schemas/EconomicCalendarSource/properties/id"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 160
          description: "Official source title."
          examples:
            - "Federal Reserve Board H.4.1 Statistical Release"
        url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "Official source URL."
          examples:
            - "https://www.federalreserve.gov/releases/h41/"
        notice:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Required attribution notice when applicable."
          examples:
            - "Published by the Federal Reserve Bank of New York."
        series:
          type: "array"
          maxItems: 20
          description: "Series identifiers read from this source."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 160
          examples:
            - - "RESPPMA_N.WW (WALCL Total Assets)"
        frequency:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Publication cadence."
          examples:
            - "weekly_wednesday"
      examples:
        - id: "federal_reserve_h41"
          name: "Federal Reserve Board H.4.1 Statistical Release"
          url: "https://www.federalreserve.gov/releases/h41/"
          series:
            - "RESPPMA_N.WW (WALCL Total Assets)"
          frequency: "weekly_wednesday"
    MacroLiquidityResponse:
      type: "object"
      description: "The answer of GET /macro/liquidity."
      additionalProperties: false
      required:
        - "fetched_at"
        - "stale_fallback"
        - "snapshot"
        - "reference_rates"
        - "history"
        - "count"
        - "source_status"
      properties:
        as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Latest observation date."
          examples:
            - "2026-11-27"
        fetched_at:
          type: "string"
          format: "date-time"
          description: "UTC timestamp when feeds were fetched."
          examples:
            - "2026-11-30T00:00:00.000Z"
        stale_fallback:
          type: "boolean"
          description: "True when served from stale cache due to upstream outage."
          examples:
            - false
        snapshot:
          $ref: "#/components/schemas/MacroLiquiditySnapshot"
        reference_rates:
          type: "object"
          description: "Latest NY Fed overnight reference rates and derived spreads."
          additionalProperties: false
          required:
            - "sofr"
            - "effr"
            - "obfr"
            - "tgcr"
            - "bgcr"
            - "spreads"
          properties:
            sofr:
              oneOf:
                - $ref: "#/components/schemas/MacroReferenceRate"
                - type: "null"
            effr:
              oneOf:
                - $ref: "#/components/schemas/MacroReferenceRate"
                - type: "null"
            obfr:
              oneOf:
                - $ref: "#/components/schemas/MacroReferenceRate"
                - type: "null"
            tgcr:
              oneOf:
                - $ref: "#/components/schemas/MacroReferenceRate"
                - type: "null"
            bgcr:
              oneOf:
                - $ref: "#/components/schemas/MacroReferenceRate"
                - type: "null"
            spreads:
              $ref: "#/components/schemas/MacroOvernightSpreads"
          examples:
            - sofr:
                rate_pct: 4.58
                effective_date: "2026-11-27"
                volume_billions_usd: 2140
                percentile_1_pct: 4.5
                percentile_25_pct: 4.55
                percentile_75_pct: 4.62
                percentile_99_pct: 4.72
                target_from_pct: 4.5
                target_to_pct: 4.75
                avg_30d_pct: 4.59
                avg_90d_pct: 4.71
                avg_180d_pct: 4.95
              effr:
                rate_pct: 4.58
                effective_date: "2026-11-27"
                volume_billions_usd: 2140
                percentile_1_pct: 4.5
                percentile_25_pct: 4.55
                percentile_75_pct: 4.62
                percentile_99_pct: 4.72
                target_from_pct: 4.5
                target_to_pct: 4.75
                avg_30d_pct: 4.59
                avg_90d_pct: 4.71
                avg_180d_pct: 4.95
              obfr: null
              tgcr: null
              bgcr: null
              spreads:
                sofr_minus_effr_bps: 0
                effr_minus_target_mid_bps: -4.5
                sofr_minus_target_upper_bps: -17
                obfr_minus_effr_bps: 0
                funding_stress_flag: false
        history:
          type: "array"
          maxItems: 365
          description: "Aligned daily liquidity history."
          items:
            $ref: "#/components/schemas/MacroLiquidityHistoryRow"
        count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 365
          description: "Number of daily history rows returned."
          examples:
            - 30
        source_status:
          type: "object"
          description: "Live feed status for each primary government endpoint."
          additionalProperties: false
          required:
            - "fed_h41"
            - "treasury_tga"
            - "ny_fed_rrp"
            - "ny_fed_reference_rates"
          properties:
            fed_h41:
              type: "string"
              enum:
                - "ok"
                - "fallback"
                - "unavailable"
              description: "Fed H.4.1 status."
              examples:
                - "ok"
            treasury_tga:
              type: "string"
              enum:
                - "ok"
                - "fallback"
                - "unavailable"
              description: "Treasury DTS TGA status."
              examples:
                - "ok"
            ny_fed_rrp:
              type: "string"
              enum:
                - "ok"
                - "fallback"
                - "unavailable"
              description: "NY Fed ON RRP status."
              examples:
                - "ok"
            ny_fed_reference_rates:
              type: "string"
              enum:
                - "ok"
                - "fallback"
                - "unavailable"
              description: "NY Fed overnight rates status."
              examples:
                - "ok"
          examples:
            - fed_h41: "ok"
              treasury_tga: "ok"
              ny_fed_rrp: "ok"
              ny_fed_reference_rates: "ok"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1500
          description: "Net Liquidity formula and spread methodology."
          examples:
            - "Fed Net Liquidity equals WALCL minus TGA minus ON RRP in billions of USD."
        sources:
          type: "array"
          maxItems: 10
          description: "Primary US government source metadata."
          items:
            $ref: "#/components/schemas/MacroLiquiditySource"
      examples:
        - as_of: "2026-11-27"
          fetched_at: "2026-11-30T00:00:00.000Z"
          stale_fallback: false
          snapshot:
            as_of: "2026-11-27"
            fed_total_assets_billions_usd: 6895.4
            fed_total_assets_as_of: "2026-11-25"
            fed_balance_sheet_basis: "fed_h41_walcl"
            securities_held_outright_billions_usd: 6520.1
            soma_treasuries_billions_usd: 4290.5
            soma_mbs_billions_usd: 2229.6
            reserve_balances_billions_usd: 3240.8
            reserve_balances_as_of: "2026-11-25"
            tga_billions_usd: 812.3
            tga_as_of: "2026-11-27"
            tga_source: "us_treasury_dts"
            on_rrp_billions_usd: 145.6
            on_rrp_as_of: "2026-11-27"
            on_rrp_award_rate_pct: 4.55
            on_rrp_counterparties_count: 42
            on_rrp_source: "ny_fed_rrp_results"
            net_liquidity_billions_usd: 5937.5
            net_liquidity_change_1w_billions_usd: 42.1
            net_liquidity_change_1w_pct: 0.71
            net_liquidity_change_4w_billions_usd: 85.4
            net_liquidity_change_4w_pct: 1.46
            liquidity_regime: "expanding"
          reference_rates:
            sofr:
              rate_pct: 4.58
              effective_date: "2026-11-27"
              volume_billions_usd: 2140
              percentile_1_pct: 4.5
              percentile_25_pct: 4.55
              percentile_75_pct: 4.62
              percentile_99_pct: 4.72
              target_from_pct: 4.5
              target_to_pct: 4.75
              avg_30d_pct: 4.59
              avg_90d_pct: 4.71
              avg_180d_pct: 4.95
            effr:
              rate_pct: 4.58
              effective_date: "2026-11-27"
              volume_billions_usd: 2140
              percentile_1_pct: 4.5
              percentile_25_pct: 4.55
              percentile_75_pct: 4.62
              percentile_99_pct: 4.72
              target_from_pct: 4.5
              target_to_pct: 4.75
              avg_30d_pct: 4.59
              avg_90d_pct: 4.71
              avg_180d_pct: 4.95
            obfr: null
            tgcr: null
            bgcr: null
            spreads:
              sofr_minus_effr_bps: 0
              effr_minus_target_mid_bps: -4.5
              sofr_minus_target_upper_bps: -17
              obfr_minus_effr_bps: 0
              funding_stress_flag: false
          history:
            - date: "2026-11-27"
              fed_total_assets_billions_usd: 6895.4
              fed_total_assets_as_of: "2026-11-25"
              tga_billions_usd: 812.3
              tga_as_of: "2026-11-27"
              on_rrp_billions_usd: 145.6
              on_rrp_as_of: "2026-11-27"
              net_liquidity_billions_usd: 5937.5
              reserve_balances_billions_usd: 3240.8
              sofr_pct: 4.58
              effr_pct: 4.58
              obfr_pct: 4.58
              sofr_minus_effr_bps: 0
          count: 1
          source_status:
            fed_h41: "ok"
            treasury_tga: "ok"
            ny_fed_rrp: "ok"
            ny_fed_reference_rates: "ok"
    YieldCurveSpreadPoint:
      type: "object"
      description: "One trading day's US Treasury yield curve spreads and inversion streaks."
      additionalProperties: false
      required:
        - "date"
        - "is_2s10s_inverted"
        - "is_3m10y_inverted"
        - "inversion_2s10s_streak_days"
        - "inversion_3m10y_streak_days"
      properties:
        date:
          type: "string"
          format: "date"
          description: "Trading date UTC."
          examples:
            - "2026-11-27"
        yield_3m_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "US Treasury 3-month par yield (%)."
          examples:
            - 4.55
        yield_2y_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "US Treasury 2-year par yield (%)."
          examples:
            - 4.21
        yield_5y_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "US Treasury 5-year par yield (%)."
          examples:
            - 4.18
        yield_10y_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "US Treasury 10-year par yield (%)."
          examples:
            - 4.32
        yield_30y_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "US Treasury 30-year par yield (%)."
          examples:
            - 4.51
        fed_funds_target_mid_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Fed funds target range midpoint (%)."
          examples:
            - 4.625
        spread_2s10s_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10Y minus 2Y spread in basis points."
          examples:
            - 11
        spread_2s10s_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10Y minus 2Y spread in percentage points."
          examples:
            - 0.11
        spread_3m10y_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10Y minus 3M spread in basis points."
          examples:
            - -23
        spread_3m10y_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10Y minus 3M spread in percentage points."
          examples:
            - -0.23
        spread_2s5s_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "5Y minus 2Y spread in basis points."
          examples:
            - -3
        spread_5s30s_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "30Y minus 5Y spread in basis points."
          examples:
            - 33
        spread_10y_minus_fed_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10Y yield minus Fed target midpoint in bps."
          examples:
            - -30.5
        is_2s10s_inverted:
          type: "boolean"
          description: "True when 2s10s spread is negative."
          examples:
            - false
        is_3m10y_inverted:
          type: "boolean"
          description: "True when 3m10y spread is negative."
          examples:
            - true
        inversion_2s10s_streak_days:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 5000
          description: "Consecutive trading days with negative 2s10s spread."
          examples:
            - 0
        inversion_3m10y_streak_days:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 5000
          description: "Consecutive trading days with negative 3m10y spread."
          examples:
            - 14
      examples:
        - date: "2026-11-27"
          yield_3m_pct: 4.55
          yield_2y_pct: 4.21
          yield_5y_pct: 4.18
          yield_10y_pct: 4.32
          yield_30y_pct: 4.51
          fed_funds_target_mid_pct: 4.625
          spread_2s10s_bps: 11
          spread_2s10s_pct: 0.11
          spread_3m10y_bps: -23
          spread_3m10y_pct: -0.23
          spread_2s5s_bps: -3
          spread_5s30s_bps: 33
          spread_10y_minus_fed_bps: -30.5
          is_2s10s_inverted: false
          is_3m10y_inverted: true
          inversion_2s10s_streak_days: 0
          inversion_3m10y_streak_days: 14
    YieldCurveSpreadSnapshot:
      type: "object"
      description: "Latest US Treasury curve spread snapshot with regime and 1w/1m changes."
      additionalProperties: false
      required:
        - "date"
        - "curve_regime"
        - "is_2s10s_inverted"
        - "is_3m10y_inverted"
        - "inversion_2s10s_streak_days"
        - "inversion_3m10y_streak_days"
      properties:
        date:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/date"
        yield_3m_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/yield_3m_pct"
        yield_2y_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/yield_2y_pct"
        yield_5y_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/yield_5y_pct"
        yield_10y_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/yield_10y_pct"
        yield_30y_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/yield_30y_pct"
        fed_funds_target_mid_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/fed_funds_target_mid_pct"
        spread_2s10s_bps:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/spread_2s10s_bps"
        spread_2s10s_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/spread_2s10s_pct"
        spread_3m10y_bps:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/spread_3m10y_bps"
        spread_3m10y_pct:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/spread_3m10y_pct"
        spread_2s5s_bps:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/spread_2s5s_bps"
        spread_5s30s_bps:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/spread_5s30s_bps"
        spread_10y_minus_fed_bps:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/spread_10y_minus_fed_bps"
        is_2s10s_inverted:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/is_2s10s_inverted"
        is_3m10y_inverted:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/is_3m10y_inverted"
        inversion_2s10s_streak_days:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/inversion_2s10s_streak_days"
        inversion_3m10y_streak_days:
          $ref: "#/components/schemas/YieldCurveSpreadPoint/properties/inversion_3m10y_streak_days"
        curve_regime:
          type: "string"
          enum:
            - "inverted"
            - "flat"
            - "normal"
            - "steep"
            - "unknown"
          description: "Yield curve slope classification."
          examples:
            - "flat"
        change_1w_2s10s_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-week (5 trading day) change in 2s10s spread (bps)."
          examples:
            - 4.2
        change_1m_2s10s_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-month (21 trading day) change in 2s10s spread (bps)."
          examples:
            - 9.5
        change_1w_3m10y_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-week change in 3m10y spread (bps)."
          examples:
            - -2.1
        change_1m_3m10y_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "1-month change in 3m10y spread (bps)."
          examples:
            - 12.4
        last_2s10s_inversion_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Most recent 2s10s inversion date."
          examples:
            - "2024-09-05"
        last_3m10y_inversion_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Most recent 3m10y inversion date."
          examples:
            - "2026-11-27"
      examples:
        - date: "2026-11-27"
          yield_3m_pct: 4.55
          yield_2y_pct: 4.21
          yield_5y_pct: 4.18
          yield_10y_pct: 4.32
          yield_30y_pct: 4.51
          fed_funds_target_mid_pct: 4.625
          spread_2s10s_bps: 11
          spread_2s10s_pct: 0.11
          spread_3m10y_bps: -23
          spread_3m10y_pct: -0.23
          spread_2s5s_bps: -3
          spread_5s30s_bps: 33
          spread_10y_minus_fed_bps: -30.5
          is_2s10s_inverted: false
          is_3m10y_inverted: true
          inversion_2s10s_streak_days: 0
          inversion_3m10y_streak_days: 14
          curve_regime: "flat"
          change_1w_2s10s_bps: 4.2
          change_1m_2s10s_bps: 9.5
          change_1w_3m10y_bps: -2.1
          change_1m_3m10y_bps: 12.4
          last_2s10s_inversion_date: "2024-09-05"
          last_3m10y_inversion_date: "2026-11-27"
    SahmRulePoint:
      type: "object"
      description: "Monthly Sahm Rule recession indicator derived from BLS U-3 unemployment."
      additionalProperties: false
      required:
        - "date"
        - "unemployment_rate_pct"
        - "unemployment_ma3_pct"
        - "prior_12m_min_ma3_pct"
        - "sahm_rule_indicator_pct_pts"
        - "recession_signal_triggered"
        - "distance_to_trigger_pct_pts"
      properties:
        date:
          type: "string"
          format: "date"
          description: "BLS reference month (YYYY-MM-01)."
          examples:
            - "2026-10-01"
        unemployment_rate_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Seasonally adjusted U-3 unemployment rate (%)."
          examples:
            - 4.1
        first_published_unemployment_rate_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "First-published U-3 vintage (%)."
          examples:
            - 4.1
        unemployment_ma3_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Trailing 3-month moving average of U-3 (%)."
          examples:
            - 4.13
        prior_12m_min_ma3_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Minimum 3-month MA over the prior 12 months (%)."
          examples:
            - 3.9
        sahm_rule_indicator_pct_pts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current 3m MA minus prior 12m min (pp)."
          examples:
            - 0.23
        recession_signal_triggered:
          type: "boolean"
          description: "True when indicator reaches >= 0.50 percentage points."
          examples:
            - false
        distance_to_trigger_pct_pts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Remaining percentage points before 0.50 trigger."
          examples:
            - 0.27
      examples:
        - date: "2026-10-01"
          unemployment_rate_pct: 4.1
          first_published_unemployment_rate_pct: 4.1
          unemployment_ma3_pct: 4.13
          prior_12m_min_ma3_pct: 3.9
          sahm_rule_indicator_pct_pts: 0.23
          recession_signal_triggered: false
          distance_to_trigger_pct_pts: 0.27
    MacroSpreadSource:
      type: "object"
      description: "Underlying stored dataset metadata for macro spreads."
      additionalProperties: false
      required:
        - "id"
        - "name"
        - "series"
        - "frequency"
      properties:
        id:
          $ref: "#/components/schemas/EconomicCalendarSource/properties/id"
        name:
          $ref: "#/components/schemas/MacroLiquiditySource/properties/name"
        series:
          type: "array"
          maxItems: 20
          description: "Series used from findata.macro_observations."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 80
          examples:
            - - "3_month"
              - "2_year"
              - "10_year"
        frequency:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Observation cadence."
          examples:
            - "daily_business_day"
      examples:
        - id: "us_treasury_yield_curve"
          name: "US Department of the Treasury Daily Par Yield Curve Rates"
          series:
            - "3_month"
            - "2_year"
            - "5_year"
            - "10_year"
            - "30_year"
          frequency: "daily_business_day"
    MacroSpreadsResponse:
      type: "object"
      description: "The answer of GET /macro/spreads."
      additionalProperties: false
      required:
        - "computed_at"
        - "spreads_history"
        - "sahm_history"
        - "spreads_count"
        - "sahm_count"
      properties:
        as_of:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Latest curve or labor observation date."
          examples:
            - "2026-11-27"
        computed_at:
          type: "string"
          format: "date-time"
          description: "UTC computation timestamp."
          examples:
            - "2026-11-30T00:00:00.000Z"
        yield_curve_spreads:
          oneOf:
            - $ref: "#/components/schemas/YieldCurveSpreadSnapshot"
            - type: "null"
        sahm_rule:
          oneOf:
            - $ref: "#/components/schemas/SahmRulePoint"
            - type: "null"
        spreads_history:
          type: "array"
          maxItems: 1260
          description: "Daily Treasury spreads history."
          items:
            $ref: "#/components/schemas/YieldCurveSpreadPoint"
        sahm_history:
          type: "array"
          maxItems: 240
          description: "Monthly Sahm Rule history."
          items:
            $ref: "#/components/schemas/SahmRulePoint"
        spreads_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 1260
          description: "Number of daily spreads rows returned."
          examples:
            - 90
        sahm_count:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 240
          description: "Number of monthly Sahm Rule rows returned."
          examples:
            - 24
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1500
          description: "Spread and Sahm Rule calculation methodology."
          examples:
            - "Spreads are computed in basis points from US Treasury daily par yields."
        sources:
          type: "array"
          maxItems: 10
          description: "Stored public macro dataset sources."
          items:
            $ref: "#/components/schemas/MacroSpreadSource"
      examples:
        - as_of: "2026-11-27"
          computed_at: "2026-11-30T00:00:00.000Z"
          yield_curve_spreads:
            date: "2026-11-27"
            yield_3m_pct: 4.55
            yield_2y_pct: 4.21
            yield_5y_pct: 4.18
            yield_10y_pct: 4.32
            yield_30y_pct: 4.51
            fed_funds_target_mid_pct: 4.625
            spread_2s10s_bps: 11
            spread_2s10s_pct: 0.11
            spread_3m10y_bps: -23
            spread_3m10y_pct: -0.23
            spread_2s5s_bps: -3
            spread_5s30s_bps: 33
            spread_10y_minus_fed_bps: -30.5
            is_2s10s_inverted: false
            is_3m10y_inverted: true
            inversion_2s10s_streak_days: 0
            inversion_3m10y_streak_days: 14
            curve_regime: "flat"
            change_1w_2s10s_bps: 4.2
            change_1m_2s10s_bps: 9.5
            change_1w_3m10y_bps: -2.1
            change_1m_3m10y_bps: 12.4
            last_2s10s_inversion_date: "2024-09-05"
            last_3m10y_inversion_date: "2026-11-27"
          sahm_rule:
            date: "2026-10-01"
            unemployment_rate_pct: 4.1
            first_published_unemployment_rate_pct: 4.1
            unemployment_ma3_pct: 4.13
            prior_12m_min_ma3_pct: 3.9
            sahm_rule_indicator_pct_pts: 0.23
            recession_signal_triggered: false
            distance_to_trigger_pct_pts: 0.27
          spreads_history:
            - date: "2026-11-27"
              yield_3m_pct: 4.55
              yield_2y_pct: 4.21
              yield_5y_pct: 4.18
              yield_10y_pct: 4.32
              yield_30y_pct: 4.51
              fed_funds_target_mid_pct: 4.625
              spread_2s10s_bps: 11
              spread_2s10s_pct: 0.11
              spread_3m10y_bps: -23
              spread_3m10y_pct: -0.23
              spread_2s5s_bps: -3
              spread_5s30s_bps: 33
              spread_10y_minus_fed_bps: -30.5
              is_2s10s_inverted: false
              is_3m10y_inverted: true
              inversion_2s10s_streak_days: 0
              inversion_3m10y_streak_days: 14
          sahm_history:
            - date: "2026-10-01"
              unemployment_rate_pct: 4.1
              first_published_unemployment_rate_pct: 4.1
              unemployment_ma3_pct: 4.13
              prior_12m_min_ma3_pct: 3.9
              sahm_rule_indicator_pct_pts: 0.23
              recession_signal_triggered: false
              distance_to_trigger_pct_pts: 0.27
          spreads_count: 1
          sahm_count: 1
    InsiderScreenerTrade:
      type: "object"
      description: "One screened Form 4/5 insider transaction enriched with holding change percent and filing delay."
      additionalProperties: false
      required:
        - "issuer_cik"
        - "issuer_name"
        - "roles"
        - "is_ceo"
        - "is_cfo"
        - "is_officer"
        - "is_director"
        - "is_ten_percent_owner"
        - "form_type"
        - "accession_number"
        - "filing_url"
        - "filing_date"
        - "is_late_filing"
        - "is_derivative"
        - "is_10b5_1_plan"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          maxLength: 12
          description: "Issuer ticker."
          examples:
            - "AAPL"
        issuer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded issuer CIK."
          examples:
            - "0000320193"
        issuer_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Issuer name."
          examples:
            - "Apple Inc."
        sector:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "SEC office sector."
          examples:
            - "Technology"
        industry:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "SEC SIC industry description."
          examples:
            - "Electronic Computers"
        owner_cik:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded reporting owner CIK."
          examples:
            - "0001214156"
        owner_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Reporting owner name."
          examples:
            - "Cook Timothy D"
        owner_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Officer title or relationship label."
          examples:
            - "Chief Executive Officer"
        roles:
          type: "array"
          maxItems: 5
          description: "Normalized insider role tags."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 20
          examples:
            - - "ceo"
              - "officer"
              - "director"
        is_ceo:
          type: "boolean"
          description: "True when owner title indicates CEO."
          examples:
            - true
        is_cfo:
          type: "boolean"
          description: "True when owner title indicates CFO."
          examples:
            - false
        is_officer:
          type: "boolean"
          description: "True when reporting owner is an officer."
          examples:
            - true
        is_director:
          type: "boolean"
          description: "True when reporting owner is a board director."
          examples:
            - true
        is_ten_percent_owner:
          type: "boolean"
          description: "True when reporting owner is a 10% owner."
          examples:
            - false
        form_type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "SEC form type (4, 4/A, 5, 5/A)."
          examples:
            - "4"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          maxLength: 20
          description: "SEC accession number."
          examples:
            - "0000320193-26-000101"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "SEC EDGAR filing index URL."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000101/0000320193-26-000101-index.htm"
        filing_date:
          type: "string"
          format: "date"
          description: "SEC filing date."
          examples:
            - "2026-11-26"
        transaction_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Transaction date."
          examples:
            - "2026-11-24"
        filing_delay_days:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: "Calendar days from transaction_date to filing_date."
          examples:
            - 2
        is_late_filing:
          type: "boolean"
          description: "True when Form 4 filing exceeds 2 weekday business days."
          examples:
            - false
        transaction_code:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 4
          description: "SEC Form 4 transaction code."
          examples:
            - "P"
        transaction_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 60
          description: "Human-readable transaction type."
          examples:
            - "Purchase"
        transaction_category:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 30
          description: "Normalized category (buy, sell, option_exercise, etc.)."
          examples:
            - "buy"
        acquired_or_disposed:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2
          description: "A for acquired, D for disposed."
          examples:
            - "A"
        is_derivative:
          type: "boolean"
          description: "True for derivative security rows."
          examples:
            - false
        is_10b5_1_plan:
          type: "boolean"
          description: "True when Rule 10b5-1 checkbox was marked."
          examples:
            - false
        security_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Security title."
          examples:
            - "Common Stock"
        transaction_shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares transacted."
          examples:
            - 10000
        transaction_price_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Transaction price in USD/share."
          examples:
            - 220
        transaction_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Transaction dollar value in USD."
          examples:
            - 2200000
        shares_owned_before:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Estimated shares owned before the transaction."
          examples:
            - 100000
        shares_owned_after:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares owned following the transaction."
          examples:
            - 110000
        holding_change_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Signed percent change in holdings relative to pre-trade shares."
          examples:
            - 10
        direct_or_indirect:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2
          description: "D for direct, I for indirect ownership."
          examples:
            - "D"
        nature_of_ownership:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Nature of indirect ownership."
          examples:
            - null
      examples:
        - ticker: "AAPL"
          issuer_cik: "0000320193"
          issuer_name: "Apple Inc."
          sector: "Technology"
          industry: "Electronic Computers"
          owner_cik: "0001214156"
          owner_name: "Cook Timothy D"
          owner_title: "Chief Executive Officer"
          roles:
            - "ceo"
            - "officer"
            - "director"
          is_ceo: true
          is_cfo: false
          is_officer: true
          is_director: true
          is_ten_percent_owner: false
          form_type: "4"
          accession_number: "0000320193-26-000101"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000101/0000320193-26-000101-index.htm"
          filing_date: "2026-11-26"
          transaction_date: "2026-11-24"
          filing_delay_days: 2
          is_late_filing: false
          transaction_code: "P"
          transaction_type: "Purchase"
          transaction_category: "buy"
          acquired_or_disposed: "A"
          is_derivative: false
          is_10b5_1_plan: false
          security_title: "Common Stock"
          transaction_shares: 10000
          transaction_price_usd: 220
          transaction_value_usd: 2200000
          shares_owned_before: 100000
          shares_owned_after: 110000
          holding_change_pct: 10
          direct_or_indirect: "D"
          nature_of_ownership: null
    InsiderScreenerResponse:
      type: "object"
      description: "Answer of GET /insider-trades/screener."
      additionalProperties: false
      required:
        - "filters"
        - "units"
        - "methodology"
        - "returned"
        - "insider_trades"
      properties:
        filters:
          type: "object"
          description: "Applied screener filters."
          additionalProperties: false
          required:
            - "sort_by"
            - "sort_order"
          properties:
            ticker:
              type:
                - "string"
                - "null"
              pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
              maxLength: 12
              description: "Filtered ticker."
              examples:
                - "AAPL"
            cik:
              type:
                - "string"
                - "null"
              pattern: "^[0-9]{10}$"
              maxLength: 10
              description: "Filtered issuer CIK."
              examples:
                - "0000320193"
            transaction_type:
              type:
                - "array"
                - "null"
              maxItems: 20
              description: "Requested transaction types or codes."
              items:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 32
              examples:
                - - "buy"
            role:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 20
              description: "Filtered insider role."
              examples:
                - "ceo"
            is_10b5_1:
              type:
                - "boolean"
                - "null"
              description: "Rule 10b5-1 filter."
              examples:
                - false
            sector:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 100
              description: "Filtered sector substring."
              examples:
                - "Technology"
            min_value_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Minimum value filter in USD."
              examples:
                - 100000
            max_value_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Maximum value filter in USD."
              examples:
                - null
            start_date:
              type:
                - "string"
                - "null"
              format: "date"
              description: "Start filing date filter."
              examples:
                - "2026-11-01"
            end_date:
              type:
                - "string"
                - "null"
              format: "date"
              description: "End filing date filter."
              examples:
                - "2026-11-30"
            sort_by:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 30
              description: "Active sort column."
              examples:
                - "value_usd"
            sort_order:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 4
              description: "Active sort direction."
              examples:
                - "desc"
          examples:
            - sort_by: "value_usd"
              sort_order: "desc"
        units:
          type: "object"
          description: "Units for numeric fields."
          additionalProperties: false
          required:
            - "transaction_shares"
            - "transaction_price_usd"
            - "transaction_value_usd"
            - "shares_owned_before"
            - "shares_owned_after"
            - "holding_change_pct"
            - "filing_delay_days"
          properties:
            transaction_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for transaction_shares."
              examples:
                - "shares"
            transaction_price_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for transaction_price_usd."
              examples:
                - "USD/share"
            transaction_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for transaction_value_usd."
              examples:
                - "USD"
            shares_owned_before:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_owned_before."
              examples:
                - "shares"
            shares_owned_after:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_owned_after."
              examples:
                - "shares"
            holding_change_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for holding_change_pct."
              examples:
                - "percent (%)"
            filing_delay_days:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for filing_delay_days."
              examples:
                - "calendar days"
          examples:
            - transaction_shares: "shares"
              transaction_price_usd: "USD/share"
              transaction_value_usd: "USD"
              shares_owned_before: "shares"
              shares_owned_after: "shares"
              holding_change_pct: "percent (%)"
              filing_delay_days: "calendar days"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1000
          description: "Calculation methodology."
          examples:
            - "Market-wide SEC Form 4/5 screener."
        returned:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Number of trades returned in this page."
          examples:
            - 1
        insider_trades:
          type: "array"
          maxItems: 100
          description: "Matching screened insider trades."
          items:
            $ref: "#/components/schemas/InsiderScreenerTrade"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "Next page cursor URL; absent on the final page."
          examples:
            - "https://api.darvas.app/v1/insider-trades/screener?cursor=eyJ9"
      examples:
        - filters:
            sort_by: "value_usd"
            sort_order: "desc"
          units:
            transaction_shares: "shares"
            transaction_price_usd: "USD/share"
            transaction_value_usd: "USD"
            shares_owned_before: "shares"
            shares_owned_after: "shares"
            holding_change_pct: "percent (%)"
            filing_delay_days: "calendar days"
          methodology: "Market-wide SEC Form 4/5 screener."
          returned: 1
          insider_trades:
            - ticker: "AAPL"
              issuer_cik: "0000320193"
              issuer_name: "Apple Inc."
              sector: "Technology"
              industry: "Electronic Computers"
              owner_cik: "0001214156"
              owner_name: "Cook Timothy D"
              owner_title: "Chief Executive Officer"
              roles:
                - "ceo"
                - "officer"
                - "director"
              is_ceo: true
              is_cfo: false
              is_officer: true
              is_director: true
              is_ten_percent_owner: false
              form_type: "4"
              accession_number: "0000320193-26-000101"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000101/0000320193-26-000101-index.htm"
              filing_date: "2026-11-26"
              transaction_date: "2026-11-24"
              filing_delay_days: 2
              is_late_filing: false
              transaction_code: "P"
              transaction_type: "Purchase"
              transaction_category: "buy"
              acquired_or_disposed: "A"
              is_derivative: false
              is_10b5_1_plan: false
              security_title: "Common Stock"
              transaction_shares: 10000
              transaction_price_usd: 220
              transaction_value_usd: 2200000
              shares_owned_before: 100000
              shares_owned_after: 110000
              holding_change_pct: 10
              direct_or_indirect: "D"
              nature_of_ownership: null
    InsiderClusterBuyer:
      type: "object"
      description: "One insider participating in a detected cluster buy."
      additionalProperties: false
      required:
        - "owner_name"
        - "roles"
        - "buy_shares"
        - "buy_value_usd"
        - "trade_count"
        - "accession_numbers"
      properties:
        owner_cik:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded owner CIK."
          examples:
            - "0001214156"
        owner_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Name of the insider who bought."
          examples:
            - "Cook Timothy D"
        owner_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Officer title or role."
          examples:
            - "Chief Executive Officer"
        roles:
          type: "array"
          maxItems: 5
          description: "Normalized insider roles."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 20
          examples:
            - - "ceo"
              - "officer"
              - "director"
        buy_shares:
          type: "number"
          format: "double"
          description: "Total open-market shares bought by this insider."
          examples:
            - 10000
        buy_value_usd:
          type: "number"
          format: "double"
          description: "Total open-market buy value in USD."
          examples:
            - 2200000
        trade_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Number of open-market buy lines."
          examples:
            - 1
        first_buy_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Earliest buy date in window."
          examples:
            - "2026-11-20"
        last_buy_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Latest buy date in window."
          examples:
            - "2026-11-20"
        accession_numbers:
          type: "array"
          maxItems: 50
          description: "SEC accession numbers for this buyer."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 25
          examples:
            - - "0000320193-26-000101"
      examples:
        - owner_cik: "0001214156"
          owner_name: "Cook Timothy D"
          owner_title: "Chief Executive Officer"
          roles:
            - "ceo"
            - "officer"
            - "director"
          buy_shares: 10000
          buy_value_usd: 2200000
          trade_count: 1
          first_buy_date: "2026-11-20"
          last_buy_date: "2026-11-20"
          accession_numbers:
            - "0000320193-26-000101"
    InsiderCluster:
      type: "object"
      description: "One company with a detected multi-insider open-market buy cluster."
      additionalProperties: false
      required:
        - "issuer_cik"
        - "issuer_name"
        - "distinct_buyers"
        - "distinct_sellers"
        - "buy_trade_count"
        - "sell_trade_count"
        - "total_buy_shares"
        - "total_sell_shares"
        - "net_shares"
        - "total_buy_value_usd"
        - "total_sell_value_usd"
        - "net_value_usd"
        - "net_insider_sentiment_score"
        - "sentiment_label"
        - "has_ceo_buyer"
        - "has_cfo_buyer"
        - "insider_roles"
        - "latest_filing_date"
        - "buyers"
      properties:
        ticker:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/ticker"
        issuer_cik:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/issuer_cik"
        issuer_name:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/issuer_name"
        sector:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/sector"
        industry:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "SEC SIC industry."
          examples:
            - "Electronic Computers"
        distinct_buyers:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Distinct reporting owners buying in the window."
          examples:
            - 3
        distinct_sellers:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Distinct reporting owners selling in the window."
          examples:
            - 0
        buy_trade_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Open-market buy transaction count."
          examples:
            - 3
        sell_trade_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Open-market sell transaction count."
          examples:
            - 0
        total_buy_shares:
          type: "number"
          format: "double"
          description: "Total open-market shares purchased."
          examples:
            - 18000
        total_sell_shares:
          type: "number"
          format: "double"
          description: "Total open-market shares sold."
          examples:
            - 0
        net_shares:
          type: "number"
          format: "double"
          description: "Net open-market shares (buy minus sell)."
          examples:
            - 18000
        total_buy_value_usd:
          $ref: "#/components/schemas/InsiderClusterBuyer/properties/buy_value_usd"
        total_sell_value_usd:
          type: "number"
          format: "double"
          description: "Total open-market sell value in USD."
          examples:
            - 0
        net_value_usd:
          type: "number"
          format: "double"
          description: "Net insider dollar flow in USD."
          examples:
            - 3960000
        avg_buy_price_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume-weighted average buy price in USD/share."
          examples:
            - 220
        buy_sell_dollar_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Buy-to-sell dollar ratio; null if sell value is zero."
          examples:
            - null
        buy_share_of_total_value_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of combined buy+sell USD volume on the buy side."
          examples:
            - 100
        net_insider_sentiment_score:
          type: "number"
          format: "double"
          description: "Deterministic net insider sentiment score from -100 to +100."
          examples:
            - 100
        sentiment_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 30
          description: "Categorical sentiment label."
          examples:
            - "strong_bullish"
        has_ceo_buyer:
          type: "boolean"
          description: "True when a CEO participated in the cluster."
          examples:
            - true
        has_cfo_buyer:
          type: "boolean"
          description: "True when a CFO participated in the cluster."
          examples:
            - true
        insider_roles:
          type: "array"
          maxItems: 10
          description: "Union of buyer roles in the cluster."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 20
          examples:
            - - "ceo"
              - "cfo"
              - "director"
        earliest_buy_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Earliest buy date in the cluster."
          examples:
            - "2026-11-20"
        latest_buy_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Latest buy date in the cluster."
          examples:
            - "2026-11-25"
        latest_filing_date:
          type: "string"
          format: "date"
          description: "Latest filing date in the cluster."
          examples:
            - "2026-11-26"
        cluster_span_days:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: "Calendar days from earliest_buy_date to latest_buy_date."
          examples:
            - 5
        buyers:
          type: "array"
          maxItems: 50
          description: "Per-buyer breakdown with SEC accession provenance."
          items:
            $ref: "#/components/schemas/InsiderClusterBuyer"
      examples:
        - ticker: "AAPL"
          issuer_cik: "0000320193"
          issuer_name: "Apple Inc."
          sector: "Technology"
          industry: "Electronic Computers"
          distinct_buyers: 3
          distinct_sellers: 0
          buy_trade_count: 3
          sell_trade_count: 0
          total_buy_shares: 18000
          total_sell_shares: 0
          net_shares: 18000
          total_buy_value_usd: 3960000
          total_sell_value_usd: 0
          net_value_usd: 3960000
          avg_buy_price_usd: 220
          buy_sell_dollar_ratio: null
          buy_share_of_total_value_pct: 100
          net_insider_sentiment_score: 100
          sentiment_label: "strong_bullish"
          has_ceo_buyer: true
          has_cfo_buyer: true
          insider_roles:
            - "ceo"
            - "cfo"
            - "director"
            - "officer"
          earliest_buy_date: "2026-11-20"
          latest_buy_date: "2026-11-25"
          latest_filing_date: "2026-11-26"
          cluster_span_days: 5
          buyers:
            - owner_cik: "0001214156"
              owner_name: "Cook Timothy D"
              owner_title: "Chief Executive Officer"
              roles:
                - "ceo"
                - "officer"
                - "director"
              buy_shares: 10000
              buy_value_usd: 2200000
              trade_count: 1
              first_buy_date: "2026-11-20"
              last_buy_date: "2026-11-20"
              accession_numbers:
                - "0000320193-26-000101"
    InsiderClustersResponse:
      type: "object"
      description: "Answer of GET /insider-trades/clusters."
      additionalProperties: false
      required:
        - "window_days"
        - "window_start"
        - "window_end"
        - "min_insiders"
        - "min_cluster_value_usd"
        - "exclude_10b5_1"
        - "sort_by"
        - "units"
        - "methodology"
        - "returned"
        - "clusters"
      properties:
        window_days:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 9007199254740991
          description: "Lookback window length in calendar days."
          examples:
            - 30
        window_start:
          type: "string"
          format: "date"
          description: "Start date of window."
          examples:
            - "2026-10-31"
        window_end:
          type: "string"
          format: "date"
          description: "End date of window."
          examples:
            - "2026-11-30"
        min_insiders:
          type: "integer"
          format: "int64"
          minimum: 2
          maximum: 9007199254740991
          description: "Minimum distinct insider buyers threshold."
          examples:
            - 3
        min_cluster_value_usd:
          type: "number"
          format: "double"
          description: "Minimum cluster buy value threshold in USD."
          examples:
            - 0
        exclude_10b5_1:
          type: "boolean"
          description: "Whether Rule 10b5-1 trades were excluded."
          examples:
            - false
        sector:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Applied sector filter."
          examples:
            - null
        sort_by:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 30
          description: "Active sort metric."
          examples:
            - "total_buy_value_usd"
        units:
          type: "object"
          description: "Units of the cluster fields."
          additionalProperties: false
          required:
            - "window_days"
            - "cluster_span_days"
            - "total_buy_shares"
            - "total_sell_shares"
            - "net_shares"
            - "total_buy_value_usd"
            - "total_sell_value_usd"
            - "net_value_usd"
            - "avg_buy_price_usd"
            - "buy_sell_dollar_ratio"
            - "buy_share_of_total_value_pct"
            - "net_insider_sentiment_score"
          properties:
            window_days:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for window_days."
              examples:
                - "calendar days"
            cluster_span_days:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for cluster_span_days."
              examples:
                - "calendar days"
            total_buy_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_buy_shares."
              examples:
                - "shares"
            total_sell_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_sell_shares."
              examples:
                - "shares"
            net_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for net_shares."
              examples:
                - "shares"
            total_buy_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_buy_value_usd."
              examples:
                - "USD"
            total_sell_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_sell_value_usd."
              examples:
                - "USD"
            net_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for net_value_usd."
              examples:
                - "USD"
            avg_buy_price_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for avg_buy_price_usd."
              examples:
                - "USD/share"
            buy_sell_dollar_ratio:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for buy_sell_dollar_ratio."
              examples:
                - "ratio (buy_usd / sell_usd, null if sell_usd is 0)"
            buy_share_of_total_value_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for buy_share_of_total_value_pct."
              examples:
                - "percent (%)"
            net_insider_sentiment_score:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for net_insider_sentiment_score."
              examples:
                - "score (-100 to +100)"
          examples:
            - window_days: "calendar days"
              cluster_span_days: "calendar days"
              total_buy_shares: "shares"
              total_sell_shares: "shares"
              net_shares: "shares"
              total_buy_value_usd: "USD"
              total_sell_value_usd: "USD"
              net_value_usd: "USD"
              avg_buy_price_usd: "USD/share"
              buy_sell_dollar_ratio: "ratio (buy_usd / sell_usd, null if sell_usd is 0)"
              buy_share_of_total_value_pct: "percent (%)"
              net_insider_sentiment_score: "score (-100 to +100)"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1200
          description: "Cluster detection and sentiment methodology."
          examples:
            - "Open-market Form 4/5 cluster detector."
        returned:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Number of clusters returned."
          examples:
            - 1
        clusters:
          type: "array"
          maxItems: 100
          description: "Detected insider buy clusters."
          items:
            $ref: "#/components/schemas/InsiderCluster"
      examples:
        - window_days: 30
          window_start: "2026-10-31"
          window_end: "2026-11-30"
          min_insiders: 3
          min_cluster_value_usd: 0
          exclude_10b5_1: false
          sort_by: "total_buy_value_usd"
          units:
            window_days: "calendar days"
            cluster_span_days: "calendar days"
            total_buy_shares: "shares"
            total_sell_shares: "shares"
            net_shares: "shares"
            total_buy_value_usd: "USD"
            total_sell_value_usd: "USD"
            net_value_usd: "USD"
            avg_buy_price_usd: "USD/share"
            buy_sell_dollar_ratio: "ratio (buy_usd / sell_usd, null if sell_usd is 0)"
            buy_share_of_total_value_pct: "percent (%)"
            net_insider_sentiment_score: "score (-100 to +100)"
          methodology: "Open-market Form 4/5 cluster detector."
          returned: 1
          clusters:
            - ticker: "AAPL"
              issuer_cik: "0000320193"
              issuer_name: "Apple Inc."
              sector: "Technology"
              industry: "Electronic Computers"
              distinct_buyers: 3
              distinct_sellers: 0
              buy_trade_count: 3
              sell_trade_count: 0
              total_buy_shares: 18000
              total_sell_shares: 0
              net_shares: 18000
              total_buy_value_usd: 3960000
              total_sell_value_usd: 0
              net_value_usd: 3960000
              avg_buy_price_usd: 220
              buy_sell_dollar_ratio: null
              buy_share_of_total_value_pct: 100
              net_insider_sentiment_score: 100
              sentiment_label: "strong_bullish"
              has_ceo_buyer: true
              has_cfo_buyer: true
              insider_roles:
                - "ceo"
                - "cfo"
                - "director"
                - "officer"
              earliest_buy_date: "2026-11-20"
              latest_buy_date: "2026-11-25"
              latest_filing_date: "2026-11-26"
              cluster_span_days: 5
              buyers:
                - owner_cik: "0001214156"
                  owner_name: "Cook Timothy D"
                  owner_title: "Chief Executive Officer"
                  roles:
                    - "ceo"
                    - "officer"
                    - "director"
                  buy_shares: 10000
                  buy_value_usd: 2200000
                  trade_count: 1
                  first_buy_date: "2026-11-20"
                  last_buy_date: "2026-11-20"
                  accession_numbers:
                    - "0000320193-26-000101"
    InstitutionalPositionChange:
      type: "object"
      description: "One institution's quarter-over-quarter 13F holding change."
      additionalProperties: false
      required:
        - "cusip"
        - "issuer_name"
        - "filer_cik"
        - "filer_name"
        - "action"
        - "report_period"
        - "prior_report_period"
        - "current_shares"
        - "prior_shares"
        - "shares_change"
        - "current_value_usd"
        - "prior_value_usd"
        - "value_change_usd"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          maxLength: 12
          description: "Security ticker the CUSIP maps to."
          examples:
            - "AAPL"
        cusip:
          type: "string"
          pattern: "^[0-9A-Z]{9}$"
          maxLength: 9
          description: "Security CUSIP."
          examples:
            - "037833100"
        figi:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9]{12}$"
          maxLength: 12
          description: "The security's FIGI."
          examples:
            - "BBG000B9XRY4"
        issuer_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Issuer name as reported on 13F."
          examples:
            - "APPLE INC"
        title_of_class:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Security class."
          examples:
            - "COM"
        put_call:
          type:
            - "string"
            - "null"
          enum:
            - "Put"
            - "Call"
            - null
          description: "Option type; null for common equity."
          examples:
            - null
        filer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded 13F filer CIK."
          examples:
            - "0001067983"
        filer_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "13F institutional filer name."
          examples:
            - "BERKSHIRE HATHAWAY INC"
        action:
          type: "string"
          enum:
            - "new_position"
            - "added"
            - "reduced"
            - "sold_out"
            - "unchanged"
          description: "Quarter-over-quarter position action."
          examples:
            - "added"
        report_period:
          type: "string"
          format: "date"
          description: "Current quarter end."
          examples:
            - "2026-09-30"
        prior_report_period:
          type: "string"
          format: "date"
          description: "Prior quarter end."
          examples:
            - "2026-06-30"
        filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Filing date of current report in force."
          examples:
            - "2026-11-14"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          maxLength: 20
          description: "Current report accession number."
          examples:
            - "0001067983-26-000010"
        filing_url:
          type:
            - "string"
            - "null"
          format: "uri"
          maxLength: 500
          description: "SEC EDGAR index URL for current report."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/1067983/000106798326000010/0001067983-26-000010-index.htm"
        prior_accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          maxLength: 20
          description: "Prior report accession number."
          examples:
            - "0001067983-26-000005"
        current_shares:
          type: "number"
          format: "double"
          description: "Shares held in report_period."
          examples:
            - 4500000
        prior_shares:
          type: "number"
          format: "double"
          description: "Shares held in prior_report_period."
          examples:
            - 4000000
        shares_change:
          type: "number"
          format: "double"
          description: "Quarter-over-quarter share delta."
          examples:
            - 500000
        shares_change_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change in shares; null on new_position."
          examples:
            - 12.5
        current_value_usd:
          type: "number"
          format: "double"
          description: "Position value in USD for report_period."
          examples:
            - 990000000
        prior_value_usd:
          type: "number"
          format: "double"
          description: "Position value in USD for prior_report_period."
          examples:
            - 800000000
        value_change_usd:
          type: "number"
          format: "double"
          description: "Quarter-over-quarter value change in USD."
          examples:
            - 190000000
        value_change_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent change in USD value."
          examples:
            - 23.75
        pct_of_shares_outstanding:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Current shares as percent of XBRL shares outstanding; null on options."
          examples:
            - 0.03
        prior_pct_of_shares_outstanding:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Prior shares as percent of XBRL shares outstanding."
          examples:
            - 0.0267
        ownership_change_pct_points:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Quarter-over-quarter change in ownership percentage points."
          examples:
            - 0.0033
        shares_outstanding_reference:
          type:
            - "number"
            - "null"
          format: "double"
          description: "XBRL outstanding shares denominator."
          examples:
            - 15000000000
      examples:
        - ticker: "AAPL"
          cusip: "037833100"
          figi: "BBG000B9XRY4"
          issuer_name: "APPLE INC"
          title_of_class: "COM"
          put_call: null
          filer_cik: "0001067983"
          filer_name: "BERKSHIRE HATHAWAY INC"
          action: "added"
          report_period: "2026-09-30"
          prior_report_period: "2026-06-30"
          filing_date: "2026-11-14"
          accession_number: "0001067983-26-000010"
          filing_url: "https://www.sec.gov/Archives/edgar/data/1067983/000106798326000010/0001067983-26-000010-index.htm"
          prior_accession_number: "0001067983-26-000005"
          current_shares: 4500000
          prior_shares: 4000000
          shares_change: 500000
          shares_change_pct: 12.5
          current_value_usd: 990000000
          prior_value_usd: 800000000
          value_change_usd: 190000000
          value_change_pct: 23.75
          pct_of_shares_outstanding: 0.03
          prior_pct_of_shares_outstanding: 0.0267
          ownership_change_pct_points: 0.0033
          shares_outstanding_reference: 15000000000
    InstitutionalChangesResponse:
      type: "object"
      description: "Answer of GET /institutional-ownership/changes."
      additionalProperties: false
      required:
        - "report_period"
        - "prior_report_period"
        - "filters"
        - "units"
        - "methodology"
        - "returned"
        - "changes"
      properties:
        report_period:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/report_period"
        prior_report_period:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/prior_report_period"
        filters:
          type: "object"
          description: "Applied filters."
          additionalProperties: false
          required:
            - "put_call"
            - "sort_by"
            - "sort_order"
          properties:
            ticker:
              $ref: "#/components/schemas/InsiderScreenerResponse/properties/filters/properties/ticker"
            filer_cik:
              type:
                - "string"
                - "null"
              pattern: "^[0-9]{10}$"
              maxLength: 10
              description: "Filtered filer CIK."
              examples:
                - "0001067983"
            filer_name:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 200
              description: "Resolved filer name."
              examples:
                - "BERKSHIRE HATHAWAY INC"
            action:
              type:
                - "array"
                - "null"
              maxItems: 5
              description: "Filtered actions."
              items:
                type: "string"
                enum:
                  - "new_position"
                  - "added"
                  - "reduced"
                  - "sold_out"
                  - "unchanged"
              examples:
                - - "added"
            put_call:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 10
              description: "Instrument filter."
              examples:
                - "all"
            min_value_usd:
              $ref: "#/components/schemas/InsiderScreenerResponse/properties/filters/properties/min_value_usd"
            sort_by:
              $ref: "#/components/schemas/InsiderScreenerResponse/properties/filters/properties/sort_by"
            sort_order:
              $ref: "#/components/schemas/InsiderScreenerResponse/properties/filters/properties/sort_order"
          examples:
            - put_call: "all"
              sort_by: "abs_value_change_usd"
              sort_order: "desc"
        units:
          type: "object"
          description: "Units of the position change fields."
          additionalProperties: false
          required:
            - "current_shares"
            - "prior_shares"
            - "shares_change"
            - "shares_change_pct"
            - "current_value_usd"
            - "prior_value_usd"
            - "value_change_usd"
            - "value_change_pct"
            - "pct_of_shares_outstanding"
            - "prior_pct_of_shares_outstanding"
            - "ownership_change_pct_points"
            - "shares_outstanding_reference"
          properties:
            current_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for current_shares."
              examples:
                - "shares"
            prior_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for prior_shares."
              examples:
                - "shares"
            shares_change:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_change."
              examples:
                - "shares"
            shares_change_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_change_pct."
              examples:
                - "percent (%)"
            current_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for current_value_usd."
              examples:
                - "USD"
            prior_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for prior_value_usd."
              examples:
                - "USD"
            value_change_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for value_change_usd."
              examples:
                - "USD"
            value_change_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for value_change_pct."
              examples:
                - "percent (%)"
            pct_of_shares_outstanding:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for pct_of_shares_outstanding."
              examples:
                - "percent (%)"
            prior_pct_of_shares_outstanding:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for prior_pct_of_shares_outstanding."
              examples:
                - "percent (%)"
            ownership_change_pct_points:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for ownership_change_pct_points."
              examples:
                - "percentage points (pp)"
            shares_outstanding_reference:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_outstanding_reference."
              examples:
                - "shares"
          examples:
            - current_shares: "shares"
              prior_shares: "shares"
              shares_change: "shares"
              shares_change_pct: "percent (%)"
              current_value_usd: "USD"
              prior_value_usd: "USD"
              value_change_usd: "USD"
              value_change_pct: "percent (%)"
              pct_of_shares_outstanding: "percent (%)"
              prior_pct_of_shares_outstanding: "percent (%)"
              ownership_change_pct_points: "percentage points (pp)"
              shares_outstanding_reference: "shares"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1200
          description: "13F QoQ comparison methodology."
          examples:
            - "Compares in-force 13F reports."
        returned:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Number of changes returned."
          examples:
            - 1
        changes:
          type: "array"
          maxItems: 100
          description: "Quarter-over-quarter 13F position changes."
          items:
            $ref: "#/components/schemas/InstitutionalPositionChange"
        next_page_url:
          $ref: "#/components/schemas/InsiderScreenerResponse/properties/next_page_url"
      examples:
        - report_period: "2026-09-30"
          prior_report_period: "2026-06-30"
          filters:
            put_call: "all"
            sort_by: "abs_value_change_usd"
            sort_order: "desc"
          units:
            current_shares: "shares"
            prior_shares: "shares"
            shares_change: "shares"
            shares_change_pct: "percent (%)"
            current_value_usd: "USD"
            prior_value_usd: "USD"
            value_change_usd: "USD"
            value_change_pct: "percent (%)"
            pct_of_shares_outstanding: "percent (%)"
            prior_pct_of_shares_outstanding: "percent (%)"
            ownership_change_pct_points: "percentage points (pp)"
            shares_outstanding_reference: "shares"
          methodology: "Compares in-force 13F reports."
          returned: 1
          changes:
            - ticker: "AAPL"
              cusip: "037833100"
              figi: "BBG000B9XRY4"
              issuer_name: "APPLE INC"
              title_of_class: "COM"
              put_call: null
              filer_cik: "0001067983"
              filer_name: "BERKSHIRE HATHAWAY INC"
              action: "added"
              report_period: "2026-09-30"
              prior_report_period: "2026-06-30"
              filing_date: "2026-11-14"
              accession_number: "0001067983-26-000010"
              filing_url: "https://www.sec.gov/Archives/edgar/data/1067983/000106798326000010/0001067983-26-000010-index.htm"
              prior_accession_number: "0001067983-26-000005"
              current_shares: 4500000
              prior_shares: 4000000
              shares_change: 500000
              shares_change_pct: 12.5
              current_value_usd: 990000000
              prior_value_usd: 800000000
              value_change_usd: 190000000
              value_change_pct: 23.75
              pct_of_shares_outstanding: 0.03
              prior_pct_of_shares_outstanding: 0.0267
              ownership_change_pct_points: 0.0033
              shares_outstanding_reference: 15000000000
    InstitutionalTopBoughtStock:
      type: "object"
      description: "One ranked stock in GET /institutional-ownership/top-bought."
      additionalProperties: false
      required:
        - "rank"
        - "cusip"
        - "issuer_name"
        - "total_holders_current"
        - "total_holders_prior"
        - "net_holders_change"
        - "buyers_count"
        - "sellers_count"
        - "net_buyers_count"
        - "new_positions_count"
        - "added_positions_count"
        - "reduced_positions_count"
        - "sold_out_positions_count"
        - "total_shares_current"
        - "total_shares_prior"
        - "net_shares_change"
        - "total_value_current_usd"
        - "total_value_prior_usd"
        - "net_value_change_usd"
        - "net_flow_value_usd"
      properties:
        rank:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 9007199254740991
          description: "1-based rank in this result set."
          examples:
            - 1
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          maxLength: 12
          description: "Security ticker."
          examples:
            - "AAPL"
        cusip:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/cusip"
        figi:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/figi"
        issuer_name:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/issuer_name"
        total_holders_current:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "13F holders in current quarter."
          examples:
            - 4200
        total_holders_prior:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "13F holders in prior quarter."
          examples:
            - 4050
        net_holders_change:
          type: "integer"
          format: "int64"
          minimum: -1000000
          maximum: 9007199254740991
          description: "Change in holder count."
          examples:
            - 150
        buyers_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Filers with new or added positions."
          examples:
            - 1850
        sellers_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Filers with reduced or sold-out positions."
          examples:
            - 1420
        net_buyers_count:
          type: "integer"
          format: "int64"
          minimum: -1000000
          maximum: 9007199254740991
          description: "Buyers minus sellers."
          examples:
            - 430
        new_positions_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Newly initiated 13F positions."
          examples:
            - 240
        added_positions_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Increased existing 13F positions."
          examples:
            - 1610
        reduced_positions_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Trimmed existing 13F positions."
          examples:
            - 1330
        sold_out_positions_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Completely exited 13F positions."
          examples:
            - 90
        total_shares_current:
          type: "number"
          format: "double"
          description: "Total 13F shares held in current quarter."
          examples:
            - 9200000000
        total_shares_prior:
          type: "number"
          format: "double"
          description: "Total 13F shares held in prior quarter."
          examples:
            - 9050000000
        net_shares_change:
          type: "number"
          format: "double"
          description: "Net quarter-over-quarter 13F share change."
          examples:
            - 150000000
        total_value_current_usd:
          type: "number"
          format: "double"
          description: "Total 13F market value in USD (current)."
          examples:
            - 2024000000000
        total_value_prior_usd:
          type: "number"
          format: "double"
          description: "Total 13F market value in USD (prior)."
          examples:
            - 1900500000000
        net_value_change_usd:
          type: "number"
          format: "double"
          description: "Total USD value change including price movement."
          examples:
            - 123500000000
        net_flow_value_usd:
          type: "number"
          format: "double"
          description: "Price-adjusted net USD institutional flow."
          examples:
            - 33000000000
        institutional_ownership_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "13F shares as percent of XBRL shares outstanding."
          examples:
            - 61.3333
        net_shares_change_pct_of_outstanding:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Net share change as percent of shares outstanding."
          examples:
            - 1
        shares_outstanding_reference:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/shares_outstanding_reference"
      examples:
        - rank: 1
          ticker: "AAPL"
          cusip: "037833100"
          figi: "BBG000B9XRY4"
          issuer_name: "APPLE INC"
          total_holders_current: 4200
          total_holders_prior: 4050
          net_holders_change: 150
          buyers_count: 1850
          sellers_count: 1420
          net_buyers_count: 430
          new_positions_count: 240
          added_positions_count: 1610
          reduced_positions_count: 1330
          sold_out_positions_count: 90
          total_shares_current: 9200000000
          total_shares_prior: 9050000000
          net_shares_change: 150000000
          total_value_current_usd: 2024000000000
          total_value_prior_usd: 1900500000000
          net_value_change_usd: 123500000000
          net_flow_value_usd: 33000000000
          institutional_ownership_pct: 61.3333
          net_shares_change_pct_of_outstanding: 1
          shares_outstanding_reference: 15000000000
    InstitutionalTopBoughtResponse:
      type: "object"
      description: "Answer of GET /institutional-ownership/top-bought."
      additionalProperties: false
      required:
        - "direction"
        - "report_period"
        - "prior_report_period"
        - "min_holders"
        - "sort_by"
        - "units"
        - "methodology"
        - "returned"
        - "stocks"
      properties:
        direction:
          type: "string"
          enum:
            - "bought"
            - "sold"
          description: "Ranking direction."
          examples:
            - "bought"
        report_period:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/report_period"
        prior_report_period:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/prior_report_period"
        min_holders:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 9007199254740991
          description: "Minimum holders filter."
          examples:
            - 1
        sort_by:
          $ref: "#/components/schemas/InsiderClustersResponse/properties/sort_by"
        units:
          type: "object"
          description: "Units of the top-bought fields."
          additionalProperties: false
          required:
            - "total_shares_current"
            - "total_shares_prior"
            - "net_shares_change"
            - "total_value_current_usd"
            - "total_value_prior_usd"
            - "net_value_change_usd"
            - "net_flow_value_usd"
            - "institutional_ownership_pct"
            - "net_shares_change_pct_of_outstanding"
            - "shares_outstanding_reference"
          properties:
            total_shares_current:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_shares_current."
              examples:
                - "shares"
            total_shares_prior:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_shares_prior."
              examples:
                - "shares"
            net_shares_change:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for net_shares_change."
              examples:
                - "shares"
            total_value_current_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_value_current_usd."
              examples:
                - "USD"
            total_value_prior_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_value_prior_usd."
              examples:
                - "USD"
            net_value_change_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for net_value_change_usd."
              examples:
                - "USD"
            net_flow_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for net_flow_value_usd."
              examples:
                - "USD (price-adjusted share change * implied period-end share price)"
            institutional_ownership_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for institutional_ownership_pct."
              examples:
                - "percent (%)"
            net_shares_change_pct_of_outstanding:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for net_shares_change_pct_of_outstanding."
              examples:
                - "percent (%)"
            shares_outstanding_reference:
              $ref: "#/components/schemas/InstitutionalChangesResponse/properties/units/properties/shares_outstanding_reference"
          examples:
            - total_shares_current: "shares"
              total_shares_prior: "shares"
              net_shares_change: "shares"
              total_value_current_usd: "USD"
              total_value_prior_usd: "USD"
              net_value_change_usd: "USD"
              net_flow_value_usd: "USD (price-adjusted share change * implied period-end share price)"
              institutional_ownership_pct: "percent (%)"
              net_shares_change_pct_of_outstanding: "percent (%)"
              shares_outstanding_reference: "shares"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1200
          description: "Ranking methodology."
          examples:
            - "Ranks common equity positions across all in-force 13F filers."
        returned:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Number of ranked stocks returned."
          examples:
            - 1
        stocks:
          type: "array"
          maxItems: 100
          description: "Ranked most-bought or most-sold stocks."
          items:
            $ref: "#/components/schemas/InstitutionalTopBoughtStock"
      examples:
        - direction: "bought"
          report_period: "2026-09-30"
          prior_report_period: "2026-06-30"
          min_holders: 1
          sort_by: "net_flow_value_usd"
          units:
            total_shares_current: "shares"
            total_shares_prior: "shares"
            net_shares_change: "shares"
            total_value_current_usd: "USD"
            total_value_prior_usd: "USD"
            net_value_change_usd: "USD"
            net_flow_value_usd: "USD (price-adjusted share change * implied period-end share price)"
            institutional_ownership_pct: "percent (%)"
            net_shares_change_pct_of_outstanding: "percent (%)"
            shares_outstanding_reference: "shares"
          methodology: "Ranks common equity positions across all in-force 13F filers."
          returned: 1
          stocks:
            - rank: 1
              ticker: "AAPL"
              cusip: "037833100"
              figi: "BBG000B9XRY4"
              issuer_name: "APPLE INC"
              total_holders_current: 4200
              total_holders_prior: 4050
              net_holders_change: 150
              buyers_count: 1850
              sellers_count: 1420
              net_buyers_count: 430
              new_positions_count: 240
              added_positions_count: 1610
              reduced_positions_count: 1330
              sold_out_positions_count: 90
              total_shares_current: 9200000000
              total_shares_prior: 9050000000
              net_shares_change: 150000000
              total_value_current_usd: 2024000000000
              total_value_prior_usd: 1900500000000
              net_value_change_usd: 123500000000
              net_flow_value_usd: 33000000000
              institutional_ownership_pct: 61.3333
              net_shares_change_pct_of_outstanding: 1
              shares_outstanding_reference: 15000000000
    OwnershipSummaryTopHolder:
      type: "object"
      description: "One top 13F holder in GET /ownership/summary."
      additionalProperties: false
      required:
        - "filer_cik"
        - "filer_name"
        - "shares"
        - "prior_shares"
        - "shares_change_qoq"
        - "action"
        - "value_usd"
        - "report_period"
      properties:
        filer_cik:
          $ref: "#/components/schemas/InstitutionalPositionChange/properties/filer_cik"
        filer_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Institutional filer name."
          examples:
            - "BERKSHIRE HATHAWAY INC"
        shares:
          type: "number"
          format: "double"
          description: "Shares held in current quarter."
          examples:
            - 4500000
        prior_shares:
          type: "number"
          format: "double"
          description: "Shares held in prior quarter."
          examples:
            - 4000000
        shares_change_qoq:
          type: "number"
          format: "double"
          description: "Quarter-over-quarter share change."
          examples:
            - 500000
        action:
          type: "string"
          enum:
            - "new_position"
            - "added"
            - "reduced"
            - "sold_out"
            - "unchanged"
          description: "QoQ position action."
          examples:
            - "added"
        value_usd:
          type: "number"
          format: "double"
          description: "Position value in USD."
          examples:
            - 990000000
        pct_of_shares_outstanding:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of XBRL shares outstanding."
          examples:
            - 0.03
        report_period:
          type: "string"
          format: "date"
          description: "Report quarter end."
          examples:
            - "2026-09-30"
        filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Filing date."
          examples:
            - "2026-11-14"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          maxLength: 20
          description: "Accession number of the holder's 13F report; null without one."
          examples:
            - "0001067983-26-000010"
        filing_url:
          type:
            - "string"
            - "null"
          format: "uri"
          maxLength: 500
          description: "The holder's 13F report on sec.gov; null without one."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/1067983/000106798326000010/0001067983-26-000010-index.htm"
      examples:
        - filer_cik: "0001067983"
          filer_name: "BERKSHIRE HATHAWAY INC"
          shares: 4500000
          prior_shares: 4000000
          shares_change_qoq: 500000
          action: "added"
          value_usd: 990000000
          report_period: "2026-09-30"
    OwnershipSummaryBeneficialStake:
      type: "object"
      description: "One active Schedule 13D or 13G stake in GET /ownership/summary."
      additionalProperties: false
      required:
        - "filer_cik"
        - "reporting_person_name"
        - "reporting_persons_count"
        - "stake_type"
        - "form_type"
        - "filing_date"
        - "accession_number"
        - "filing_url"
      properties:
        filer_cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded filer CIK."
          examples:
            - "0001364742"
        reporting_person_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Lead reporting person name."
          examples:
            - "BlackRock, Inc."
        reporting_persons_count:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 9007199254740991
          description: "Joint reporting persons on the filing."
          examples:
            - 1
        stake_type:
          type: "string"
          enum:
            - "activist"
            - "passive"
          description: "Schedule 13D activist or Schedule 13G passive stake."
          examples:
            - "passive"
        form_type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "SEC schedule form type."
          examples:
            - "SCHEDULE 13G/A"
        filing_date:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/filing_date"
        event_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "Event date."
          examples:
            - "2026-09-30"
        shares_owned:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Aggregate shares beneficially owned."
          examples:
            - 1050000000
        percent_of_class_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Reported percent of class (0 to 100)."
          examples:
            - 7
        purpose_of_transaction:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 5000
          description: "Item 4 purpose summary (13D)."
          examples:
            - null
        accession_number:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/accession_number"
        filing_url:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/filing_url"
      examples:
        - filer_cik: "0001364742"
          reporting_person_name: "BlackRock, Inc."
          reporting_persons_count: 1
          stake_type: "passive"
          form_type: "SCHEDULE 13G/A"
          filing_date: "2026-11-12"
          accession_number: "0001364742-26-000010"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000136474226000010/0001364742-26-000010-index.htm"
    OwnershipSummaryInsiderTrade:
      type: "object"
      description: "One recent open-market Form 4/5 trade in GET /ownership/summary."
      additionalProperties: false
      required:
        - "insider_name"
        - "roles"
        - "transaction_code"
        - "filing_date"
        - "is_10b5_1_plan"
        - "accession_number"
        - "filing_url"
      properties:
        insider_cik:
          $ref: "#/components/schemas/InsiderClusterBuyer/properties/owner_cik"
        insider_name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Name of the insider who reported the trade."
          examples:
            - "Cook Timothy D"
        insider_title:
          $ref: "#/components/schemas/InsiderClusterBuyer/properties/owner_title"
        roles:
          $ref: "#/components/schemas/InsiderClusterBuyer/properties/roles"
        transaction_code:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 4
          description: "SEC transaction code (P or S)."
          examples:
            - "P"
        transaction_category:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 30
          description: "Normalized category."
          examples:
            - "buy"
        filing_date:
          type: "string"
          format: "date"
          description: "The day the insider filed the trade."
          examples:
            - "2026-11-26"
        transaction_date:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/transaction_date"
        shares:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/transaction_shares"
        price_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Price per share in USD."
          examples:
            - 220
        value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Transaction value in USD."
          examples:
            - 2200000
        is_10b5_1_plan:
          type: "boolean"
          description: "True when executed under a Rule 10b5-1 plan."
          examples:
            - false
        accession_number:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/accession_number"
        filing_url:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/filing_url"
      examples:
        - insider_name: "Cook Timothy D"
          roles:
            - "ceo"
            - "officer"
          transaction_code: "P"
          filing_date: "2026-11-26"
          is_10b5_1_plan: false
          accession_number: "0000320193-26-000101"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000101/0000320193-26-000101-index.htm"
    OwnershipSummaryFundHolder:
      type: "object"
      description: "One top Form N-PORT ETF or mutual fund holder in GET /ownership/summary."
      additionalProperties: false
      required:
        - "series_id"
        - "as_of_date"
        - "accession_number"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          maxLength: 12
          description: "Fund ticker if mapped."
          examples:
            - "VOO"
        fund_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Fund series name."
          examples:
            - "Vanguard 500 Index Fund"
        registrant_cik:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}$"
          maxLength: 10
          description: "Ten-digit zero-padded registrant CIK."
          examples:
            - "0000036405"
        series_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 30
          description: "SEC fund series ID."
          examples:
            - "S000002839"
        weight_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Percent of fund net assets (0 to 100)."
          examples:
            - 7.12
        market_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Holding market value in USD."
          examples:
            - 42000000000
        shares:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Shares held by fund."
          examples:
            - 190000000
        as_of_date:
          type: "string"
          format: "date"
          description: "N-PORT report period end."
          examples:
            - "2026-09-30"
        filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "N-PORT filing date."
          examples:
            - "2026-11-20"
        accession_number:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/accession_number"
      examples:
        - series_id: "S000002839"
          as_of_date: "2026-09-30"
          accession_number: "0001752724-26-000100"
    OwnershipSummaryResponse:
      type: "object"
      description: "Answer of GET /ownership/summary combining 13F, Schedule 13D/13G, Form 4/5 insiders, and Form N-PORT ETF/funds."
      additionalProperties: false
      required:
        - "cik"
        - "cusips"
        - "shares_outstanding_reference"
        - "as_of"
        - "units"
        - "methodology"
        - "institutional_13f"
        - "beneficial_13d_13g"
        - "insider_activity"
        - "etf_and_fund_holders"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          maxLength: 12
          description: "Company ticker."
          examples:
            - "AAPL"
        cik:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/issuer_cik"
        company_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The company's name; null when SEC lists none."
          examples:
            - "Apple Inc."
        sector:
          $ref: "#/components/schemas/InsiderScreenerTrade/properties/sector"
        industry:
          $ref: "#/components/schemas/InsiderCluster/properties/industry"
        cusips:
          type: "array"
          maxItems: 50
          description: "CUSIPs mapped to this ticker."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 12
          examples:
            - - "037833100"
        shares_outstanding_reference:
          type: "object"
          description: "Latest XBRL shares outstanding denominator."
          additionalProperties: false
          required:
            - "shares_outstanding"
            - "report_period"
            - "accession_number"
          properties:
            shares_outstanding:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Outstanding shares count."
              examples:
                - 15000000000
            report_period:
              type:
                - "string"
                - "null"
              format: "date"
              description: "Statement period end."
              examples:
                - "2026-09-26"
            accession_number:
              type:
                - "string"
                - "null"
              pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
              maxLength: 20
              description: "Source SEC accession number."
              examples:
                - "0000320193-26-000105"
          examples:
            - shares_outstanding: 15000000000
              report_period: "2026-09-26"
              accession_number: "0000320193-26-000105"
        as_of:
          type: "string"
          format: "date-time"
          description: "UTC timestamp when the summary was generated."
          examples:
            - "2026-11-30T00:00:00.000Z"
        units:
          type: "object"
          description: "Units of the ownership summary fields."
          additionalProperties: false
          required:
            - "shares_outstanding"
            - "total_institutional_shares"
            - "prior_institutional_shares"
            - "shares_change_qoq"
            - "shares_change_qoq_pct"
            - "total_institutional_value_usd"
            - "institutional_ownership_pct"
            - "top_10_concentration_pct"
            - "put_call_share_ratio"
            - "activist_combined_pct"
            - "passive_combined_pct"
            - "percent_of_class_pct"
            - "insider_window_days"
            - "total_buy_shares"
            - "total_sell_shares"
            - "net_shares"
            - "total_buy_value_usd"
            - "total_sell_value_usd"
            - "net_value_usd"
            - "buy_sell_dollar_ratio"
            - "buy_share_of_total_value_pct"
            - "net_insider_sentiment_score"
            - "total_fund_shares"
            - "total_fund_value_usd"
            - "fund_ownership_pct"
            - "weight_pct"
          properties:
            shares_outstanding:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_outstanding."
              examples:
                - "shares"
            total_institutional_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_institutional_shares."
              examples:
                - "shares"
            prior_institutional_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for prior_institutional_shares."
              examples:
                - "shares"
            shares_change_qoq:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_change_qoq."
              examples:
                - "shares"
            shares_change_qoq_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for shares_change_qoq_pct."
              examples:
                - "percent (%)"
            total_institutional_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_institutional_value_usd."
              examples:
                - "USD"
            institutional_ownership_pct:
              $ref: "#/components/schemas/InstitutionalTopBoughtResponse/properties/units/properties/institutional_ownership_pct"
            top_10_concentration_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for top_10_concentration_pct."
              examples:
                - "percent (%)"
            put_call_share_ratio:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for put_call_share_ratio."
              examples:
                - "ratio (put_shares / call_shares)"
            activist_combined_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for activist_combined_pct."
              examples:
                - "percent (%)"
            passive_combined_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for passive_combined_pct."
              examples:
                - "percent (%)"
            percent_of_class_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for percent_of_class_pct."
              examples:
                - "percent (%)"
            insider_window_days:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for insider_window_days."
              examples:
                - "calendar days"
            total_buy_shares:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/total_buy_shares"
            total_sell_shares:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/total_sell_shares"
            net_shares:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/net_shares"
            total_buy_value_usd:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/total_buy_value_usd"
            total_sell_value_usd:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/total_sell_value_usd"
            net_value_usd:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/net_value_usd"
            buy_sell_dollar_ratio:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/buy_sell_dollar_ratio"
            buy_share_of_total_value_pct:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/buy_share_of_total_value_pct"
            net_insider_sentiment_score:
              $ref: "#/components/schemas/InsiderClustersResponse/properties/units/properties/net_insider_sentiment_score"
            total_fund_shares:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_fund_shares."
              examples:
                - "shares"
            total_fund_value_usd:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for total_fund_value_usd."
              examples:
                - "USD"
            fund_ownership_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for fund_ownership_pct."
              examples:
                - "percent (%)"
            weight_pct:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "Unit for weight_pct."
              examples:
                - "percent (% of fund net assets)"
          examples:
            - shares_outstanding: "shares"
              total_institutional_shares: "shares"
              prior_institutional_shares: "shares"
              shares_change_qoq: "shares"
              shares_change_qoq_pct: "percent (%)"
              total_institutional_value_usd: "USD"
              institutional_ownership_pct: "percent (%)"
              top_10_concentration_pct: "percent (%)"
              put_call_share_ratio: "ratio (put_shares / call_shares)"
              activist_combined_pct: "percent (%)"
              passive_combined_pct: "percent (%)"
              percent_of_class_pct: "percent (%)"
              insider_window_days: "calendar days"
              total_buy_shares: "shares"
              total_sell_shares: "shares"
              net_shares: "shares"
              total_buy_value_usd: "USD"
              total_sell_value_usd: "USD"
              net_value_usd: "USD"
              buy_sell_dollar_ratio: "ratio (buy_usd / sell_usd)"
              buy_share_of_total_value_pct: "percent (%)"
              net_insider_sentiment_score: "score (-100 to +100)"
              total_fund_shares: "shares"
              total_fund_value_usd: "USD"
              fund_ownership_pct: "percent (%)"
              weight_pct: "percent (% of fund net assets)"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 1500
          description: "Unified ownership summary methodology."
          examples:
            - "Combines 13F, 13D/G, Form 4/5, and N-PORT."
        institutional_13f:
          type: "object"
          description: "Latest Form 13F institutional ownership summary and top 10 holders."
          additionalProperties: false
          required:
            - "institutional_holders_count"
            - "prior_holders_count"
            - "holders_change_qoq"
            - "total_institutional_shares"
            - "prior_institutional_shares"
            - "shares_change_qoq"
            - "total_institutional_value_usd"
            - "prior_institutional_value_usd"
            - "value_change_qoq_usd"
            - "position_changes"
            - "top_holders"
          properties:
            report_period:
              type:
                - "string"
                - "null"
              format: "date"
              description: "Latest completed 13F quarter."
              examples:
                - "2026-09-30"
            prior_report_period:
              type:
                - "string"
                - "null"
              format: "date"
              description: "Prior 13F quarter."
              examples:
                - "2026-06-30"
            institutional_holders_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Current 13F holders count."
              examples:
                - 4200
            prior_holders_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Prior quarter 13F holders count."
              examples:
                - 4050
            holders_change_qoq:
              type: "integer"
              format: "int64"
              minimum: -1000000
              maximum: 9007199254740991
              description: "Quarter-over-quarter change in holders."
              examples:
                - 150
            total_institutional_shares:
              type: "number"
              format: "double"
              description: "Total 13F common equity shares."
              examples:
                - 9200000000
            prior_institutional_shares:
              type: "number"
              format: "double"
              description: "Prior quarter 13F shares."
              examples:
                - 9050000000
            shares_change_qoq:
              type: "number"
              format: "double"
              description: "QoQ share change."
              examples:
                - 150000000
            shares_change_qoq_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "QoQ percent share change."
              examples:
                - 1.66
            total_institutional_value_usd:
              type: "number"
              format: "double"
              description: "Current 13F value in USD."
              examples:
                - 2024000000000
            prior_institutional_value_usd:
              type: "number"
              format: "double"
              description: "Prior 13F value in USD."
              examples:
                - 1900500000000
            value_change_qoq_usd:
              type: "number"
              format: "double"
              description: "QoQ USD value change."
              examples:
                - 123500000000
            institutional_ownership_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "13F shares as percent of shares outstanding."
              examples:
                - 61.33
            top_10_concentration_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Top 10 holders share of total 13F shares (%)."
              examples:
                - 32.5
            put_call_share_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Put-to-call 13F option share ratio."
              examples:
                - 0.625
            position_changes:
              type: "object"
              description: "Counts of QoQ position actions."
              additionalProperties: false
              required:
                - "new_positions_count"
                - "added_positions_count"
                - "reduced_positions_count"
                - "sold_out_positions_count"
              properties:
                new_positions_count:
                  type: "integer"
                  format: "int64"
                  minimum: 0
                  maximum: 9007199254740991
                  description: "New positions."
                  examples:
                    - 240
                added_positions_count:
                  type: "integer"
                  format: "int64"
                  minimum: 0
                  maximum: 9007199254740991
                  description: "Added positions."
                  examples:
                    - 1610
                reduced_positions_count:
                  type: "integer"
                  format: "int64"
                  minimum: 0
                  maximum: 9007199254740991
                  description: "Reduced positions."
                  examples:
                    - 1330
                sold_out_positions_count:
                  type: "integer"
                  format: "int64"
                  minimum: 0
                  maximum: 9007199254740991
                  description: "Sold-out positions."
                  examples:
                    - 90
              examples:
                - new_positions_count: 240
                  added_positions_count: 1610
                  reduced_positions_count: 1330
                  sold_out_positions_count: 90
            top_holders:
              type: "array"
              maxItems: 10
              description: "Top 10 institutional holders."
              items:
                $ref: "#/components/schemas/OwnershipSummaryTopHolder"
          examples:
            - report_period: "2026-09-30"
              prior_report_period: "2026-06-30"
              institutional_holders_count: 4200
              prior_holders_count: 4050
              holders_change_qoq: 150
              total_institutional_shares: 9200000000
              prior_institutional_shares: 9050000000
              shares_change_qoq: 150000000
              shares_change_qoq_pct: 1.66
              total_institutional_value_usd: 2024000000000
              prior_institutional_value_usd: 1900500000000
              value_change_qoq_usd: 123500000000
              institutional_ownership_pct: 61.3333
              top_10_concentration_pct: 32.5
              put_call_share_ratio: 0.625
              position_changes:
                new_positions_count: 240
                added_positions_count: 1610
                reduced_positions_count: 1330
                sold_out_positions_count: 90
              top_holders: []
        beneficial_13d_13g:
          type: "object"
          description: "Active Schedule 13D activist and Schedule 13G passive beneficial stakes."
          additionalProperties: false
          required:
            - "total_beneficial_filers_count"
            - "activist_stakes_count"
            - "passive_stakes_count"
            - "activist_combined_pct"
            - "passive_combined_pct"
            - "activist_stakes"
            - "top_passive_stakes"
          properties:
            total_beneficial_filers_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Active Schedule 13D/13G filers."
              examples:
                - 2
            activist_stakes_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Active Schedule 13D stakes."
              examples:
                - 0
            passive_stakes_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Active Schedule 13G stakes."
              examples:
                - 2
            activist_combined_pct:
              type: "number"
              format: "double"
              description: "Combined activist percent of class."
              examples:
                - 0
            passive_combined_pct:
              type: "number"
              format: "double"
              description: "Combined passive percent of class."
              examples:
                - 16.4
            activist_stakes:
              type: "array"
              maxItems: 10
              description: "Top activist stakes."
              items:
                $ref: "#/components/schemas/OwnershipSummaryBeneficialStake"
            top_passive_stakes:
              type: "array"
              maxItems: 10
              description: "Top passive stakes."
              items:
                $ref: "#/components/schemas/OwnershipSummaryBeneficialStake"
          examples:
            - total_beneficial_filers_count: 2
              activist_stakes_count: 0
              passive_stakes_count: 2
              activist_combined_pct: 0
              passive_combined_pct: 16.4
              activist_stakes: []
              top_passive_stakes: []
        insider_activity:
          type: "object"
          description: "Recent Form 4/5 open-market insider net buying, sentiment score, and recent trades."
          additionalProperties: false
          required:
            - "insider_window_days"
            - "window_start"
            - "window_end"
            - "distinct_buyers"
            - "distinct_sellers"
            - "buy_trade_count"
            - "sell_trade_count"
            - "total_buy_shares"
            - "total_sell_shares"
            - "net_shares"
            - "total_buy_value_usd"
            - "total_sell_value_usd"
            - "net_value_usd"
            - "net_insider_sentiment_score"
            - "sentiment_label"
            - "recent_trades"
          properties:
            insider_window_days:
              type: "integer"
              format: "int64"
              minimum: 7
              maximum: 9007199254740991
              description: "Lookback window in calendar days."
              examples:
                - 90
            window_start:
              type: "string"
              format: "date"
              description: "Window start date."
              examples:
                - "2026-09-01"
            window_end:
              type: "string"
              format: "date"
              description: "Window end date."
              examples:
                - "2026-11-30"
            distinct_buyers:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Distinct insiders buying."
              examples:
                - 2
            distinct_sellers:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Distinct insiders selling."
              examples:
                - 1
            buy_trade_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Open-market buy count."
              examples:
                - 2
            sell_trade_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Open-market sell count."
              examples:
                - 1
            total_buy_shares:
              type: "number"
              format: "double"
              description: "Total open-market shares bought."
              examples:
                - 15000
            total_sell_shares:
              $ref: "#/components/schemas/InsiderCluster/properties/total_sell_shares"
            net_shares:
              type: "number"
              format: "double"
              description: "Net insider shares."
              examples:
                - 10000
            total_buy_value_usd:
              $ref: "#/components/schemas/InsiderClusterBuyer/properties/buy_value_usd"
            total_sell_value_usd:
              $ref: "#/components/schemas/InsiderCluster/properties/total_sell_value_usd"
            net_value_usd:
              $ref: "#/components/schemas/InsiderCluster/properties/net_value_usd"
            buy_sell_dollar_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Buy-to-sell dollar ratio."
              examples:
                - 3
            buy_share_of_total_value_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Buy share of buy+sell USD volume (%)."
              examples:
                - 75
            net_insider_sentiment_score:
              type: "number"
              format: "double"
              description: "Net insider sentiment score (-100 to +100)."
              examples:
                - 52.5
            sentiment_label:
              $ref: "#/components/schemas/InsiderCluster/properties/sentiment_label"
            recent_trades:
              type: "array"
              maxItems: 10
              description: "Recent open-market Form 4/5 trades."
              items:
                $ref: "#/components/schemas/OwnershipSummaryInsiderTrade"
          examples:
            - insider_window_days: 90
              window_start: "2026-09-01"
              window_end: "2026-11-30"
              distinct_buyers: 2
              distinct_sellers: 1
              buy_trade_count: 2
              sell_trade_count: 1
              total_buy_shares: 15000
              total_sell_shares: 5000
              net_shares: 10000
              total_buy_value_usd: 3300000
              total_sell_value_usd: 1100000
              net_value_usd: 2200000
              buy_sell_dollar_ratio: 3
              buy_share_of_total_value_pct: 75
              net_insider_sentiment_score: 52.5
              sentiment_label: "bullish"
              recent_trades: []
        etf_and_fund_holders:
          type: "object"
          description: "Active Form N-PORT ETF and mutual fund ownership summary and top 10 funds."
          additionalProperties: false
          required:
            - "total_funds_holding_count"
            - "total_fund_shares"
            - "total_fund_value_usd"
            - "top_funds"
          properties:
            total_funds_holding_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9007199254740991
              description: "Active N-PORT funds holding the stock."
              examples:
                - 420
            total_fund_shares:
              type: "number"
              format: "double"
              description: "Total shares held across active funds."
              examples:
                - 2100000000
            total_fund_value_usd:
              type: "number"
              format: "double"
              description: "Total market value across active funds in USD."
              examples:
                - 462000000000
            fund_ownership_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Fund shares as percent of shares outstanding."
              examples:
                - 14
            top_funds:
              type: "array"
              maxItems: 10
              description: "Top 10 ETF/mutual fund holders."
              items:
                $ref: "#/components/schemas/OwnershipSummaryFundHolder"
          examples:
            - total_funds_holding_count: 420
              total_fund_shares: 2100000000
              total_fund_value_usd: 462000000000
              fund_ownership_pct: 14
              top_funds: []
      examples:
        - ticker: "AAPL"
          cik: "0000320193"
          company_name: "Apple Inc."
          sector: "Technology"
          industry: "Electronic Computers"
          cusips:
            - "037833100"
          shares_outstanding_reference:
            shares_outstanding: 15000000000
            report_period: "2026-09-26"
            accession_number: "0000320193-26-000105"
          as_of: "2026-11-30T00:00:00.000Z"
          units:
            shares_outstanding: "shares"
            total_institutional_shares: "shares"
            prior_institutional_shares: "shares"
            shares_change_qoq: "shares"
            shares_change_qoq_pct: "percent (%)"
            total_institutional_value_usd: "USD"
            institutional_ownership_pct: "percent (%)"
            top_10_concentration_pct: "percent (%)"
            put_call_share_ratio: "ratio (put_shares / call_shares)"
            activist_combined_pct: "percent (%)"
            passive_combined_pct: "percent (%)"
            percent_of_class_pct: "percent (%)"
            insider_window_days: "calendar days"
            total_buy_shares: "shares"
            total_sell_shares: "shares"
            net_shares: "shares"
            total_buy_value_usd: "USD"
            total_sell_value_usd: "USD"
            net_value_usd: "USD"
            buy_sell_dollar_ratio: "ratio (buy_usd / sell_usd)"
            buy_share_of_total_value_pct: "percent (%)"
            net_insider_sentiment_score: "score (-100 to +100)"
            total_fund_shares: "shares"
            total_fund_value_usd: "USD"
            fund_ownership_pct: "percent (%)"
            weight_pct: "percent (% of fund net assets)"
          methodology: "Combines Form 13F, Schedule 13D/13G, Form 4/5, and Form N-PORT datasets against XBRL shares outstanding."
          institutional_13f:
            report_period: "2026-09-30"
            prior_report_period: "2026-06-30"
            institutional_holders_count: 4200
            prior_holders_count: 4050
            holders_change_qoq: 150
            total_institutional_shares: 9200000000
            prior_institutional_shares: 9050000000
            shares_change_qoq: 150000000
            shares_change_qoq_pct: 1.66
            total_institutional_value_usd: 2024000000000
            prior_institutional_value_usd: 1900500000000
            value_change_qoq_usd: 123500000000
            institutional_ownership_pct: 61.3333
            top_10_concentration_pct: 32.5
            put_call_share_ratio: 0.625
            position_changes:
              new_positions_count: 240
              added_positions_count: 1610
              reduced_positions_count: 1330
              sold_out_positions_count: 90
            top_holders: []
          beneficial_13d_13g:
            total_beneficial_filers_count: 2
            activist_stakes_count: 0
            passive_stakes_count: 2
            activist_combined_pct: 0
            passive_combined_pct: 16.4
            activist_stakes: []
            top_passive_stakes: []
          insider_activity:
            insider_window_days: 90
            window_start: "2026-09-01"
            window_end: "2026-11-30"
            distinct_buyers: 2
            distinct_sellers: 1
            buy_trade_count: 2
            sell_trade_count: 1
            total_buy_shares: 15000
            total_sell_shares: 5000
            net_shares: 10000
            total_buy_value_usd: 3300000
            total_sell_value_usd: 1100000
            net_value_usd: 2200000
            buy_sell_dollar_ratio: 3
            buy_share_of_total_value_pct: 75
            net_insider_sentiment_score: 52.5
            sentiment_label: "bullish"
            recent_trades: []
          etf_and_fund_holders:
            total_funds_holding_count: 420
            total_fund_shares: 2100000000
            total_fund_value_usd: 462000000000
            fund_ownership_pct: 14
            top_funds: []
    DataSource:
      type: "object"
      description: "Where the answer comes from and how it is built."
      additionalProperties: false
      required:
        - "provider"
        - "dataset"
        - "methodology"
      properties:
        provider:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "The publisher of the source data."
          examples:
            - "SEC EDGAR"
        dataset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 400
          description: "The dataset Darvas reads."
          examples:
            - "EDGAR filing index and daily feed"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2000
          description: "How Darvas builds the answer from it."
          examples:
            - "One row per accession number."
        url:
          type: "string"
          format: "uri"
          maxLength: 300
          description: "The source's documentation."
          examples:
            - "https://api.usaspending.gov/docs/endpoints"
      examples:
        - provider: "SEC EDGAR"
          dataset: "EDGAR filing index and daily feed"
          methodology: "One row per accession number."
    FilingParty:
      type: "object"
      description: "A party of a filing."
      additionalProperties: false
      required:
        - "cik"
        - "ticker"
        - "name"
      properties:
        cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 9999999999
          description: "The party's CIK."
          examples:
            - 320193
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The party's current ticker; null without one."
          examples:
            - "AAPL"
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The party's SEC name; null when Darvas has no profile."
          examples:
            - "Apple Inc."
      examples:
        - cik: 320193
          ticker: "AAPL"
          name: "Apple Inc."
    FeedFiling:
      type: "object"
      description: "One SEC filing and its parties."
      additionalProperties: false
      required:
        - "accession_number"
        - "form_type"
        - "filing_date"
        - "accepted_at"
        - "ticker"
        - "cik"
        - "company_name"
        - "sector"
        - "item_codes"
        - "item_descriptions"
        - "parties"
        - "sec_filing_url"
        - "items_url"
      properties:
        accession_number:
          $ref: "#/components/schemas/FilingItemsResponse/properties/accession_number"
        form_type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form as SEC names it."
          examples:
            - "8-K"
        filing_date:
          $ref: "#/components/schemas/EarningsRecord/properties/filing_date"
        accepted_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          description: "When SEC accepted the filing, in UTC; null when SEC does not say."
          examples:
            - "2026-11-27T21:05:00Z"
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The company's current ticker; null without one."
          examples:
            - "AAPL"
        cik:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 9999999999
          description: "The company's CIK."
          examples:
            - 320193
        company_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The company's name in its newest SEC profile; null without one."
          examples:
            - "Apple Inc."
        sector:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The SEC office that reviews the company; null without one."
          examples:
            - "Technology"
        item_codes:
          type: "array"
          description: "The 8-K item numbers SEC lists for the filing."
          maxItems: 40
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
            description: "One of the 8-K item numbers SEC lists for the filing."
            examples:
              - "5.02"
          examples:
            - - "5.02"
              - "9.01"
        item_descriptions:
          type: "array"
          description: "What each item reports, in SEC's words, in item order; null for an item number without one."
          maxItems: 40
          items:
            type:
              - "string"
              - "null"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
            description: "An item's description."
            examples:
              - "Departure or appointment of directors and officers"
          examples:
            - - "Departure or appointment of directors and officers"
        parties:
          type: "array"
          maxItems: 20
          description: "Every party of the filing, those with a ticker first."
          items:
            $ref: "#/components/schemas/FilingParty"
        sec_filing_url:
          $ref: "#/components/schemas/Filing/properties/index_url"
        items_url:
          type:
            - "string"
            - "null"
          format: "uri"
          maxLength: 500
          description: "The /filings/items request of a 10-K, 10-Q or 8-K; null for other forms."
          examples:
            - "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300"
      examples:
        - accession_number: "0000320193-26-000300"
          form_type: "8-K"
          filing_date: "2026-11-27"
          accepted_at: "2026-11-27T21:05:00Z"
          cik: 320193
          ticker: "AAPL"
          company_name: "Apple Inc."
          sector: "Technology"
          item_codes:
            - "5.02"
            - "9.01"
          item_descriptions:
            - "Departure or appointment of directors and officers"
            - "Financial statements and exhibits"
          parties:
            - cik: 320193
              ticker: "AAPL"
              name: "Apple Inc."
          sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
          items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300"
    FilingsFeedResponse:
      type: "object"
      description: "The answer of GET /filings/feed."
      additionalProperties: false
      required:
        - "filings"
        - "as_of"
        - "source"
      properties:
        filings:
          type: "array"
          maxItems: 100
          description: "This page's filings, newest first."
          items:
            $ref: "#/components/schemas/FeedFiling"
        as_of:
          type: "string"
          format: "date-time"
          description: "When Darvas built the answer."
          examples:
            - "2026-11-30T12:00:00.000Z"
        source:
          $ref: "#/components/schemas/DataSource"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 4000
          description: "The next page of this answer, to request as it is; absent on the last page."
          examples:
            - "https://api.darvas.app/v1/filings/feed?cursor=eyJjaWsiOm51bGx9"
      examples:
        - filings:
            - accession_number: "0000320193-26-000300"
              form_type: "8-K"
              filing_date: "2026-11-27"
              accepted_at: "2026-11-27T21:05:00Z"
              cik: 320193
              ticker: "AAPL"
              company_name: "Apple Inc."
              sector: "Technology"
              item_codes:
                - "5.02"
                - "9.01"
              item_descriptions:
                - "Departure or appointment of directors and officers"
                - "Financial statements and exhibits"
              parties:
                - cik: 320193
                  ticker: "AAPL"
                  name: "Apple Inc."
              sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
              items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300"
          as_of: "2026-11-30T12:00:00.000Z"
          source:
            provider: "SEC EDGAR"
            dataset: "EDGAR filing index and daily feed"
            methodology: "One row per accession number."
    MaterialEvent:
      type: "object"
      description: "One material event an 8-K reports, with its structured fields."
      additionalProperties: false
      required:
        - "category"
        - "item_code"
        - "item_description"
        - "ticker"
        - "cik"
        - "company_name"
        - "accession_number"
        - "form_type"
        - "is_amendment"
        - "filing_date"
        - "accepted_at"
        - "extraction_status"
        - "details"
        - "source_text"
        - "sec_filing_url"
        - "items_url"
      properties:
        category:
          type: "string"
          enum:
            - "executive_change"
            - "shareholder_vote"
            - "auditor_change"
            - "non_reliance"
            - "cybersecurity_incident"
          description: "The event."
          examples:
            - "auditor_change"
        item_code:
          type: "string"
          pattern: "^[0-9]\\.[0-9]{2}$"
          description: "The 8-K item number of the event."
          examples:
            - "4.01"
        item_description:
          $ref: "#/components/schemas/FilingEventType/properties/description"
        ticker:
          $ref: "#/components/schemas/FeedFiling/properties/ticker"
        cik:
          $ref: "#/components/schemas/FeedFiling/properties/cik"
        company_name:
          $ref: "#/components/schemas/FeedFiling/properties/company_name"
        accession_number:
          $ref: "#/components/schemas/FilingEvent/properties/accession_number"
        form_type:
          $ref: "#/components/schemas/FilingEvent/properties/form_type"
        is_amendment:
          type: "boolean"
          description: "Whether the filing is an 8-K/A."
          examples:
            - false
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the 8-K."
          examples:
            - "2026-11-27"
        accepted_at:
          $ref: "#/components/schemas/FilingEvent/properties/accepted_at"
        extraction_status:
          type: "string"
          enum:
            - "extracted"
            - "reading"
            - "not_read"
            - "read_failed"
            - "item_text_missing"
          description: "extracted, reading (Darvas is reading the 8-K now), not_read, read_failed, or item_text_missing when the read found no text for the item."
          examples:
            - "extracted"
        details:
          type:
            - "object"
            - "null"
          description: "The fields of the event's category, read from the item's text; null until the text is read. executive_change: change_types, roles, interim, people, event_date, effective_date, no_disagreement_stated. shareholder_vote: meeting_type, meeting_date, shares_present, all_proposals_approved, votes (proposal, label, votes_for, votes_against, votes_withheld, votes_abstain, broker_non_votes). auditor_change: former_auditor, new_auditor, change_type, event_date, no_disagreements_stated, mentions_going_concern, mentions_material_weakness. non_reliance: determination_date, concluded_by, periods_affected, forms_affected, restatement_expected. cybersecurity_incident: discovery_date, impact_assessment, ransomware, unauthorized_access, data_exfiltration, operations_disrupted, law_enforcement_notified, third_party_experts_engaged."
          additionalProperties: true
          maxProperties: 20
          examples:
            - former_auditor: "Deloitte & Touche LLP"
              new_auditor: "Ernst & Young LLP"
        source_text:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 700
          description: "The sentences the details come from; null until the text is read."
          examples:
            - "On November 23, 2026, the audit committee approved the engagement of Ernst & Young LLP."
        sec_filing_url:
          $ref: "#/components/schemas/FilingEvent/properties/filing_url"
        items_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The /filings/items request that answers the item's text."
          examples:
            - "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300"
      examples:
        - category: "auditor_change"
          item_code: "4.01"
          item_description: "Change of the certifying accountant"
          ticker: "AAPL"
          cik: 320193
          company_name: "Apple Inc."
          accession_number: "0000320193-26-000300"
          form_type: "8-K"
          is_amendment: false
          filing_date: "2026-11-27"
          accepted_at: "2026-11-27T21:05:00Z"
          extraction_status: "extracted"
          details:
            former_auditor: "Deloitte & Touche LLP"
            new_auditor: "Ernst & Young LLP"
            change_type: "dismissed"
            event_date: "2026-11-23"
            no_disagreements_stated: true
            mentions_going_concern: false
            mentions_material_weakness: false
          source_text: "On November 23, 2026, the audit committee approved the engagement of Ernst & Young LLP."
          sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
          items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300&item=Item-4.01"
    MaterialEventsResponse:
      type: "object"
      description: "The answer of GET /events/8k-structured."
      additionalProperties: false
      required:
        - "events"
        - "as_of"
        - "source"
      properties:
        events:
          type: "array"
          maxItems: 500
          description: "This page's events, newest filing first."
          items:
            $ref: "#/components/schemas/MaterialEvent"
        as_of:
          $ref: "#/components/schemas/FilingsFeedResponse/properties/as_of"
        source:
          $ref: "#/components/schemas/DataSource"
        next_page_url:
          $ref: "#/components/schemas/FilingsFeedResponse/properties/next_page_url"
      examples:
        - events:
            - category: "auditor_change"
              item_code: "4.01"
              item_description: "Change of the certifying accountant"
              ticker: "AAPL"
              cik: 320193
              company_name: "Apple Inc."
              accession_number: "0000320193-26-000300"
              form_type: "8-K"
              is_amendment: false
              filing_date: "2026-11-27"
              accepted_at: "2026-11-27T21:05:00Z"
              extraction_status: "extracted"
              details:
                former_auditor: "Deloitte & Touche LLP"
                new_auditor: "Ernst & Young LLP"
                change_type: "dismissed"
                event_date: "2026-11-23"
                no_disagreements_stated: true
                mentions_going_concern: false
                mentions_material_weakness: false
              source_text: "On November 23, 2026, the audit committee approved the engagement of Ernst & Young LLP."
              sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
              items_url: "https://api.darvas.app/v1/filings/items?cik=320193&filing_type=8-K&accession_number=0000320193-26-000300&item=Item-4.01"
          as_of: "2026-11-30T12:00:00.000Z"
          source:
            provider: "SEC EDGAR"
            dataset: "EDGAR filing index and daily feed"
            methodology: "One row per accession number."
    TradingArrangement:
      type: "object"
      description: "One insider's trading arrangement as a filing discloses it."
      additionalProperties: false
      required:
        - "insider_name"
        - "insider_title"
        - "action"
        - "rule_10b5_1"
        - "adoption_date"
        - "action_date"
        - "plan_end_date"
        - "shares"
        - "shares_basis"
        - "value_usd"
        - "source_text"
      properties:
        insider_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The insider's name as the filing writes it; null when the text does not say."
          examples:
            - "Rebecca Pearce"
        insider_title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The insider's title or relationship; null when not stated."
          examples:
            - "Chief People Officer"
        action:
          type: "string"
          enum:
            - "adopted"
            - "terminated"
            - "modified"
            - "traded_under_plan"
            - "sale_notice"
          description: "What the filing reports of the arrangement."
          examples:
            - "adopted"
        rule_10b5_1:
          type:
            - "boolean"
            - "null"
          description: "True for a Rule 10b5-1 arrangement, false for a non-Rule 10b5-1 one."
          examples:
            - true
        adoption_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day the plan was adopted, when the filing states it."
          examples:
            - "2026-09-30"
        action_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day of the action: adoption or termination, first trade, or approximate sale."
          examples:
            - "2026-09-30"
        plan_end_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day the arrangement ends, when stated."
          examples:
            - "2027-12-31"
        shares:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Shares, as shares_basis names them."
          examples:
            - 20661
        shares_basis:
          type:
            - "string"
            - "null"
          enum:
            - "plan_aggregate"
            - "traded"
            - "to_sell"
            - null
          description: "What shares counts."
          examples:
            - "plan_aggregate"
        value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The trades' value, or the notice's market value, in USD."
          examples:
            - null
        source_text:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 600
          description: "The text the arrangement is read from; null for structured forms."
          examples:
            - "On September 30, 2026, Rebecca Pearce adopted a Rule 10b5-1 trading arrangement."
      examples:
        - insider_name: "Rebecca Pearce"
          insider_title: "Executive Vice President and Chief People Officer"
          action: "adopted"
          rule_10b5_1: true
          adoption_date: "2026-09-30"
          action_date: "2026-09-30"
          plan_end_date: "2027-12-31"
          shares: 20661
          shares_basis: "plan_aggregate"
          value_usd: null
          source_text: "On September 30, 2026, Rebecca Pearce, our Executive Vice President, adopted a Rule 10b5-1 trading arrangement."
    TradingArrangementFiling:
      type: "object"
      description: "One filing that discloses trading arrangements."
      additionalProperties: false
      required:
        - "source"
        - "form_type"
        - "accession_number"
        - "filing_date"
        - "ticker"
        - "cik"
        - "company_name"
        - "sec_filing_url"
        - "arrangements"
      properties:
        source:
          type: "string"
          enum:
            - "periodic_report"
            - "form_4"
            - "form_144"
          description: "The SEC source."
          examples:
            - "periodic_report"
        form_type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form that discloses the arrangement."
          examples:
            - "10-Q"
        accession_number:
          $ref: "#/components/schemas/FilingItemsResponse/properties/accession_number"
        filing_date:
          type: "string"
          format: "date"
          description: "The day SEC accepted the filing."
          examples:
            - "2026-11-27"
        ticker:
          $ref: "#/components/schemas/FeedFiling/properties/ticker"
        cik:
          $ref: "#/components/schemas/FeedFiling/properties/cik"
        company_name:
          $ref: "#/components/schemas/FeedFiling/properties/company_name"
        sec_filing_url:
          $ref: "#/components/schemas/Filing/properties/index_url"
        none_reported:
          type: "boolean"
          description: "periodic_report only: the item states that no director or officer adopted or terminated an arrangement."
          examples:
            - false
        xbrl_aggregate_available_shares:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "periodic_report only: the filing's ecd:TrdArrSecuritiesAggAvailAmt fact."
          examples:
            - 20661
        arrangements:
          type: "array"
          maxItems: 50
          description: "The arrangements the filing discloses."
          items:
            $ref: "#/components/schemas/TradingArrangement"
      examples:
        - source: "periodic_report"
          form_type: "10-Q"
          accession_number: "0000320193-26-000300"
          filing_date: "2026-11-27"
          ticker: "AAPL"
          cik: 320193
          company_name: "Apple Inc."
          sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
          none_reported: false
          xbrl_aggregate_available_shares: 20661
          arrangements:
            - insider_name: "Rebecca Pearce"
              insider_title: "Executive Vice President and Chief People Officer"
              action: "adopted"
              rule_10b5_1: true
              adoption_date: "2026-09-30"
              action_date: "2026-09-30"
              plan_end_date: "2027-12-31"
              shares: 20661
              shares_basis: "plan_aggregate"
              value_usd: null
              source_text: "On September 30, 2026, Rebecca Pearce, our Executive Vice President, adopted a Rule 10b5-1 trading arrangement."
    RestatementFlags:
      type: "object"
      description: "A company's restatement flags: non-reliance 8-Ks, restatement facts and amended reports, each cited to its filing."
      additionalProperties: true
      maxProperties: 10
      examples:
        - has_non_reliance_8k: false
          latest_non_reliance_date: null
          non_reliance_filings: []
          restatement_facts: []
          amended_periodic_reports: []
    TradingArrangementsResponse:
      type: "object"
      description: "The answer of GET /sec/rule-10b5-1."
      additionalProperties: false
      required:
        - "filings"
        - "as_of"
        - "source"
      properties:
        filings:
          type: "array"
          maxItems: 100
          description: "This page's filings that disclose trading arrangements, newest first."
          items:
            $ref: "#/components/schemas/TradingArrangementFiling"
        restatement_flags:
          $ref: "#/components/schemas/RestatementFlags"
        as_of:
          $ref: "#/components/schemas/FilingsFeedResponse/properties/as_of"
        source:
          $ref: "#/components/schemas/DataSource"
        next_page_url:
          $ref: "#/components/schemas/FilingsFeedResponse/properties/next_page_url"
      examples:
        - filings:
            - source: "periodic_report"
              form_type: "10-Q"
              accession_number: "0000320193-26-000300"
              filing_date: "2026-11-27"
              ticker: "AAPL"
              cik: 320193
              company_name: "Apple Inc."
              sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
              none_reported: false
              xbrl_aggregate_available_shares: 20661
              arrangements:
                - insider_name: "Rebecca Pearce"
                  insider_title: "Executive Vice President and Chief People Officer"
                  action: "adopted"
                  rule_10b5_1: true
                  adoption_date: "2026-09-30"
                  action_date: "2026-09-30"
                  plan_end_date: "2027-12-31"
                  shares: 20661
                  shares_basis: "plan_aggregate"
                  value_usd: null
                  source_text: "On September 30, 2026, Rebecca Pearce, our Executive Vice President, adopted a Rule 10b5-1 trading arrangement."
          as_of: "2026-11-30T12:00:00.000Z"
          source:
            provider: "SEC EDGAR"
            dataset: "EDGAR filing index and daily feed"
            methodology: "One row per accession number."
    CryptoHolding:
      type: "object"
      description: "A unit count a filing tags, with the asset its unit names."
      additionalProperties: false
      required:
        - "asset"
        - "units"
        - "unit_as_reported"
        - "implied_usd_per_unit"
        - "quality_flags"
        - "accession_number"
      properties:
        asset:
          type:
            - "string"
            - "null"
          enum:
            - "BTC"
            - "ETH"
            - "SOL"
            - "XRP"
            - "USDC"
            - "USDT"
            - null
          description: "The asset the unit names; null for a generic unit."
          examples:
            - "BTC"
        units:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The units held."
          examples:
            - 847666
        unit_as_reported:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 60
          description: "The unit as the filing writes it."
          examples:
            - "Bitcoin"
        implied_usd_per_unit:
          type:
            - "number"
            - "null"
          format: "double"
          description: "fair_value_usd / units when one unit count is tagged."
          examples:
            - 83552.68
        quality_flags:
          type: "array"
          description: "unit_count_scale_suspect when a BTC count implies a price outside 1,000 to 1,000,000 USD."
          maxItems: 5
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
            description: "One of unit_count_scale_suspect when a BTC count implies a price outside 1,000 to 1,000,000 USD."
            examples:
              - "unit_count_scale_suspect"
          examples:
            - - "unit_count_scale_suspect"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the unit count."
          examples:
            - "0000320193-26-000300"
      examples:
        - asset: "BTC"
          units: 847666
          unit_as_reported: "Bitcoin"
          implied_usd_per_unit: 83552.68
          quality_flags: []
          accession_number: "0001050446-26-000060"
    CryptoFact:
      type: "object"
      description: "An XBRL fact behind a value."
      additionalProperties: false
      required:
        - "concept"
        - "value"
        - "unit"
        - "form_type"
        - "accession_number"
        - "filed"
        - "sec_filing_url"
      properties:
        concept:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "The concept."
          examples:
            - "us-gaap:CryptoAssetFairValue"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The value."
          examples:
            - 70824007000
        unit:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 60
          description: "The unit."
          examples:
            - "USD"
        form_type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form that tags it."
          examples:
            - "10-Q"
        accession_number:
          type: "string"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing that tags it."
          examples:
            - "0000320193-26-000300"
        filed:
          type: "string"
          format: "date"
          description: "The day it was filed."
          examples:
            - "2026-11-03"
        sec_filing_url:
          $ref: "#/components/schemas/Filing/properties/index_url"
      examples:
        - concept: "us-gaap:CryptoAssetFairValue"
          value: 70824007000
          unit: "USD"
          form_type: "10-Q"
          accession_number: "0001050446-26-000060"
          filed: "2026-11-03"
          sec_filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000300/0000320193-26-000300-index.htm"
    CryptoTreasuryPeriod:
      type: "object"
      description: "A company's crypto holdings at one period end."
      additionalProperties: false
      required:
        - "period_end"
        - "fair_value_usd"
        - "cost_basis_usd"
        - "holdings"
        - "facts"
      properties:
        ticker:
          $ref: "#/components/schemas/FeedFiling/properties/ticker"
        cik:
          $ref: "#/components/schemas/FeedFiling/properties/cik"
        company_name:
          $ref: "#/components/schemas/FeedFiling/properties/company_name"
        sector:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The SEC office that reviews the company."
          examples:
            - "Technology"
        asset_filter:
          type:
            - "string"
            - "null"
          enum:
            - "BTC"
            - "ETH"
            - "SOL"
            - "XRP"
            - "USDC"
            - "USDT"
            - null
          description: "The asset the request filtered on."
          examples:
            - "BTC"
        period_end:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The period's end."
          examples:
            - "2026-09-30"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form of the cited fact."
          examples:
            - "10-Q"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[0-9]{10}-[0-9]{2}-[0-9]{6}$"
          description: "The filing of the fair value fact."
          examples:
            - "0000320193-26-000300"
        filed:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day that filing was filed."
          examples:
            - "2026-11-03"
        fair_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The crypto assets' fair value, USD."
          examples:
            - 70824007000
        fair_value_current_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The current part, USD."
          examples:
            - null
        fair_value_noncurrent_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The noncurrent part, USD."
          examples:
            - null
        cost_basis_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The cost basis, USD."
          examples:
            - 63945036000
        unrealized_gain_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "fair_value_usd minus cost_basis_usd."
          examples:
            - 6878971000
        holdings:
          type: "array"
          maxItems: 20
          description: "The unit counts tagged for the period."
          items:
            $ref: "#/components/schemas/CryptoHolding"
        facts:
          type: "array"
          maxItems: 40
          description: "Every fact behind the values."
          items:
            $ref: "#/components/schemas/CryptoFact"
      examples:
        - ticker: "MSTR"
          cik: 1050446
          company_name: "Strategy Inc"
          sector: "Technology"
          asset_filter: "BTC"
          period_end: "2026-09-30"
          form_type: "10-Q"
          accession_number: "0001050446-26-000060"
          filed: "2026-11-03"
          fair_value_usd: 70824007000
          fair_value_current_usd: null
          fair_value_noncurrent_usd: null
          cost_basis_usd: 63945036000
          unrealized_gain_usd: 6878971000
          holdings:
            - asset: "BTC"
              units: 847666
              unit_as_reported: "Bitcoin"
              implied_usd_per_unit: 83552.68
              quality_flags: []
              accession_number: "0001050446-26-000060"
          facts:
            - concept: "us-gaap:CryptoAssetFairValue"
              value: 70824007000
              unit: "USD"
              form_type: "10-Q"
              accession_number: "0001050446-26-000060"
              filed: "2026-11-03"
              sec_filing_url: "https://www.sec.gov/Archives/edgar/data/1050446/000105044626000060/0001050446-26-000060-index.htm"
    CryptoTreasuriesResponse:
      type: "object"
      description: "The answer of GET /sec/crypto-treasuries: treasuries without a company; the company and its history with one."
      additionalProperties: true
      maxProperties: 40
      properties:
        treasuries:
          type: "array"
          maxItems: 500
          description: "Each company's latest period, largest fair value first."
          items:
            $ref: "#/components/schemas/CryptoTreasuryPeriod"
        history:
          type: "array"
          maxItems: 40
          description: "One company's periods, newest first."
          items:
            $ref: "#/components/schemas/CryptoTreasuryPeriod"
        as_of:
          $ref: "#/components/schemas/FilingsFeedResponse/properties/as_of"
        source:
          $ref: "#/components/schemas/DataSource"
      required:
        - "as_of"
        - "source"
      examples:
        - treasuries:
            - ticker: "MSTR"
              cik: 1050446
              company_name: "Strategy Inc"
              sector: "Technology"
              asset_filter: "BTC"
              period_end: "2026-09-30"
              form_type: "10-Q"
              accession_number: "0001050446-26-000060"
              filed: "2026-11-03"
              fair_value_usd: 70824007000
              fair_value_current_usd: null
              fair_value_noncurrent_usd: null
              cost_basis_usd: 63945036000
              unrealized_gain_usd: 6878971000
              holdings:
                - asset: "BTC"
                  units: 847666
                  unit_as_reported: "Bitcoin"
                  implied_usd_per_unit: 83552.68
                  quality_flags: []
                  accession_number: "0001050446-26-000060"
              facts:
                - concept: "us-gaap:CryptoAssetFairValue"
                  value: 70824007000
                  unit: "USD"
                  form_type: "10-Q"
                  accession_number: "0001050446-26-000060"
                  filed: "2026-11-03"
                  sec_filing_url: "https://www.sec.gov/Archives/edgar/data/1050446/000105044626000060/0001050446-26-000060-index.htm"
          as_of: "2026-11-30T12:00:00.000Z"
          source:
            provider: "SEC EDGAR"
            dataset: "EDGAR filing index and daily feed"
            methodology: "One row per accession number."
    GovernmentContract:
      type: "object"
      description: "A federal prime contract award."
      additionalProperties: false
      required:
        - "award_id"
        - "generated_internal_id"
        - "award_url"
        - "recipient_name"
        - "recipient_uei"
        - "award_amount_usd"
        - "total_outlays_usd"
        - "awarding_agency"
        - "awarding_sub_agency"
        - "award_type"
        - "start_date"
        - "end_date"
        - "base_obligation_date"
        - "last_modified_date"
        - "naics_code"
        - "naics_description"
        - "psc_code"
        - "psc_description"
        - "description"
      properties:
        award_id:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The award's PIID."
          examples:
            - "12314426F0126"
        generated_internal_id:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "USASpending's award id."
          examples:
            - "CONT_AWD_12314426F0126_1205"
        award_url:
          type:
            - "string"
            - "null"
          format: "uri"
          maxLength: 400
          description: "The award's page on usaspending.gov."
          examples:
            - "https://www.usaspending.gov/award/CONT_AWD_12314426F0126_1205"
        recipient_name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The recipient."
          examples:
            - "PALANTIR TECHNOLOGIES INC."
        recipient_uei:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The recipient's UEI."
          examples:
            - "FSY4LVSBGWB7"
        award_amount_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The award's total obligated amount, USD."
          examples:
            - 94687811.42
        total_outlays_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "What was paid, USD."
          examples:
            - 94687811.42
        awarding_agency:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The awarding agency."
          examples:
            - "Department of Agriculture"
        awarding_sub_agency:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The awarding sub-agency."
          examples:
            - "Office of the Chief Financial Officer"
        award_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The contract award type."
          examples:
            - "BPA CALL"
        start_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The period of performance's start."
          examples:
            - "2026-04-18"
        end_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The period of performance's end."
          examples:
            - "2027-05-31"
        base_obligation_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day of the base obligation."
          examples:
            - "2026-04-17"
        last_modified_date:
          type:
            - "string"
            - "null"
          format: "date"
          description: "The day USASpending last changed the award."
          examples:
            - "2026-11-20"
        naics_code:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The NAICS code."
          examples:
            - "513210"
        naics_description:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The NAICS industry."
          examples:
            - "SOFTWARE PUBLISHERS"
        psc_code:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The product or service code."
          examples:
            - "DA10"
        psc_description:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The product or service."
          examples:
            - "IT AND TELECOM"
        description:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 4000
          description: "The award's description."
          examples:
            - "CENTRALIZE FARM PRODUCTION & CONSERVATION IT SYSTEMS"
      examples:
        - award_id: "12314426F0126"
          generated_internal_id: "CONT_AWD_12314426F0126_1205_12314426A0009_1205"
          award_url: "https://www.usaspending.gov/award/CONT_AWD_12314426F0126_1205_12314426A0009_1205"
          recipient_name: "PALANTIR TECHNOLOGIES INC."
          recipient_uei: "FSY4LVSBGWB7"
          award_amount_usd: 94687811.42
          total_outlays_usd: 94687811.42
          awarding_agency: "Department of Agriculture"
          awarding_sub_agency: "Office of the Chief Financial Officer"
          award_type: "BPA CALL"
          start_date: "2026-04-18"
          end_date: "2027-05-31"
          base_obligation_date: "2026-04-17"
          last_modified_date: "2026-11-20"
          naics_code: "513210"
          naics_description: "SOFTWARE PUBLISHERS"
          psc_code: "DA10"
          psc_description: "IT AND TELECOM - BUSINESS APPLICATION/APPLICATION DEVELOPMENT SOFTWARE AS A SERVICE"
          description: "CENTRALIZE FARM PRODUCTION & CONSERVATION IT SYSTEMS"
    GovernmentContractsResponse:
      type: "object"
      description: "The answer of GET /government/contracts."
      additionalProperties: true
      maxProperties: 20
      properties:
        ticker:
          $ref: "#/components/schemas/FeedFiling/properties/ticker"
        cik:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 1
          maximum: 9999999999
          description: "The company's CIK; null for a recipient search."
          examples:
            - 320193
        company_name:
          $ref: "#/components/schemas/FeedFiling/properties/company_name"
        recipient_match:
          type: "object"
          description: "How the company was found: method, search_text and the USASpending recipients whose awards are listed: name, uei, level (P parent, R stand-alone, C child) and trailing_12_month_amount_usd, the value of their contract transactions in the trailing 12 months."
          additionalProperties: true
          maxProperties: 5
          examples:
            - method: "sec_company_name"
              search_text: "PALANTIR TECHNOLOGIES"
              recipients: []
        period:
          type: "object"
          description: "The awards' action dates searched."
          additionalProperties: false
          required:
            - "start_date"
            - "end_date"
          properties:
            start_date:
              type: "string"
              format: "date"
              description: "The first day."
              examples:
                - "2025-11-30"
            end_date:
              type: "string"
              format: "date"
              description: "The last day."
              examples:
                - "2026-11-30"
          examples:
            - start_date: "2025-11-30"
              end_date: "2026-11-30"
        contracts:
          type: "array"
          maxItems: 100
          description: "This page's awards, largest first."
          items:
            $ref: "#/components/schemas/GovernmentContract"
        as_of:
          $ref: "#/components/schemas/FilingsFeedResponse/properties/as_of"
        source:
          $ref: "#/components/schemas/DataSource"
        next_page_url:
          $ref: "#/components/schemas/FilingsFeedResponse/properties/next_page_url"
      required:
        - "recipient_match"
        - "period"
        - "contracts"
        - "as_of"
        - "source"
      examples:
        - recipient_match:
            method: "sec_company_name"
            search_text: "PALANTIR TECHNOLOGIES"
            recipients: []
          period:
            start_date: "2025-11-30"
            end_date: "2026-11-30"
          contracts:
            - award_id: "12314426F0126"
              generated_internal_id: "CONT_AWD_12314426F0126_1205_12314426A0009_1205"
              award_url: "https://www.usaspending.gov/award/CONT_AWD_12314426F0126_1205_12314426A0009_1205"
              recipient_name: "PALANTIR TECHNOLOGIES INC."
              recipient_uei: "FSY4LVSBGWB7"
              award_amount_usd: 94687811.42
              total_outlays_usd: 94687811.42
              awarding_agency: "Department of Agriculture"
              awarding_sub_agency: "Office of the Chief Financial Officer"
              award_type: "BPA CALL"
              start_date: "2026-04-18"
              end_date: "2027-05-31"
              base_obligation_date: "2026-04-17"
              last_modified_date: "2026-11-20"
              naics_code: "513210"
              naics_description: "SOFTWARE PUBLISHERS"
              psc_code: "DA10"
              psc_description: "IT AND TELECOM - BUSINESS APPLICATION/APPLICATION DEVELOPMENT SOFTWARE AS A SERVICE"
              description: "CENTRALIZE FARM PRODUCTION & CONSERVATION IT SYSTEMS"
          as_of: "2026-11-30T12:00:00.000Z"
          source:
            provider: "SEC EDGAR"
            dataset: "EDGAR filing index and daily feed"
            methodology: "One row per accession number."
    DefiFeeEntry:
      type: "object"
      description: "One protocol's fees, revenue and multiples."
      additionalProperties: false
      required:
        - "slug"
        - "name"
        - "chains"
      properties:
        slug:
          $ref: "#/components/schemas/DefiProtocolEntry/properties/slug"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 160
          description: "Protocol name."
          examples:
            - "Aave V3"
        protocol_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "protocol, or chain for a chain's own fees."
          examples:
            - "protocol"
        category:
          $ref: "#/components/schemas/DefiProtocolEntry/properties/category"
        chains:
          type: "array"
          maxItems: 200
          description: "Chains the protocol earns on, as chain keys."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 120
          examples:
            - - "ethereum"
        fees_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Fees users paid over 24 hours, in US dollars."
          examples:
            - 1420000
        fees_7d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Fees over 7 days, in US dollars."
          examples:
            - 9800000
        fees_30d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Fees over 30 days, in US dollars."
          examples:
            - 42574293
        fees_1y_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Fees over one year, in US dollars."
          examples:
            - 520000000
        fees_all_time_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Fees since the protocol launched, in US dollars."
          examples:
            - 2100000000
        fees_change_1d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of daily fees over one day, in percent."
          examples:
            - 3.1
        fees_change_7d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of daily fees over 7 days, in percent."
          examples:
            - -1.2
        fees_change_30d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of daily fees over 30 days, in percent."
          examples:
            - -2.95
        revenue_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue the protocol kept over 24 hours, in US dollars."
          examples:
            - 190000
        revenue_7d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue over 7 days, in US dollars."
          examples:
            - 1300000
        revenue_30d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue over 30 days, in US dollars."
          examples:
            - 5600000
        revenue_1y_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue over one year, in US dollars."
          examples:
            - 70000000
        holders_revenue_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue paid to token holders over 24 hours, in US dollars."
          examples:
            - 40000
        holders_revenue_30d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue paid to token holders over 30 days, in US dollars."
          examples:
            - 1200000
        holders_revenue_1y_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Revenue paid to token holders over one year, in US dollars."
          examples:
            - 14000000
        annualized_fees_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Trailing 30-day fees × 365 / 30, in US dollars."
          examples:
            - 517987898.17
        annualized_revenue_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Trailing 30-day revenue × 365 / 30, in US dollars."
          examples:
            - 68133333.33
        tvl_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total value locked, in US dollars."
          examples:
            - 15251055917
        mcap_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Token market capitalization; null when none is reported, in US dollars."
          examples:
            - 1400449180
        tvl_to_annualized_fees:
          type:
            - "number"
            - "null"
          format: "double"
          description: "TVL over annualized fees."
          examples:
            - 29.4429
        mcap_to_annualized_fees:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market cap over annualized fees (price to fees)."
          examples:
            - 2.7036
        mcap_to_annualized_revenue:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market cap over annualized revenue (price to sales)."
          examples:
            - 20.5545
      examples:
        - slug: "aave-v3"
          name: "Aave V3"
          protocol_type: "protocol"
          category: "Lending"
          chains:
            - "ethereum"
            - "base"
          fees_24h_usd: 1420000
          fees_7d_usd: 9800000
          fees_30d_usd: 42574293
          fees_1y_usd: 520000000
          fees_all_time_usd: 2100000000
          fees_change_1d_pct: 3.1
          fees_change_7d_pct: -1.2
          fees_change_30d_pct: -2.95
          revenue_24h_usd: 190000
          revenue_7d_usd: 1300000
          revenue_30d_usd: 5600000
          revenue_1y_usd: 70000000
          holders_revenue_24h_usd: 40000
          holders_revenue_30d_usd: 1200000
          holders_revenue_1y_usd: 14000000
          annualized_fees_usd: 517987898.17
          annualized_revenue_usd: 68133333.33
          tvl_usd: 15251055917
          mcap_usd: 1400449180
          tvl_to_annualized_fees: 29.4429
          mcap_to_annualized_fees: 2.7036
          mcap_to_annualized_revenue: 20.5545
    DefiFeeTotals:
      type: "object"
      description: "Fees and revenue of every protocol together."
      additionalProperties: false
      required:
        - "fees_24h_usd"
      properties:
        fees_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "All fees over 24 hours, in US dollars."
          examples:
            - 54621352.02
        fees_7d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "All fees over 7 days, in US dollars."
          examples:
            - 432003572.33
        fees_30d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "All fees over 30 days, in US dollars."
          examples:
            - 2011371328.57
        fees_1y_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "All fees over one year, in US dollars."
          examples:
            - 23608393170.49
        fees_change_1d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of all daily fees over one day, in percent."
          examples:
            - -14.26
        revenue_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "All revenue over 24 hours, in US dollars."
          examples:
            - 33158185.14
        revenue_30d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "All revenue over 30 days, in US dollars."
          examples:
            - 1114796900.6
      examples:
        - fees_24h_usd: 54621352.02
          fees_7d_usd: 432003572.33
          fees_30d_usd: 2011371328.57
          fees_1y_usd: 23608393170.49
          fees_change_1d_pct: -14.26
          revenue_24h_usd: 33158185.14
          revenue_30d_usd: 1114796900.6
    DefiFeesResponse:
      type: "object"
      description: "The answer of GET /defi/fees."
      additionalProperties: false
      required:
        - "chain"
        - "totals"
        - "protocols"
        - "total_matched"
      properties:
        chain:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The chain filter as a chain key, or null."
          examples:
            - "ethereum"
        totals:
          $ref: "#/components/schemas/DefiFeeTotals"
        protocols:
          type: "array"
          maxItems: 500
          description: "Protocols in the requested order."
          items:
            $ref: "#/components/schemas/DefiFeeEntry"
        total_matched:
          type: "integer"
          format: "int32"
          minimum: 0
          maximum: 100000
          description: "Protocols matching the filters."
          examples:
            - 3355
        message:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Why the answer has no rows; absent when it has rows."
          examples:
            - "No match"
      examples:
        - chain: null
          totals:
            fees_24h_usd: 54621352.02
            fees_7d_usd: 432003572.33
            fees_30d_usd: 2011371328.57
            fees_1y_usd: 23608393170.49
            fees_change_1d_pct: -14.26
            revenue_24h_usd: 33158185.14
            revenue_30d_usd: 1114796900.6
          protocols:
            - slug: "aave-v3"
              name: "Aave V3"
              protocol_type: "protocol"
              category: "Lending"
              chains:
                - "ethereum"
                - "base"
              fees_24h_usd: 1420000
              fees_7d_usd: 9800000
              fees_30d_usd: 42574293
              fees_1y_usd: 520000000
              fees_all_time_usd: 2100000000
              fees_change_1d_pct: 3.1
              fees_change_7d_pct: -1.2
              fees_change_30d_pct: -2.95
              revenue_24h_usd: 190000
              revenue_7d_usd: 1300000
              revenue_30d_usd: 5600000
              revenue_1y_usd: 70000000
              holders_revenue_24h_usd: 40000
              holders_revenue_30d_usd: 1200000
              holders_revenue_1y_usd: 14000000
              annualized_fees_usd: 517987898.17
              annualized_revenue_usd: 68133333.33
              tvl_usd: 15251055917
              mcap_usd: 1400449180
              tvl_to_annualized_fees: 29.4429
              mcap_to_annualized_fees: 2.7036
              mcap_to_annualized_revenue: 20.5545
          total_matched: 3355
    DefiVolumeEntry:
      type: "object"
      description: "One protocol's volume in a market."
      additionalProperties: false
      required:
        - "slug"
        - "name"
        - "chains"
      properties:
        slug:
          $ref: "#/components/schemas/DefiProtocolEntry/properties/slug"
        name:
          $ref: "#/components/schemas/DefiFeeEntry/properties/name"
        protocol_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "protocol, or chain for a chain's own volume."
          examples:
            - "protocol"
        category:
          $ref: "#/components/schemas/DefiProtocolEntry/properties/category"
        chains:
          type: "array"
          maxItems: 200
          description: "Chains the protocol trades on, as chain keys."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 120
          examples:
            - - "ethereum"
        volume_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume over 24 hours, in US dollars."
          examples:
            - 522715503
        volume_7d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume over 7 days, in US dollars."
          examples:
            - 5416018590
        volume_30d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume over 30 days, in US dollars."
          examples:
            - 31282139501
        volume_1y_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume over one year, in US dollars."
          examples:
            - 410000000000
        volume_all_time_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Volume since the protocol launched, in US dollars."
          examples:
            - 3100000000000
        change_1d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of daily volume over one day, in percent."
          examples:
            - -12.4
        change_7d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of daily volume over 7 days, in percent."
          examples:
            - -30.1
        change_30d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of daily volume over 30 days, in percent."
          examples:
            - -55.2
        share_24h_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Share of the market's 24-hour volume, in percent."
          examples:
            - 9.9459
      examples:
        - slug: "uniswap-v3"
          name: "Uniswap V3"
          protocol_type: "protocol"
          category: "Dexs"
          chains:
            - "ethereum"
            - "arbitrum"
            - "base"
          volume_24h_usd: 522715503
          volume_7d_usd: 5416018590
          volume_30d_usd: 31282139501
          volume_1y_usd: 410000000000
          volume_all_time_usd: 3100000000000
          change_1d_pct: -12.4
          change_7d_pct: -30.1
          change_30d_pct: -55.2
          share_24h_pct: 9.9459
    DefiVolumeTotals:
      type: "object"
      description: "Volume of the whole market."
      additionalProperties: false
      required:
        - "volume_24h_usd"
      properties:
        volume_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market volume over 24 hours, in US dollars."
          examples:
            - 5255611335.92
        volume_7d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market volume over 7 days, in US dollars."
          examples:
            - 49949786873.12
        volume_30d_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Market volume over 30 days, in US dollars."
          examples:
            - 246818754062.08
        change_1d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of market daily volume over one day, in percent."
          examples:
            - -18.91
        change_7d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of market daily volume over 7 days, in percent."
          examples:
            - -38.43
        change_30d_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Change of market daily volume over 30 days, in percent."
          examples:
            - -67.63
      examples:
        - volume_24h_usd: 5255611335.92
          volume_7d_usd: 49949786873.12
          volume_30d_usd: 246818754062.08
          change_1d_pct: -18.91
          change_7d_pct: -38.43
          change_30d_pct: -67.63
    DefiDexVolumesResponse:
      type: "object"
      description: "The answer of GET /defi/dex-volumes."
      additionalProperties: false
      required:
        - "market"
        - "chain"
        - "totals"
        - "protocols"
        - "total_matched"
      properties:
        market:
          type: "string"
          enum:
            - "spot"
            - "aggregators"
            - "perps_aggregators"
            - "options_notional"
            - "options_premium"
          description: "The volume market."
          examples:
            - "spot"
        chain:
          $ref: "#/components/schemas/DefiFeesResponse/properties/chain"
        totals:
          $ref: "#/components/schemas/DefiVolumeTotals"
        protocols:
          type: "array"
          maxItems: 500
          description: "Protocols with DEX volume, in the requested order."
          items:
            $ref: "#/components/schemas/DefiVolumeEntry"
        total_matched:
          $ref: "#/components/schemas/DefiFeesResponse/properties/total_matched"
        message:
          $ref: "#/components/schemas/DefiFeesResponse/properties/message"
      examples:
        - market: "spot"
          chain: null
          totals:
            volume_24h_usd: 5255611335.92
            volume_7d_usd: 49949786873.12
            volume_30d_usd: 246818754062.08
            change_1d_pct: -18.91
            change_7d_pct: -38.43
            change_30d_pct: -67.63
          protocols:
            - slug: "uniswap-v3"
              name: "Uniswap V3"
              protocol_type: "protocol"
              category: "Dexs"
              chains:
                - "ethereum"
                - "arbitrum"
                - "base"
              volume_24h_usd: 522715503
              volume_7d_usd: 5416018590
              volume_30d_usd: 31282139501
              volume_1y_usd: 410000000000
              volume_all_time_usd: 3100000000000
              change_1d_pct: -12.4
              change_7d_pct: -30.1
              change_30d_pct: -55.2
              share_24h_pct: 9.9459
          total_matched: 1705
    DefiProtocolProfile:
      type: "object"
      description: "A protocol's profile and current TVL."
      additionalProperties: false
      required:
        - "slug"
        - "name"
        - "chains"
      properties:
        slug:
          $ref: "#/components/schemas/DefiProtocolEntry/properties/slug"
        name:
          $ref: "#/components/schemas/DefiFeeEntry/properties/name"
        symbol:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Token ticker."
          examples:
            - "AAVE"
        category:
          $ref: "#/components/schemas/DefiProtocolEntry/properties/category"
        chains:
          type: "array"
          maxItems: 200
          description: "Chains, as chain keys."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 120
          examples:
            - - "ethereum"
        description:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 5000
          description: "What the protocol does."
          examples:
            - "Lending markets"
        url:
          type:
            - "string"
            - "null"
          format: "uri"
          maxLength: 500
          description: "Protocol homepage."
          examples:
            - "https://aave.com"
        twitter:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "X handle."
          examples:
            - "aave"
        token_id:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "The token's id on public price lists; null without a token."
          examples:
            - "aave"
        parent_protocol:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Parent protocol slug; versions share one token."
          examples:
            - "aave"
        is_parent_protocol:
          type: "boolean"
          description: "Whether this slug groups several versions."
          examples:
            - false
        related_protocols:
          type: "array"
          maxItems: 100
          description: "Names of the protocol family."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 120
          examples:
            - - "Aave"
              - "Aave V3"
        mcap_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Token market capitalization; versions of one family may leave it null, in US dollars."
          examples:
            - null
        listed_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When tracking began."
          examples:
            - "2022-04-01T01:34:37.000Z"
        tvl_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total value locked now, in US dollars."
          examples:
            - 15251055917
        borrowed_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Borrowed value, outside TVL, in US dollars."
          examples:
            - 10568383417.17
        staking_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Staked governance tokens, outside TVL, in US dollars."
          examples:
            - null
        pool2_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Pool2 liquidity, outside TVL, in US dollars."
          examples:
            - null
      examples:
        - slug: "aave-v3"
          name: "Aave V3"
          symbol: "AAVE"
          category: "Lending"
          chains:
            - "ethereum"
            - "base"
            - "arbitrum"
          description: "Earn interest, borrow assets, and build applications"
          url: "https://aave.com"
          twitter: "aave"
          token_id: null
          parent_protocol: "aave"
          is_parent_protocol: false
          related_protocols:
            - "Aave"
            - "Aave V3"
            - "Aave V4"
          mcap_usd: null
          listed_at: "2022-04-01T01:34:37.000Z"
          tvl_usd: 15251055917
          borrowed_usd: 10568383417.17
          staking_usd: null
          pool2_usd: null
    DefiChainTvl:
      type: "object"
      description: "TVL on one chain."
      additionalProperties: false
      required:
        - "chain"
        - "tvl_usd"
        - "share_pct"
      properties:
        chain:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "Chain key."
          examples:
            - "ethereum"
        tvl_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "TVL on the chain, in US dollars."
          examples:
            - 13116337024.28
        share_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Share of the protocol's TVL, in percent."
          examples:
            - 86.0028
      examples:
        - chain: "ethereum"
          tvl_usd: 13116337024.28
          share_pct: 86.0028
    DefiTvlPoint:
      type: "object"
      description: "TVL at the end of one day, week or month."
      additionalProperties: false
      required:
        - "date"
        - "tvl_usd"
      properties:
        date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The day of the point."
          examples:
            - "2026-11-29"
        tvl_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "TVL, in US dollars."
          examples:
            - 13116337024
      examples:
        - date: "2026-11-29"
          tvl_usd: 13116337024
    DefiTvlHistory:
      type: "object"
      description: "A protocol's TVL history."
      additionalProperties: false
      required:
        - "chain"
        - "interval"
        - "start_date"
        - "end_date"
        - "points"
      properties:
        chain:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The chain of the history, or null for all chains."
          examples:
            - "ethereum"
        interval:
          type: "string"
          enum:
            - "day"
            - "week"
            - "month"
          description: "Sampling."
          examples:
            - "week"
        start_date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "First day."
          examples:
            - "2026-10-01"
        end_date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "Last day."
          examples:
            - "2026-11-30"
        points:
          type: "array"
          maxItems: 6000
          description: "Points, oldest first."
          items:
            $ref: "#/components/schemas/DefiTvlPoint"
      examples:
        - chain: "ethereum"
          interval: "week"
          start_date: "2026-10-01"
          end_date: "2026-11-30"
          points:
            - date: "2026-11-29"
              tvl_usd: 13116337024
    DefiProtocolDetailResponse:
      type: "object"
      description: "The answer of GET /defi/protocols/{slug}."
      additionalProperties: false
      required:
        - "protocol"
        - "chain_tvls"
        - "fundamentals"
        - "tvl_history"
      properties:
        protocol:
          $ref: "#/components/schemas/DefiProtocolProfile"
        chain_tvls:
          type: "array"
          maxItems: 200
          description: "TVL by chain, largest first."
          items:
            $ref: "#/components/schemas/DefiChainTvl"
        fundamentals:
          description: "Fees and revenue, null when none are reported."
          anyOf:
            - $ref: "#/components/schemas/DefiFeeEntry"
            - type: "null"
        tvl_history:
          $ref: "#/components/schemas/DefiTvlHistory"
        message:
          $ref: "#/components/schemas/DefiFeesResponse/properties/message"
      examples:
        - protocol:
            slug: "aave-v3"
            name: "Aave V3"
            symbol: "AAVE"
            category: "Lending"
            chains:
              - "ethereum"
              - "base"
              - "arbitrum"
            description: "Earn interest, borrow assets, and build applications"
            url: "https://aave.com"
            twitter: "aave"
            token_id: null
            parent_protocol: "aave"
            is_parent_protocol: false
            related_protocols:
              - "Aave"
              - "Aave V3"
              - "Aave V4"
            mcap_usd: null
            listed_at: "2022-04-01T01:34:37.000Z"
            tvl_usd: 15251055917
            borrowed_usd: 10568383417.17
            staking_usd: null
            pool2_usd: null
          chain_tvls:
            - chain: "ethereum"
              tvl_usd: 13116337024.28
              share_pct: 86.0028
          fundamentals:
            slug: "aave-v3"
            name: "Aave V3"
            protocol_type: "protocol"
            category: "Lending"
            chains:
              - "ethereum"
              - "base"
            fees_24h_usd: 1420000
            fees_7d_usd: 9800000
            fees_30d_usd: 42574293
            fees_1y_usd: 520000000
            fees_all_time_usd: 2100000000
            fees_change_1d_pct: 3.1
            fees_change_7d_pct: -1.2
            fees_change_30d_pct: -2.95
            revenue_24h_usd: 190000
            revenue_7d_usd: 1300000
            revenue_30d_usd: 5600000
            revenue_1y_usd: 70000000
            holders_revenue_24h_usd: 40000
            holders_revenue_30d_usd: 1200000
            holders_revenue_1y_usd: 14000000
            annualized_fees_usd: 517987898.17
            annualized_revenue_usd: 68133333.33
            tvl_usd: 15251055917
            mcap_usd: 1400449180
            tvl_to_annualized_fees: 29.4429
            mcap_to_annualized_fees: 2.7036
            mcap_to_annualized_revenue: 20.5545
          tvl_history:
            chain: "ethereum"
            interval: "week"
            start_date: "2026-10-01"
            end_date: "2026-11-30"
            points:
              - date: "2026-11-29"
                tvl_usd: 13116337024
    PmSettlementSource:
      type: "object"
      description: "A source the venue settles by."
      additionalProperties: false
      required: []
      properties:
        name:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Source name."
          examples:
            - "Federal Reserve"
        url:
          type:
            - "string"
            - "null"
          format: "uri"
          maxLength: 500
          description: "Source URL."
          examples:
            - "https://www.federalreserve.gov"
      examples:
        - name: "Federal Reserve"
          url: "https://www.federalreserve.gov"
    PmMarketEvent:
      type: "object"
      description: "The event a market belongs to."
      additionalProperties: false
      required:
        - "id"
      properties:
        id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Event id."
          examples:
            - "KXFEDDECISION-26DEC"
        slug:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Polymarket event slug."
          examples:
            - "fed-decision-in-december"
        title:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Event title."
          examples:
            - "Fed decision in Dec 2026?"
        subtitle:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Kalshi event subtitle."
          examples:
            - "On Dec 9, 2026"
        mutually_exclusive:
          type:
            - "boolean"
            - "null"
          description: "Whether one outcome only can resolve YES."
          examples:
            - true
      examples:
        - id: "KXFEDDECISION-26DEC"
          title: "Fed decision in Dec 2026?"
    PmOutcomePrice:
      type: "object"
      description: "One outcome's price."
      additionalProperties: false
      required:
        - "outcome"
        - "probability_0_to_1"
        - "implied_prob_pct"
      properties:
        outcome:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Outcome name."
          examples:
            - "Yes"
        probability_0_to_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability, from 0 to 1."
          examples:
            - 0.935
        implied_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability, in percent."
          examples:
            - 93.5
        token_id:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Polymarket token id of the outcome."
          examples:
            - "11166212965282826688"
      examples:
        - outcome: "Yes"
          probability_0_to_1: 0.935
          implied_prob_pct: 93.5
    PmStrike:
      type: "object"
      description: "Kalshi's strike: greater, less, between or custom, with its bounds."
      additionalProperties: false
      required: []
      properties:
        type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Strike type."
          examples:
            - "greater"
        floor:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Lower bound."
          examples:
            - 2.75
        cap:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Upper bound."
          examples:
            - null
      examples:
        - type: "custom"
          floor: null
          cap: null
    PmEventOutcome:
      type: "object"
      description: "Another outcome of the same event."
      additionalProperties: false
      required:
        - "market_id"
        - "outcome"
      properties:
        market_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 241
          description: "Market id."
          examples:
            - "KXFEDDECISION-26DEC-H25"
        outcome:
          $ref: "#/components/schemas/PmOutcomePrice/properties/outcome"
        probability_0_to_1:
          $ref: "#/components/schemas/PmOutcomePrice/properties/probability_0_to_1"
        implied_prob_pct:
          $ref: "#/components/schemas/PmOutcomePrice/properties/implied_prob_pct"
        yes_bid:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best YES bid, from 0 to 1."
          examples:
            - 0.93
        yes_ask:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best YES ask, from 0 to 1."
          examples:
            - 0.94
        volume_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Polymarket volume over 24 hours, in US dollars."
          examples:
            - 141010.69
        volume_24h_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi contracts traded over 24 hours."
          examples:
            - 66167.64
      examples:
        - market_id: "KXFEDDECISION-26DEC-H25"
          outcome: "Hike 25bps"
          probability_0_to_1: 0.935
          implied_prob_pct: 93.5
          yes_bid: 0.93
          yes_ask: 0.94
          volume_24h_contracts: 66167.64
    PmHistoryPoint:
      type: "object"
      description: "Probability at the end of one period."
      additionalProperties: false
      required:
        - "time"
        - "probability_0_to_1"
        - "implied_prob_pct"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "End of the period."
          examples:
            - "2026-11-29T22:00:00.000Z"
        probability_0_to_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability of YES, from 0 to 1."
          examples:
            - 0.935
        implied_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability of YES, in percent."
          examples:
            - 93.5
        yes_bid:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi best YES bid, from 0 to 1."
          examples:
            - 0.93
        yes_ask:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi best YES ask, from 0 to 1."
          examples:
            - 0.94
        volume_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi contracts traded in the period."
          examples:
            - 1218.98
        open_interest_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi open contracts at the end."
          examples:
            - 3312211.11
      examples:
        - time: "2026-11-29T22:00:00.000Z"
          probability_0_to_1: 0.935
          implied_prob_pct: 93.5
          yes_bid: 0.93
          yes_ask: 0.94
          volume_contracts: 1218.98
          open_interest_contracts: 3312211.11
    PmMarketDetail:
      type: "object"
      description: "One market; fields a venue does not publish are left out."
      additionalProperties: false
      required:
        - "venue"
        - "market_id"
        - "question"
        - "probability_0_to_1"
        - "outcomes"
        - "url"
        - "api_url"
      properties:
        venue:
          type: "string"
          enum:
            - "polymarket"
            - "kalshi"
          description: "Venue."
          examples:
            - "kalshi"
        market_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 241
          description: "Polymarket market id or Kalshi market ticker."
          examples:
            - "KXFEDDECISION-26DEC-H25"
        slug:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Polymarket market slug."
          examples:
            - "fed-hike-25-december"
        condition_id:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "Polymarket condition id."
          examples:
            - "0x8a41"
        event_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Kalshi event ticker."
          examples:
            - "KXFEDDECISION-26DEC"
        series_id:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Kalshi series ticker."
          examples:
            - "KXFEDDECISION"
        question:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "The market's question."
          examples:
            - "Will the Fed hike 25bps in December 2026?"
        outcome:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What YES stands for in a Kalshi event."
          examples:
            - "Hike 25bps"
        rules:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20000
          description: "Resolution rules."
          examples:
            - "Resolves Yes if the Fed hikes by 25bps."
        resolution_source:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 500
          description: "Polymarket's resolution source."
          examples:
            - "https://www.federalreserve.gov"
        settlement_sources:
          type: "array"
          maxItems: 20
          description: "Kalshi's settlement sources."
          items:
            $ref: "#/components/schemas/PmSettlementSource"
        category:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Category."
          examples:
            - "Economics"
        event:
          description: "The event the market belongs to."
          anyOf:
            - $ref: "#/components/schemas/PmMarketEvent"
            - type: "null"
        status:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Trading status."
          examples:
            - "active"
        result:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 32
          description: "Kalshi's result once settled."
          examples:
            - "yes"
        can_close_early:
          type:
            - "boolean"
            - "null"
          description: "Whether Kalshi may close early."
          examples:
            - true
        accepting_orders:
          type:
            - "boolean"
            - "null"
          description: "Whether Polymarket accepts orders."
          examples:
            - true
        probability_0_to_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability of YES: the quote midpoint, else the last trade, from 0 to 1."
          examples:
            - 0.935
        implied_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The same probability, in percent."
          examples:
            - 93.5
        best_bid:
          $ref: "#/components/schemas/PmEventOutcome/properties/yes_bid"
        best_ask:
          $ref: "#/components/schemas/PmEventOutcome/properties/yes_ask"
        spread_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ask less bid in basis points of the $1 payout; one cent is 100."
          examples:
            - 100
        last_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Last trade price, from 0 to 1."
          examples:
            - 0.94
        outcomes:
          type: "array"
          maxItems: 50
          description: "Each outcome's price."
          items:
            $ref: "#/components/schemas/PmOutcomePrice"
        strike:
          $ref: "#/components/schemas/PmStrike"
        volume_24h_usd:
          $ref: "#/components/schemas/PmEventOutcome/properties/volume_24h_usd"
        volume_total_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Polymarket volume since listing, in US dollars."
          examples:
            - 14428228.6
        liquidity_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Polymarket resting liquidity, in US dollars."
          examples:
            - 1912983.78
        volume_24h_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi contracts traded over 24 hours; each pays $1."
          examples:
            - 66167.64
        volume_total_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi contracts traded since listing."
          examples:
            - 5568090.61
        open_interest_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Kalshi open contracts."
          examples:
            - 3312827.05
        tick_size:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Polymarket price increment."
          examples:
            - 0.01
        min_order_size_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Polymarket minimum order size."
          examples:
            - 5
        neg_risk:
          type:
            - "boolean"
            - "null"
          description: "Polymarket negative-risk event."
          examples:
            - true
        taker_fee_rate:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Taker fee per contract is rate × P × (1 − P)."
          examples:
            - 0.07
        opens_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When trading opened."
          examples:
            - "2025-09-29T14:00:00Z"
        closes_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When trading closes."
          examples:
            - "2026-12-09T18:59:00Z"
        expected_expiration_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "Kalshi's expected settlement time."
          examples:
            - "2026-12-09T19:05:00Z"
        url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The venue's page."
          examples:
            - "https://kalshi.com/markets/kxfeddecision"
        api_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The venue's public JSON of the market."
          examples:
            - "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25"
      examples:
        - venue: "kalshi"
          market_id: "KXFEDDECISION-26DEC-H25"
          event_id: "KXFEDDECISION-26DEC"
          series_id: "KXFEDDECISION"
          question: "Will the Federal Reserve Hike rates by 25bps at their December 2026 meeting?"
          outcome: "Hike 25bps"
          rules: "If the Federal Reserve does a Hike of 25bps on December 09, 2026, then the market resolves to Yes."
          settlement_sources:
            - name: "Federal Reserve"
              url: "https://www.federalreserve.gov"
          category: "Economics"
          event:
            id: "KXFEDDECISION-26DEC"
            title: "Fed decision in Dec 2026?"
            subtitle: "On Dec 9, 2026"
            mutually_exclusive: true
          status: "active"
          result: null
          can_close_early: true
          probability_0_to_1: 0.935
          implied_prob_pct: 93.5
          best_bid: 0.93
          best_ask: 0.94
          spread_bps: 100
          last_price: 0.94
          outcomes:
            - outcome: "Yes"
              probability_0_to_1: 0.935
              implied_prob_pct: 93.5
            - outcome: "No"
              probability_0_to_1: 0.065
              implied_prob_pct: 6.5
          strike:
            type: "custom"
            floor: null
            cap: null
          volume_24h_contracts: 66167.64
          volume_total_contracts: 5568090.61
          open_interest_contracts: 3312827.05
          taker_fee_rate: 0.07
          opens_at: "2025-09-29T14:00:00Z"
          closes_at: "2026-12-09T18:59:00Z"
          expected_expiration_at: "2026-12-09T19:05:00Z"
          url: "https://kalshi.com/markets/kxfeddecision"
          api_url: "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25"
    PredictionMarketDetailResponse:
      type: "object"
      description: "The answer of GET /prediction-markets/markets/{id}."
      additionalProperties: false
      required:
        - "market"
        - "event_outcomes"
        - "price_history"
      properties:
        market:
          $ref: "#/components/schemas/PmMarketDetail"
        event_outcomes:
          type: "array"
          maxItems: 200
          description: "The event's other outcomes."
          items:
            $ref: "#/components/schemas/PmEventOutcome"
        price_history:
          type: "object"
          description: "Probability history of YES."
          additionalProperties: false
          required:
            - "window"
            - "outcome"
            - "points"
          properties:
            window:
              type: "string"
              enum:
                - "none"
                - "1d"
                - "1w"
                - "1m"
                - "max"
              description: "Window."
              examples:
                - "1w"
            outcome:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 300
              description: "The outcome the history prices."
              examples:
                - "Yes"
            points:
              type: "array"
              maxItems: 5000
              description: "Price points, oldest first."
              items:
                $ref: "#/components/schemas/PmHistoryPoint"
          examples:
            - window: "1w"
              outcome: "Yes"
              points:
                - time: "2026-11-29T22:00:00.000Z"
                  probability_0_to_1: 0.935
                  implied_prob_pct: 93.5
                  yes_bid: 0.93
                  yes_ask: 0.94
                  volume_contracts: 1218.98
                  open_interest_contracts: 3312211.11
      examples:
        - market:
            venue: "kalshi"
            market_id: "KXFEDDECISION-26DEC-H25"
            event_id: "KXFEDDECISION-26DEC"
            series_id: "KXFEDDECISION"
            question: "Will the Federal Reserve Hike rates by 25bps at their December 2026 meeting?"
            outcome: "Hike 25bps"
            rules: "If the Federal Reserve does a Hike of 25bps on December 09, 2026, then the market resolves to Yes."
            settlement_sources:
              - name: "Federal Reserve"
                url: "https://www.federalreserve.gov"
            category: "Economics"
            event:
              id: "KXFEDDECISION-26DEC"
              title: "Fed decision in Dec 2026?"
              subtitle: "On Dec 9, 2026"
              mutually_exclusive: true
            status: "active"
            result: null
            can_close_early: true
            probability_0_to_1: 0.935
            implied_prob_pct: 93.5
            best_bid: 0.93
            best_ask: 0.94
            spread_bps: 100
            last_price: 0.94
            outcomes:
              - outcome: "Yes"
                probability_0_to_1: 0.935
                implied_prob_pct: 93.5
              - outcome: "No"
                probability_0_to_1: 0.065
                implied_prob_pct: 6.5
            strike:
              type: "custom"
              floor: null
              cap: null
            volume_24h_contracts: 66167.64
            volume_total_contracts: 5568090.61
            open_interest_contracts: 3312827.05
            taker_fee_rate: 0.07
            opens_at: "2025-09-29T14:00:00Z"
            closes_at: "2026-12-09T18:59:00Z"
            expected_expiration_at: "2026-12-09T19:05:00Z"
            url: "https://kalshi.com/markets/kxfeddecision"
            api_url: "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25"
          event_outcomes:
            - market_id: "KXFEDDECISION-26DEC-H25"
              outcome: "Hike 25bps"
              probability_0_to_1: 0.935
              implied_prob_pct: 93.5
              yes_bid: 0.93
              yes_ask: 0.94
              volume_24h_contracts: 66167.64
          price_history:
            window: "1w"
            outcome: "Yes"
            points:
              - time: "2026-11-29T22:00:00.000Z"
                probability_0_to_1: 0.935
                implied_prob_pct: 93.5
                yes_bid: 0.93
                yes_ask: 0.94
                volume_contracts: 1218.98
                open_interest_contracts: 3312211.11
    PmBookLevel:
      type: "object"
      description: "One price level."
      additionalProperties: false
      required:
        - "price_0_to_1"
        - "size_contracts"
        - "notional_usd"
        - "cumulative_notional_usd"
      properties:
        price_0_to_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Price, from 0 to 1."
          examples:
            - 0.94
        size_contracts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Contracts resting at the price."
          examples:
            - 181437.6
        notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Price × size, in US dollars."
          examples:
            - 170551.34
        cumulative_notional_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Notional from the best price to this one, in US dollars."
          examples:
            - 170551.34
      examples:
        - price_0_to_1: 0.94
          size_contracts: 181437.6
          notional_usd: 170551.34
          cumulative_notional_usd: 170551.34
    PmBookDepth:
      type: "object"
      description: "USD near the best price of one side."
      additionalProperties: false
      required:
        - "side"
      properties:
        side:
          type: "string"
          enum:
            - "bid"
            - "ask"
          description: "Book side."
          examples:
            - "ask"
        within_1c_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Resting within 1 cent of the best price, in US dollars."
          examples:
            - 412889.73
        within_5c_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Resting within 5 cents of the best price, in US dollars."
          examples:
            - 1120000
        within_10c_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Resting within 10 cents of the best price, in US dollars."
          examples:
            - 1420000
      examples:
        - side: "ask"
          within_1c_usd: 412889.73
          within_5c_usd: 1120000
          within_10c_usd: 1420000
    PredictionOrderBookResponse:
      type: "object"
      description: "The answer of GET /prediction-markets/orderbook."
      additionalProperties: false
      required:
        - "venue"
        - "market_id"
        - "outcome"
        - "question"
        - "url"
        - "bids"
        - "asks"
      properties:
        venue:
          $ref: "#/components/schemas/PmMarketDetail/properties/venue"
        market_id:
          $ref: "#/components/schemas/PmEventOutcome/properties/market_id"
        outcome:
          type: "string"
          enum:
            - "yes"
            - "no"
          description: "The side of the book."
          examples:
            - "yes"
        question:
          $ref: "#/components/schemas/PmMarketDetail/properties/question"
        token_id:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 100
          description: "Polymarket token id of the side."
          examples:
            - "11166212965282826688"
        book_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When the book was read."
          examples:
            - "2026-11-30T09:00:00.000Z"
        book_hash:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "Polymarket's hash of the book state."
          examples:
            - "4182098d13"
        url:
          $ref: "#/components/schemas/PmMarketDetail/properties/url"
        api_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The venue's public JSON of the book."
          examples:
            - "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25/orderbook"
        best_bid:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best bid, from 0 to 1."
          examples:
            - 0.93
        best_ask:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Best ask, from 0 to 1."
          examples:
            - 0.94
        probability_0_to_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Midpoint of the best bid and ask, from 0 to 1."
          examples:
            - 0.935
        implied_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The midpoint, in percent."
          examples:
            - 93.5
        spread_0_to_1:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ask less bid, from 0 to 1."
          examples:
            - 0.01
        spread_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ask less bid in basis points of the $1 payout."
          examples:
            - 100
        bid_depth:
          $ref: "#/components/schemas/PmBookDepth"
        ask_depth:
          $ref: "#/components/schemas/PmBookDepth"
        bids:
          type: "array"
          maxItems: 100
          description: "Bids, best first."
          items:
            $ref: "#/components/schemas/PmBookLevel"
        asks:
          type: "array"
          maxItems: 100
          description: "Asks, best first."
          items:
            $ref: "#/components/schemas/PmBookLevel"
      examples:
        - venue: "kalshi"
          market_id: "KXFEDDECISION-26DEC-H25"
          outcome: "yes"
          question: "Will the Federal Reserve Hike rates by 25bps at their December 2026 meeting?"
          token_id: null
          book_time: "2026-11-30T09:00:00.000Z"
          book_hash: null
          url: "https://kalshi.com/markets/kxfeddecision"
          api_url: "https://api.elections.kalshi.com/trade-api/v2/markets/KXFEDDECISION-26DEC-H25/orderbook"
          best_bid: 0.93
          best_ask: 0.94
          probability_0_to_1: 0.935
          implied_prob_pct: 93.5
          spread_0_to_1: 0.01
          spread_bps: 100
          bid_depth:
            side: "bid"
            within_1c_usd: 412889.73
            within_5c_usd: 1120000
            within_10c_usd: 1420000
          ask_depth:
            side: "ask"
            within_1c_usd: 412889.73
            within_5c_usd: 1120000
            within_10c_usd: 1420000
          bids:
            - price_0_to_1: 0.93
              size_contracts: 181437.6
              notional_usd: 170551.34
              cumulative_notional_usd: 170551.34
          asks:
            - price_0_to_1: 0.94
              size_contracts: 181437.6
              notional_usd: 170551.34
              cumulative_notional_usd: 170551.34
    PmMacroOutcome:
      type: "object"
      description: "One priced outcome of a macro event."
      additionalProperties: false
      required:
        - "label"
        - "market_id"
        - "probability_0_to_1"
        - "implied_prob_pct"
      properties:
        label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Outcome or strike label."
          examples:
            - "Hike 25bps"
        market_id:
          $ref: "#/components/schemas/PmEventOutcome/properties/market_id"
        probability_0_to_1:
          $ref: "#/components/schemas/PmHistoryPoint/properties/probability_0_to_1"
        implied_prob_pct:
          $ref: "#/components/schemas/PmHistoryPoint/properties/implied_prob_pct"
        normalized_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Exclusive outcomes only: scaled so the event sums to 100, in percent."
          examples:
            - 91.67
        yes_bid:
          $ref: "#/components/schemas/PmEventOutcome/properties/yes_bid"
        yes_ask:
          $ref: "#/components/schemas/PmEventOutcome/properties/yes_ask"
        strike:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ladders only: YES pays when the release is above this, in the unit."
          examples:
            - null
      examples:
        - label: "Hike 25bps"
          market_id: "KXFEDDECISION-26DEC-H25"
          probability_0_to_1: 0.935
          implied_prob_pct: 93.5
          normalized_prob_pct: 91.67
          yes_bid: 0.93
          yes_ask: 0.94
          strike: null
    PmDecisionOdds:
      type: "object"
      description: "Hike, hold and cut odds of one FOMC meeting."
      additionalProperties: false
      required:
        - "hike_prob_pct"
        - "hold_prob_pct"
        - "cut_prob_pct"
      properties:
        hike_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability of a hike, in percent."
          examples:
            - 94.58
        hold_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability of no change, in percent."
          examples:
            - 3.45
        cut_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Probability of a cut, in percent."
          examples:
            - 1.97
      examples:
        - hike_prob_pct: 94.58
          hold_prob_pct: 3.45
          cut_prob_pct: 1.97
    PmMacroEvent:
      type: "object"
      description: "One venue's pricing of one upcoming release or decision."
      additionalProperties: false
      required:
        - "indicator"
        - "venue"
        - "event_id"
        - "title"
        - "distribution"
        - "outcomes"
        - "url"
      properties:
        indicator:
          type: "string"
          enum:
            - "fed_decision"
            - "fed_rate"
            - "rate_cuts"
            - "cpi_mom"
            - "core_cpi_mom"
            - "cpi_yoy"
            - "payrolls"
            - "unemployment"
            - "gdp"
            - "recession"
          description: "Indicator."
          examples:
            - "fed_decision"
        indicator_label:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "Indicator name."
          examples:
            - "FOMC rate decision"
        unit:
          type:
            - "string"
            - "null"
          enum:
            - "pct"
            - "jobs"
            - "count"
            - null
          description: "Unit of strikes and the median."
          examples:
            - "pct"
        venue:
          type: "string"
          enum:
            - "kalshi"
            - "polymarket"
          description: "Venue of the event."
          examples:
            - "kalshi"
        event_id:
          $ref: "#/components/schemas/PmMarketEvent/properties/id"
        title:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Title of the macro event."
          examples:
            - "Fed decision in Dec 2026?"
        resolves_at:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When the event resolves."
          examples:
            - "2026-12-09T19:00:00Z"
        distribution:
          type: "string"
          enum:
            - "exclusive"
            - "threshold"
            - "binary"
          description: "How the outcomes relate."
          examples:
            - "exclusive"
        outcomes:
          type: "array"
          maxItems: 100
          description: "Priced outcomes."
          items:
            $ref: "#/components/schemas/PmMacroOutcome"
        probability_sum:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Exclusive events: sum of raw probabilities; above 1 is overround."
          examples:
            - 1.02
        most_likely:
          description: "Exclusive events: the likeliest outcome."
          anyOf:
            - type: "object"
              description: "The likeliest outcome."
              additionalProperties: false
              required:
                - "label"
                - "implied_prob_pct"
              properties:
                label:
                  type: "string"
                  pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                  maxLength: 300
                  description: "Outcome."
                  examples:
                    - "Hike 25bps"
                implied_prob_pct:
                  $ref: "#/components/schemas/PmOutcomePrice/properties/implied_prob_pct"
              examples:
                - label: "Hike 25bps"
                  implied_prob_pct: 93.5
            - type: "null"
        implied_median:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Ladders: the value priced as equally likely to be beaten or not."
          examples:
            - 4.1236
        decision_odds:
          description: "FOMC decisions: hike, hold and cut odds."
          anyOf:
            - $ref: "#/components/schemas/PmDecisionOdds"
            - type: "null"
        url:
          $ref: "#/components/schemas/PmMarketDetail/properties/url"
        api_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The venue's public JSON of the event."
          examples:
            - "https://api.elections.kalshi.com/trade-api/v2/events/KXFEDDECISION-26DEC"
      examples:
        - indicator: "fed_decision"
          indicator_label: "FOMC rate decision"
          unit: null
          venue: "kalshi"
          event_id: "KXFEDDECISION-26DEC"
          title: "Fed decision in Dec 2026? On Dec 9, 2026"
          resolves_at: "2026-12-09T19:00:00Z"
          distribution: "exclusive"
          outcomes:
            - label: "Hike 25bps"
              market_id: "KXFEDDECISION-26DEC-H25"
              probability_0_to_1: 0.935
              implied_prob_pct: 93.5
              normalized_prob_pct: 91.67
              yes_bid: 0.93
              yes_ask: 0.94
              strike: null
          probability_sum: 1.02
          most_likely:
            label: "Hike 25bps"
            implied_prob_pct: 93.5
          implied_median: null
          decision_odds:
            hike_prob_pct: 94.58
            hold_prob_pct: 3.45
            cut_prob_pct: 1.97
          url: "https://kalshi.com/markets/kxfeddecision"
          api_url: "https://api.elections.kalshi.com/trade-api/v2/events/KXFEDDECISION-26DEC"
    PmFedConsensus:
      type: "object"
      description: "One FOMC meeting's odds averaged across venues."
      additionalProperties: false
      required:
        - "meeting_month"
        - "venues"
        - "hike_prob_pct"
        - "hold_prob_pct"
        - "cut_prob_pct"
      properties:
        meeting_month:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 7
          description: "Meeting month, YYYY-MM."
          examples:
            - "2026-12"
        venues:
          type: "array"
          maxItems: 2
          description: "Venues that price the meeting."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 120
          examples:
            - - "kalshi"
              - "polymarket"
        hike_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Average probability of a hike, in percent."
          examples:
            - 95.32
        hold_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Average probability of no change, in percent."
          examples:
            - 3.55
        cut_prob_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Average probability of a cut, in percent."
          examples:
            - 1.14
      examples:
        - meeting_month: "2026-12"
          venues:
            - "kalshi"
            - "polymarket"
          hike_prob_pct: 95.32
          hold_prob_pct: 3.55
          cut_prob_pct: 1.14
    PredictionMacroOddsResponse:
      type: "object"
      description: "The answer of GET /prediction-markets/macro-odds."
      additionalProperties: false
      required:
        - "macro_odds"
        - "fed_consensus"
      properties:
        macro_odds:
          type: "array"
          maxItems: 200
          description: "Events, soonest first per indicator and venue."
          items:
            $ref: "#/components/schemas/PmMacroEvent"
        fed_consensus:
          type: "array"
          maxItems: 24
          description: "FOMC meetings, soonest first."
          items:
            $ref: "#/components/schemas/PmFedConsensus"
        source_status:
          type: "object"
          description: "Each venue and indicator read: ok, or unavailable when its feed failed."
          additionalProperties:
            type: "string"
            enum:
              - "ok"
              - "unavailable"
          examples:
            - "kalshi:fed_decision": "ok"
        message:
          $ref: "#/components/schemas/DefiFeesResponse/properties/message"
      examples:
        - macro_odds:
            - indicator: "fed_decision"
              indicator_label: "FOMC rate decision"
              unit: null
              venue: "kalshi"
              event_id: "KXFEDDECISION-26DEC"
              title: "Fed decision in Dec 2026? On Dec 9, 2026"
              resolves_at: "2026-12-09T19:00:00Z"
              distribution: "exclusive"
              outcomes:
                - label: "Hike 25bps"
                  market_id: "KXFEDDECISION-26DEC-H25"
                  probability_0_to_1: 0.935
                  implied_prob_pct: 93.5
                  normalized_prob_pct: 91.67
                  yes_bid: 0.93
                  yes_ask: 0.94
                  strike: null
              probability_sum: 1.02
              most_likely:
                label: "Hike 25bps"
                implied_prob_pct: 93.5
              implied_median: null
              decision_odds:
                hike_prob_pct: 94.58
                hold_prob_pct: 3.45
                cut_prob_pct: 1.97
              url: "https://kalshi.com/markets/kxfeddecision"
              api_url: "https://api.elections.kalshi.com/trade-api/v2/events/KXFEDDECISION-26DEC"
          fed_consensus:
            - meeting_month: "2026-12"
              venues:
                - "kalshi"
                - "polymarket"
              hike_prob_pct: 95.32
              hold_prob_pct: 3.55
              cut_prob_pct: 1.14
          source_status:
            "kalshi:fed_decision": "ok"
    ExtendedFinancialMetrics:
      type: "object"
      description: "One period's metrics of one company, grouped by category."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "form_type"
        - "filing_url"
        - "filing_date"
        - "filing_datetime"
        - "valuation"
        - "profitability"
        - "returns"
        - "efficiency"
        - "liquidity"
        - "leverage"
        - "cash_flow"
        - "per_share"
        - "growth"
        - "null_reasons"
        - "assumptions"
        - "averages_basis"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the metrics' company."
          examples:
            - "AAPL"
        report_period:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The last day of the metrics' period."
          examples:
            - "2026-09-26"
        fiscal_period:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The fiscal year and quarter of the metrics."
          examples:
            - "2026-FY"
        period:
          type:
            - "string"
            - "null"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
            - null
          description: "Whether the metrics cover a fiscal year, a quarter or a trailing year."
          examples:
            - "annual"
        currency:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 3
          description: "The currency of the metrics' statements."
          examples:
            - "USD"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The filing of the metrics' statements; null for ESEF."
          examples:
            - "0000320193-26-000026"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form of the metrics' statements; null for ttm."
          examples:
            - "10-K"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the metrics' filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The day SEC accepted the metrics' filing."
          examples:
            - "2026-11-03"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When SEC accepted the metrics' filing, in Eastern Time."
          examples:
            - "2026-11-03T16:31:05-05:00"
        valuation:
          type: "object"
          description: "The valuation metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            market_cap_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap, in US dollars."
              examples:
                - 3960000000000
            enterprise_value_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value, in US dollars."
              examples:
                - null
            price_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "price, in US dollars per share."
              examples:
                - null
            price_to_earnings_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / net_income, in a plain multiple."
              examples:
                - 35.8
            price_to_book_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / equity, in a plain multiple."
              examples:
                - null
            price_to_tangible_book_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / tangible_equity, in a plain multiple."
              examples:
                - null
            price_to_sales_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / revenue, in a plain multiple."
              examples:
                - null
            price_to_gross_profit_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / gross_profit, in a plain multiple."
              examples:
                - null
            price_to_operating_cash_flow_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / operating_cash_flow, in a plain multiple."
              examples:
                - null
            price_to_free_cash_flow_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / free_cash_flow, in a plain multiple."
              examples:
                - null
            price_to_ncav_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "market_cap / ncav, in a plain multiple."
              examples:
                - null
            ev_to_revenue_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value / revenue, in a plain multiple."
              examples:
                - null
            ev_to_gross_profit_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value / gross_profit, in a plain multiple."
              examples:
                - null
            ev_to_ebitda_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value / ebitda, in a plain multiple."
              examples:
                - null
            ev_to_ebit_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value / ebit, in a plain multiple."
              examples:
                - null
            ev_to_operating_cash_flow_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value / operating_cash_flow, in a plain multiple."
              examples:
                - null
            ev_to_free_cash_flow_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value / free_cash_flow, in a plain multiple."
              examples:
                - null
            ev_to_invested_capital_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "enterprise_value / invested_capital, in a plain multiple."
              examples:
                - null
            earnings_yield_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_income / market_cap × 100, in percent."
              examples:
                - null
            ebit_to_ev_yield_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebit / enterprise_value × 100, in percent."
              examples:
                - null
            free_cash_flow_yield_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow / market_cap × 100, in percent."
              examples:
                - null
            operating_cash_flow_yield_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_cash_flow / market_cap × 100, in percent."
              examples:
                - null
            dividend_yield_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "dividends_paid / market_cap × 100, in percent."
              examples:
                - null
            buyback_yield_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_repurchases / market_cap × 100, in percent."
              examples:
                - null
            shareholder_yield_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(dividends_paid + net_repurchases) / market_cap × 100, in percent."
              examples:
                - null
            peg_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(market_cap / net_income) / eps_diluted_growth_1y_pct; null unless that growth is positive, in a plain multiple."
              examples:
                - null
            graham_number_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "√(22.5 × eps_diluted × book_value_per_share), in US dollars per share."
              examples:
                - null
            price_to_graham_number_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "price / √(22.5 × eps_diluted × book_value_per_share), in a plain multiple."
              examples:
                - null
            debt_to_market_cap_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_debt / market_cap, in a plain multiple."
              examples:
                - null
          examples:
            - market_cap_usd: 3960000000000
              price_to_earnings_ratio: 35.8
        profitability:
          type: "object"
          description: "The profitability metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            gross_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "gross_profit / revenue × 100, in percent."
              examples:
                - 46.9
            operating_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_income / revenue × 100, in percent."
              examples:
                - null
            ebitda_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebitda / revenue × 100, in percent."
              examples:
                - null
            ebit_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebit / revenue × 100, in percent."
              examples:
                - null
            pretax_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "pretax_income / revenue × 100, in percent."
              examples:
                - null
            net_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_income / revenue × 100, in percent."
              examples:
                - null
            nopat_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "nopat / revenue × 100, in percent."
              examples:
                - null
            operating_cash_flow_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_cash_flow / revenue × 100, in percent."
              examples:
                - null
            free_cash_flow_margin_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow / revenue × 100, in percent."
              examples:
                - 23.7
            effective_tax_rate_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "income_tax_expense / pretax_income × 100, in percent."
              examples:
                - null
            operating_expense_to_revenue_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_expense / revenue × 100, in percent."
              examples:
                - null
            sga_to_revenue_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "sga / revenue × 100, in percent."
              examples:
                - null
            rd_to_revenue_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "rd / revenue × 100, in percent."
              examples:
                - null
            sbc_to_revenue_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "sbc / revenue × 100, in percent."
              examples:
                - null
            depreciation_to_revenue_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "depreciation / revenue × 100, in percent."
              examples:
                - null
            ebitda_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebitda, in US dollars."
              examples:
                - null
            ebit_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebit, in US dollars."
              examples:
                - null
            nopat_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "nopat, in US dollars."
              examples:
                - null
          examples:
            - gross_margin_pct: 46.9
              free_cash_flow_margin_pct: 23.7
        returns:
          type: "object"
          description: "The returns metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            return_on_equity_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_income / avg_equity × 100, in percent."
              examples:
                - 151.9
            return_on_assets_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_income / avg_total_assets × 100, in percent."
              examples:
                - null
            return_on_tangible_assets_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_income / avg_tangible_assets × 100, in percent."
              examples:
                - null
            return_on_tangible_equity_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_income / avg_tangible_equity × 100, in percent."
              examples:
                - null
            return_on_invested_capital_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "nopat / avg_invested_capital × 100, in percent."
              examples:
                - null
            return_on_capital_employed_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebit / avg_capital_employed × 100, in percent."
              examples:
                - null
            cash_return_on_invested_capital_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow / avg_invested_capital × 100, in percent."
              examples:
                - null
            operating_return_on_assets_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_income / avg_total_assets × 100, in percent."
              examples:
                - null
          examples:
            - return_on_equity_pct: 151.9
        efficiency:
          type: "object"
          description: "The efficiency metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            asset_turnover_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "revenue / avg_total_assets, in a plain multiple."
              examples:
                - null
            fixed_asset_turnover_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "revenue / avg_ppe, in a plain multiple."
              examples:
                - null
            inventory_turnover_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "cost_of_revenue / avg_inventory, in a plain multiple."
              examples:
                - null
            receivables_turnover_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "revenue / avg_receivables, in a plain multiple."
              examples:
                - null
            payables_turnover_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "cost_of_revenue / avg_payables, in a plain multiple."
              examples:
                - null
            working_capital_turnover_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "revenue / avg_working_capital, in a plain multiple."
              examples:
                - null
            days_inventory_outstanding_days:
              type:
                - "number"
                - "null"
              format: "double"
              description: "avg_inventory / cost_of_revenue × period_days, in calendar days."
              examples:
                - null
            days_sales_outstanding_days:
              type:
                - "number"
                - "null"
              format: "double"
              description: "avg_receivables / revenue × period_days, in calendar days."
              examples:
                - null
            days_payables_outstanding_days:
              type:
                - "number"
                - "null"
              format: "double"
              description: "avg_payables / cost_of_revenue × period_days, in calendar days."
              examples:
                - null
            cash_conversion_cycle_days:
              type:
                - "number"
                - "null"
              format: "double"
              description: "days_inventory_outstanding + days_sales_outstanding - days_payables_outstanding, in calendar days."
              examples:
                - null
            operating_cycle_days:
              type:
                - "number"
                - "null"
              format: "double"
              description: "days_inventory_outstanding + days_sales_outstanding, in calendar days."
              examples:
                - null
          examples:
            - {}
        liquidity:
          type: "object"
          description: "The liquidity metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            current_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "current_assets / current_liabilities, in a plain multiple."
              examples:
                - 0.89
            quick_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(cash_and_short_term_investments + receivables) / current_liabilities, in a plain multiple."
              examples:
                - null
            cash_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "cash_and_short_term_investments / current_liabilities, in a plain multiple."
              examples:
                - null
            operating_cash_flow_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_cash_flow / current_liabilities, in a plain multiple."
              examples:
                - null
            working_capital_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "working_capital, in US dollars."
              examples:
                - null
            working_capital_to_total_assets_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "working_capital / total_assets × 100, in percent."
              examples:
                - null
            cash_and_short_term_investments_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "cash_and_short_term_investments, in US dollars."
              examples:
                - null
            cash_to_total_assets_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "cash_and_short_term_investments / total_assets × 100, in percent."
              examples:
                - null
            net_current_asset_value_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ncav, in US dollars."
              examples:
                - null
            defensive_interval_days:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(cash_and_short_term_investments + receivables) / ((cost_of_revenue + operating_expense - depreciation) / period_days), in calendar days."
              examples:
                - null
          examples:
            - current_ratio: 0.89
        leverage:
          type: "object"
          description: "The leverage metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            total_debt_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_debt, in US dollars."
              examples:
                - null
            net_debt_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_debt, in US dollars."
              examples:
                - null
            net_debt_to_ebitda_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_debt / ebitda, in a plain multiple."
              examples:
                - null
            debt_to_ebitda_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_debt / ebitda, in a plain multiple."
              examples:
                - null
            debt_to_equity_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_debt / equity, in a plain multiple."
              examples:
                - 1.54
            net_debt_to_equity_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_debt / equity, in a plain multiple."
              examples:
                - null
            debt_to_assets_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_debt / total_assets, in a plain multiple."
              examples:
                - null
            debt_to_capital_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_debt / (total_debt + equity), in a plain multiple."
              examples:
                - null
            long_term_debt_to_capital_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "long_term_debt / (long_term_debt + equity), in a plain multiple."
              examples:
                - null
            liabilities_to_equity_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_liabilities / equity, in a plain multiple."
              examples:
                - null
            liabilities_to_assets_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "total_liabilities / total_assets, in a plain multiple."
              examples:
                - null
            equity_multiplier_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "avg_total_assets / avg_equity, in a plain multiple."
              examples:
                - null
            interest_coverage_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebit / interest_expense, in a plain multiple."
              examples:
                - null
            ebitda_interest_coverage_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebitda / interest_expense, in a plain multiple."
              examples:
                - null
            ebitda_minus_capex_interest_coverage_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(ebitda - capex) / interest_expense, in a plain multiple."
              examples:
                - null
            operating_cash_flow_to_debt_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_cash_flow / total_debt, in a plain multiple."
              examples:
                - null
            free_cash_flow_to_debt_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow / total_debt, in a plain multiple."
              examples:
                - null
            goodwill_and_intangibles_to_assets_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "goodwill_intangibles / total_assets × 100, in percent."
              examples:
                - null
            tangible_book_value_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "tangible_equity, in US dollars."
              examples:
                - null
          examples:
            - debt_to_equity_ratio: 1.54
        cash_flow:
          type: "object"
          description: "The cash flow metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            operating_cash_flow_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_cash_flow, in US dollars."
              examples:
                - null
            free_cash_flow_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow, in US dollars."
              examples:
                - null
            capex_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "capex, in US dollars."
              examples:
                - null
            capex_to_revenue_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "capex / revenue × 100, in percent."
              examples:
                - null
            capex_to_depreciation_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "capex / depreciation, in a plain multiple."
              examples:
                - null
            capex_to_operating_cash_flow_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "capex / operating_cash_flow × 100, in percent."
              examples:
                - null
            income_quality_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_cash_flow / net_income, in a plain multiple."
              examples:
                - null
            free_cash_flow_conversion_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow / net_income × 100, in percent."
              examples:
                - null
            sloan_accruals_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(net_income - operating_cash_flow) / avg_total_assets × 100, in percent."
              examples:
                - null
            dividend_payout_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "dividends_paid / net_income × 100, in percent."
              examples:
                - null
            total_payout_to_free_cash_flow_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(dividends_paid + net_repurchases) / free_cash_flow × 100, in percent."
              examples:
                - null
            free_cash_flow_to_dividends_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow / dividends_paid, in a plain multiple."
              examples:
                - null
            owner_earnings_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "net_income + depreciation - capex (all capital expenditure counted as maintenance), in US dollars."
              examples:
                - null
          examples:
            - {}
        per_share:
          type: "object"
          description: "The per share metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            revenue_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "revenue / shares, in US dollars per share."
              examples:
                - 27.84
            earnings_per_share_diluted_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "eps_diluted, in US dollars per share."
              examples:
                - null
            book_value_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "book_value_per_share, in US dollars per share."
              examples:
                - null
            tangible_book_value_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "tangible_equity / shares, in US dollars per share."
              examples:
                - null
            cash_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "cash_and_short_term_investments / shares, in US dollars per share."
              examples:
                - null
            operating_cash_flow_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "operating_cash_flow / shares, in US dollars per share."
              examples:
                - null
            free_cash_flow_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "free_cash_flow / shares, in US dollars per share."
              examples:
                - null
            ebitda_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ebitda / shares, in US dollars per share."
              examples:
                - null
            capex_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "capex / shares, in US dollars per share."
              examples:
                - null
            dividends_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "dividends_per_share, in US dollars per share."
              examples:
                - null
            net_current_asset_value_per_share_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "ncav / shares, in US dollars per share."
              examples:
                - null
            shares_outstanding:
              type:
                - "number"
                - "null"
              format: "double"
              description: "shares, in shares."
              examples:
                - null
          examples:
            - revenue_per_share_usd: 27.84
        growth:
          type: "object"
          description: "The growth metrics of the period, every one present: a number, or null with its cause in null_reasons."
          additionalProperties: false
          required: []
          properties:
            revenue_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(revenue - revenue_1y_ago) / |revenue_1y_ago| × 100, in percent."
              examples:
                - 6.4
            gross_profit_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(gross_profit - gross_profit_1y_ago) / |gross_profit_1y_ago| × 100, in percent."
              examples:
                - null
            operating_income_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(operating_income - operating_income_1y_ago) / |operating_income_1y_ago| × 100, in percent."
              examples:
                - null
            ebitda_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(ebitda - ebitda_1y_ago) / |ebitda_1y_ago| × 100, in percent."
              examples:
                - null
            net_income_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(net_income - net_income_1y_ago) / |net_income_1y_ago| × 100, in percent."
              examples:
                - null
            eps_diluted_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(eps_diluted - eps_diluted_1y_ago) / |eps_diluted_1y_ago| × 100, in percent."
              examples:
                - null
            free_cash_flow_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(free_cash_flow - free_cash_flow_1y_ago) / |free_cash_flow_1y_ago| × 100, in percent."
              examples:
                - null
            operating_cash_flow_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(operating_cash_flow - operating_cash_flow_1y_ago) / |operating_cash_flow_1y_ago| × 100, in percent."
              examples:
                - null
            equity_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(equity - equity_1y_ago) / |equity_1y_ago| × 100, in percent."
              examples:
                - null
            total_assets_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(total_assets - total_assets_1y_ago) / |total_assets_1y_ago| × 100, in percent."
              examples:
                - null
            diluted_shares_change_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(shares_diluted - shares_diluted_1y_ago) / |shares_diluted_1y_ago| × 100, in percent."
              examples:
                - null
            dividends_per_share_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(dividends_per_share - dividends_per_share_1y_ago) / |dividends_per_share_1y_ago| × 100, in percent."
              examples:
                - null
            book_value_per_share_growth_1y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "(book_value_per_share - book_value_per_share_1y_ago) / |book_value_per_share_1y_ago| × 100, in percent."
              examples:
                - null
            revenue_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((revenue / revenue_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            revenue_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((revenue / revenue_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            revenue_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((revenue / revenue_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
            eps_diluted_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((eps_diluted / eps_diluted_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            eps_diluted_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((eps_diluted / eps_diluted_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            eps_diluted_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((eps_diluted / eps_diluted_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
            free_cash_flow_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((free_cash_flow / free_cash_flow_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            free_cash_flow_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((free_cash_flow / free_cash_flow_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            free_cash_flow_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((free_cash_flow / free_cash_flow_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
            net_income_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((net_income / net_income_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            net_income_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((net_income / net_income_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            net_income_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((net_income / net_income_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
            ebitda_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((ebitda / ebitda_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            ebitda_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((ebitda / ebitda_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            ebitda_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((ebitda / ebitda_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
            operating_income_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((operating_income / operating_income_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            operating_income_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((operating_income / operating_income_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            operating_income_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((operating_income / operating_income_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
            book_value_per_share_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((book_value_per_share / book_value_per_share_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            book_value_per_share_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((book_value_per_share / book_value_per_share_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            book_value_per_share_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((book_value_per_share / book_value_per_share_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
            dividends_per_share_cagr_3y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((dividends_per_share / dividends_per_share_3y_ago) ^ (1 / 3) - 1) × 100, in percent."
              examples:
                - null
            dividends_per_share_cagr_5y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((dividends_per_share / dividends_per_share_5y_ago) ^ (1 / 5) - 1) × 100, in percent."
              examples:
                - null
            dividends_per_share_cagr_10y_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "((dividends_per_share / dividends_per_share_10y_ago) ^ (1 / 10) - 1) × 100, in percent."
              examples:
                - null
          examples:
            - revenue_growth_1y_pct: 6.4
        null_reasons:
          type: "object"
          description: "Why each null metric is null, by metric name; the cause starts with missing_input, not_meaningful, no_price, not_usd or insufficient_history."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - dividend_yield_pct: "missing_input: dividends_paid not reported for this period"
        assumptions:
          type: "array"
          maxItems: 20
          description: "Facts the filing leaves out that formulas adding or subtracting them count as 0."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "minority_interest is not reported for this period"
        averages_basis:
          type: "string"
          enum:
            - "opening_and_closing_balance"
            - "closing_balance_only"
          description: "Whether ratios of a flow to a balance averaged the opening and closing balance or used the closing one alone."
          examples:
            - "opening_and_closing_balance"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          form_type: "10-K"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          filing_date: "2026-11-03"
          filing_datetime: "2026-11-03T16:31:05-05:00"
          valuation:
            market_cap_usd: 3960000000000
            price_to_earnings_ratio: 35.8
          profitability:
            gross_margin_pct: 46.9
            free_cash_flow_margin_pct: 23.7
          returns:
            return_on_equity_pct: 151.9
          efficiency: {}
          liquidity:
            current_ratio: 0.89
          leverage:
            debt_to_equity_ratio: 1.54
          cash_flow: {}
          per_share:
            revenue_per_share_usd: 27.84
          growth:
            revenue_growth_1y_pct: 6.4
          null_reasons:
            dividend_yield_pct: "missing_input: dividends_paid not reported for this period"
          assumptions: []
          averages_basis: "opening_and_closing_balance"
    ExtendedFinancialMetricsResponse:
      type: "object"
      description: "The answer of GET /financial-metrics/extended."
      additionalProperties: false
      required:
        - "financial_metrics"
        - "metric_count"
        - "units"
        - "methodology"
        - "definitions_url"
        - "source"
        - "as_of"
      properties:
        financial_metrics:
          type: "array"
          maxItems: 10
          description: "This page of periods with extended metrics, newest first."
          items:
            $ref: "#/components/schemas/ExtendedFinancialMetrics"
        metric_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000
          description: "How many metrics each period holds."
          examples:
            - 157
        units:
          type: "object"
          description: "The meaning of each metric name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _pct: "percent: 31.8 means 31.8%"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 4000
          description: "How the metrics are computed."
          examples:
            - "Each row is one period."
        definitions_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The catalog of every metric's formula."
          examples:
            - "https://api.darvas.app/v1/financial-metrics/catalog"
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What the metrics are built from."
          examples:
            - "Standardized SEC filings (10-K, 10-Q, 20-F, 40-F) as Darvas reads them, with daily closes of the US listing for valuation"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When Darvas built the extended metrics answer."
          examples:
            - "2026-11-30T12:00:00.000Z"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older periods of extended metrics; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financial-metrics/extended?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - financial_metrics:
            - ticker: "AAPL"
              report_period: "2026-09-26"
              fiscal_period: "2026-FY"
              period: "annual"
              currency: "USD"
              accession_number: "0000320193-26-000026"
              form_type: "10-K"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
              filing_date: "2026-11-03"
              filing_datetime: "2026-11-03T16:31:05-05:00"
              valuation:
                market_cap_usd: 3960000000000
                price_to_earnings_ratio: 35.8
              profitability:
                gross_margin_pct: 46.9
                free_cash_flow_margin_pct: 23.7
              returns:
                return_on_equity_pct: 151.9
              efficiency: {}
              liquidity:
                current_ratio: 0.89
              leverage:
                debt_to_equity_ratio: 1.54
              cash_flow: {}
              per_share:
                revenue_per_share_usd: 27.84
              growth:
                revenue_growth_1y_pct: 6.4
              null_reasons:
                dividend_yield_pct: "missing_input: dividends_paid not reported for this period"
              assumptions: []
              averages_basis: "opening_and_closing_balance"
          metric_count: 157
          units:
            _usd: "US dollars; per-share values (names with per_share, price or graham) are US dollars per share"
            _pct: "percent: 31.8 means 31.8%"
            _ratio: "a plain multiple, such as 28.4 for a P/E of 28.4 times"
            _days: "calendar days"
            shares_outstanding: "a count of shares"
          methodology: "Each row is one period of the company's standardized SEC statements: annual (fiscal year), quarterly or ttm (trailing twelve months, the last four quarters). Flows (revenue, earnings, cash flows) are the period's; a quarterly row is not annualized. Balances are at the period end, and ratios of a flow to a balance use the average of the opening and closing balance (`averages_basis` says when only the closing one was known). Growth compares with the same kind of period one year earlier, and n-year CAGRs with the period about n years earlier. Valuation uses the last close at most ten days before the period end, applied to the share count of the row's filing; only US dollar statements are priced. A metric is null when an input is not reported, when its denominator is zero or negative (for example a P/E on a loss), or when Darvas holds no price or history for it; `null_reasons` names the cause, starting with one of missing_input, not_meaningful, no_price, not_usd or insufficient_history."
          definitions_url: "https://api.darvas.app/v1/financial-metrics/catalog"
          source: "Standardized SEC filings (10-K, 10-Q, 20-F, 40-F) as Darvas reads them, with daily closes of the US listing for valuation"
          as_of: "2026-11-30T12:00:00.000Z"
    FinancialMetricDefinition:
      type: "object"
      description: "One metric of the catalog."
      additionalProperties: false
      required:
        - "name"
        - "category"
        - "unit"
        - "formula"
        - "inputs"
        - "must_be_positive"
      properties:
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The metric's field name."
          examples:
            - "market_cap_usd"
        category:
          type: "string"
          enum:
            - "valuation"
            - "profitability"
            - "returns"
            - "efficiency"
            - "liquidity"
            - "leverage"
            - "cash_flow"
            - "per_share"
            - "growth"
          description: "The metric's category."
          examples:
            - "valuation"
        unit:
          type: "string"
          enum:
            - "usd"
            - "usd_per_share"
            - "pct"
            - "ratio"
            - "days"
            - "shares"
          description: "The metric's unit."
          examples:
            - "usd"
        formula:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The metric's formula over the named facts."
          examples:
            - "market_cap"
        inputs:
          type: "array"
          maxItems: 10
          description: "The facts the formula reads."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "market_cap"
        must_be_positive:
          type: "array"
          maxItems: 10
          description: "Inputs that must be above zero, else the metric is null."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - []
      examples:
        - name: "market_cap_usd"
          category: "valuation"
          unit: "usd"
          formula: "market_cap"
          inputs:
            - "market_cap"
          must_be_positive: []
    FinancialMetricsCatalogResponse:
      type: "object"
      description: "The answer of GET /financial-metrics/catalog."
      additionalProperties: false
      required:
        - "catalog"
      properties:
        catalog:
          type: "object"
          description: "Every metric and fact."
          additionalProperties: false
          required:
            - "metric_count"
            - "categories"
            - "units"
            - "methodology"
            - "facts"
            - "metrics"
          properties:
            metric_count:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 1000
              description: "How many metrics the catalog holds."
              examples:
                - 157
            categories:
              type: "array"
              maxItems: 20
              description: "The categories, in answer order."
              items:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
              examples:
                - - "valuation"
                  - "profitability"
                  - "returns"
                  - "efficiency"
                  - "liquidity"
                  - "leverage"
                  - "cash_flow"
                  - "per_share"
                  - "growth"
            units:
              type: "object"
              description: "The meaning of each metric name ending in the catalog."
              maxProperties: 40
              additionalProperties:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 2000
              examples:
                - _ratio: "a plain multiple"
            methodology:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 4000
              description: "How the catalog's metrics are computed."
              examples:
                - "Each row is one period."
            facts:
              type: "object"
              description: "The meaning of every fact a formula reads, by name."
              maxProperties: 40
              additionalProperties:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 2000
              examples:
                - revenue: "total revenue of the period"
            metrics:
              type: "array"
              maxItems: 1000
              description: "Every metric, in answer order."
              items:
                $ref: "#/components/schemas/FinancialMetricDefinition"
          examples:
            - metric_count: 157
              categories:
                - "valuation"
                - "profitability"
                - "returns"
                - "efficiency"
                - "liquidity"
                - "leverage"
                - "cash_flow"
                - "per_share"
                - "growth"
              units:
                _usd: "US dollars; per-share values (names with per_share, price or graham) are US dollars per share"
                _pct: "percent: 31.8 means 31.8%"
                _ratio: "a plain multiple, such as 28.4 for a P/E of 28.4 times"
                _days: "calendar days"
                shares_outstanding: "a count of shares"
              methodology: "Each row is one period of the company's standardized SEC statements: annual (fiscal year), quarterly or ttm (trailing twelve months, the last four quarters). Flows (revenue, earnings, cash flows) are the period's; a quarterly row is not annualized. Balances are at the period end, and ratios of a flow to a balance use the average of the opening and closing balance (`averages_basis` says when only the closing one was known). Growth compares with the same kind of period one year earlier, and n-year CAGRs with the period about n years earlier. Valuation uses the last close at most ten days before the period end, applied to the share count of the row's filing; only US dollar statements are priced. A metric is null when an input is not reported, when its denominator is zero or negative (for example a P/E on a loss), or when Darvas holds no price or history for it; `null_reasons` names the cause, starting with one of missing_input, not_meaningful, no_price, not_usd or insufficient_history."
              facts:
                revenue: "revenue (income statement)"
              metrics:
                - name: "market_cap_usd"
                  category: "valuation"
                  unit: "usd"
                  formula: "market_cap"
                  inputs:
                    - "market_cap"
                  must_be_positive: []
      examples:
        - catalog:
            metric_count: 157
            categories:
              - "valuation"
              - "profitability"
              - "returns"
              - "efficiency"
              - "liquidity"
              - "leverage"
              - "cash_flow"
              - "per_share"
              - "growth"
            units:
              _usd: "US dollars; per-share values (names with per_share, price or graham) are US dollars per share"
              _pct: "percent: 31.8 means 31.8%"
              _ratio: "a plain multiple, such as 28.4 for a P/E of 28.4 times"
              _days: "calendar days"
              shares_outstanding: "a count of shares"
            methodology: "Each row is one period of the company's standardized SEC statements: annual (fiscal year), quarterly or ttm (trailing twelve months, the last four quarters). Flows (revenue, earnings, cash flows) are the period's; a quarterly row is not annualized. Balances are at the period end, and ratios of a flow to a balance use the average of the opening and closing balance (`averages_basis` says when only the closing one was known). Growth compares with the same kind of period one year earlier, and n-year CAGRs with the period about n years earlier. Valuation uses the last close at most ten days before the period end, applied to the share count of the row's filing; only US dollar statements are priced. A metric is null when an input is not reported, when its denominator is zero or negative (for example a P/E on a loss), or when Darvas holds no price or history for it; `null_reasons` names the cause, starting with one of missing_input, not_meaningful, no_price, not_usd or insufficient_history."
            facts:
              revenue: "revenue (income statement)"
            metrics:
              - name: "market_cap_usd"
                category: "valuation"
                unit: "usd"
                formula: "market_cap"
                inputs:
                  - "market_cap"
                must_be_positive: []
    AltmanZScore:
      type: "object"
      description: "One form of Altman's Z-Score."
      additionalProperties: false
      required:
        - "model"
        - "formula"
        - "z_score"
        - "zone"
        - "zones"
        - "components"
        - "null_reason"
      properties:
        model:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "The form of the model."
          examples:
            - "Altman Z-Score (1968), for public manufacturers"
        formula:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The model's weights."
          examples:
            - "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
        z_score:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The score; null when a component is missing."
          examples:
            - 8.912
        zone:
          type:
            - "string"
            - "null"
          enum:
            - "safe"
            - "grey"
            - "distress"
            - null
          description: "Where the score falls."
          examples:
            - "safe"
        zones:
          type: "object"
          description: "The model's thresholds."
          additionalProperties: false
          required:
            - "safe_above"
            - "distress_below"
          properties:
            safe_above:
              type: "number"
              format: "double"
              description: "Scores above this are safe."
              examples:
                - 2.99
            distress_below:
              type: "number"
              format: "double"
              description: "Scores below this are in distress."
              examples:
                - 1.81
          examples:
            - safe_above: 2.99
              distress_below: 1.81
        components:
          type: "object"
          description: "X1 working capital, X2 retained earnings, X3 EBIT and X5 revenue over total assets, and X4 market or book equity over total liabilities, each a ratio or null."
          maxProperties: 5
          additionalProperties:
            type:
              - "number"
              - "null"
            format: "double"
          examples:
            - x1_working_capital_to_total_assets_ratio: -0.0485
        null_reason:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 400
          description: "Why the score is null; null when it is known."
          examples:
            - null
      examples:
        - model: "Altman Z-Score (1968), for public manufacturers"
          formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
          z_score: 8.912
          zone: "safe"
          zones:
            safe_above: 2.99
            distress_below: 1.81
          components:
            x1_working_capital_to_total_assets_ratio: -0.0485
            x2_retained_earnings_to_total_assets_ratio: -0.0412
            x3_ebit_to_total_assets_ratio: 0.3602
            x4_market_equity_to_total_liabilities_ratio: 13.39
            x5_revenue_to_total_assets_ratio: 1.1531
          null_reason: null
    FinancialScores:
      type: "object"
      description: "One period's quality scores of one company."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "form_type"
        - "filing_url"
        - "filing_date"
        - "filing_datetime"
        - "altman_z_score"
        - "piotroski_f_score"
        - "beneish_m_score"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the scores' company."
          examples:
            - "AAPL"
        report_period:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The last day of the scores' period."
          examples:
            - "2026-09-26"
        fiscal_period:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The fiscal year and quarter of the scores."
          examples:
            - "2026-FY"
        period:
          type:
            - "string"
            - "null"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
            - null
          description: "Whether the scores cover a fiscal year, a quarter or a trailing year."
          examples:
            - "annual"
        currency:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 3
          description: "The currency of the scores' statements."
          examples:
            - "USD"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The filing of the scores' statements; null for ESEF."
          examples:
            - "0000320193-26-000026"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form of the scores' statements; null for ttm."
          examples:
            - "10-K"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the scores' filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The day SEC accepted the scores' filing."
          examples:
            - "2026-11-03"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When SEC accepted the scores' filing, in Eastern Time."
          examples:
            - "2026-11-03T16:31:05-05:00"
        altman_z_score:
          type: "object"
          description: "Altman's Z-Score in both forms."
          additionalProperties: false
          required:
            - "original"
            - "non_manufacturer"
            - "recommended_model"
            - "recommended_reason"
          properties:
            original:
              $ref: "#/components/schemas/AltmanZScore"
            non_manufacturer:
              $ref: "#/components/schemas/AltmanZScore"
            recommended_model:
              type: "string"
              enum:
                - "original"
                - "non_manufacturer"
              description: "The form the SIC code recommends."
              examples:
                - "original"
            recommended_reason:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 200
              description: "Why that form."
              examples:
                - "SIC 3571 is manufacturing (2000 to 3999)"
          examples:
            - original:
                model: "Altman Z-Score (1968), for public manufacturers"
                formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
                z_score: 8.912
                zone: "safe"
                zones:
                  safe_above: 2.99
                  distress_below: 1.81
                components:
                  x1_working_capital_to_total_assets_ratio: -0.0485
                  x2_retained_earnings_to_total_assets_ratio: -0.0412
                  x3_ebit_to_total_assets_ratio: 0.3602
                  x4_market_equity_to_total_liabilities_ratio: 13.39
                  x5_revenue_to_total_assets_ratio: 1.1531
                null_reason: null
              non_manufacturer:
                model: "Altman Z''-Score, for non-manufacturers"
                formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
                z_score: 8.912
                zone: "safe"
                zones:
                  safe_above: 2.99
                  distress_below: 1.81
                components:
                  x1_working_capital_to_total_assets_ratio: -0.0485
                  x2_retained_earnings_to_total_assets_ratio: -0.0412
                  x3_ebit_to_total_assets_ratio: 0.3602
                  x4_market_equity_to_total_liabilities_ratio: 13.39
                  x5_revenue_to_total_assets_ratio: 1.1531
                null_reason: null
              recommended_model: "original"
              recommended_reason: "SIC 3571 is manufacturing (2000 to 3999)"
        piotroski_f_score:
          type: "object"
          description: "Piotroski's F-Score."
          additionalProperties: false
          required:
            - "f_score"
            - "max_score"
            - "partial_score"
            - "components_evaluated"
            - "interpretation"
            - "components"
            - "null_reason"
          properties:
            f_score:
              type:
                - "integer"
                - "null"
              format: "int64"
              minimum: 0
              maximum: 9
              description: "Tests passed, 0 to 9; null unless all nine ran."
              examples:
                - 7
            max_score:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9
              description: "The most tests that can pass."
              examples:
                - 9
            partial_score:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9
              description: "Tests passed among those that ran."
              examples:
                - 7
            components_evaluated:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 9
              description: "Tests that ran."
              examples:
                - 9
            interpretation:
              type:
                - "string"
                - "null"
              enum:
                - "strong"
                - "average"
                - "weak"
                - null
              description: "8 to 9 strong, 0 to 2 weak."
              examples:
                - "average"
            components:
              type: "object"
              description: "Each test by name (roa_positive, operating_cash_flow_positive, roa_improving, accruals_negative, leverage_falling, current_ratio_rising, no_dilution, gross_margin_rising, asset_turnover_rising): passed, value, compared_with, rule and null_reason."
              additionalProperties: true
              maxProperties: 9
              examples:
                - roa_positive:
                    passed: true
                    value: 0.3118
            null_reason:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 400
              description: "Why the F-Score is null; null when it is known."
              examples:
                - null
          examples:
            - f_score: 7
              max_score: 9
              partial_score: 7
              components_evaluated: 9
              interpretation: "average"
              components:
                roa_positive:
                  passed: true
                  value: 0.3118
                  compared_with: 0
                  rule: "return on assets above 0"
                  null_reason: null
              null_reason: null
        beneish_m_score:
          type: "object"
          description: "Beneish's M-Score."
          additionalProperties: false
          required:
            - "m_score"
            - "model"
            - "formula"
            - "threshold"
            - "likely_manipulator"
            - "interpretation"
            - "components"
            - "null_reason"
          properties:
            m_score:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The score; null when an index is missing."
              examples:
                - -2.61
            model:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 120
              description: "The M-Score model."
              examples:
                - "Beneish (1999) eight-variable M-Score"
            formula:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 300
              description: "The M-Score's weights."
              examples:
                - "M = -4.84 + 0.92·DSRI + ..."
            threshold:
              type: "number"
              format: "double"
              description: "Scores above this flag likely manipulation."
              examples:
                - -1.78
            likely_manipulator:
              type:
                - "boolean"
                - "null"
              description: "Whether the score is above the threshold; null when unknown."
              examples:
                - false
            interpretation:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 200
              description: "The reading of the score."
              examples:
                - "at or below -1.78: no manipulation signal"
            components:
              type: "object"
              description: "Each index by name (dsri, gmi, aqi, sgi, depi, sgai, tata, lvgi): value, weight, name and formula."
              additionalProperties: true
              maxProperties: 8
              examples:
                - dsri:
                    value: 1.0213
                    weight: 0.92
            null_reason:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 400
              description: "Why the M-Score is null; null when it is known."
              examples:
                - null
          examples:
            - m_score: -2.61
              model: "Beneish (1999) eight-variable M-Score"
              formula: "M = -4.84 + 0.92·DSRI + 0.528·GMI + 0.404·AQI + 0.892·SGI + 0.115·DEPI - 0.172·SGAI + 4.679·TATA - 0.327·LVGI"
              threshold: -1.78
              likely_manipulator: false
              interpretation: "at or below -1.78: no manipulation signal"
              components:
                dsri:
                  value: 1.0213
                  weight: 0.92
                  name: "days sales in receivables index"
                  formula: "(receivables / revenue) / (prior receivables / prior revenue)"
              null_reason: null
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-FY"
          period: "annual"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          form_type: "10-K"
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          filing_date: "2026-11-03"
          filing_datetime: "2026-11-03T16:31:05-05:00"
          altman_z_score:
            original:
              model: "Altman Z-Score (1968), for public manufacturers"
              formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
              z_score: 8.912
              zone: "safe"
              zones:
                safe_above: 2.99
                distress_below: 1.81
              components:
                x1_working_capital_to_total_assets_ratio: -0.0485
                x2_retained_earnings_to_total_assets_ratio: -0.0412
                x3_ebit_to_total_assets_ratio: 0.3602
                x4_market_equity_to_total_liabilities_ratio: 13.39
                x5_revenue_to_total_assets_ratio: 1.1531
              null_reason: null
            non_manufacturer:
              model: "Altman Z''-Score, for non-manufacturers"
              formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
              z_score: 8.912
              zone: "safe"
              zones:
                safe_above: 2.99
                distress_below: 1.81
              components:
                x1_working_capital_to_total_assets_ratio: -0.0485
                x2_retained_earnings_to_total_assets_ratio: -0.0412
                x3_ebit_to_total_assets_ratio: 0.3602
                x4_market_equity_to_total_liabilities_ratio: 13.39
                x5_revenue_to_total_assets_ratio: 1.1531
              null_reason: null
            recommended_model: "original"
            recommended_reason: "SIC 3571 is manufacturing (2000 to 3999)"
          piotroski_f_score:
            f_score: 7
            max_score: 9
            partial_score: 7
            components_evaluated: 9
            interpretation: "average"
            components:
              roa_positive:
                passed: true
                value: 0.3118
                compared_with: 0
                rule: "return on assets above 0"
                null_reason: null
            null_reason: null
          beneish_m_score:
            m_score: -2.61
            model: "Beneish (1999) eight-variable M-Score"
            formula: "M = -4.84 + 0.92·DSRI + 0.528·GMI + 0.404·AQI + 0.892·SGI + 0.115·DEPI - 0.172·SGAI + 4.679·TATA - 0.327·LVGI"
            threshold: -1.78
            likely_manipulator: false
            interpretation: "at or below -1.78: no manipulation signal"
            components:
              dsri:
                value: 1.0213
                weight: 0.92
                name: "days sales in receivables index"
                formula: "(receivables / revenue) / (prior receivables / prior revenue)"
            null_reason: null
    FinancialScoresResponse:
      type: "object"
      description: "The answer of GET /financials/scores."
      additionalProperties: false
      required:
        - "quality_scores"
        - "methodology"
        - "source"
        - "as_of"
      properties:
        quality_scores:
          type: "array"
          maxItems: 10
          description: "This page of scored periods, newest first."
          items:
            $ref: "#/components/schemas/FinancialScores"
        methodology:
          type: "object"
          description: "How each score is computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - altman_z_score: "X1 to X5 over total assets and liabilities; zones from the model's thresholds."
              piotroski_f_score: "Nine pass or fail tests, this year against last year."
              beneish_m_score: "Eight indices of this year against last year; above -1.78 flags manipulation."
              periods: "annual compares fiscal years; ttm compares the trailing twelve months."
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What the scores are built from."
          examples:
            - "Standardized SEC filings (10-K, 10-Q, 20-F, 40-F) as Darvas reads them, with daily closes of the US listing for valuation"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When Darvas built the scores answer."
          examples:
            - "2026-11-30T12:00:00.000Z"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of older scored periods; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/financials/scores?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - quality_scores:
            - ticker: "AAPL"
              report_period: "2026-09-26"
              fiscal_period: "2026-FY"
              period: "annual"
              currency: "USD"
              accession_number: "0000320193-26-000026"
              form_type: "10-K"
              filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
              filing_date: "2026-11-03"
              filing_datetime: "2026-11-03T16:31:05-05:00"
              altman_z_score:
                original:
                  model: "Altman Z-Score (1968), for public manufacturers"
                  formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
                  z_score: 8.912
                  zone: "safe"
                  zones:
                    safe_above: 2.99
                    distress_below: 1.81
                  components:
                    x1_working_capital_to_total_assets_ratio: -0.0485
                    x2_retained_earnings_to_total_assets_ratio: -0.0412
                    x3_ebit_to_total_assets_ratio: 0.3602
                    x4_market_equity_to_total_liabilities_ratio: 13.39
                    x5_revenue_to_total_assets_ratio: 1.1531
                  null_reason: null
                non_manufacturer:
                  model: "Altman Z''-Score, for non-manufacturers"
                  formula: "Z = 1.2·X1 + 1.4·X2 + 3.3·X3 + 0.6·X4 + 1.0·X5"
                  z_score: 8.912
                  zone: "safe"
                  zones:
                    safe_above: 2.99
                    distress_below: 1.81
                  components:
                    x1_working_capital_to_total_assets_ratio: -0.0485
                    x2_retained_earnings_to_total_assets_ratio: -0.0412
                    x3_ebit_to_total_assets_ratio: 0.3602
                    x4_market_equity_to_total_liabilities_ratio: 13.39
                    x5_revenue_to_total_assets_ratio: 1.1531
                  null_reason: null
                recommended_model: "original"
                recommended_reason: "SIC 3571 is manufacturing (2000 to 3999)"
              piotroski_f_score:
                f_score: 7
                max_score: 9
                partial_score: 7
                components_evaluated: 9
                interpretation: "average"
                components:
                  roa_positive:
                    passed: true
                    value: 0.3118
                    compared_with: 0
                    rule: "return on assets above 0"
                    null_reason: null
                null_reason: null
              beneish_m_score:
                m_score: -2.61
                model: "Beneish (1999) eight-variable M-Score"
                formula: "M = -4.84 + 0.92·DSRI + 0.528·GMI + 0.404·AQI + 0.892·SGI + 0.115·DEPI - 0.172·SGAI + 4.679·TATA - 0.327·LVGI"
                threshold: -1.78
                likely_manipulator: false
                interpretation: "at or below -1.78: no manipulation signal"
                components:
                  dsri:
                    value: 1.0213
                    weight: 0.92
                    name: "days sales in receivables index"
                    formula: "(receivables / revenue) / (prior receivables / prior revenue)"
                null_reason: null
          methodology:
            altman_z_score: "X1 to X5 over total assets and liabilities; zones from the model's thresholds."
            piotroski_f_score: "Nine pass or fail tests, this year against last year."
            beneish_m_score: "Eight indices of this year against last year; above -1.78 flags manipulation."
            periods: "annual compares fiscal years; ttm compares the trailing twelve months."
          source: "Standardized SEC filings (10-K, 10-Q, 20-F, 40-F) as Darvas reads them, with daily closes of the US listing for valuation"
          as_of: "2026-11-30T12:00:00.000Z"
    PriceRiskWindow:
      type: "object"
      description: "The risk statistics of one lookback window."
      additionalProperties: false
      required:
        - "lookback"
        - "interval"
        - "start_date"
        - "end_date"
        - "observations"
        - "lookback_complete"
        - "risk_free_rate_annual_pct"
        - "beta"
        - "beta_adjusted"
        - "beta_std_error"
        - "alpha_annualized_pct"
        - "correlation"
        - "r_squared"
        - "volatility_annualized_pct"
        - "benchmark_volatility_annualized_pct"
        - "downside_deviation_annualized_pct"
        - "return_annualized_pct"
        - "benchmark_return_annualized_pct"
        - "total_return_pct"
        - "sharpe_ratio"
        - "sortino_ratio"
        - "treynor_ratio"
        - "tracking_error_annualized_pct"
        - "information_ratio"
        - "var_95_loss_pct"
        - "cvar_95_loss_pct"
        - "max_drawdown_pct"
        - "max_drawdown_peak_date"
        - "max_drawdown_trough_date"
        - "null_reason"
      properties:
        lookback:
          type: "string"
          enum:
            - "6m"
            - "1y"
            - "2y"
            - "3y"
            - "5y"
            - "10y"
          description: "The window."
          examples:
            - "1y"
        interval:
          type: "string"
          enum:
            - "day"
            - "week"
            - "month"
          description: "The sampling of the window's returns."
          examples:
            - "day"
        start_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The window's first close."
          examples:
            - "2025-11-28"
        end_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The window's last return."
          examples:
            - "2026-11-27"
        observations:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 10000
          description: "Returns in common with the benchmark."
          examples:
            - 250
        lookback_complete:
          type: "boolean"
          description: "Whether the stock's closes reach back to the window's start."
          examples:
            - true
        risk_free_rate_annual_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The window's average 3-month Treasury par yield."
          examples:
            - 4.12
        beta:
          type:
            - "number"
            - "null"
          format: "double"
          description: "OLS slope of the stock's returns on the benchmark's. Null with too few returns."
          examples:
            - 1.18
        beta_adjusted:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Blume's 0.67·beta + 0.33. Null with too few returns."
          examples:
            - 1.12
        beta_std_error:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The standard error of beta. Null with too few returns."
          examples:
            - 0.06
        alpha_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Jensen's alpha, annualized, in percent. Null with too few returns."
          examples:
            - -2.4
        correlation:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Correlation of the stock's and the benchmark's returns. Null with too few returns."
          examples:
            - 0.78
        r_squared:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Share of the stock's variance the benchmark explains. Null with too few returns."
          examples:
            - 0.61
        volatility_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The stock's annualized volatility, in percent. Null with too few returns."
          examples:
            - 27.9
        benchmark_volatility_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The benchmark's annualized volatility, in percent. Null with too few returns."
          examples:
            - 18.4
        downside_deviation_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Annualized deviation of returns below the risk-free rate, in percent. Null with too few returns."
          examples:
            - 19.2
        return_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The stock's annualized return, in percent. Null with too few returns."
          examples:
            - 14.6
        benchmark_return_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The benchmark's annualized return, in percent. Null with too few returns."
          examples:
            - 15.1
        total_return_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The stock's compounded return over the window, in percent. Null with too few returns."
          examples:
            - 14.4
        sharpe_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Annual excess return over volatility. Null with too few returns."
          examples:
            - 0.38
        sortino_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Annual excess return over downside deviation. Null with too few returns."
          examples:
            - 0.55
        treynor_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Annual excess return, as a fraction, per unit of beta. Null with too few returns."
          examples:
            - 0.09
        tracking_error_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Annualized volatility of the return over the benchmark's, in percent. Null with too few returns."
          examples:
            - 17.5
        information_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Annual active return over tracking error. Null with too few returns."
          examples:
            - -0.03
        var_95_loss_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "One-period 5% historical value at risk, a positive loss in percent. Null with too few returns."
          examples:
            - 2.6
        cvar_95_loss_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "One-period 5% expected shortfall, a positive loss in percent. Null with too few returns."
          examples:
            - 3.9
        max_drawdown_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The largest fall of daily closes from a running peak, negative. Null with too few returns."
          examples:
            - -18.8
        max_drawdown_peak_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The peak before the largest drawdown."
          examples:
            - "2026-01-05"
        max_drawdown_trough_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The trough of the largest drawdown."
          examples:
            - "2026-04-08"
        null_reason:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "Why the statistics are null; null when they are known."
          examples:
            - null
      examples:
        - lookback: "1y"
          interval: "day"
          start_date: "2025-11-28"
          end_date: "2026-11-27"
          observations: 250
          lookback_complete: true
          risk_free_rate_annual_pct: 4.12
          beta: 1.18
          beta_adjusted: 1.12
          beta_std_error: 0.06
          alpha_annualized_pct: -2.4
          correlation: 0.78
          r_squared: 0.61
          volatility_annualized_pct: 27.9
          benchmark_volatility_annualized_pct: 18.4
          downside_deviation_annualized_pct: 19.2
          return_annualized_pct: 14.6
          benchmark_return_annualized_pct: 15.1
          total_return_pct: 14.4
          sharpe_ratio: 0.38
          sortino_ratio: 0.55
          treynor_ratio: 0.09
          tracking_error_annualized_pct: 17.5
          information_ratio: -0.03
          var_95_loss_pct: 2.6
          cvar_95_loss_pct: 3.9
          max_drawdown_pct: -18.8
          max_drawdown_peak_date: "2026-01-05"
          max_drawdown_trough_date: "2026-04-08"
          null_reason: null
    PriceRiskResponse:
      type: "object"
      description: "The answer of GET /prices/risk."
      additionalProperties: false
      required:
        - "ticker"
        - "benchmark"
        - "interval"
        - "as_of_date"
        - "risk_statistics"
        - "price_type"
        - "methodology"
        - "units"
        - "source"
        - "as_of"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The stock measured."
          examples:
            - "AAPL"
        benchmark:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The benchmark measured against."
          examples:
            - "SPY"
        interval:
          type: "string"
          enum:
            - "day"
            - "week"
            - "month"
          description: "The sampling of returns in every window."
          examples:
            - "day"
        as_of_date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The stock's newest close, where every window ends."
          examples:
            - "2026-11-27"
        risk_statistics:
          type: "array"
          maxItems: 6
          description: "One row per lookback window asked for."
          items:
            $ref: "#/components/schemas/PriceRiskWindow"
        price_type:
          type: "string"
          enum:
            - "close_split_consistent_price_return"
          description: "Returns are price returns of split-consistent daily closes."
          examples:
            - "close_split_consistent_price_return"
        methodology:
          type: "object"
          description: "How returns, the fit and the risk statistics are computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - fit: "beta is the OLS slope of the stock's returns on the benchmark's"
        units:
          type: "object"
          description: "The unit of each statistic name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _pct: "percent: 12.5 means 12.5%"
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "What the risk statistics are built from."
          examples:
            - "Daily closes of US listings"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When Darvas built the risk answer."
          examples:
            - "2026-11-30T12:00:00.000Z"
      examples:
        - ticker: "AAPL"
          benchmark: "SPY"
          interval: "day"
          as_of_date: "2026-11-27"
          risk_statistics:
            - lookback: "1y"
              interval: "day"
              start_date: "2025-11-28"
              end_date: "2026-11-27"
              observations: 250
              lookback_complete: true
              risk_free_rate_annual_pct: 4.12
              beta: 1.18
              beta_adjusted: 1.12
              beta_std_error: 0.06
              alpha_annualized_pct: -2.4
              correlation: 0.78
              r_squared: 0.61
              volatility_annualized_pct: 27.9
              benchmark_volatility_annualized_pct: 18.4
              downside_deviation_annualized_pct: 19.2
              return_annualized_pct: 14.6
              benchmark_return_annualized_pct: 15.1
              total_return_pct: 14.4
              sharpe_ratio: 0.38
              sortino_ratio: 0.55
              treynor_ratio: 0.09
              tracking_error_annualized_pct: 17.5
              information_ratio: -0.03
              var_95_loss_pct: 2.6
              cvar_95_loss_pct: 3.9
              max_drawdown_pct: -18.8
              max_drawdown_peak_date: "2026-01-05"
              max_drawdown_trough_date: "2026-04-08"
              null_reason: null
          price_type: "close_split_consistent_price_return"
          methodology:
            fit: "beta is the OLS slope of the stock's returns on the benchmark's"
          units:
            _pct: "percent: 12.5 means 12.5%"
          source: "Daily closes of US listings and the US Treasury par yield curve, as Darvas stores them"
          as_of: "2026-11-30T12:00:00.000Z"
    DcfValuation:
      type: "object"
      description: "A DCF of one company's newest trailing twelve months. The model's outputs are absent when null_reason names what blocks it."
      additionalProperties: false
      required:
        - "ticker"
        - "report_period"
        - "fiscal_period"
        - "period"
        - "currency"
        - "accession_number"
        - "form_type"
        - "filing_url"
        - "filing_date"
        - "filing_datetime"
        - "model"
        - "assumptions"
        - "null_reason"
        - "price_time"
        - "methodology"
        - "units"
        - "source"
        - "as_of"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The ticker of the DCF inputs' company."
          examples:
            - "AAPL"
        report_period:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The last day of the DCF inputs' period."
          examples:
            - "2026-09-26"
        fiscal_period:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The fiscal year and quarter of the DCF inputs."
          examples:
            - "2026-FY"
        period:
          type:
            - "string"
            - "null"
          enum:
            - "annual"
            - "quarterly"
            - "ttm"
            - null
          description: "Whether the DCF inputs cover a fiscal year, a quarter or a trailing year."
          examples:
            - "annual"
        currency:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 3
          description: "The currency of the DCF inputs' statements."
          examples:
            - "USD"
        accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The filing of the DCF inputs' statements; null for ESEF."
          examples:
            - "0000320193-26-000026"
        form_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The form of the DCF inputs' statements; null for ttm."
          examples:
            - "10-K"
        filing_url:
          type: "string"
          format: "uri"
          maxLength: 500
          description: "The index page of the DCF inputs' filing."
          examples:
            - "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
        filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The day SEC accepted the DCF inputs' filing."
          examples:
            - "2026-11-03"
        filing_datetime:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When SEC accepted the DCF inputs' filing, in Eastern Time."
          examples:
            - "2026-11-03T16:31:05-05:00"
        model:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 120
          description: "The DCF model."
          examples:
            - "two-stage unlevered free cash flow (FCFF) DCF"
        assumptions:
          type: "object"
          description: "Every assumption, with its value, where it came from and why."
          additionalProperties: false
          required:
            - "risk_free_rate_pct"
            - "equity_risk_premium_pct"
            - "beta"
            - "cost_of_equity_pct"
            - "pre_tax_cost_of_debt_pct"
            - "tax_rate_pct"
            - "after_tax_cost_of_debt_pct"
            - "equity_weight_pct"
            - "wacc_pct"
            - "fcf_growth_pct"
            - "terminal_growth_pct"
            - "projection_years"
          properties:
            risk_free_rate_pct:
              type: "object"
              description: "The risk-free rate, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  type:
                    - "number"
                    - "null"
                  format: "double"
                  description: "The assumption's value; null when it cannot be derived."
                  examples:
                    - 4.18
                source:
                  type: "string"
                  enum:
                    - "caller"
                    - "derived"
                    - "default"
                  description: "Where the value came from."
                  examples:
                    - "derived"
                basis:
                  type: "string"
                  pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                  maxLength: 400
                  description: "Why the value is what it is."
                  examples:
                    - "10-year Treasury par yield"
              examples:
                - value: 4.18
                  source: "derived"
                  basis: "10-year Treasury par yield"
            equity_risk_premium_pct:
              type: "object"
              description: "The equity risk premium, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 5
                  source: "default"
                  basis: "long-run premium"
            beta:
              type: "object"
              description: "Beta against SPY."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 1.12
                  source: "derived"
                  basis: "5 years of monthly returns, Blume adjusted"
            cost_of_equity_pct:
              type: "object"
              description: "The cost of equity, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 9.78
                  source: "derived"
                  basis: "CAPM"
            pre_tax_cost_of_debt_pct:
              type: "object"
              description: "The pre-tax cost of debt, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 3.6
                  source: "derived"
                  basis: "interest / total debt"
            tax_rate_pct:
              type: "object"
              description: "The tax rate, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 16.2
                  source: "derived"
                  basis: "effective tax rate"
            after_tax_cost_of_debt_pct:
              type: "object"
              description: "The after-tax cost of debt, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 3.02
                  source: "derived"
                  basis: "pre_tax_cost_of_debt × (1 - tax_rate)"
            equity_weight_pct:
              type: "object"
              description: "The weight of equity in the capital, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 97.4
                  source: "derived"
                  basis: "market_cap / (market_cap + total_debt)"
            wacc_pct:
              type: "object"
              description: "The WACC, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 9.6
                  source: "derived"
                  basis: "weighted cost of equity and debt"
            fcf_growth_pct:
              type: "object"
              description: "The year-one free cash flow growth, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 7.1
                  source: "derived"
                  basis: "5-year revenue CAGR"
            terminal_growth_pct:
              type: "object"
              description: "The terminal growth, in percent."
              additionalProperties: false
              required:
                - "value"
                - "source"
                - "basis"
              properties:
                value:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/value"
                source:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/source"
                basis:
                  $ref: "#/components/schemas/DcfValuation/properties/assumptions/properties/risk_free_rate_pct/properties/basis"
              examples:
                - value: 2.5
                  source: "default"
                  basis: "long-run nominal growth"
            projection_years:
              type: "integer"
              format: "int64"
              minimum: 3
              maximum: 15
              description: "Years projected before the terminal value."
              examples:
                - 10
          examples:
            - risk_free_rate_pct:
                value: 4.18
                source: "derived"
                basis: "10-year Treasury par yield"
              equity_risk_premium_pct:
                value: 5
                source: "default"
                basis: "long-run premium"
              beta:
                value: 1.12
                source: "derived"
                basis: "5 years of monthly returns, Blume adjusted"
              cost_of_equity_pct:
                value: 9.78
                source: "derived"
                basis: "risk_free_rate + beta × equity_risk_premium"
              pre_tax_cost_of_debt_pct:
                value: 3.6
                source: "derived"
                basis: "interest / total debt"
              tax_rate_pct:
                value: 16.2
                source: "derived"
                basis: "effective tax rate"
              after_tax_cost_of_debt_pct:
                value: 3.02
                source: "derived"
                basis: "pre_tax_cost_of_debt × (1 - tax_rate)"
              equity_weight_pct:
                value: 97.4
                source: "derived"
                basis: "market_cap / (market_cap + total_debt)"
              wacc_pct:
                value: 9.6
                source: "derived"
                basis: "weighted cost of equity and debt"
              fcf_growth_pct:
                value: 7.1
                source: "derived"
                basis: "5-year revenue CAGR"
              terminal_growth_pct:
                value: 2.5
                source: "default"
                basis: "long-run nominal growth"
              projection_years: 10
        base_free_cash_flow_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Trailing operating cash flow less capital expenditure."
          examples:
            - 98770000000
        base_fcff_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The base free cash flow with after-tax interest added back."
          examples:
            - 101600000000
        projection:
          type: "array"
          maxItems: 15
          description: "The projected years, first year first."
          items:
            $ref: "#/components/schemas/DcfProjectionYear"
        present_value_of_projection_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The present value of the projected years."
          examples:
            - 760000000000
        terminal_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The Gordon growth value of the year after the projection."
          examples:
            - 2400000000000
        present_value_of_terminal_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The terminal value discounted to today."
          examples:
            - 960000000000
        terminal_value_share_of_enterprise_value_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The terminal value's share of enterprise value, in percent."
          examples:
            - 55.8
        enterprise_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The DCF's enterprise value."
          examples:
            - 1720000000000
        net_debt_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Total debt less cash."
          examples:
            - 35000000000
        equity_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Enterprise value less net debt."
          examples:
            - 1685000000000
        shares_outstanding:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "The shares outstanding today."
          examples:
            - 14840000000
        intrinsic_value_per_share_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Equity value per share today."
          examples:
            - 113.55
        current_price_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The latest price; null without one."
          examples:
            - 266.9
        upside_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Intrinsic value over the price, less one, in percent."
          examples:
            - -57.46
        sensitivity:
          type: "object"
          description: "Intrinsic value per share over a grid: rows (wacc_pct), columns (terminal_growth_pct), their values, and intrinsic_value_per_share_usd, one row per WACC."
          additionalProperties: true
          maxProperties: 40
          examples:
            - rows: "wacc_pct"
              columns: "terminal_growth_pct"
        reverse_dcf:
          type: "object"
          description: "The year-one growth today's price implies: implied_fcf_growth_pct, market_cap_usd, solves_for and null_reason."
          additionalProperties: true
          maxProperties: 40
          examples:
            - implied_fcf_growth_pct: 21.4
        null_reason:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What blocks the model; null when it ran."
          examples:
            - null
        price_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When the price was set."
          examples:
            - "2026-11-27T21:00:00.000Z"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 4000
          description: "How the DCF is computed."
          examples:
            - "Free cash flow to the firm, discounted at WACC."
        units:
          type: "object"
          description: "The unit of each DCF field name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _usd: "US dollars"
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What the DCF is built from."
          examples:
            - "Standardized SEC filings"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When Darvas built the DCF."
          examples:
            - "2026-11-30T12:00:00.000Z"
      examples:
        - ticker: "AAPL"
          report_period: "2026-09-26"
          fiscal_period: "2026-Q4"
          period: "ttm"
          currency: "USD"
          accession_number: "0000320193-26-000026"
          form_type: null
          filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
          filing_date: "2026-11-03"
          filing_datetime: "2026-11-03T16:31:05-05:00"
          model: "two-stage unlevered free cash flow (FCFF) DCF with a Gordon growth terminal value"
          assumptions:
            risk_free_rate_pct:
              value: 4.18
              source: "derived"
              basis: "10-year Treasury par yield"
            equity_risk_premium_pct:
              value: 5
              source: "default"
              basis: "long-run premium"
            beta:
              value: 1.12
              source: "derived"
              basis: "5 years of monthly returns, Blume adjusted"
            cost_of_equity_pct:
              value: 9.78
              source: "derived"
              basis: "risk_free_rate + beta × equity_risk_premium"
            pre_tax_cost_of_debt_pct:
              value: 3.6
              source: "derived"
              basis: "interest / total debt"
            tax_rate_pct:
              value: 16.2
              source: "derived"
              basis: "effective tax rate"
            after_tax_cost_of_debt_pct:
              value: 3.02
              source: "derived"
              basis: "pre_tax_cost_of_debt × (1 - tax_rate)"
            equity_weight_pct:
              value: 97.4
              source: "derived"
              basis: "market_cap / (market_cap + total_debt)"
            wacc_pct:
              value: 9.6
              source: "derived"
              basis: "weighted cost of equity and debt"
            fcf_growth_pct:
              value: 7.1
              source: "derived"
              basis: "5-year revenue CAGR"
            terminal_growth_pct:
              value: 2.5
              source: "default"
              basis: "long-run nominal growth"
            projection_years: 10
          base_free_cash_flow_usd: 98770000000
          base_fcff_usd: 101600000000
          projection:
            - year: 1
              growth_pct: 7.1
              free_cash_flow_usd: 108800000000
              discount_factor: 0.912409
              present_value_usd: 99270000000
          present_value_of_projection_usd: 760000000000
          terminal_value_usd: 2400000000000
          present_value_of_terminal_value_usd: 960000000000
          terminal_value_share_of_enterprise_value_pct: 55.8
          enterprise_value_usd: 1720000000000
          net_debt_usd: 35000000000
          equity_value_usd: 1685000000000
          shares_outstanding: 14840000000
          intrinsic_value_per_share_usd: 113.55
          current_price_usd: 266.9
          upside_pct: -57.46
          sensitivity:
            rows: "wacc_pct"
            columns: "terminal_growth_pct"
            wacc_pct:
              - 7.6
              - 8.6
              - 9.6
              - 10.6
              - 11.6
            terminal_growth_pct:
              - 1.5
              - 2
              - 2.5
              - 3
              - 3.5
            intrinsic_value_per_share_usd:
              - - 150.2
                - 160.4
                - 172.9
                - 188.6
                - 208.8
          reverse_dcf:
            implied_fcf_growth_pct: 21.4
            market_cap_usd: 3960000000000
            solves_for: "year-one fcf_growth at which equity value equals market capitalization"
            null_reason: null
          null_reason: null
          price_time: "2026-11-27T21:00:00.000Z"
          methodology: "Free cash flow to the firm, grown and faded to terminal growth, discounted at WACC."
          units:
            _usd: "US dollars"
            _pct: "percent: 8.5 means 8.5%"
            beta: "a plain number"
          source: "Standardized SEC filings, daily closes of the US listing and the US Treasury par yield curve, as Darvas stores them"
          as_of: "2026-11-30T12:00:00.000Z"
    DcfProjectionYear:
      type: "object"
      description: "One projected year of the DCF."
      additionalProperties: false
      required:
        - "year"
        - "growth_pct"
        - "free_cash_flow_usd"
        - "discount_factor"
        - "present_value_usd"
      properties:
        year:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 15
          description: "The year, 1 for the first projected one."
          examples:
            - 1
        growth_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The year's free cash flow growth, in percent."
          examples:
            - 7.1
        free_cash_flow_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The year's free cash flow to the firm."
          examples:
            - 108800000000
        discount_factor:
          type: "number"
          format: "double"
          description: "1 / (1 + WACC) to the power of the year."
          examples:
            - 0.912409
        present_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The year's free cash flow discounted to today."
          examples:
            - 99270000000
      examples:
        - year: 1
          growth_pct: 7.1
          free_cash_flow_usd: 108800000000
          discount_factor: 0.912409
          present_value_usd: 99270000000
    DcfValuationResponse:
      type: "object"
      description: "The answer of GET /valuation/dcf."
      additionalProperties: false
      required:
        - "dcf"
      properties:
        dcf:
          $ref: "#/components/schemas/DcfValuation"
      examples:
        - dcf:
            ticker: "AAPL"
            report_period: "2026-09-26"
            fiscal_period: "2026-Q4"
            period: "ttm"
            currency: "USD"
            accession_number: "0000320193-26-000026"
            form_type: null
            filing_url: "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm"
            filing_date: "2026-11-03"
            filing_datetime: "2026-11-03T16:31:05-05:00"
            model: "two-stage unlevered free cash flow (FCFF) DCF with a Gordon growth terminal value"
            assumptions:
              risk_free_rate_pct:
                value: 4.18
                source: "derived"
                basis: "10-year Treasury par yield"
              equity_risk_premium_pct:
                value: 5
                source: "default"
                basis: "long-run premium"
              beta:
                value: 1.12
                source: "derived"
                basis: "5 years of monthly returns, Blume adjusted"
              cost_of_equity_pct:
                value: 9.78
                source: "derived"
                basis: "risk_free_rate + beta × equity_risk_premium"
              pre_tax_cost_of_debt_pct:
                value: 3.6
                source: "derived"
                basis: "interest / total debt"
              tax_rate_pct:
                value: 16.2
                source: "derived"
                basis: "effective tax rate"
              after_tax_cost_of_debt_pct:
                value: 3.02
                source: "derived"
                basis: "pre_tax_cost_of_debt × (1 - tax_rate)"
              equity_weight_pct:
                value: 97.4
                source: "derived"
                basis: "market_cap / (market_cap + total_debt)"
              wacc_pct:
                value: 9.6
                source: "derived"
                basis: "weighted cost of equity and debt"
              fcf_growth_pct:
                value: 7.1
                source: "derived"
                basis: "5-year revenue CAGR"
              terminal_growth_pct:
                value: 2.5
                source: "default"
                basis: "long-run nominal growth"
              projection_years: 10
            base_free_cash_flow_usd: 98770000000
            base_fcff_usd: 101600000000
            projection:
              - year: 1
                growth_pct: 7.1
                free_cash_flow_usd: 108800000000
                discount_factor: 0.912409
                present_value_usd: 99270000000
            present_value_of_projection_usd: 760000000000
            terminal_value_usd: 2400000000000
            present_value_of_terminal_value_usd: 960000000000
            terminal_value_share_of_enterprise_value_pct: 55.8
            enterprise_value_usd: 1720000000000
            net_debt_usd: 35000000000
            equity_value_usd: 1685000000000
            shares_outstanding: 14840000000
            intrinsic_value_per_share_usd: 113.55
            current_price_usd: 266.9
            upside_pct: -57.46
            sensitivity:
              rows: "wacc_pct"
              columns: "terminal_growth_pct"
              wacc_pct:
                - 7.6
                - 8.6
                - 9.6
                - 10.6
                - 11.6
              terminal_growth_pct:
                - 1.5
                - 2
                - 2.5
                - 3
                - 3.5
              intrinsic_value_per_share_usd:
                - - 150.2
                  - 160.4
                  - 172.9
                  - 188.6
                  - 208.8
            reverse_dcf:
              implied_fcf_growth_pct: 21.4
              market_cap_usd: 3960000000000
              solves_for: "year-one fcf_growth at which equity value equals market capitalization"
              null_reason: null
            null_reason: null
            price_time: "2026-11-27T21:00:00.000Z"
            methodology: "Free cash flow to the firm, grown and faded to terminal growth, discounted at WACC."
            units:
              _usd: "US dollars"
              _pct: "percent: 8.5 means 8.5%"
              beta: "a plain number"
            source: "Standardized SEC filings, daily closes of the US listing and the US Treasury par yield curve, as Darvas stores them"
            as_of: "2026-11-30T12:00:00.000Z"
    ValuationHistoryDay:
      type: "object"
      description: "One sampled day's valuation on the trailing twelve months in force that day."
      additionalProperties: false
      required:
        - "date"
        - "close_usd"
        - "shares_outstanding"
        - "market_cap_usd"
        - "enterprise_value_usd"
        - "price_to_earnings_ratio"
        - "price_to_sales_ratio"
        - "price_to_book_ratio"
        - "price_to_free_cash_flow_ratio"
        - "ev_to_revenue_ratio"
        - "ev_to_ebitda_ratio"
        - "ev_to_ebit_ratio"
        - "earnings_yield_pct"
        - "free_cash_flow_yield_pct"
        - "dividend_yield_pct"
        - "fundamentals_report_period"
        - "fundamentals_accession_number"
        - "fundamentals_filing_date"
        - "fundamentals_age_days"
        - "null_reasons"
      properties:
        date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The trading day."
          examples:
            - "2026-11-27"
        close_usd:
          type: "number"
          format: "double"
          description: "The day's close as traded."
          examples:
            - 266.9
        shares_outstanding:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 9007199254740991
          description: "Shares outstanding, on the day's share count."
          examples:
            - 14840000000
        market_cap_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: market_cap."
          examples:
            - null
        enterprise_value_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: enterprise_value."
          examples:
            - null
        price_to_earnings_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: market_cap / net_income."
          examples:
            - null
        price_to_sales_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: market_cap / revenue."
          examples:
            - null
        price_to_book_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: market_cap / equity."
          examples:
            - null
        price_to_free_cash_flow_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: market_cap / free_cash_flow."
          examples:
            - null
        ev_to_revenue_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: enterprise_value / revenue."
          examples:
            - null
        ev_to_ebitda_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: enterprise_value / ebitda."
          examples:
            - null
        ev_to_ebit_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: enterprise_value / ebit."
          examples:
            - null
        earnings_yield_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: net_income / market_cap × 100."
          examples:
            - null
        free_cash_flow_yield_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: free_cash_flow / market_cap × 100."
          examples:
            - null
        dividend_yield_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "On the day's close and the trailing twelve months in force: dividends_paid / market_cap × 100."
          examples:
            - null
        fundamentals_report_period:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The period end of the filing in force."
          examples:
            - "2026-09-26"
        fundamentals_accession_number:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The filing in force."
          examples:
            - "0000320193-26-000026"
        fundamentals_filing_date:
          type:
            - "string"
            - "null"
          format: "date"
          maxLength: 10
          description: "The day that filing was accepted."
          examples:
            - "2026-11-03"
        fundamentals_age_days:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 100000
          description: "Days since the period end of the filing in force."
          examples:
            - 62
        null_reasons:
          type: "object"
          description: "Why each null multiple is null, by name."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - price_to_earnings_ratio: "not_meaningful: net_income is zero or negative"
      examples:
        - date: "2026-11-27"
          close_usd: 266.9
          shares_outstanding: 14840000000
          market_cap_usd: 3960000000000
          enterprise_value_usd: 3995000000000
          price_to_earnings_ratio: 35.8
          price_to_sales_ratio: 9.5
          price_to_book_ratio: 54.4
          price_to_free_cash_flow_ratio: 40.1
          ev_to_revenue_ratio: 9.6
          ev_to_ebitda_ratio: 27.6
          ev_to_ebit_ratio: 30.1
          earnings_yield_pct: 2.79
          free_cash_flow_yield_pct: 2.49
          dividend_yield_pct: 0.39
          fundamentals_report_period: "2026-09-26"
          fundamentals_accession_number: "0000320193-26-000026"
          fundamentals_filing_date: "2026-11-03"
          fundamentals_age_days: 62
          null_reasons: {}
    ValuationHistoryResponse:
      type: "object"
      description: "The answer of GET /valuation/history."
      additionalProperties: false
      required:
        - "ticker"
        - "cik"
        - "interval"
        - "start_date"
        - "end_date"
        - "valuation_history"
        - "methodology"
        - "units"
        - "source"
        - "as_of"
      properties:
        ticker:
          type: "string"
          pattern: "^[A-Z0-9][A-Z0-9.-]{0,11}$"
          description: "The stock valued."
          examples:
            - "AAPL"
        cik:
          type: "string"
          pattern: "^[0-9]{10}$"
          description: "The company's ten-digit CIK."
          examples:
            - "0000320193"
        interval:
          type: "string"
          enum:
            - "day"
            - "week"
            - "month"
          description: "The sampling of the days."
          examples:
            - "day"
        start_date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The first day asked for."
          examples:
            - "2025-11-30"
        end_date:
          type: "string"
          format: "date"
          maxLength: 10
          description: "The last day asked for."
          examples:
            - "2026-11-30"
        valuation_history:
          type: "array"
          maxItems: 250
          description: "This page of days, oldest first."
          items:
            $ref: "#/components/schemas/ValuationHistoryDay"
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 4000
          description: "How each day's valuation is computed."
          examples:
            - "Each day's close times shares outstanding."
        units:
          type: "object"
          description: "The unit of each valuation field name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _ratio: "a plain multiple"
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What the valuation history is built from."
          examples:
            - "Daily closes of the US listing"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When Darvas built the valuation history answer."
          examples:
            - "2026-11-30T12:00:00.000Z"
        next_page_url:
          type: "string"
          format: "uri"
          maxLength: 6000
          description: "The page of later days; absent on the last one."
          examples:
            - "https://api.darvas.app/v1/valuation/history?cursor=eyJjaWsiOjMyMDE5M30"
      examples:
        - ticker: "AAPL"
          cik: "0000320193"
          interval: "day"
          start_date: "2025-11-30"
          end_date: "2026-11-30"
          valuation_history:
            - date: "2026-11-27"
              close_usd: 266.9
              shares_outstanding: 14840000000
              market_cap_usd: 3960000000000
              enterprise_value_usd: 3995000000000
              price_to_earnings_ratio: 35.8
              price_to_sales_ratio: 9.5
              price_to_book_ratio: 54.4
              price_to_free_cash_flow_ratio: 40.1
              ev_to_revenue_ratio: 9.6
              ev_to_ebitda_ratio: 27.6
              ev_to_ebit_ratio: 30.1
              earnings_yield_pct: 2.79
              free_cash_flow_yield_pct: 2.49
              dividend_yield_pct: 0.39
              fundamentals_report_period: "2026-09-26"
              fundamentals_accession_number: "0000320193-26-000026"
              fundamentals_filing_date: "2026-11-03"
              fundamentals_age_days: 62
              null_reasons: {}
          methodology: "Each day's close times the shares outstanding on the trailing twelve months filed by that day."
          units:
            _usd: "US dollars"
            _pct: "percent: 1.5 means 1.5%"
            _ratio: "a plain multiple"
          source: "Daily closes of the US listing and standardized SEC filings, as Darvas stores them"
          as_of: "2026-11-30T12:00:00.000Z"
    CompanySecurity:
      type: "object"
      description: "A security of the company."
      additionalProperties: false
      required:
        - "ticker"
        - "cusip"
        - "isin"
        - "figi"
        - "composite_figi"
        - "share_class_figi"
        - "security_type"
        - "exchange_code"
      properties:
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The security's ticker; null for an ESEF ISIN."
          examples:
            - "AAPL"
        cusip:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 9
          description: "The security's CUSIP; null outside the US."
          examples:
            - "037833100"
        isin:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 12
          description: "The security's ISIN; null when none is known."
          examples:
            - "US0378331005"
        figi:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 12
          description: "The FIGI of the listing."
          examples:
            - "BBG000B9XRY4"
        composite_figi:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 12
          description: "The security's composite FIGI."
          examples:
            - "BBG000B9XRY4"
        share_class_figi:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 12
          description: "The security's share class FIGI."
          examples:
            - "BBG001S5N8V8"
        security_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The kind of security."
          examples:
            - "Common Stock"
        exchange_code:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The exchange code of the listing."
          examples:
            - "US"
      examples:
        - ticker: "AAPL"
          cusip: "037833100"
          isin: "US0378331005"
          figi: "BBG000B9XRY4"
          composite_figi: "BBG000B9XRY4"
          share_class_figi: "BBG001S5N8V8"
          security_type: "Common Stock"
          exchange_code: "US"
    CompanySearchResult:
      type: "object"
      description: "One company that matches."
      additionalProperties: false
      required:
        - "cik"
        - "name"
        - "ticker"
        - "exchange"
        - "is_active"
        - "market"
        - "entity_type"
        - "sic_code"
        - "sic_industry"
        - "state_of_incorporation"
        - "match_type"
        - "match_score"
        - "matched_value"
        - "identifiers"
        - "securities"
        - "former_names"
      properties:
        cik:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The company's ten-digit CIK; null for UK and French companies."
          examples:
            - "0000320193"
        name:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The company's current name."
          examples:
            - "Apple Inc."
        ticker:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 20
          description: "The company's main ticker."
          examples:
            - "AAPL"
        exchange:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "The main ticker's exchange."
          examples:
            - "Nasdaq"
        is_active:
          type:
            - "boolean"
            - "null"
          description: "Whether a ticker of the company is listed; null for ESEF companies."
          examples:
            - true
        market:
          $ref: "#/components/schemas/StatementTicker/properties/market"
        entity_type:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 40
          description: "SEC's entity type."
          examples:
            - "operating"
        sic_code:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 4
          description: "The SIC code SEC lists for the match."
          examples:
            - "3571"
        sic_industry:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "The SIC code's industry."
          examples:
            - "Electronic Computers"
        state_of_incorporation:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "Where the company is incorporated."
          examples:
            - "CA"
        match_type:
          type: "string"
          enum:
            - "q"
            - "ticker"
            - "cik"
            - "cusip"
            - "isin"
            - "figi"
            - "lei"
            - "name"
            - "former_name"
          description: "What matched."
          examples:
            - "name"
        match_score:
          type: "number"
          format: "double"
          description: "1 for an identifier or ticker, less for a name match."
          examples:
            - 0.95
        matched_value:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "The value that matched."
          examples:
            - "Apple Inc."
        identifiers:
          type: "object"
          description: "The company's identifiers."
          additionalProperties: false
          required:
            - "cik"
            - "lei"
            - "tickers"
          properties:
            cik:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 10
              description: "The CIK of the match; null outside the US."
              examples:
                - "0000320193"
            lei:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 20
              description: "The LEI; null when none is known."
              examples:
                - "HWUPKR0MPOU8FGXBT394"
            tickers:
              type: "array"
              maxItems: 40
              description: "Every ticker of the company."
              items:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
              examples:
                - - "AAPL"
          examples:
            - cik: "0000320193"
              lei: "HWUPKR0MPOU8FGXBT394"
              tickers:
                - "AAPL"
        securities:
          type: "array"
          maxItems: 100
          description: "The company's securities."
          items:
            $ref: "#/components/schemas/CompanySecurity"
        former_names:
          type: "array"
          maxItems: 50
          description: "Names the company filed under before."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "Apple Computer Inc"
      examples:
        - cik: "0000320193"
          name: "Apple Inc."
          ticker: "AAPL"
          exchange: "Nasdaq"
          is_active: true
          market: "US"
          entity_type: "operating"
          sic_code: "3571"
          sic_industry: "Electronic Computers"
          state_of_incorporation: "CA"
          match_type: "name"
          match_score: 0.95
          matched_value: "Apple Inc."
          identifiers:
            cik: "0000320193"
            lei: "HWUPKR0MPOU8FGXBT394"
            tickers:
              - "AAPL"
          securities:
            - ticker: "AAPL"
              cusip: "037833100"
              isin: "US0378331005"
              figi: "BBG000B9XRY4"
              composite_figi: "BBG000B9XRY4"
              share_class_figi: "BBG001S5N8V8"
              security_type: "Common Stock"
              exchange_code: "US"
          former_names:
            - "Apple Computer Inc"
    CompanySearchResponse:
      type: "object"
      description: "The answer of GET /companies/search."
      additionalProperties: false
      required:
        - "query"
        - "results"
        - "result_count"
        - "methodology"
        - "source"
        - "as_of"
      properties:
        query:
          type: "object"
          description: "The identifier sent and its value."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - q: "apple"
        results:
          type: "array"
          maxItems: 50
          description: "The companies that match, best first."
          items:
            $ref: "#/components/schemas/CompanySearchResult"
        result_count:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 50
          description: "How many companies match."
          examples:
            - 1
        methodology:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 2000
          description: "How matches are found and scored."
          examples:
            - "q matches current and former names."
        source:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 300
          description: "What the search reads."
          examples:
            - "SEC's filer register and the ESEF register"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When Darvas built the search answer."
          examples:
            - "2026-11-30T12:00:00.000Z"
      examples:
        - query:
            q: "apple"
          results:
            - cik: "0000320193"
              name: "Apple Inc."
              ticker: "AAPL"
              exchange: "Nasdaq"
              is_active: true
              market: "US"
              entity_type: "operating"
              sic_code: "3571"
              sic_industry: "Electronic Computers"
              state_of_incorporation: "CA"
              match_type: "name"
              match_score: 0.95
              matched_value: "Apple Inc."
              identifiers:
                cik: "0000320193"
                lei: "HWUPKR0MPOU8FGXBT394"
                tickers:
                  - "AAPL"
              securities:
                - ticker: "AAPL"
                  cusip: "037833100"
                  isin: "US0378331005"
                  figi: "BBG000B9XRY4"
                  composite_figi: "BBG000B9XRY4"
                  share_class_figi: "BBG001S5N8V8"
                  security_type: "Common Stock"
                  exchange_code: "US"
              former_names:
                - "Apple Computer Inc"
          result_count: 1
          methodology: "q matches the current and former names of SEC filers and of ESEF filers."
          source: "SEC's filer register and the ESEF register of UK and French issuers"
          as_of: "2026-11-30T12:00:00.000Z"
    CryptoFundingLeg:
      type: "object"
      description: "One leg of a funding pair."
      additionalProperties: false
      required:
        - "venue"
        - "ticker"
        - "quote"
        - "margin"
        - "funding_rate_decimal"
        - "funding_rate_pct"
        - "funding_interval_hours"
        - "funding_rate_8h_decimal"
        - "funding_rate_8h_pct"
        - "annualized_apr_pct"
        - "next_funding_time"
        - "next_funding_time_milliseconds"
        - "mark_price"
        - "contract_multiplier"
        - "unit_mark_price"
        - "open_interest_usd"
        - "volume_24h_usd"
      properties:
        venue:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The leg's venue."
          examples:
            - "hyperliquid"
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "The leg's contract, as the other crypto endpoints take it."
          examples:
            - "BTC-USDC-SWAP"
        quote:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "The leg's quote currency."
          examples:
            - "USDC"
        margin:
          type: "string"
          enum:
            - "linear"
            - "inverse"
          description: "Whether the leg settles in the quote or the base."
          examples:
            - "linear"
        funding_rate_decimal:
          type: "number"
          format: "double"
          description: "The leg's current-period funding rate, a fraction."
          examples:
            - 0.0000125
        funding_rate_pct:
          type: "number"
          format: "double"
          description: "The leg's current-period funding rate, in percent."
          examples:
            - 0.00125
        funding_interval_hours:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 24
          description: "Hours between the leg's funding settlements."
          examples:
            - 1
        funding_rate_8h_decimal:
          type: "number"
          format: "double"
          description: "The leg's rate on an 8-hour basis, a fraction."
          examples:
            - 0.0001
        funding_rate_8h_pct:
          type: "number"
          format: "double"
          description: "The leg's rate on an 8-hour basis, in percent."
          examples:
            - 0.01
        annualized_apr_pct:
          type: "number"
          format: "double"
          description: "The leg's rate as a simple annual rate, in percent."
          examples:
            - 10.95
        next_funding_time:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "The leg's next funding settlement."
          examples:
            - "2026-11-30T13:00:00.000Z"
        next_funding_time_milliseconds:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 0
          maximum: 4102444800000
          description: "The leg's next settlement, in Unix milliseconds."
          examples:
            - 1796043600000
        mark_price:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The leg's mark price per quoted unit."
          examples:
            - 96812.5
        contract_multiplier:
          type: "number"
          format: "double"
          description: "Units of the base one quoted unit holds, 1000 for 1000PEPEUSDT."
          examples:
            - 1
        unit_mark_price:
          type: "number"
          format: "double"
          description: "The leg's mark price per unit of the base."
          examples:
            - 96812.5
        open_interest_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The leg's open interest in US dollars; null when the venue reports none."
          examples:
            - 2410000000
        volume_24h_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The leg's 24-hour volume in US dollars."
          examples:
            - 3120000000
      examples:
        - venue: "hyperliquid"
          ticker: "BTC-USDC-SWAP"
          quote: "USDC"
          margin: "linear"
          funding_rate_decimal: 0.0000125
          funding_rate_pct: 0.00125
          funding_interval_hours: 1
          funding_rate_8h_decimal: 0.0001
          funding_rate_8h_pct: 0.01
          annualized_apr_pct: 10.95
          next_funding_time: "2026-11-30T13:00:00.000Z"
          next_funding_time_milliseconds: 1796043600000
          mark_price: 96812.5
          contract_multiplier: 1
          unit_mark_price: 96812.5
          open_interest_usd: 2410000000
          volume_24h_usd: 3120000000
    CryptoFundingOpportunity:
      type: "object"
      description: "The widest funding pair of one coin."
      additionalProperties: false
      required:
        - "base"
        - "long"
        - "short"
        - "funding_spread_8h_decimal"
        - "funding_spread_8h_pct"
        - "funding_spread_8h_bps"
        - "annualized_apr_spread_pct"
        - "spread_bps"
        - "quote_mismatch"
        - "interval_mismatch"
        - "venues_listing"
      properties:
        base:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 15
          description: "The coin."
          examples:
            - "BTC"
        long:
          $ref: "#/components/schemas/CryptoFundingLeg"
        short:
          $ref: "#/components/schemas/CryptoFundingLeg"
        funding_spread_8h_decimal:
          type: "number"
          format: "double"
          description: "The short leg's 8-hour rate less the long leg's, a fraction."
          examples:
            - 0.00005
        funding_spread_8h_pct:
          type: "number"
          format: "double"
          description: "The pair's 8-hour funding spread, in percent."
          examples:
            - 0.005
        funding_spread_8h_bps:
          type: "number"
          format: "double"
          description: "The pair's 8-hour funding spread, in basis points."
          examples:
            - 0.5
        annualized_apr_spread_pct:
          type: "number"
          format: "double"
          description: "The pair's funding spread as a simple annual rate."
          examples:
            - 5.475
        spread_bps:
          type: "number"
          format: "double"
          description: "The short leg's mark over the long leg's, per unit of the base, in basis points."
          examples:
            - 1.2
        quote_mismatch:
          type: "boolean"
          description: "Whether the legs settle in different quote currencies."
          examples:
            - true
        interval_mismatch:
          type: "boolean"
          description: "Whether the legs settle funding at different intervals."
          examples:
            - true
        venues_listing:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 4
          description: "Venues listing a perpetual of the coin."
          examples:
            - 4
      examples:
        - base: "BTC"
          long:
            venue: "hyperliquid"
            ticker: "BTC-USDC-SWAP"
            quote: "USDC"
            margin: "linear"
            funding_rate_decimal: 0.0000125
            funding_rate_pct: 0.00125
            funding_interval_hours: 1
            funding_rate_8h_decimal: 0.0001
            funding_rate_8h_pct: 0.01
            annualized_apr_pct: 10.95
            next_funding_time: "2026-11-30T13:00:00.000Z"
            next_funding_time_milliseconds: 1796043600000
            mark_price: 96812.5
            contract_multiplier: 1
            unit_mark_price: 96812.5
            open_interest_usd: 2410000000
            volume_24h_usd: 3120000000
          short:
            venue: "binance"
            ticker: "perpetual:BTCUSDT"
            quote: "USDC"
            margin: "linear"
            funding_rate_decimal: 0.0000125
            funding_rate_pct: 0.00125
            funding_interval_hours: 1
            funding_rate_8h_decimal: 0.0001
            funding_rate_8h_pct: 0.01
            annualized_apr_pct: 10.95
            next_funding_time: "2026-11-30T13:00:00.000Z"
            next_funding_time_milliseconds: 1796043600000
            mark_price: 96812.5
            contract_multiplier: 1
            unit_mark_price: 96812.5
            open_interest_usd: 2410000000
            volume_24h_usd: 3120000000
          funding_spread_8h_decimal: 0.00005
          funding_spread_8h_pct: 0.005
          funding_spread_8h_bps: 0.5
          annualized_apr_spread_pct: 5.475
          spread_bps: 1.2
          quote_mismatch: true
          interval_mismatch: true
          venues_listing: 4
    CryptoFundingArbitrageResponse:
      type: "object"
      description: "The answer of GET /crypto/funding-arbitrage."
      additionalProperties: false
      required:
        - "as_of"
        - "as_of_milliseconds"
        - "venues_included"
        - "venues_unavailable"
        - "filters"
        - "units"
        - "methodology"
        - "opportunities"
      properties:
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When the venues' funding boards were read."
          examples:
            - "2026-11-30T12:00:00.000Z"
        as_of_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 4102444800000
          description: "The read of the funding boards, in Unix milliseconds."
          examples:
            - 1796040000000
        venues_included:
          type: "array"
          maxItems: 4
          description: "Venues whose funding boards were read."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "okx"
              - "binance"
              - "bybit"
              - "hyperliquid"
        venues_unavailable:
          type: "array"
          maxItems: 4
          description: "Venues whose funding boards could not be read now."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - []
        filters:
          type: "object"
          description: "The filters the answer applied."
          additionalProperties: false
          required:
            - "asset"
            - "venues"
            - "quote"
            - "min_open_interest_usd"
            - "min_volume_24h_usd"
            - "min_apr_spread_pct"
          properties:
            asset:
              type:
                - "string"
                - "null"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 15
              description: "The coin filter; null for every coin."
              examples:
                - null
            venues:
              type: "array"
              maxItems: 4
              description: "The venues compared."
              items:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
              examples:
                - - "okx"
                  - "binance"
                  - "bybit"
                  - "hyperliquid"
            quote:
              type: "array"
              maxItems: 3
              description: "The quote currencies compared."
              items:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
              examples:
                - - "USDT"
                  - "USDC"
                  - "USD"
            min_open_interest_usd:
              type: "number"
              format: "double"
              description: "The open interest minimum, in US dollars."
              examples:
                - 1000000
            min_volume_24h_usd:
              type: "number"
              format: "double"
              description: "The 24-hour volume minimum, in US dollars."
              examples:
                - 1000000
            min_apr_spread_pct:
              type: "number"
              format: "double"
              description: "The annualized spread minimum, in percent."
              examples:
                - 0
          examples:
            - asset: null
              venues:
                - "okx"
                - "binance"
                - "bybit"
                - "hyperliquid"
              quote:
                - "USDT"
                - "USDC"
                - "USD"
              min_open_interest_usd: 1000000
              min_volume_24h_usd: 1000000
              min_apr_spread_pct: 0
        units:
          type: "object"
          description: "The unit of each field name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _decimal: "fraction of notional: 0.0001 is 0.01%"
              _pct: "percent: 0.01 is 0.01%, 1 is 1%"
              _bps: "basis points: 1 is 0.01%"
              _apr_pct: "simple annual rate in percent, not compounded"
              _usd: "US dollars"
              _base: "units of the base asset, such as BTC"
        methodology:
          type: "object"
          description: "How rates, pairs and spreads are computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - pair: "long leg: the lowest 8-hour rate"
        opportunities:
          type: "array"
          maxItems: 200
          description: "The pairs, widest funding spread first."
          items:
            $ref: "#/components/schemas/CryptoFundingOpportunity"
      examples:
        - as_of: "2026-11-30T12:00:00.000Z"
          as_of_milliseconds: 1796040000000
          venues_included:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          venues_unavailable: []
          filters:
            asset: null
            venues:
              - "okx"
              - "binance"
              - "bybit"
              - "hyperliquid"
            quote:
              - "USDT"
              - "USDC"
              - "USD"
            min_open_interest_usd: 1000000
            min_volume_24h_usd: 1000000
            min_apr_spread_pct: 0
          units:
            _decimal: "fraction of notional: 0.0001 is 0.01%"
            _pct: "percent: 0.01 is 0.01%, 1 is 1%"
            _bps: "basis points: 1 is 0.01%"
            _apr_pct: "simple annual rate in percent, not compounded"
            _usd: "US dollars"
            _base: "units of the base asset, such as BTC"
          methodology:
            pair: "long leg: the lowest 8-hour rate; short leg: the highest on another venue"
          opportunities:
            - base: "BTC"
              long:
                venue: "hyperliquid"
                ticker: "BTC-USDC-SWAP"
                quote: "USDC"
                margin: "linear"
                funding_rate_decimal: 0.0000125
                funding_rate_pct: 0.00125
                funding_interval_hours: 1
                funding_rate_8h_decimal: 0.0001
                funding_rate_8h_pct: 0.01
                annualized_apr_pct: 10.95
                next_funding_time: "2026-11-30T13:00:00.000Z"
                next_funding_time_milliseconds: 1796043600000
                mark_price: 96812.5
                contract_multiplier: 1
                unit_mark_price: 96812.5
                open_interest_usd: 2410000000
                volume_24h_usd: 3120000000
              short:
                venue: "binance"
                ticker: "perpetual:BTCUSDT"
                quote: "USDC"
                margin: "linear"
                funding_rate_decimal: 0.0000125
                funding_rate_pct: 0.00125
                funding_interval_hours: 1
                funding_rate_8h_decimal: 0.0001
                funding_rate_8h_pct: 0.01
                annualized_apr_pct: 10.95
                next_funding_time: "2026-11-30T13:00:00.000Z"
                next_funding_time_milliseconds: 1796043600000
                mark_price: 96812.5
                contract_multiplier: 1
                unit_mark_price: 96812.5
                open_interest_usd: 2410000000
                volume_24h_usd: 3120000000
              funding_spread_8h_decimal: 0.00005
              funding_spread_8h_pct: 0.005
              funding_spread_8h_bps: 0.5
              annualized_apr_spread_pct: 5.475
              spread_bps: 1.2
              quote_mismatch: true
              interval_mismatch: true
              venues_listing: 4
    CryptoPremiumPoint:
      type: "object"
      description: "One bar of the Coinbase premium."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "coinbase_usd"
        - "binance_usdt"
        - "usdt_usd"
        - "binance_usd"
        - "raw_gap_usd"
        - "adjusted_gap_usd"
        - "premium_pct"
        - "raw_premium_pct"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "The bar's open."
          examples:
            - "2026-11-30T11:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 4102444800000
          description: "The bar's open, in Unix milliseconds."
          examples:
            - 1796036400000
        coinbase_usd:
          type: "number"
          format: "double"
          description: "Coinbase's USD close."
          examples:
            - 96870
        binance_usdt:
          type: "number"
          format: "double"
          description: "Binance's USDT close."
          examples:
            - 96840
        usdt_usd:
          type: "number"
          format: "double"
          description: "The USDT-USD close the bar used; 1 without the adjustment."
          examples:
            - 0.9996
        binance_usd:
          type: "number"
          format: "double"
          description: "Binance's close in dollars."
          examples:
            - 96801.26
        raw_gap_usd:
          type: "number"
          format: "double"
          description: "Coinbase's close less Binance's USDT close, unconverted."
          examples:
            - 30
        adjusted_gap_usd:
          type: "number"
          format: "double"
          description: "Coinbase's close less Binance's close in dollars."
          examples:
            - 68.74
        premium_pct:
          type: "number"
          format: "double"
          description: "Coinbase over Binance in dollars, less one, in percent."
          examples:
            - 0.071
        raw_premium_pct:
          type: "number"
          format: "double"
          description: "Coinbase over Binance's unconverted USDT close, less one, in percent."
          examples:
            - 0.031
      examples:
        - time: "2026-11-30T11:00:00.000Z"
          time_milliseconds: 1796036400000
          coinbase_usd: 96870
          binance_usdt: 96840
          usdt_usd: 0.9996
          binance_usd: 96801.26
          raw_gap_usd: 30
          adjusted_gap_usd: 68.74
          premium_pct: 0.071
          raw_premium_pct: 0.031
    CryptoCoinbasePremiumResponse:
      type: "object"
      description: "The answer of GET /crypto/coinbase-premium."
      additionalProperties: false
      required:
        - "asset"
        - "interval"
        - "interval_multiplier"
        - "adjust_usdt"
        - "as_of"
        - "sources"
        - "units"
        - "methodology"
        - "latest"
        - "summary"
        - "series"
      properties:
        asset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 15
          description: "The coin whose premium is measured."
          examples:
            - "BTC"
        interval:
          type: "string"
          enum:
            - "minute"
            - "hour"
            - "day"
            - "week"
            - "month"
          description: "The premium bars' interval."
          examples:
            - "hour"
        interval_multiplier:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 30
          description: "Intervals per premium bar."
          examples:
            - 1
        adjust_usdt:
          type: "boolean"
          description: "Whether Binance's USDT price was turned into dollars."
          examples:
            - true
        as_of:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "The newest bar's open; null without bars."
          examples:
            - "2026-11-30T11:00:00.000Z"
        sources:
          type: "object"
          description: "The instruments read: coinbase, binance and usdt_usd (null without the adjustment), each with exchange, market_type and ticker."
          additionalProperties: true
          maxProperties: 3
          examples:
            - coinbase:
                exchange: "coinbase"
                market_type: "spot"
                ticker: "BTC-USD"
              binance:
                exchange: "binance"
                market_type: "spot"
                ticker: "spot:BTCUSDT"
              usdt_usd:
                exchange: "coinbase"
                market_type: "spot"
                ticker: "USDT-USD"
        units:
          type: "object"
          description: "The unit of each premium field name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _decimal: "fraction of notional: 0.0001 is 0.01%"
              _pct: "percent: 0.01 is 0.01%, 1 is 1%"
              _bps: "basis points: 1 is 0.01%"
              _apr_pct: "simple annual rate in percent, not compounded"
              _usd: "US dollars"
              _base: "units of the base asset, such as BTC"
        methodology:
          type: "object"
          description: "How the premium is computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - premium_pct: "(coinbase_usd / binance_usd - 1) × 100"
        latest:
          description: "The newest bar; null without bars."
          oneOf:
            - $ref: "#/components/schemas/CryptoPremiumPoint"
            - type: "null"
        summary:
          type: "object"
          description: "The premium's spread over the series."
          additionalProperties: false
          required:
            - "bars"
            - "mean_premium_pct"
            - "stdev_premium_pct"
            - "min_premium_pct"
            - "max_premium_pct"
            - "positive_bars_pct"
            - "latest_zscore"
          properties:
            bars:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 2000
              description: "Bars in the series."
              examples:
                - 168
            mean_premium_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The mean premium, in percent."
              examples:
                - 0.024
            stdev_premium_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The premium's sample standard deviation, in percent."
              examples:
                - 0.031
            min_premium_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The lowest premium, in percent."
              examples:
                - -0.052
            max_premium_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The highest premium, in percent."
              examples:
                - 0.118
            positive_bars_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Bars with a premium above zero, in percent."
              examples:
                - 71.4
            latest_zscore:
              type:
                - "number"
                - "null"
              format: "double"
              description: "How many standard deviations the newest bar is from the mean."
              examples:
                - 1.52
          examples:
            - bars: 168
              mean_premium_pct: 0.024
              stdev_premium_pct: 0.031
              min_premium_pct: -0.052
              max_premium_pct: 0.118
              positive_bars_pct: 71.4
              latest_zscore: 1.52
        series:
          type: "array"
          maxItems: 2000
          description: "The premium bars, oldest first."
          items:
            $ref: "#/components/schemas/CryptoPremiumPoint"
      examples:
        - asset: "BTC"
          interval: "hour"
          interval_multiplier: 1
          adjust_usdt: true
          as_of: "2026-11-30T11:00:00.000Z"
          sources:
            coinbase:
              exchange: "coinbase"
              market_type: "spot"
              ticker: "BTC-USD"
            binance:
              exchange: "binance"
              market_type: "spot"
              ticker: "spot:BTCUSDT"
            usdt_usd:
              exchange: "coinbase"
              market_type: "spot"
              ticker: "USDT-USD"
          units:
            _decimal: "fraction of notional: 0.0001 is 0.01%"
            _pct: "percent: 0.01 is 0.01%, 1 is 1%"
            _bps: "basis points: 1 is 0.01%"
            _apr_pct: "simple annual rate in percent, not compounded"
            _usd: "US dollars"
            _base: "units of the base asset, such as BTC"
          methodology:
            premium_pct: "(coinbase_usd / binance_usd - 1) × 100"
          latest:
            time: "2026-11-30T11:00:00.000Z"
            time_milliseconds: 1796036400000
            coinbase_usd: 96870
            binance_usdt: 96840
            usdt_usd: 0.9996
            binance_usd: 96801.26
            raw_gap_usd: 30
            adjusted_gap_usd: 68.74
            premium_pct: 0.071
            raw_premium_pct: 0.031
          summary:
            bars: 168
            mean_premium_pct: 0.024
            stdev_premium_pct: 0.031
            min_premium_pct: -0.052
            max_premium_pct: 0.118
            positive_bars_pct: 71.4
            latest_zscore: 1.52
          series:
            - time: "2026-11-30T11:00:00.000Z"
              time_milliseconds: 1796036400000
              coinbase_usd: 96870
              binance_usdt: 96840
              usdt_usd: 0.9996
              binance_usd: 96801.26
              raw_gap_usd: 30
              adjusted_gap_usd: 68.74
              premium_pct: 0.071
              raw_premium_pct: 0.031
    CryptoFlowSide:
      type: "object"
      description: "Aggressor volume of one side of the market over the window."
      additionalProperties: false
      required:
        - "buy_volume_base"
        - "sell_volume_base"
        - "delta_base"
        - "taker_buy_ratio_pct"
        - "buy_volume_usd_est"
        - "sell_volume_usd_est"
        - "delta_usd_est"
      properties:
        buy_volume_base:
          type: "number"
          format: "double"
          description: "Taker buy volume, in the base."
          examples:
            - 41250.5
        sell_volume_base:
          type: "number"
          format: "double"
          description: "Taker sell volume, in the base."
          examples:
            - 39870.2
        delta_base:
          type: "number"
          format: "double"
          description: "Buy less sell volume, in the base."
          examples:
            - 1380.3
        taker_buy_ratio_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Buy volume's share of all, in percent."
          examples:
            - 50.85
        buy_volume_usd_est:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Buy volume at the bucket's reference close, in US dollars."
          examples:
            - null
        sell_volume_usd_est:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Sell volume at the bucket's reference close, in US dollars."
          examples:
            - null
        delta_usd_est:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The delta at the bucket's reference close, in US dollars."
          examples:
            - null
      examples:
        - buy_volume_base: 41250.5
          sell_volume_base: 39870.2
          delta_base: 1380.3
          taker_buy_ratio_pct: 50.85
          buy_volume_usd_est: null
          sell_volume_usd_est: null
          delta_usd_est: null
    CryptoWeightedFunding:
      type: "object"
      description: "Funding weighted by open interest, by 24-hour volume or equally, on an 8-hour basis."
      additionalProperties: false
      required:
        - "funding_rate_8h_decimal"
        - "funding_rate_8h_pct"
        - "annualized_apr_pct"
        - "weight_total_usd"
        - "contracts"
      properties:
        funding_rate_8h_decimal:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The funding weighted by open interest, by 24-hour volume or equally, a fraction per 8 hours."
          examples:
            - 0.000082
        funding_rate_8h_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The funding weighted by open interest, by 24-hour volume or equally, in percent per 8 hours."
          examples:
            - 0.0082
        annualized_apr_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The funding weighted by open interest, by 24-hour volume or equally, as a simple annual rate."
          examples:
            - 8.979
        weight_total_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The sum of the weights by open interest, by 24-hour volume or equally, in US dollars."
          examples:
            - 38400000000
        contracts:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000
          description: "Contracts in the funding weighted by open interest, by 24-hour volume or equally."
          examples:
            - 9
      examples:
        - funding_rate_8h_decimal: 0.000082
          funding_rate_8h_pct: 0.0082
          annualized_apr_pct: 8.979
          weight_total_usd: 38400000000
          contracts: 9
    CryptoAggregatedDerivativesResponse:
      type: "object"
      description: "The answer of GET /crypto/aggregated-derivatives."
      additionalProperties: false
      required:
        - "asset"
        - "as_of"
        - "as_of_milliseconds"
        - "venues_included"
        - "venues_unavailable"
        - "units"
        - "methodology"
        - "open_interest"
        - "funding"
        - "taker_flow"
      properties:
        asset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 15
          description: "The coin whose derivatives are summed."
          examples:
            - "BTC"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When the venues' perpetual boards were read."
          examples:
            - "2026-11-30T12:00:00.000Z"
        as_of_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 4102444800000
          description: "The read of the perpetual boards, in Unix milliseconds."
          examples:
            - 1796040000000
        venues_included:
          type: "array"
          maxItems: 4
          description: "Venues whose perpetual boards were read."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "okx"
              - "binance"
              - "bybit"
              - "hyperliquid"
        venues_unavailable:
          type: "array"
          maxItems: 4
          description: "Venues whose perpetual boards could not be read now."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - []
        units:
          type: "object"
          description: "The unit of each derivatives field name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _decimal: "fraction of notional: 0.0001 is 0.01%"
              _pct: "percent: 0.01 is 0.01%, 1 is 1%"
              _bps: "basis points: 1 is 0.01%"
              _apr_pct: "simple annual rate in percent, not compounded"
              _usd: "US dollars"
              _base: "units of the base asset, such as BTC"
        methodology:
          type: "object"
          description: "How open interest, funding and taker flow are combined."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - oi_weighted: "Σ(funding_rate_8h_decimal × open_interest_usd) / Σ open_interest_usd"
        open_interest:
          type: "object"
          description: "Open interest: total_usd, by_exchange (venue, open_interest_usd, open_interest_share_pct, contracts, contracts_without_open_interest) and contracts (venue, ticker, quote, margin, contract_multiplier, open_interest_usd, open_interest_share_pct, funding, next_funding_time, volume_24h_usd, mark_price, index_price)."
          additionalProperties: true
          maxProperties: 3
          examples:
            - total_usd: 38400000000
              by_exchange:
                - venue: "binance"
                  open_interest_usd: 11200000000
                  open_interest_share_pct: 29.17
                  contracts: 3
                  contracts_without_open_interest: 0
              contracts:
                - venue: "binance"
                  ticker: "perpetual:BTCUSDT"
                  quote: "USDT"
                  margin: "linear"
                  contract_multiplier: 1
                  open_interest_usd: 9800000000
                  open_interest_share_pct: 25.52
                  funding: null
                  next_funding_time: "2026-11-30T16:00:00.000Z"
                  volume_24h_usd: 18200000000
                  mark_price: 96840.1
                  index_price: 96850.4
        funding:
          type: "object"
          description: "Funding across the coin's perpetuals, weighted three ways."
          additionalProperties: false
          required:
            - "oi_weighted"
            - "volume_weighted"
            - "simple_mean"
          properties:
            oi_weighted:
              $ref: "#/components/schemas/CryptoWeightedFunding"
            volume_weighted:
              $ref: "#/components/schemas/CryptoWeightedFunding"
            simple_mean:
              $ref: "#/components/schemas/CryptoWeightedFunding"
          examples:
            - oi_weighted:
                funding_rate_8h_decimal: 0.000082
                funding_rate_8h_pct: 0.0082
                annualized_apr_pct: 8.979
                weight_total_usd: 38400000000
                contracts: 9
              volume_weighted:
                funding_rate_8h_decimal: 0.000082
                funding_rate_8h_pct: 0.0082
                annualized_apr_pct: 8.979
                weight_total_usd: 38400000000
                contracts: 9
              simple_mean:
                funding_rate_8h_decimal: 0.000082
                funding_rate_8h_pct: 0.0082
                annualized_apr_pct: 8.979
                weight_total_usd: 38400000000
                contracts: 9
        taker_flow:
          type: "object"
          description: "Taker buy and sell volume of the window, spot and perpetuals apart."
          additionalProperties: false
          required:
            - "interval"
            - "lookback_hours"
            - "closed_buckets"
            - "start_time"
            - "end_time"
            - "reference_price"
            - "totals"
            - "divergence"
            - "exchanges"
            - "series"
          properties:
            interval:
              type: "string"
              enum:
                - "15m"
                - "1H"
                - "4H"
                - "1D"
              description: "The taker flow bars."
              examples:
                - "1H"
            lookback_hours:
              type: "integer"
              format: "int64"
              minimum: 1
              maximum: 720
              description: "Hours summed."
              examples:
                - 24
            closed_buckets:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 1000
              description: "Closed bars in the window."
              examples:
                - 24
            start_time:
              type: "string"
              format: "date-time"
              maxLength: 40
              description: "The window's start."
              examples:
                - "2026-11-29T12:00:00.000Z"
            end_time:
              type: "string"
              format: "date-time"
              maxLength: 40
              description: "The window's end, the open bar's close."
              examples:
                - "2026-11-30T13:00:00.000Z"
            reference_price:
              type: "object"
              description: "The instrument whose closes turn base volume into dollars: exchange, market_type and ticker."
              additionalProperties: true
              maxProperties: 3
              examples:
                - exchange: "binance"
                  market_type: "spot"
                  ticker: "spot:BTCUSDT"
            totals:
              type: "object"
              description: "The window's totals."
              additionalProperties: false
              required:
                - "spot"
                - "perp"
                - "all"
              properties:
                spot:
                  $ref: "#/components/schemas/CryptoFlowSide"
                perp:
                  $ref: "#/components/schemas/CryptoFlowSide"
                all:
                  $ref: "#/components/schemas/CryptoFlowSide"
              examples:
                - spot:
                    buy_volume_base: 41250.5
                    sell_volume_base: 39870.2
                    delta_base: 1380.3
                    taker_buy_ratio_pct: 50.85
                    buy_volume_usd_est: null
                    sell_volume_usd_est: null
                    delta_usd_est: null
                  perp:
                    buy_volume_base: 41250.5
                    sell_volume_base: 39870.2
                    delta_base: 1380.3
                    taker_buy_ratio_pct: 50.85
                    buy_volume_usd_est: null
                    sell_volume_usd_est: null
                    delta_usd_est: null
                  all:
                    buy_volume_base: 41250.5
                    sell_volume_base: 39870.2
                    delta_base: 1380.3
                    taker_buy_ratio_pct: 50.85
                    buy_volume_usd_est: null
                    sell_volume_usd_est: null
                    delta_usd_est: null
            divergence:
              type: "string"
              enum:
                - "aligned_buying"
                - "aligned_selling"
                - "spot_buying_perp_selling"
                - "spot_selling_perp_buying"
                - "flat_or_mixed"
              description: "Which way spot and perpetual takers leaned over the window."
              examples:
                - "aligned_buying"
            exchanges:
              type: "array"
              maxItems: 1000
              description: "Each instrument's totals in the window (exchange, market_type, ticker, the side fields and share_of_volume_pct), busiest first."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - []
            series:
              type: "array"
              maxItems: 1000
              description: "Each bar, oldest first: time, time_milliseconds, reference_price_usd, spot, perp, cvd_spot_base and cvd_perp_base."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - []
          examples:
            - interval: "1H"
              lookback_hours: 24
              closed_buckets: 24
              start_time: "2026-11-29T12:00:00.000Z"
              end_time: "2026-11-30T13:00:00.000Z"
              reference_price:
                exchange: "binance"
                market_type: "spot"
                ticker: "spot:BTCUSDT"
              totals:
                spot:
                  buy_volume_base: 41250.5
                  sell_volume_base: 39870.2
                  delta_base: 1380.3
                  taker_buy_ratio_pct: 50.85
                  buy_volume_usd_est: null
                  sell_volume_usd_est: null
                  delta_usd_est: null
                perp:
                  buy_volume_base: 41250.5
                  sell_volume_base: 39870.2
                  delta_base: 1380.3
                  taker_buy_ratio_pct: 50.85
                  buy_volume_usd_est: null
                  sell_volume_usd_est: null
                  delta_usd_est: null
                all:
                  buy_volume_base: 41250.5
                  sell_volume_base: 39870.2
                  delta_base: 1380.3
                  taker_buy_ratio_pct: 50.85
                  buy_volume_usd_est: null
                  sell_volume_usd_est: null
                  delta_usd_est: null
              divergence: "aligned_buying"
              exchanges: []
              series: []
      examples:
        - asset: "BTC"
          as_of: "2026-11-30T12:00:00.000Z"
          as_of_milliseconds: 1796040000000
          venues_included:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          venues_unavailable: []
          units:
            _decimal: "fraction of notional: 0.0001 is 0.01%"
            _pct: "percent: 0.01 is 0.01%, 1 is 1%"
            _bps: "basis points: 1 is 0.01%"
            _apr_pct: "simple annual rate in percent, not compounded"
            _usd: "US dollars"
            _base: "units of the base asset, such as BTC"
          methodology:
            oi_weighted: "Σ(funding_rate_8h_decimal × open_interest_usd) / Σ open_interest_usd"
          open_interest:
            total_usd: 38400000000
            by_exchange:
              - venue: "binance"
                open_interest_usd: 11200000000
                open_interest_share_pct: 29.17
                contracts: 3
                contracts_without_open_interest: 0
            contracts:
              - venue: "binance"
                ticker: "perpetual:BTCUSDT"
                quote: "USDT"
                margin: "linear"
                contract_multiplier: 1
                open_interest_usd: 9800000000
                open_interest_share_pct: 25.52
                funding: null
                next_funding_time: "2026-11-30T16:00:00.000Z"
                volume_24h_usd: 18200000000
                mark_price: 96840.1
                index_price: 96850.4
          funding:
            oi_weighted:
              funding_rate_8h_decimal: 0.000082
              funding_rate_8h_pct: 0.0082
              annualized_apr_pct: 8.979
              weight_total_usd: 38400000000
              contracts: 9
            volume_weighted:
              funding_rate_8h_decimal: 0.000082
              funding_rate_8h_pct: 0.0082
              annualized_apr_pct: 8.979
              weight_total_usd: 38400000000
              contracts: 9
            simple_mean:
              funding_rate_8h_decimal: 0.000082
              funding_rate_8h_pct: 0.0082
              annualized_apr_pct: 8.979
              weight_total_usd: 38400000000
              contracts: 9
          taker_flow:
            interval: "1H"
            lookback_hours: 24
            closed_buckets: 24
            start_time: "2026-11-29T12:00:00.000Z"
            end_time: "2026-11-30T13:00:00.000Z"
            reference_price:
              exchange: "binance"
              market_type: "spot"
              ticker: "spot:BTCUSDT"
            totals:
              spot:
                buy_volume_base: 41250.5
                sell_volume_base: 39870.2
                delta_base: 1380.3
                taker_buy_ratio_pct: 50.85
                buy_volume_usd_est: null
                sell_volume_usd_est: null
                delta_usd_est: null
              perp:
                buy_volume_base: 41250.5
                sell_volume_base: 39870.2
                delta_base: 1380.3
                taker_buy_ratio_pct: 50.85
                buy_volume_usd_est: null
                sell_volume_usd_est: null
                delta_usd_est: null
              all:
                buy_volume_base: 41250.5
                sell_volume_base: 39870.2
                delta_base: 1380.3
                taker_buy_ratio_pct: 50.85
                buy_volume_usd_est: null
                sell_volume_usd_est: null
                delta_usd_est: null
            divergence: "aligned_buying"
            exchanges: []
            series: []
    CryptoPerpetualBasis:
      type: "object"
      description: "One perpetual's basis against its index."
      additionalProperties: false
      required:
        - "venue"
        - "ticker"
        - "quote"
        - "margin"
        - "mark_price"
        - "index_price"
        - "basis_usd_per_unit"
        - "basis_bps"
        - "basis_pct"
        - "funding_interval_hours"
        - "basis_annualized_pct"
        - "annualization_method"
      properties:
        venue:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The perpetual's venue."
          examples:
            - "okx"
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "The perpetual, as the other crypto endpoints take it."
          examples:
            - "BTC-USDT-SWAP"
        quote:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "The perpetual's quote currency."
          examples:
            - "USDT"
        margin:
          type: "string"
          enum:
            - "linear"
            - "inverse"
          description: "Whether the perpetual settles in the quote or the base."
          examples:
            - "linear"
        mark_price:
          type: "number"
          format: "double"
          description: "The perpetual's mark price."
          examples:
            - 96861.2
        index_price:
          type: "number"
          format: "double"
          description: "The perpetual's index price."
          examples:
            - 96850.4
        basis_usd_per_unit:
          type: "number"
          format: "double"
          description: "Mark less index, per unit of the base."
          examples:
            - 10.8
        basis_bps:
          type: "number"
          format: "double"
          description: "Mark over index, less one, in basis points."
          examples:
            - 1.115
        basis_pct:
          type: "number"
          format: "double"
          description: "Mark over index, less one, in percent."
          examples:
            - 0.01115
        funding_interval_hours:
          type:
            - "integer"
            - "null"
          format: "int64"
          minimum: 1
          maximum: 24
          description: "Hours between funding settlements."
          examples:
            - 8
        basis_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The basis annualized by the funding interval."
          examples:
            - 12.21
        annualization_method:
          type: "string"
          enum:
            - "funding_interval"
          description: "How the basis is annualized."
          examples:
            - "funding_interval"
      examples:
        - venue: "okx"
          ticker: "BTC-USDT-SWAP"
          quote: "USDT"
          margin: "linear"
          mark_price: 96861.2
          index_price: 96850.4
          basis_usd_per_unit: 10.8
          basis_bps: 1.115
          basis_pct: 0.01115
          funding_interval_hours: 8
          basis_annualized_pct: 12.21
          annualization_method: "funding_interval"
    CryptoFutureBasis:
      type: "object"
      description: "One dated future's basis against its index."
      additionalProperties: false
      required:
        - "venue"
        - "ticker"
        - "quote"
        - "margin"
        - "expiry"
        - "days_to_expiry"
        - "mark_price"
        - "index_price"
        - "basis_usd_per_unit"
        - "basis_bps"
        - "basis_pct"
        - "basis_annualized_pct"
        - "annualization_method"
        - "open_interest_usd"
      properties:
        venue:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          description: "The future's venue."
          examples:
            - "okx"
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "The future, by the venue's symbol."
          examples:
            - "BTC-USD-261225"
        quote:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "The future's quote currency."
          examples:
            - "USD"
        margin:
          type: "string"
          enum:
            - "linear"
            - "inverse"
          description: "Whether the future settles in the quote or the base."
          examples:
            - "inverse"
        expiry:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When the future expires."
          examples:
            - "2026-12-25T08:00:00.000Z"
        days_to_expiry:
          type: "number"
          format: "double"
          description: "Days until expiry."
          examples:
            - 24.833
        mark_price:
          type: "number"
          format: "double"
          description: "The future's mark price."
          examples:
            - 97420.5
        index_price:
          type: "number"
          format: "double"
          description: "The future's index price."
          examples:
            - 96850.4
        basis_usd_per_unit:
          type: "number"
          format: "double"
          description: "The future's mark less index, per unit of the base."
          examples:
            - 570.1
        basis_bps:
          type: "number"
          format: "double"
          description: "The future's mark over index, less one, in basis points."
          examples:
            - 58.86
        basis_pct:
          type: "number"
          format: "double"
          description: "The future's mark over index, less one, in percent."
          examples:
            - 0.5886
        basis_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The basis annualized to expiry; null within a day of it."
          examples:
            - 8.65
        annualization_method:
          type: "string"
          enum:
            - "days_to_expiry"
          description: "How the future's basis is annualized."
          examples:
            - "days_to_expiry"
        open_interest_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The future's open interest in US dollars."
          examples:
            - 410000000
      examples:
        - venue: "okx"
          ticker: "BTC-USD-261225"
          quote: "USD"
          margin: "inverse"
          expiry: "2026-12-25T08:00:00.000Z"
          days_to_expiry: 24.833
          mark_price: 97420.5
          index_price: 96850.4
          basis_usd_per_unit: 570.1
          basis_bps: 58.86
          basis_pct: 0.5886
          basis_annualized_pct: 8.65
          annualization_method: "days_to_expiry"
          open_interest_usd: 410000000
    CryptoBasisResponse:
      type: "object"
      description: "The answer of GET /crypto/basis."
      additionalProperties: false
      required:
        - "asset"
        - "as_of"
        - "as_of_milliseconds"
        - "venues_included"
        - "venues_unavailable"
        - "units"
        - "methodology"
        - "perpetuals"
        - "futures"
        - "spot"
      properties:
        asset:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 15
          description: "The coin whose basis is read."
          examples:
            - "BTC"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When the venues' contracts were read."
          examples:
            - "2026-11-30T12:00:00.000Z"
        as_of_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 4102444800000
          description: "The read of the contracts, in Unix milliseconds."
          examples:
            - 1796040000000
        venues_included:
          type: "array"
          maxItems: 4
          description: "Venues whose contracts were read."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "okx"
              - "binance"
              - "bybit"
              - "hyperliquid"
        venues_unavailable:
          type: "array"
          maxItems: 4
          description: "Venues whose contracts could not be read now."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - []
        units:
          type: "object"
          description: "The unit of each basis field name ending."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - _decimal: "fraction of notional: 0.0001 is 0.01%"
              _pct: "percent: 0.01 is 0.01%, 1 is 1%"
              _bps: "basis points: 1 is 0.01%"
              _apr_pct: "simple annual rate in percent, not compounded"
              _usd: "US dollars"
              _base: "units of the base asset, such as BTC"
        methodology:
          type: "object"
          description: "How each basis is computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - basis_bps: "(mark_price − index_price) / index_price × 10000"
        perpetuals:
          type: "array"
          maxItems: 100
          description: "Every perpetual of the coin."
          items:
            $ref: "#/components/schemas/CryptoPerpetualBasis"
        futures:
          type: "object"
          description: "The dated futures of the coin."
          additionalProperties: false
          required:
            - "tenor_days"
            - "term_structure"
            - "constant_maturity"
          properties:
            tenor_days:
              type: "integer"
              format: "int64"
              minimum: 7
              maximum: 365
              description: "The tenor of the constant-maturity basis."
              examples:
                - 90
            term_structure:
              type: "array"
              maxItems: 200
              description: "Every dated future, nearest expiry first."
              items:
                $ref: "#/components/schemas/CryptoFutureBasis"
            constant_maturity:
              type: "array"
              maxItems: 1000
              description: "Per venue and quote: venue, quote, expiries, and basis_annualized_pct interpolated at tenor_days between the expiries from_days and to_days (null outside them)."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - - venue: "okx"
                    quote: "USD"
                    expiries: 4
                    basis_annualized_pct: 8.4
                    from_days: 24.833
                    to_days: 115.8
          examples:
            - tenor_days: 90
              term_structure:
                - venue: "okx"
                  ticker: "BTC-USD-261225"
                  quote: "USD"
                  margin: "inverse"
                  expiry: "2026-12-25T08:00:00.000Z"
                  days_to_expiry: 24.833
                  mark_price: 97420.5
                  index_price: 96850.4
                  basis_usd_per_unit: 570.1
                  basis_bps: 58.86
                  basis_pct: 0.5886
                  basis_annualized_pct: 8.65
                  annualization_method: "days_to_expiry"
                  open_interest_usd: 410000000
              constant_maturity:
                - venue: "okx"
                  quote: "USD"
                  expiries: 4
                  basis_annualized_pct: 8.4
                  from_days: 24.833
                  to_days: 115.8
        spot:
          description: "With include_spot, each exchange's spot price in dollars: stablecoin_rates_usd, venues_missing, venues (venue, ticker, quote, price, price_usd, time, stale), spread_matrix_bps (row venue over column venue) and dispersion (venues, median_price_usd, lowest_venue, highest_venue, range_bps, stdev_bps); null without it."
          type:
            - "object"
            - "null"
          additionalProperties: true
          maxProperties: 10
          examples:
            - null
      examples:
        - asset: "BTC"
          as_of: "2026-11-30T12:00:00.000Z"
          as_of_milliseconds: 1796040000000
          venues_included:
            - "okx"
            - "binance"
            - "bybit"
            - "hyperliquid"
          venues_unavailable: []
          units:
            _decimal: "fraction of notional: 0.0001 is 0.01%"
            _pct: "percent: 0.01 is 0.01%, 1 is 1%"
            _bps: "basis points: 1 is 0.01%"
            _apr_pct: "simple annual rate in percent, not compounded"
            _usd: "US dollars"
            _base: "units of the base asset, such as BTC"
          methodology:
            basis_bps: "(mark_price − index_price) / index_price × 10000"
          perpetuals:
            - venue: "okx"
              ticker: "BTC-USDT-SWAP"
              quote: "USDT"
              margin: "linear"
              mark_price: 96861.2
              index_price: 96850.4
              basis_usd_per_unit: 10.8
              basis_bps: 1.115
              basis_pct: 0.01115
              funding_interval_hours: 8
              basis_annualized_pct: 12.21
              annualization_method: "funding_interval"
          futures:
            tenor_days: 90
            term_structure:
              - venue: "okx"
                ticker: "BTC-USD-261225"
                quote: "USD"
                margin: "inverse"
                expiry: "2026-12-25T08:00:00.000Z"
                days_to_expiry: 24.833
                mark_price: 97420.5
                index_price: 96850.4
                basis_usd_per_unit: 570.1
                basis_bps: 58.86
                basis_pct: 0.5886
                basis_annualized_pct: 8.65
                annualization_method: "days_to_expiry"
                open_interest_usd: 410000000
            constant_maturity:
              - venue: "okx"
                quote: "USD"
                expiries: 4
                basis_annualized_pct: 8.4
                from_days: 24.833
                to_days: 115.8
          spot: null
    CryptoSentimentComponent:
      type: "object"
      description: "One input of the sentiment index."
      additionalProperties: false
      required:
        - "name"
        - "weight"
        - "unit"
        - "formula"
        - "value"
        - "score"
        - "effective_weight"
      properties:
        name:
          type: "string"
          enum:
            - "momentum"
            - "volatility"
            - "funding"
            - "breadth"
            - "coinbase_premium"
          description: "The component."
          examples:
            - "momentum"
        weight:
          type: "number"
          format: "double"
          description: "The component's weight when every component reads."
          examples:
            - 0.25
        unit:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 80
          description: "The unit of value."
          examples:
            - "pct above the 125-day average"
        formula:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "How value becomes score."
          examples:
            - "50 + deviation_pct × 2.5"
        value:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The component's input; null when it could not be read."
          examples:
            - 6.2
        score:
          type:
            - "number"
            - "null"
          format: "double"
          description: "0 most fearful to 100 greediest; null when it could not be read."
          examples:
            - 65.5
        effective_weight:
          type: "number"
          format: "double"
          description: "The weight after the missing components are left out."
          examples:
            - 0.25
        reason:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 200
          description: "Why the component could not be read; absent when it read."
          examples:
            - "fewer than 125 daily closes"
      examples:
        - name: "momentum"
          weight: 0.25
          unit: "pct above the 125-day average"
          formula: "50 + deviation_pct × 2.5, clamped to 0..100 (±20% reads 0 or 100)"
          value: 6.2
          score: 65.5
          effective_weight: 0.25
    CryptoSentimentResponse:
      type: "object"
      description: "The answer of GET /crypto/sentiment."
      additionalProperties: false
      required:
        - "as_of"
        - "as_of_milliseconds"
        - "methodology"
        - "sentiment"
        - "altcoin_season"
      properties:
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When the indices were computed."
          examples:
            - "2026-11-30T12:00:00.000Z"
        as_of_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 4102444800000
          description: "When the indices were computed, in Unix milliseconds."
          examples:
            - 1796040000000
        methodology:
          type: "object"
          description: "How each index is computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - sentiment: "Σ(component score × weight) / Σ weight"
        sentiment:
          type: "object"
          description: "The Darvas Crypto Sentiment index."
          additionalProperties: false
          required:
            - "index_name"
            - "score"
            - "label"
            - "components"
            - "components_missing"
          properties:
            index_name:
              type: "string"
              enum:
                - "Darvas Crypto Sentiment"
              description: "The index."
              examples:
                - "Darvas Crypto Sentiment"
            score:
              type:
                - "number"
                - "null"
              format: "double"
              description: "0 extreme fear to 100 extreme greed; null when no component read."
              examples:
                - 61.8
            label:
              type:
                - "string"
                - "null"
              enum:
                - "extreme_fear"
                - "fear"
                - "neutral"
                - "greed"
                - "extreme_greed"
                - null
              description: "The band of the score."
              examples:
                - "greed"
            components:
              type: "array"
              maxItems: 5
              description: "Every component, read or not."
              items:
                $ref: "#/components/schemas/CryptoSentimentComponent"
            components_missing:
              type: "array"
              maxItems: 5
              description: "Components that could not be read."
              items:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
              examples:
                - []
          examples:
            - index_name: "Darvas Crypto Sentiment"
              score: 61.8
              label: "greed"
              components:
                - name: "momentum"
                  weight: 0.25
                  unit: "pct above the 125-day average"
                  formula: "50 + deviation_pct × 2.5, clamped to 0..100 (±20% reads 0 or 100)"
                  value: 6.2
                  score: 65.5
                  effective_weight: 0.25
              components_missing: []
        altcoin_season:
          description: "The Altcoin Season index over 90 days: lookback_days, start_time, index (0 to 100), label (altcoin_season, neutral or bitcoin_season), btc_return_pct, assets_measured, assets_outperforming_btc, assets (asset, return_pct, outperformed_btc), excluded (asset, reason) and btc_volume_dominance_pct; null when it could not be read."
          type:
            - "object"
            - "null"
          additionalProperties: true
          maxProperties: 12
          examples:
            - lookback_days: 90
              start_time: "2026-09-01T12:00:00.000Z"
              index: 36
              label: "neutral"
              btc_return_pct: 12.4
              assets_measured: 50
              assets_outperforming_btc: 18
              assets:
                - asset: "SOL"
                  return_pct: 21.6
                  outperformed_btc: true
              excluded: []
              btc_volume_dominance_pct: 38.2
      examples:
        - as_of: "2026-11-30T12:00:00.000Z"
          as_of_milliseconds: 1796040000000
          methodology:
            sentiment: "Σ(component score × weight) / Σ weight over the components that read"
          sentiment:
            index_name: "Darvas Crypto Sentiment"
            score: 61.8
            label: "greed"
            components:
              - name: "momentum"
                weight: 0.25
                unit: "pct above the 125-day average"
                formula: "50 + deviation_pct × 2.5, clamped to 0..100 (±20% reads 0 or 100)"
                value: 6.2
                score: 65.5
                effective_weight: 0.25
            components_missing: []
          altcoin_season:
            lookback_days: 90
            start_time: "2026-09-01T12:00:00.000Z"
            index: 36
            label: "neutral"
            btc_return_pct: 12.4
            assets_measured: 50
            assets_outperforming_btc: 18
            assets:
              - asset: "SOL"
                return_pct: 21.6
                outperformed_btc: true
            excluded: []
            btc_volume_dominance_pct: 38.2
    CryptoAnalyticsResponse:
      type: "object"
      description: "The answer of GET /crypto/analytics."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "as_of"
        - "methodology"
        - "realized_volatility"
        - "correlation"
        - "seasonality"
      properties:
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "The instrument analysed."
          examples:
            - "spot:BTCUSDT"
        exchange:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 16
          description: "The analysed instrument's exchange."
          examples:
            - "binance"
        market_type:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 8
          description: "The analysed instrument's market."
          examples:
            - "spot"
        resolved:
          type: "object"
          description: "When the ticker sent was read as another: input, symbol, exchange and market_type; absent otherwise."
          additionalProperties: true
          maxProperties: 4
          examples:
            - input: "BTCUSDT"
              symbol: "spot:BTCUSDT"
              exchange: "binance"
              market_type: "spot"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "The newest daily candle's open."
          examples:
            - "2026-11-30T00:00:00.000Z"
        methodology:
          type: "object"
          description: "How volatility, correlation and seasonality are computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - realized_vol_pct: "sample standard deviation of daily log returns × √365 × 100"
        realized_volatility:
          type: "object"
          description: "Realized volatility over 7, 30 and 90 days."
          additionalProperties: false
          required:
            - "annualization"
            - "windows"
          properties:
            annualization:
              type: "string"
              enum:
                - "sqrt(365)"
              description: "How daily volatility is annualized."
              examples:
                - "sqrt(365)"
            windows:
              type: "array"
              maxItems: 1000
              description: "Per window: window_days, realized_vol_pct and cone (observations, min_pct, p25_pct, median_pct, p75_pct, max_pct and current_percentile over the past year; null with fewer than 30 days)."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - - window_days: 30
                    realized_vol_pct: 38.4
                    cone:
                      observations: 365
                      min_pct: 22.1
                      p25_pct: 34.8
                      median_pct: 41.2
                      p75_pct: 49.6
                      max_pct: 78.4
                      current_percentile: 0.31
          examples:
            - annualization: "sqrt(365)"
              windows:
                - window_days: 30
                  realized_vol_pct: 38.4
                  cone:
                    observations: 365
                    min_pct: 22.1
                    p25_pct: 34.8
                    median_pct: 41.2
                    p75_pct: 49.6
                    max_pct: 78.4
                    current_percentile: 0.31
        correlation:
          type: "object"
          description: "Correlation and beta against each benchmark."
          additionalProperties: false
          required:
            - "window_days"
            - "from_date"
            - "benchmarks"
          properties:
            window_days:
              type: "integer"
              format: "int64"
              minimum: 20
              maximum: 365
              description: "Days of returns compared."
              examples:
                - 90
            from_date:
              type: "string"
              pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
              maxLength: 10
              description: "The first day compared."
              examples:
                - "2026-09-01"
            benchmarks:
              type: "array"
              maxItems: 1000
              description: "Per benchmark: benchmark, source, status (ok, same_asset, unavailable, no_stored_prices or too_few_observations), observations, correlation and beta."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - - benchmark: "SPY"
                    source:
                      dataset: "stock_prices"
                      ticker: "SPY"
                    status: "ok"
                    observations: 62
                    correlation: 0.41
                    beta: 1.92
          examples:
            - window_days: 90
              from_date: "2026-09-01"
              benchmarks:
                - benchmark: "SPY"
                  source:
                    dataset: "stock_prices"
                    ticker: "SPY"
                  status: "ok"
                  observations: 62
                  correlation: 0.41
                  beta: 1.92
        seasonality:
          type: "object"
          description: "Average returns by time."
          additionalProperties: false
          required:
            - "lookback_days"
            - "hourly"
            - "weekday"
            - "sessions"
          properties:
            lookback_days:
              type: "integer"
              format: "int64"
              minimum: 7
              maximum: 365
              description: "Days of hourly bars averaged."
              examples:
                - 90
            hourly:
              type: "array"
              maxItems: 1000
              description: "Per UTC hour: hour_utc, observations, mean_return_pct, median_return_pct and win_rate_pct."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - - hour_utc: 14
                    observations: 90
                    mean_return_pct: 0.04
                    median_return_pct: 0.02
                    win_rate_pct: 53.3
            weekday:
              type: "array"
              maxItems: 1000
              description: "Per weekday of the daily bars: weekday, observations, mean_return_pct, median_return_pct and win_rate_pct."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - []
            sessions:
              type: "array"
              maxItems: 1000
              description: "Per session (asia, europe, us, late_us): session, utc_hours and the return statistics of its days."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - []
          examples:
            - lookback_days: 90
              hourly:
                - hour_utc: 14
                  observations: 90
                  mean_return_pct: 0.04
                  median_return_pct: 0.02
                  win_rate_pct: 53.3
              weekday: []
              sessions: []
      examples:
        - ticker: "spot:BTCUSDT"
          exchange: "binance"
          market_type: "spot"
          as_of: "2026-11-30T00:00:00.000Z"
          methodology:
            realized_vol_pct: "sample standard deviation of daily log returns × √365 × 100"
          realized_volatility:
            annualization: "sqrt(365)"
            windows:
              - window_days: 30
                realized_vol_pct: 38.4
                cone:
                  observations: 365
                  min_pct: 22.1
                  p25_pct: 34.8
                  median_pct: 41.2
                  p75_pct: 49.6
                  max_pct: 78.4
                  current_percentile: 0.31
          correlation:
            window_days: 90
            from_date: "2026-09-01"
            benchmarks:
              - benchmark: "SPY"
                source:
                  dataset: "stock_prices"
                  ticker: "SPY"
                status: "ok"
                observations: 62
                correlation: 0.41
                beta: 1.92
          seasonality:
            lookback_days: 90
            hourly:
              - hour_utc: 14
                observations: 90
                mean_return_pct: 0.04
                median_return_pct: 0.02
                win_rate_pct: 53.3
            weekday: []
            sessions: []
    CryptoOptionsVenue:
      type: "object"
      description: "One option venue's chain as read."
      additionalProperties: false
      required:
        - "venue"
        - "status"
        - "contracts"
        - "open_interest_base"
        - "open_interest_usd"
        - "index_price_usd"
        - "as_of"
      properties:
        venue:
          type: "string"
          enum:
            - "deribit"
            - "okx"
            - "bybit"
          description: "The option venue."
          examples:
            - "deribit"
        status:
          type: "string"
          enum:
            - "ok"
            - "unavailable"
            - "not_listed"
          description: "Whether the chain was read."
          examples:
            - "ok"
        contracts:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100000
          description: "Option contracts the venue lists."
          examples:
            - 812
        open_interest_base:
          type: "number"
          format: "double"
          description: "The venue's open interest, in coins."
          examples:
            - 301220.5
        open_interest_usd:
          type: "number"
          format: "double"
          description: "The venue's open interest, in US dollars at spot."
          examples:
            - 29160000000
        index_price_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The venue's index price."
          examples:
            - 96850.4
        as_of:
          type:
            - "string"
            - "null"
          format: "date-time"
          maxLength: 40
          description: "When the venue's chain was read."
          examples:
            - "2026-11-30T12:00:00.000Z"
      examples:
        - venue: "deribit"
          status: "ok"
          contracts: 812
          open_interest_base: 301220.5
          open_interest_usd: 29160000000
          index_price_usd: 96850.4
          as_of: "2026-11-30T12:00:00.000Z"
    CryptoOptionsExpiry:
      type: "object"
      description: "One expiry of the merged chain."
      additionalProperties: false
      required:
        - "expiry_date"
        - "expiry_time"
        - "days_to_expiry"
        - "forward_price_usd"
        - "venues"
        - "contracts"
        - "open_interest_base"
        - "open_interest_usd"
        - "call_open_interest_usd"
        - "put_open_interest_usd"
        - "volume_24h_base"
        - "volume_24h_usd"
        - "put_call_oi_ratio"
        - "put_call_volume_ratio"
        - "max_pain_strike_usd"
        - "max_pain_distance_pct"
        - "net_gex_usd_per_1pct_move"
        - "atm_iv_annualized_pct"
        - "iv_10d_put_annualized_pct"
        - "iv_25d_put_annualized_pct"
        - "iv_25d_call_annualized_pct"
        - "iv_10d_call_annualized_pct"
        - "rr25_vol_pts"
        - "bf25_vol_pts"
        - "rr10_vol_pts"
        - "bf10_vol_pts"
      properties:
        expiry_date:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The UTC day the expiry's options expire."
          examples:
            - "2026-12-25"
        expiry_time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When the expiry's options expire."
          examples:
            - "2026-12-25T08:00:00.000Z"
        days_to_expiry:
          type: "number"
          format: "double"
          description: "Days until the expiry's options expire."
          examples:
            - 24.8333
        forward_price_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The expiry's forward price."
          examples:
            - 97120.5
        venues:
          type: "array"
          maxItems: 3
          description: "Venues listing the expiry."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "deribit"
              - "okx"
              - "bybit"
        contracts:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100000
          description: "Contracts of the expiry."
          examples:
            - 236
        open_interest_base:
          type: "number"
          format: "double"
          description: "Open interest of the expiry, in coins."
          examples:
            - 412350.2
        open_interest_usd:
          type: "number"
          format: "double"
          description: "Open interest of the expiry, in US dollars at spot."
          examples:
            - 39920000000
        call_open_interest_usd:
          type: "number"
          format: "double"
          description: "Call open interest of the expiry, in US dollars."
          examples:
            - 23400000000
        put_open_interest_usd:
          type: "number"
          format: "double"
          description: "Put open interest of the expiry, in US dollars."
          examples:
            - 16520000000
        volume_24h_base:
          type: "number"
          format: "double"
          description: "24-hour volume of the expiry, in coins."
          examples:
            - 31250.4
        volume_24h_usd:
          type: "number"
          format: "double"
          description: "24-hour volume of the expiry, in US dollars."
          examples:
            - 3025000000
        put_call_oi_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Put over call open interest of the expiry."
          examples:
            - 0.706
        put_call_volume_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Put over call 24-hour volume of the expiry."
          examples:
            - 0.812
        max_pain_strike_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The expiry's max pain strike."
          examples:
            - 95000
        max_pain_distance_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The max pain strike against spot, in percent."
          examples:
            - -1.91
        net_gex_usd_per_1pct_move:
          type: "number"
          format: "double"
          description: "The expiry's dealer gamma exposure per 1% move."
          examples:
            - 128000000
        atm_iv_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "At-the-money implied volatility of the expiry, annualized percent."
          examples:
            - 48.2
        iv_10d_put_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10-delta put implied volatility of the expiry."
          examples:
            - 55.1
        iv_25d_put_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta put implied volatility of the expiry."
          examples:
            - 51.3
        iv_25d_call_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta call implied volatility of the expiry."
          examples:
            - 49.4
        iv_10d_call_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10-delta call implied volatility of the expiry."
          examples:
            - 50.8
        rr25_vol_pts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta risk reversal of the expiry: call less put, in vol points."
          examples:
            - -1.9
        bf25_vol_pts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "25-delta butterfly of the expiry: wings over ATM, in vol points."
          examples:
            - 2.15
        rr10_vol_pts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10-delta risk reversal of the expiry, in vol points."
          examples:
            - -4.3
        bf10_vol_pts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "10-delta butterfly of the expiry, in vol points."
          examples:
            - 4.75
      examples:
        - expiry_date: "2026-12-25"
          expiry_time: "2026-12-25T08:00:00.000Z"
          days_to_expiry: 24.8333
          forward_price_usd: 97120.5
          venues:
            - "deribit"
            - "okx"
            - "bybit"
          contracts: 236
          open_interest_base: 412350.2
          open_interest_usd: 39920000000
          call_open_interest_usd: 23400000000
          put_open_interest_usd: 16520000000
          volume_24h_base: 31250.4
          volume_24h_usd: 3025000000
          put_call_oi_ratio: 0.706
          put_call_volume_ratio: 0.812
          max_pain_strike_usd: 95000
          max_pain_distance_pct: -1.91
          net_gex_usd_per_1pct_move: 128000000
          atm_iv_annualized_pct: 48.2
          iv_10d_put_annualized_pct: 55.1
          iv_25d_put_annualized_pct: 51.3
          iv_25d_call_annualized_pct: 49.4
          iv_10d_call_annualized_pct: 50.8
          rr25_vol_pts: -1.9
          bf25_vol_pts: 2.15
          rr10_vol_pts: -4.3
          bf10_vol_pts: 4.75
    CryptoOptionsStrikeGamma:
      type: "object"
      description: "Gamma, vanna and charm exposure at one strike."
      additionalProperties: false
      required:
        - "strike_usd"
        - "call_gex_usd_per_1pct_move"
        - "put_gex_usd_per_1pct_move"
        - "net_gex_usd_per_1pct_move"
        - "call_open_interest_base"
        - "put_open_interest_base"
        - "net_vanna_usd_per_1vol_pt"
        - "net_charm_usd_per_day"
      properties:
        strike_usd:
          type: "number"
          format: "double"
          description: "The strike."
          examples:
            - 100000
        call_gex_usd_per_1pct_move:
          type: "number"
          format: "double"
          description: "Call gamma exposure at the strike per 1% move."
          examples:
            - 402000000
        put_gex_usd_per_1pct_move:
          type: "number"
          format: "double"
          description: "Put gamma exposure at the strike per 1% move."
          examples:
            - -41000000
        net_gex_usd_per_1pct_move:
          type: "number"
          format: "double"
          description: "Net gamma exposure at the strike per 1% move."
          examples:
            - 361000000
        call_open_interest_base:
          type: "number"
          format: "double"
          description: "Call open interest at the strike, in coins."
          examples:
            - 24120.5
        put_open_interest_base:
          type: "number"
          format: "double"
          description: "Put open interest at the strike, in coins."
          examples:
            - 3410.2
        net_vanna_usd_per_1vol_pt:
          type: "number"
          format: "double"
          description: "Vanna exposure at the strike per vol point."
          examples:
            - 9800000
        net_charm_usd_per_day:
          type: "number"
          format: "double"
          description: "Charm exposure at the strike per day."
          examples:
            - -3100000
      examples:
        - strike_usd: 100000
          call_gex_usd_per_1pct_move: 402000000
          put_gex_usd_per_1pct_move: -41000000
          net_gex_usd_per_1pct_move: 361000000
          call_open_interest_base: 24120.5
          put_open_interest_base: 3410.2
          net_vanna_usd_per_1vol_pt: 9800000
          net_charm_usd_per_day: -3100000
    CryptoOptionsAnalyticsResponse:
      type: "object"
      description: "The answer of GET /crypto/derivatives/options-analytics."
      additionalProperties: false
      required:
        - "underlying"
        - "as_of"
        - "spot_reference_usd"
        - "venues_included"
        - "venues"
        - "expiry_filter"
        - "strike_range_pct"
        - "summary"
        - "max_pain"
        - "expiries"
        - "gex_by_strike"
        - "term_structure"
        - "vol_surface"
        - "methodology"
      properties:
        underlying:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The coin whose options are merged."
          examples:
            - "BTC"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "The newest chain read."
          examples:
            - "2026-11-30T12:00:00.000Z"
        spot_reference_usd:
          type: "number"
          format: "double"
          description: "The spot reference USD values use."
          examples:
            - 96850.4
        venues_included:
          type: "array"
          maxItems: 3
          description: "Option venues whose chain was read."
          items:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 200
          examples:
            - - "deribit"
              - "okx"
              - "bybit"
        venues:
          type: "array"
          maxItems: 3
          description: "Each option venue asked for."
          items:
            $ref: "#/components/schemas/CryptoOptionsVenue"
        expiry_filter:
          type:
            - "string"
            - "null"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 10
          description: "The expiry asked for; null for every expiry."
          examples:
            - null
        strike_range_pct:
          type: "integer"
          format: "int64"
          minimum: 1
          maximum: 200
          description: "The strike range of gex_by_strike, in percent of spot."
          examples:
            - 30
        summary:
          type: "object"
          description: "Totals over the expiries in scope."
          additionalProperties: false
          required:
            - "expiries"
            - "contracts"
            - "open_interest_base"
            - "open_interest_usd"
            - "call_open_interest_usd"
            - "put_open_interest_usd"
            - "volume_24h_base"
            - "volume_24h_usd"
            - "put_call_oi_ratio"
            - "put_call_volume_ratio"
            - "net_gex_usd_per_1pct_move"
            - "call_gex_usd_per_1pct_move"
            - "put_gex_usd_per_1pct_move"
            - "gamma_regime"
            - "gamma_flip_price_usd"
            - "gamma_flip_distance_pct"
            - "call_wall_strike_usd"
            - "put_wall_strike_usd"
            - "max_abs_net_gex_strike_usd"
            - "max_call_oi_strike_usd"
            - "max_put_oi_strike_usd"
            - "net_vanna_usd_per_1vol_pt"
            - "net_charm_usd_per_day"
          properties:
            expiries:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 1000
              description: "Expiries in scope."
              examples:
                - 14
            contracts:
              type: "integer"
              format: "int64"
              minimum: 0
              maximum: 100000
              description: "Contracts in scope."
              examples:
                - 1642
            open_interest_base:
              type: "number"
              format: "double"
              description: "Open interest of the expiries in scope, in coins."
              examples:
                - 412350.2
            open_interest_usd:
              type: "number"
              format: "double"
              description: "Open interest of the expiries in scope, in US dollars at spot."
              examples:
                - 39920000000
            call_open_interest_usd:
              type: "number"
              format: "double"
              description: "Call open interest of the expiries in scope, in US dollars."
              examples:
                - 23400000000
            put_open_interest_usd:
              type: "number"
              format: "double"
              description: "Put open interest of the expiries in scope, in US dollars."
              examples:
                - 16520000000
            volume_24h_base:
              type: "number"
              format: "double"
              description: "24-hour volume of the expiries in scope, in coins."
              examples:
                - 31250.4
            volume_24h_usd:
              type: "number"
              format: "double"
              description: "24-hour volume of the expiries in scope, in US dollars."
              examples:
                - 3025000000
            put_call_oi_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Put over call open interest of the expiries in scope."
              examples:
                - 0.706
            put_call_volume_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "Put over call 24-hour volume of the expiries in scope."
              examples:
                - 0.812
            net_gex_usd_per_1pct_move:
              type: "number"
              format: "double"
              description: "Dealer gamma exposure: dollars dealers trade per 1% move."
              examples:
                - 412000000
            call_gex_usd_per_1pct_move:
              type: "number"
              format: "double"
              description: "The calls' part of dealer gamma exposure."
              examples:
                - 1210000000
            put_gex_usd_per_1pct_move:
              type: "number"
              format: "double"
              description: "The puts' part of dealer gamma exposure."
              examples:
                - -798000000
            gamma_regime:
              type: "string"
              enum:
                - "positive_gamma"
                - "negative_gamma"
              description: "The sign of net gamma exposure."
              examples:
                - "positive_gamma"
            gamma_flip_price_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The spot price at which net gamma exposure changes sign."
              examples:
                - 93400
            gamma_flip_distance_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The flip price against spot, in percent."
              examples:
                - -3.56
            call_wall_strike_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The strike with the most call gamma exposure."
              examples:
                - 100000
            put_wall_strike_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The strike with the most put gamma exposure."
              examples:
                - 90000
            max_abs_net_gex_strike_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The strike with the largest net gamma exposure either way."
              examples:
                - 100000
            max_call_oi_strike_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The strike with the most call open interest."
              examples:
                - 100000
            max_put_oi_strike_usd:
              type:
                - "number"
                - "null"
              format: "double"
              description: "The strike with the most put open interest."
              examples:
                - 90000
            net_vanna_usd_per_1vol_pt:
              type: "number"
              format: "double"
              description: "Dealer vanna exposure: delta dollars per vol point."
              examples:
                - 58000000
            net_charm_usd_per_day:
              type: "number"
              format: "double"
              description: "Dealer charm exposure: delta dollars per day of time decay."
              examples:
                - -21000000
          examples:
            - expiries: 14
              contracts: 1642
              open_interest_base: 412350.2
              open_interest_usd: 39920000000
              call_open_interest_usd: 23400000000
              put_open_interest_usd: 16520000000
              volume_24h_base: 31250.4
              volume_24h_usd: 3025000000
              put_call_oi_ratio: 0.706
              put_call_volume_ratio: 0.812
              net_gex_usd_per_1pct_move: 412000000
              call_gex_usd_per_1pct_move: 1210000000
              put_gex_usd_per_1pct_move: -798000000
              gamma_regime: "positive_gamma"
              gamma_flip_price_usd: 93400
              gamma_flip_distance_pct: -3.56
              call_wall_strike_usd: 100000
              put_wall_strike_usd: 90000
              max_abs_net_gex_strike_usd: 100000
              max_call_oi_strike_usd: 100000
              max_put_oi_strike_usd: 90000
              net_vanna_usd_per_1vol_pt: 58000000
              net_charm_usd_per_day: -21000000
        max_pain:
          description: "Max pain of the focus expiry: its expiry_date, expiry_time and days_to_expiry, max_pain_strike_usd, distance_to_spot_pct and the payout curve (settlement_price_usd, call_payout_usd, put_payout_usd, total_payout_usd); null without one."
          type:
            - "object"
            - "null"
          additionalProperties: true
          maxProperties: 10
          examples:
            - expiry_date: "2026-12-25"
              expiry_time: "2026-12-25T08:00:00.000Z"
              days_to_expiry: 24.8333
              max_pain_strike_usd: 95000
              distance_to_spot_pct: -1.91
              curve:
                - settlement_price_usd: 95000
                  call_payout_usd: 812000000
                  put_payout_usd: 645000000
                  total_payout_usd: 1457000000
        expiries:
          type: "array"
          maxItems: 200
          description: "Each expiry in scope, nearest first."
          items:
            $ref: "#/components/schemas/CryptoOptionsExpiry"
        gex_by_strike:
          type: "array"
          maxItems: 2000
          description: "Each strike within strike_range_pct of spot."
          items:
            $ref: "#/components/schemas/CryptoOptionsStrikeGamma"
        term_structure:
          type: "object"
          description: "The ATM implied volatility of each expiry."
          additionalProperties: false
          required:
            - "slope_7d_to_90d_vol_pts"
            - "regime"
            - "points"
          properties:
            slope_7d_to_90d_vol_pts:
              type:
                - "number"
                - "null"
              format: "double"
              description: "90-day less 7-day ATM implied volatility, in vol points."
              examples:
                - 3.4
            regime:
              type:
                - "string"
                - "null"
              enum:
                - "contango"
                - "backwardation"
                - "flat"
                - null
              description: "The term structure's shape."
              examples:
                - "contango"
            points:
              type: "array"
              maxItems: 200
              description: "Per expiry with an ATM volatility: expiry_date, expiry_time, days_to_expiry and atm_iv_annualized_pct."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - - expiry_date: "2026-12-25"
                    expiry_time: "2026-12-25T08:00:00.000Z"
                    days_to_expiry: 24.8333
                    atm_iv_annualized_pct: 48.2
          examples:
            - slope_7d_to_90d_vol_pts: 3.4
              regime: "contango"
              points:
                - expiry_date: "2026-12-25"
                  expiry_time: "2026-12-25T08:00:00.000Z"
                  days_to_expiry: 24.8333
                  atm_iv_annualized_pct: 48.2
        vol_surface:
          type: "object"
          description: "Implied volatility by delta and tenor."
          additionalProperties: false
          required:
            - "delta_pillars"
            - "constant_maturity"
            - "strike_points"
          properties:
            delta_pillars:
              type: "array"
              maxItems: 5
              description: "The surface's delta pillars."
              items:
                type: "string"
                pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                maxLength: 200
              examples:
                - - "10d_put"
                  - "25d_put"
                  - "atm"
                  - "25d_call"
                  - "10d_call"
            constant_maturity:
              type: "array"
              maxItems: 6
              description: "Per tenor of 7, 14, 30, 60, 90 and 180 days: tenor_days and the skew fields at that constant maturity."
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 40
              examples:
                - - tenor_days: 30
                    atm_iv_annualized_pct: 48.2
                    iv_10d_put_annualized_pct: 55.1
                    iv_25d_put_annualized_pct: 51.3
                    iv_25d_call_annualized_pct: 49.4
                    iv_10d_call_annualized_pct: 50.8
                    rr25_vol_pts: -1.9
                    bf25_vol_pts: 2.15
                    rr10_vol_pts: -4.3
                    bf10_vol_pts: 4.75
            strike_points:
              description: "With include_strike_surface, every strike's point: expiry_date, days_to_expiry, strike_usd, side, moneyness, log_moneyness, iv_annualized_pct, delta and open_interest_base; null without it."
              type:
                - "array"
                - "null"
              maxItems: 20000
              items:
                type: "object"
                additionalProperties: true
                maxProperties: 12
              examples:
                - null
          examples:
            - delta_pillars:
                - "10d_put"
                - "25d_put"
                - "atm"
                - "25d_call"
                - "10d_call"
              constant_maturity:
                - tenor_days: 30
                  atm_iv_annualized_pct: 48.2
                  iv_10d_put_annualized_pct: 55.1
                  iv_25d_put_annualized_pct: 51.3
                  iv_25d_call_annualized_pct: 49.4
                  iv_10d_call_annualized_pct: 50.8
                  rr25_vol_pts: -1.9
                  bf25_vol_pts: 2.15
                  rr10_vol_pts: -4.3
                  bf10_vol_pts: 4.75
              strike_points: null
        methodology:
          type: "object"
          description: "How each figure is computed and which dealer convention it assumes."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - model: "oi_convention"
      examples:
        - underlying: "BTC"
          as_of: "2026-11-30T12:00:00.000Z"
          spot_reference_usd: 96850.4
          venues_included:
            - "deribit"
            - "okx"
            - "bybit"
          venues:
            - venue: "deribit"
              status: "ok"
              contracts: 812
              open_interest_base: 301220.5
              open_interest_usd: 29160000000
              index_price_usd: 96850.4
              as_of: "2026-11-30T12:00:00.000Z"
          expiry_filter: null
          strike_range_pct: 30
          summary:
            expiries: 14
            contracts: 1642
            open_interest_base: 412350.2
            open_interest_usd: 39920000000
            call_open_interest_usd: 23400000000
            put_open_interest_usd: 16520000000
            volume_24h_base: 31250.4
            volume_24h_usd: 3025000000
            put_call_oi_ratio: 0.706
            put_call_volume_ratio: 0.812
            net_gex_usd_per_1pct_move: 412000000
            call_gex_usd_per_1pct_move: 1210000000
            put_gex_usd_per_1pct_move: -798000000
            gamma_regime: "positive_gamma"
            gamma_flip_price_usd: 93400
            gamma_flip_distance_pct: -3.56
            call_wall_strike_usd: 100000
            put_wall_strike_usd: 90000
            max_abs_net_gex_strike_usd: 100000
            max_call_oi_strike_usd: 100000
            max_put_oi_strike_usd: 90000
            net_vanna_usd_per_1vol_pt: 58000000
            net_charm_usd_per_day: -21000000
          max_pain:
            expiry_date: "2026-12-25"
            expiry_time: "2026-12-25T08:00:00.000Z"
            days_to_expiry: 24.8333
            max_pain_strike_usd: 95000
            distance_to_spot_pct: -1.91
            curve:
              - settlement_price_usd: 95000
                call_payout_usd: 812000000
                put_payout_usd: 645000000
                total_payout_usd: 1457000000
          expiries:
            - expiry_date: "2026-12-25"
              expiry_time: "2026-12-25T08:00:00.000Z"
              days_to_expiry: 24.8333
              forward_price_usd: 97120.5
              venues:
                - "deribit"
                - "okx"
                - "bybit"
              contracts: 236
              open_interest_base: 412350.2
              open_interest_usd: 39920000000
              call_open_interest_usd: 23400000000
              put_open_interest_usd: 16520000000
              volume_24h_base: 31250.4
              volume_24h_usd: 3025000000
              put_call_oi_ratio: 0.706
              put_call_volume_ratio: 0.812
              max_pain_strike_usd: 95000
              max_pain_distance_pct: -1.91
              net_gex_usd_per_1pct_move: 128000000
              atm_iv_annualized_pct: 48.2
              iv_10d_put_annualized_pct: 55.1
              iv_25d_put_annualized_pct: 51.3
              iv_25d_call_annualized_pct: 49.4
              iv_10d_call_annualized_pct: 50.8
              rr25_vol_pts: -1.9
              bf25_vol_pts: 2.15
              rr10_vol_pts: -4.3
              bf10_vol_pts: 4.75
          gex_by_strike:
            - strike_usd: 100000
              call_gex_usd_per_1pct_move: 402000000
              put_gex_usd_per_1pct_move: -41000000
              net_gex_usd_per_1pct_move: 361000000
              call_open_interest_base: 24120.5
              put_open_interest_base: 3410.2
              net_vanna_usd_per_1vol_pt: 9800000
              net_charm_usd_per_day: -3100000
          term_structure:
            slope_7d_to_90d_vol_pts: 3.4
            regime: "contango"
            points:
              - expiry_date: "2026-12-25"
                expiry_time: "2026-12-25T08:00:00.000Z"
                days_to_expiry: 24.8333
                atm_iv_annualized_pct: 48.2
          vol_surface:
            delta_pillars:
              - "10d_put"
              - "25d_put"
              - "atm"
              - "25d_call"
              - "10d_call"
            constant_maturity:
              - tenor_days: 30
                atm_iv_annualized_pct: 48.2
                iv_10d_put_annualized_pct: 55.1
                iv_25d_put_annualized_pct: 51.3
                iv_25d_call_annualized_pct: 49.4
                iv_10d_call_annualized_pct: 50.8
                rr25_vol_pts: -1.9
                bf25_vol_pts: 2.15
                rr10_vol_pts: -4.3
                bf10_vol_pts: 4.75
            strike_points: null
          methodology:
            model: "oi_convention"
    CryptoDvolRank:
      type: "object"
      description: "DVOL's IV rank and percentile over one window."
      additionalProperties: false
      required:
        - "window_days"
        - "observations"
        - "complete"
        - "iv_rank_pct"
        - "iv_percentile_pct"
        - "min_annualized_pct"
        - "max_annualized_pct"
      properties:
        window_days:
          type: "integer"
          format: "int64"
          minimum: 30
          maximum: 365
          description: "The window, in days."
          examples:
            - 365
        observations:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000
          description: "Daily closes in the window."
          examples:
            - 365
        complete:
          type: "boolean"
          description: "Whether the window holds as many closes as days."
          examples:
            - true
        iv_rank_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Where the latest close sits between the window's low and high, in percent."
          examples:
            - 38.42
        iv_percentile_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The window's earlier closes below the latest, in percent."
          examples:
            - 44.5
        min_annualized_pct:
          type: "number"
          format: "double"
          description: "The window's lowest DVOL close."
          examples:
            - 35.1
        max_annualized_pct:
          type: "number"
          format: "double"
          description: "The window's highest DVOL close."
          examples:
            - 72.8
      examples:
        - window_days: 365
          observations: 365
          complete: true
          iv_rank_pct: 38.42
          iv_percentile_pct: 44.5
          min_annualized_pct: 35.1
          max_annualized_pct: 72.8
    CryptoRealizedCone:
      type: "object"
      description: "Realized volatility over one window on every day of the lookback."
      additionalProperties: false
      required:
        - "window_days"
        - "observations"
        - "current_annualized_pct"
        - "current_percentile_pct"
        - "min_annualized_pct"
        - "p10_annualized_pct"
        - "p25_annualized_pct"
        - "median_annualized_pct"
        - "p75_annualized_pct"
        - "p90_annualized_pct"
        - "max_annualized_pct"
      properties:
        window_days:
          type: "integer"
          format: "int64"
          minimum: 7
          maximum: 180
          description: "The realized volatility window, in days."
          examples:
            - 30
        observations:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000
          description: "Days measured."
          examples:
            - 365
        current_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Today's realized volatility, annualized percent."
          examples:
            - 38.4
        current_percentile_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Today's place among the lookback's days, in percent."
          examples:
            - 31.2
        min_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lookback's lowest realized volatility."
          examples:
            - 22.1
        p10_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lookback's 10th percentile."
          examples:
            - 27.4
        p25_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lookback's 25th percentile."
          examples:
            - 32.6
        median_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lookback's median."
          examples:
            - 40.8
        p75_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lookback's 75th percentile."
          examples:
            - 49.2
        p90_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lookback's 90th percentile."
          examples:
            - 58.6
        max_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The lookback's highest realized volatility."
          examples:
            - 78.4
      examples:
        - window_days: 30
          observations: 365
          current_annualized_pct: 38.4
          current_percentile_pct: 31.2
          min_annualized_pct: 22.1
          p10_annualized_pct: 27.4
          p25_annualized_pct: 32.6
          median_annualized_pct: 40.8
          p75_annualized_pct: 49.2
          p90_annualized_pct: 58.6
          max_annualized_pct: 78.4
    CryptoDvolPoint:
      type: "object"
      description: "One bar of the DVOL index."
      additionalProperties: false
      required:
        - "time"
        - "dvol_open_annualized_pct"
        - "dvol_high_annualized_pct"
        - "dvol_low_annualized_pct"
        - "dvol_close_annualized_pct"
        - "realized_vol_30d_annualized_pct"
        - "vrp_vol_pts"
      properties:
        time:
          $ref: "#/components/schemas/CryptoPremiumPoint/properties/time"
        dvol_open_annualized_pct:
          type: "number"
          format: "double"
          description: "DVOL at the bar's open."
          examples:
            - 49.1
        dvol_high_annualized_pct:
          type: "number"
          format: "double"
          description: "DVOL's high in the bar."
          examples:
            - 50.6
        dvol_low_annualized_pct:
          type: "number"
          format: "double"
          description: "DVOL's low in the bar."
          examples:
            - 47.8
        dvol_close_annualized_pct:
          type: "number"
          format: "double"
          description: "DVOL at the bar's close."
          examples:
            - 48.9
        realized_vol_30d_annualized_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "30-day realized volatility of the day; null for hourly bars."
          examples:
            - 38.4
        vrp_vol_pts:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The bar's DVOL close less its 30-day realized volatility, in vol points."
          examples:
            - 10.5
      examples:
        - time: "2026-11-29T00:00:00.000Z"
          dvol_open_annualized_pct: 49.1
          dvol_high_annualized_pct: 50.6
          dvol_low_annualized_pct: 47.8
          dvol_close_annualized_pct: 48.9
          realized_vol_30d_annualized_pct: 38.4
          vrp_vol_pts: 10.5
    CryptoOptionsDvolResponse:
      type: "object"
      description: "The answer of GET /crypto/derivatives/dvol."
      additionalProperties: false
      required:
        - "underlying"
        - "index"
        - "source"
        - "resolution"
        - "as_of"
        - "current"
        - "iv_rank"
        - "implied_vs_realized"
        - "realized_vol_cone"
        - "history"
        - "methodology"
      properties:
        underlying:
          type: "string"
          enum:
            - "BTC"
            - "ETH"
          description: "The coin of the index."
          examples:
            - "BTC"
        index:
          type: "string"
          enum:
            - "DVOL"
          description: "The volatility index."
          examples:
            - "DVOL"
        source:
          type: "string"
          enum:
            - "deribit"
          description: "The venue that computes the index."
          examples:
            - "deribit"
        resolution:
          type: "string"
          enum:
            - "1D"
            - "1H"
          description: "The history's resolution."
          examples:
            - "1D"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "The newest daily DVOL bar."
          examples:
            - "2026-11-30T00:00:00.000Z"
        current:
          type: "object"
          description: "The newest DVOL close."
          additionalProperties: false
          required:
            - "dvol_annualized_pct"
            - "time"
          properties:
            dvol_annualized_pct:
              type: "number"
              format: "double"
              description: "DVOL now, annualized percent."
              examples:
                - 48.9
            time:
              type: "string"
              format: "date-time"
              maxLength: 40
              description: "The newest bar's open."
              examples:
                - "2026-11-30T00:00:00.000Z"
          examples:
            - dvol_annualized_pct: 48.9
              time: "2026-11-30T00:00:00.000Z"
        iv_rank:
          type: "array"
          maxItems: 3
          description: "IV rank and percentile over 30, 90 and 365 days."
          items:
            $ref: "#/components/schemas/CryptoDvolRank"
        implied_vs_realized:
          type: "object"
          description: "DVOL now against 30-day realized volatility."
          additionalProperties: false
          required:
            - "dvol_annualized_pct"
            - "realized_vol_30d_annualized_pct"
            - "vrp_vol_pts"
            - "iv_rv_ratio"
          properties:
            dvol_annualized_pct:
              type: "number"
              format: "double"
              description: "DVOL's newest close, against realized volatility."
              examples:
                - 48.9
            realized_vol_30d_annualized_pct:
              type:
                - "number"
                - "null"
              format: "double"
              description: "30-day realized volatility now."
              examples:
                - 38.4
            vrp_vol_pts:
              type:
                - "number"
                - "null"
              format: "double"
              description: "DVOL less realized volatility now, in vol points."
              examples:
                - 10.5
            iv_rv_ratio:
              type:
                - "number"
                - "null"
              format: "double"
              description: "DVOL over realized volatility now."
              examples:
                - 1.273438
          examples:
            - dvol_annualized_pct: 48.9
              realized_vol_30d_annualized_pct: 38.4
              vrp_vol_pts: 10.5
              iv_rv_ratio: 1.273438
        realized_vol_cone:
          description: "The realized volatility cone of the coin's spot candles: exchange, spot_ticker, lookback_days and windows; null when the candles cannot be read."
          oneOf:
            - type: "object"
              description: "The cone and the candles it reads."
              additionalProperties: false
              required:
                - "exchange"
                - "spot_ticker"
                - "lookback_days"
                - "windows"
              properties:
                exchange:
                  type: "string"
                  enum:
                    - "okx"
                  description: "The exchange of the candles."
                  examples:
                    - "okx"
                spot_ticker:
                  type: "string"
                  pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
                  maxLength: 20
                  description: "The spot pair of the candles."
                  examples:
                    - "BTC-USDT"
                lookback_days:
                  type: "integer"
                  format: "int64"
                  minimum: 1
                  maximum: 1000
                  description: "Days of the lookback."
                  examples:
                    - 365
                windows:
                  type: "array"
                  maxItems: 6
                  description: "Each realized volatility window."
                  items:
                    $ref: "#/components/schemas/CryptoRealizedCone"
              examples:
                - exchange: "okx"
                  spot_ticker: "BTC-USDT"
                  lookback_days: 365
                  windows:
                    - window_days: 30
                      observations: 365
                      current_annualized_pct: 38.4
                      current_percentile_pct: 31.2
                      min_annualized_pct: 22.1
                      p10_annualized_pct: 27.4
                      p25_annualized_pct: 32.6
                      median_annualized_pct: 40.8
                      p75_annualized_pct: 49.2
                      p90_annualized_pct: 58.6
                      max_annualized_pct: 78.4
            - type: "null"
        history:
          type: "array"
          maxItems: 1000
          description: "DVOL bars, oldest first; empty without include_history."
          items:
            $ref: "#/components/schemas/CryptoDvolPoint"
        methodology:
          type: "object"
          description: "How DVOL, IV rank, realized volatility and the premium are computed."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - vrp: "Volatility risk premium: DVOL minus 30-day realized volatility."
      examples:
        - underlying: "BTC"
          index: "DVOL"
          source: "deribit"
          resolution: "1D"
          as_of: "2026-11-30T00:00:00.000Z"
          current:
            dvol_annualized_pct: 48.9
            time: "2026-11-30T00:00:00.000Z"
          iv_rank:
            - window_days: 365
              observations: 365
              complete: true
              iv_rank_pct: 38.42
              iv_percentile_pct: 44.5
              min_annualized_pct: 35.1
              max_annualized_pct: 72.8
          implied_vs_realized:
            dvol_annualized_pct: 48.9
            realized_vol_30d_annualized_pct: 38.4
            vrp_vol_pts: 10.5
            iv_rv_ratio: 1.273438
          realized_vol_cone:
            exchange: "okx"
            spot_ticker: "BTC-USDT"
            lookback_days: 365
            windows:
              - window_days: 30
                observations: 365
                current_annualized_pct: 38.4
                current_percentile_pct: 31.2
                min_annualized_pct: 22.1
                p10_annualized_pct: 27.4
                p25_annualized_pct: 32.6
                median_annualized_pct: 40.8
                p75_annualized_pct: 49.2
                p90_annualized_pct: 58.6
                max_annualized_pct: 78.4
          history:
            - time: "2026-11-29T00:00:00.000Z"
              dvol_open_annualized_pct: 49.1
              dvol_high_annualized_pct: 50.6
              dvol_low_annualized_pct: 47.8
              dvol_close_annualized_pct: 48.9
              realized_vol_30d_annualized_pct: 38.4
              vrp_vol_pts: 10.5
          methodology:
            vrp: "Volatility risk premium: DVOL minus 30-day realized volatility."
    CryptoBookDepth:
      type: "object"
      description: "The bar's depth within one range of the mid."
      additionalProperties: false
      required:
        - "range_pct"
        - "complete"
        - "bid_depth_base"
        - "ask_depth_base"
        - "bid_depth_usd"
        - "ask_depth_usd"
        - "imbalance_decimal"
        - "bid_ask_ratio"
      properties:
        range_pct:
          type: "number"
          format: "double"
          description: "The range around the mid, in percent."
          examples:
            - 1
        complete:
          type: "boolean"
          description: "Whether the stored book reached the range on both sides."
          examples:
            - true
        bid_depth_base:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Resting bids within the range, in the base."
          examples:
            - 412.18
        ask_depth_base:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Resting asks within the range, in the base."
          examples:
            - 365.4
        bid_depth_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Resting bids within the range, in US dollars."
          examples:
            - 39920000
        ask_depth_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Resting asks within the range, in US dollars."
          examples:
            - 35390000
        imbalance_decimal:
          type:
            - "number"
            - "null"
          format: "double"
          description: "(bids - asks) / (bids + asks) in dollars, from -1 to 1."
          examples:
            - 0.060151
        bid_ask_ratio:
          type:
            - "number"
            - "null"
          format: "double"
          description: "Bids over asks in dollars."
          examples:
            - 1.128
      examples:
        - range_pct: 1
          complete: true
          bid_depth_base: 412.18
          ask_depth_base: 365.4
          bid_depth_usd: 39920000
          ask_depth_usd: 35390000
          imbalance_decimal: 0.060151
          bid_ask_ratio: 1.128
    CryptoBookSlippage:
      type: "object"
      description: "What a market order of one size would have paid."
      additionalProperties: false
      required:
        - "order_size_usd"
        - "buy_slippage_bps"
        - "sell_slippage_bps"
      properties:
        order_size_usd:
          type: "number"
          format: "double"
          description: "The order size, in US dollars."
          examples:
            - 1000000
        buy_slippage_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "A buy's average price over the mid, in basis points; null when the book is thinner."
          examples:
            - 1.82
        sell_slippage_bps:
          type:
            - "number"
            - "null"
          format: "double"
          description: "A sell's average price under the mid, in basis points; null when the book is thinner."
          examples:
            - 2.04
      examples:
        - order_size_usd: 1000000
          buy_slippage_bps: 1.82
          sell_slippage_bps: 2.04
    CryptoBookImbalanceBar:
      type: "object"
      description: "One bar of stored book depth."
      additionalProperties: false
      required:
        - "time"
        - "time_milliseconds"
        - "reference_price_usd"
        - "buckets"
        - "samples"
        - "observed_reach_bid_pct"
        - "observed_reach_ask_pct"
        - "depth"
        - "slippage"
      properties:
        time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "The book bar's open."
          examples:
            - "2026-11-30T11:00:00.000Z"
        time_milliseconds:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 4102444800000
          description: "The book bar's open, in Unix milliseconds."
          examples:
            - 1796036400000
        reference_price_usd:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The bar's sample-weighted mid."
          examples:
            - 96851.2
        buckets:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100000
          description: "Stored buckets in the bar."
          examples:
            - 60
        samples:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 100000000
          description: "One-second book samples in the bar."
          examples:
            - 3600
        observed_reach_bid_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The farthest bid band stored in the bar's thinnest bucket, in percent."
          examples:
            - 4.8
        observed_reach_ask_pct:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The farthest ask band stored in the bar's thinnest bucket, in percent."
          examples:
            - 5.2
        depth:
          type: "array"
          maxItems: 6
          description: "Depth within each range asked for."
          items:
            $ref: "#/components/schemas/CryptoBookDepth"
        slippage:
          type: "array"
          maxItems: 4
          description: "Slippage of each order size asked for."
          items:
            $ref: "#/components/schemas/CryptoBookSlippage"
      examples:
        - time: "2026-11-30T11:00:00.000Z"
          time_milliseconds: 1796036400000
          reference_price_usd: 96851.2
          buckets: 60
          samples: 3600
          observed_reach_bid_pct: 4.8
          observed_reach_ask_pct: 5.2
          depth:
            - range_pct: 1
              complete: true
              bid_depth_base: 412.18
              ask_depth_base: 365.4
              bid_depth_usd: 39920000
              ask_depth_usd: 35390000
              imbalance_decimal: 0.060151
              bid_ask_ratio: 1.128
          slippage:
            - order_size_usd: 1000000
              buy_slippage_bps: 1.82
              sell_slippage_bps: 2.04
    CryptoBookImbalanceSummary:
      type: "object"
      description: "One range's imbalance over the answer's bars."
      additionalProperties: false
      required:
        - "range_pct"
        - "complete_bars"
        - "mean_imbalance_decimal"
        - "latest_imbalance_decimal"
      properties:
        range_pct:
          type: "number"
          format: "double"
          description: "The range of the summary, in percent of the mid."
          examples:
            - 1
        complete_bars:
          type: "integer"
          format: "int64"
          minimum: 0
          maximum: 1000
          description: "Bars whose stored book reached the range."
          examples:
            - 168
        mean_imbalance_decimal:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The mean imbalance over the complete bars."
          examples:
            - 0.0213
        latest_imbalance_decimal:
          type:
            - "number"
            - "null"
          format: "double"
          description: "The newest bar's imbalance in the range."
          examples:
            - 0.060151
      examples:
        - range_pct: 1
          complete_bars: 168
          mean_imbalance_decimal: 0.0213
          latest_imbalance_decimal: 0.060151
    CryptoOrderBookImbalanceResponse:
      type: "object"
      description: "The answer of GET /crypto/order-book/imbalance-history."
      additionalProperties: false
      required:
        - "ticker"
        - "exchange"
        - "market_type"
        - "interval"
        - "band_tier"
        - "start_time"
        - "end_time"
        - "as_of"
        - "size_unit"
        - "ranges_pct"
        - "order_sizes_usd"
        - "summary"
        - "bars"
        - "methodology"
      properties:
        ticker:
          type: "string"
          pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
          maxLength: 64
          description: "The book's instrument."
          examples:
            - "BTC-USDT"
        exchange:
          type: "string"
          enum:
            - "okx"
            - "binance"
            - "bybit"
          description: "The book's exchange."
          examples:
            - "okx"
        market_type:
          type: "string"
          enum:
            - "spot"
            - "swap"
          description: "The book's market."
          examples:
            - "spot"
        interval:
          type: "string"
          enum:
            - "1m"
            - "5m"
            - "15m"
            - "30m"
            - "1H"
            - "2H"
            - "4H"
            - "1D"
            - "1W"
          description: "The book bars."
          examples:
            - "1H"
        band_tier:
          type: "string"
          enum:
            - "1m"
            - "15m"
            - "1h"
          description: "The stored band tier the bars read."
          examples:
            - "1h"
        start_time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "The first book bar's open."
          examples:
            - "2026-11-23T12:00:00.000Z"
        end_time:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "The last book bar's close."
          examples:
            - "2026-11-30T12:00:00.000Z"
        as_of:
          type: "string"
          format: "date-time"
          maxLength: 40
          description: "When Darvas built the imbalance answer."
          examples:
            - "2026-11-30T12:00:00.000Z"
        size_unit:
          type: "string"
          enum:
            - "base"
          description: "The unit of the _base sizes."
          examples:
            - "base"
        ranges_pct:
          type: "array"
          maxItems: 6
          description: "The ranges around the mid, ascending."
          items:
            type: "number"
            format: "double"
          examples:
            - - 0.5
              - 1
              - 2
              - 5
        order_sizes_usd:
          type: "array"
          maxItems: 4
          description: "The market order sizes, ascending."
          items:
            type: "number"
            format: "double"
          examples:
            - - 100000
              - 1000000
        summary:
          type: "array"
          maxItems: 6
          description: "Each range's imbalance over the bars."
          items:
            $ref: "#/components/schemas/CryptoBookImbalanceSummary"
        bars:
          type: "array"
          maxItems: 1000
          description: "The book bars, oldest first."
          items:
            $ref: "#/components/schemas/CryptoBookImbalanceBar"
        methodology:
          type: "object"
          description: "How depth, imbalance and slippage are read from the stored book."
          maxProperties: 40
          additionalProperties:
            type: "string"
            pattern: "^[^\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]*$"
            maxLength: 2000
          examples:
            - imbalance: "(bid_depth_usd - ask_depth_usd) / (bid_depth_usd + ask_depth_usd), from -1 to 1."
      examples:
        - ticker: "BTC-USDT"
          exchange: "okx"
          market_type: "spot"
          interval: "1H"
          band_tier: "1h"
          start_time: "2026-11-23T12:00:00.000Z"
          end_time: "2026-11-30T12:00:00.000Z"
          as_of: "2026-11-30T12:00:00.000Z"
          size_unit: "base"
          ranges_pct:
            - 0.5
            - 1
            - 2
            - 5
          order_sizes_usd:
            - 100000
            - 1000000
          summary:
            - range_pct: 1
              complete_bars: 168
              mean_imbalance_decimal: 0.0213
              latest_imbalance_decimal: 0.060151
          bars:
            - time: "2026-11-30T11:00:00.000Z"
              time_milliseconds: 1796036400000
              reference_price_usd: 96851.2
              buckets: 60
              samples: 3600
              observed_reach_bid_pct: 4.8
              observed_reach_ask_pct: 5.2
              depth:
                - range_pct: 1
                  complete: true
                  bid_depth_base: 412.18
                  ask_depth_base: 365.4
                  bid_depth_usd: 39920000
                  ask_depth_usd: 35390000
                  imbalance_decimal: 0.060151
                  bid_ask_ratio: 1.128
              slippage:
                - order_size_usd: 1000000
                  buy_slippage_bps: 1.82
                  sell_slippage_bps: 2.04
          methodology:
            imbalance: "(bid_depth_usd - ask_depth_usd) / (bid_depth_usd + ask_depth_usd), from -1 to 1."
