Oxford Ledge API API

Oxford Ledge — REST API for equities, BDCs, fundamentals, macro, filings, and learning content. See the narrative [Developer Guide](/docs/guide) for authentication, rate limits, and SDK usage.

GitHub OpenAPI

Operations 598

Showing the first 250 of 598. The full set is in the contract, and via get_provider_operations.

GET /healthcheck Healthcheck Liveness #
HEAD /healthcheck Healthcheck Liveness #
GET /api/health/deep Api Health Deep Public #
GET /api/health Api Health #
GET /api/data-status Api Data Status #
GET /api/health/providers Api Health Providers #
GET /api/health/running-job Api Health Running Job #
GET /api/data Consolidated ticker snapshot (price, metrics, debt, capital allocation, sparkline) #
GET /api/tickers Get Tickers #
GET /api/data-coverage Data Coverage #
GET /api/ticker/{ticker}/coverage Api Ticker Coverage #
GET /api/cache-stats Cache Stats #
GET /api/insider-summary Insider Summary #
GET /api/fund-search Fund Search #
GET /api/fund-holdings Fund Holdings #
GET /api/cross-validate Cross Validate #
POST /api/metrics Ingest Metrics #
GET /api/v1/schema Api Schema #
GET /api/schema Api Schema #
GET /api/ Api Schema #
GET /api Api Schema #
GET /api/auth/challenge Auth Challenge #
GET /api/auth/me Auth Me #
POST /api/auth/accept-terms Accept Terms #
POST /api/auth/complete-age-verification Complete Age Verification #
GET /api/auth/oauth-config Oauth Config #
GET /api/auth/oauth-state Oauth State #
GET /auth/google/callback Google Oauth Callback #
GET /auth/github/callback Github Oauth Callback #
GET /api/billing/trial-status Billing Trial Status #
GET /api/auth/refresh-tier Auth Refresh Tier #
POST /api/auth/register Auth Register #
GET /api/auth/verify-email Auth Verify Email #
POST /api/auth/verify-email Auth Verify Email Confirm #
GET /verify-email Serve Verify Email #
POST /api/auth/verify-email/preview Auth Verify Email Preview #
POST /api/auth/login Auth Login #
POST /api/auth/logout Auth Logout #
POST /api/auth/forgot-password Forgot Password #
POST /api/auth/reset-password Reset Password #
POST /api/auth/resend-reset Resend Reset #
POST /api/auth/resend-verify Resend Verify #
POST /api/user/parental-consent Submit Parental Consent #
POST /api/user/parental-consent/confirm Approve Parental Consent #
GET /api/billing/tiers Billing Tiers #
GET /api/billing/tier-endpoints Billing Tier Endpoints #
GET /api/billing/usage Billing Usage #
GET /api/billing/invoices Billing Invoices #
GET /api/billing/usage/breakdown Billing Usage Breakdown #
GET /api/billing/credit-history Billing Credit History #
GET /api/billing/projections Billing Projections #
GET /api/billing/agent-usage Billing Agent Usage #
GET /api/billing/agent-plan Billing Agent Plan #
POST /api/billing/create-checkout Billing Create Checkout #
POST /api/billing/agent-plan/checkout Billing Agent Plan Checkout #
POST /api/billing/funnel-event Billing Funnel Event #
POST /api/billing/portal Billing Portal #
POST /api/billing/cancel Billing Cancel #
POST /api/billing/resume Billing Resume #
GET /api/billing/subscription-status Billing Subscription Status #
POST /api/billing/set-cap Billing Set Cap #
POST /api/billing/add-credits Billing Add Credits #
POST /api/billing/trial-use Billing Trial Use #
GET /api/team/members Team Members #
POST /api/team/create Team Create #
POST /api/team/invite Team Invite #
POST /api/team/accept Team Accept #
POST /api/team/remove Team Remove #
POST /api/auth/google Auth Google Post #
POST /api/auth/github Auth Github Post #
GET /api/auth/age-check Auth Age Check #
POST /api/waitlist/broker-sync Waitlist Broker Sync #
GET /api/billing/checkout-status Billing Checkout Status #
POST /api/billing/agent-plan/overage Billing Agent Plan Overage #
GET /api/ai/providers Ai Providers #
GET /api/ai/quota Ai Quota #
POST /api/ai/store-key Ai Store Key #
POST /api/ai/test-key Ai Test Key #
DELETE /api/ai/delete-key Ai Delete Key #
POST /api/ai/chat Ai Chat #
GET /api/sync/pull Sync Pull #
POST /api/sync/push Sync Push #
GET /api/settings/keys Settings Keys Get #
POST /api/settings/keys Settings Keys Post #
POST /api/settings/keys/test Settings Keys Test #
GET /api/settings/email Settings Email Get #
POST /api/settings/email Settings Email Post #
GET /api/settings/analytics Settings Analytics Get #
POST /api/settings/analytics Settings Analytics Post #
GET /api/settings/email-prefs Settings Email Prefs Get #
POST /api/settings/email-prefs Settings Email Prefs Post #
POST /api/user/ai-consent Ai Consent Record #
GET /api/user/age-status User Age Status #
GET /api/user/preferences/ticker-modules Ticker Module Prefs Get #
POST /api/user/preferences/ticker-modules Ticker Module Prefs Post #
GET /api/user/export User Export #
POST /api/user/delete User Delete #
POST /api/email/unsubscribe Email Unsubscribe #
GET /api/email/unsubscribe Email Unsubscribe #
GET /api/fundamentals-pit Fundamentals Pit #
GET /api/fundamentals-history Fundamentals History #
GET /api/fundamentals-pit/universe Fundamentals Pit Universe #
GET /api/fundamentals-pit/stats Fundamentals Pit Stats #
GET /api/settings/email/unsubscribe Settings Email Unsubscribe #
POST /api/email/preview-daily Email Preview Daily #
POST /webhooks/stripe Stripe Webhook #
GET /api/settings/deletion-status Deletion Status #
POST /api/settings/cancel-deletion Cancel Deletion #
GET /api/settings/sign-in-methods Sign In Methods #
POST /api/settings/sign-in-methods/remove Remove Sign In Method #
GET /api/fred Treasury yield curve + HY/IG credit spreads #
GET /api/yield-curve-history Api Yield Curve History #
GET /api/finviz Api Finviz #
GET /api/ticker/as-of Point-in-time ticker snapshot as of a given date (DF-14) #
GET /api/indicator-history Api Indicator History #
GET /api/index-movers Api Index Movers #
GET /api/indicators Market indicators grouped by asset class #
GET /api/global-markets Global markets snapshot (indexes, FX, commodities, crypto) #
GET /api/headlines Market news headlines #
GET /api/options-sentiment Api Options Sentiment #
GET /api/market-earnings Api Market Earnings #
GET /api/sector-breakdown Api Sector Breakdown #
GET /api/crawler-tickers Api Crawler Tickers #
GET /api/backfill/status Api Backfill Status #
POST /api/deep-crawl/start Api Deep Crawl Start #
GET /api/stream Sse Stream #
GET /api/watchlist Authenticated user's watchlist with (delayed) price enrichment #
POST /api/watchlist Api Watchlist Post #
GET /api/ticker-notes Api Ticker Notes Get #
POST /api/ticker-notes Api Ticker Notes Post #
GET /api/ticker-annotations Api Annotations Get #
POST /api/ticker-annotations Api Annotations Post #
DELETE /api/ticker-annotations Api Annotations Delete #
GET /api/portfolio-positions Portfolio positions with P&L #
POST /api/portfolio-positions Api Portfolio Positions Post #
DELETE /api/portfolio-positions Api Portfolio Positions Delete #
GET /api/portfolio-history Api Portfolio History #
GET /api/portfolio/benchmark Api Benchmark #
GET /api/portfolio-analytics/risk Api Portfolio Risk #
GET /api/portfolio/briefing Api Portfolio Briefing #
GET /api/portfolio/lookthrough ETF holdings lookthrough — aggregate sector/geo exposure #
GET /api/peers Api Peers Get #
POST /api/peers/set Api Peers Set #
GET /api/calendar Earnings + economic calendar events #
GET /api/dividend-forecast Dividend yield + forward calendar for a ticker #
GET /api/insider-activity Insider transaction history (Form 4) #
GET /api/price-history Daily OHLCV price history (web app charts only) #
GET /api/ticker-search Free-text ticker / company name search #
POST /api/portfolio/import Api Portfolio Import #
POST /api/portfolio/import-csv Api Portfolio Import Csv Preview #
POST /api/portfolio/import-csv/commit Api Portfolio Import Csv Commit #
POST /api/portfolio/post-import-fetch Api Portfolio Post Import Fetch #
GET /api/portfolio/brokers Api Brokers List #
POST /api/portfolio/broker-connect Api Broker Connect #
GET /api/portfolio/broker-callback Api Broker Callback #
POST /api/portfolio/broker-sync Api Broker Sync #
GET /api/portfolio/sync-tickers Api Portfolio Sync Tickers Get #
POST /api/portfolio/sync-tickers Api Portfolio Sync Tickers Post #
GET /api/notes/sync Api Notes Sync Get #
POST /api/notes/sync Api Notes Sync Post #
POST /api/analytics/event Api Analytics Event #
POST /api/analytics/funnel Api Analytics Funnel #
GET /api/paper/portfolio Api Get Paper Portfolio #
POST /api/paper/portfolio Api Create Paper Portfolio #
POST /api/paper/order Api Place Paper Order #
GET /api/paper/challenges Api List Paper Challenges #
GET /api/paper/challenges/{slug} Api Get Paper Challenge #
GET /api/ai/explain-position Api Explain Paper Position #
GET /api/alerts List the authenticated user's price alerts #
POST /api/alerts Create a new price alert (tier-quota + daily-cap gated) #
DELETE /api/alerts/{alert_id} Cancel a price alert (soft-delete; row persists for DSAR + history) #
GET /api/alerts/unread List the user's recent triggered+unread price alerts (bell-badge) #
POST /api/alerts/{alert_id}/read Mark a triggered alert event as read (clears bell-badge row) #
GET /api/13f/follows List the authenticated user's followed 13F filers #
POST /api/13f/follows Follow a 13F filer (free with account, capped) #
DELETE /api/13f/follows/{cik} Unfollow a 13F filer #
GET /api/calendar-events List the authenticated user's calendar events #
POST /api/calendar-events Create a calendar event (free on every tier; daily-create cap) #
PATCH /api/calendar-events/{event_id} Edit a calendar event (owner-scoped partial update) #
DELETE /api/calendar-events/{event_id} Cancel a calendar event (soft-delete; row persists for DSAR) #
GET /api/notifications Api Notifications List #
POST /api/notifications/{notification_id}/read Api Notifications Mark Read #
POST /api/notifications/mark-all-read Api Notifications Mark All Read #
DELETE /api/notifications/{notification_id} Api Notifications Delete #
GET /api/screener Api Screener #
GET /api/screener/export.csv Api Screener Export Csv #
GET /api/screener/run Api Screener Run #
GET /api/screener/status Api Screener Status #
GET /api/random-ticker Api Random Ticker #
GET /api/fundamentals Api Fundamentals #
GET /api/estimate-history Api Estimate History #
GET /api/company-financials Api Company Financials #
GET /api/company-financials/search Api Company Financials Search #
GET /api/company-financials/summary Api Company Financials Summary #
GET /api/sensitivity Api Sensitivity #
GET /api/sensitivity/epv Api Sensitivity Epv #
GET /api/implied-assumptions Api Implied Assumptions #
GET /api/borrower-descriptions Api Borrower Descriptions #
GET /api/recovery-rates Api Recovery Rates #
GET /api/populate-descriptions Api Populate Descriptions #
GET /api/capital-allocation Api Capital Allocation #
GET /api/valuation-history Api Valuation History #
GET /api/proxy Api Proxy #
GET /api/analyst-estimates Api Analyst Estimates #
GET /api/portfolio-analytics Api Portfolio Analytics #
GET /api/chart-data Api Chart Data #
GET /api/share-card Api Share Card #
GET /api/sector-benchmarks Api Sector Benchmarks #
GET /api/segments Api Segments #
GET /api/exec-comp Api Exec Comp #
GET /api/export Api Export Csv #
GET /api/export/xlsx Api Export Xlsx #
GET /api/export/report Api Export Report #
GET /api/short-interest Api Short Interest #
GET /api/insiders Api Insiders #
GET /api/insiders/{ticker}/cluster Api Insiders Cluster #
GET /api/insiders/clusters/recent Api Insiders Clusters Recent #
GET /api/options Api Options #
GET /api/options/unusual Api Options Unusual #
GET /api/institutional-holders Api Institutional Holders #
GET /api/institutional-holders/changes Api Ownership Changes #
GET /api/institutional-holders/timeseries Api Ownership Timeseries #
GET /api/fund-holdings/timeseries Api Fund Holdings Timeseries #
GET /api/institutional-confluence Api Institutional Confluence #
GET /api/institutional-holders/consensus Api Institutional Consensus #
GET /api/fdic/regulatory Api Fdic Regulatory #
GET /api/signals/value-score/history Api Value Score History #
GET /api/signals/value-score/backtest Api Value Score Backtest #
GET /api/nport/dispersion Api Nport Dispersion #
GET /api/nport/top-dispersions Api Nport Top Dispersions #
GET /api/nport/markdown Api Nport Markdown #
GET /api/nport/coverage Api Nport Coverage #
GET /api/industry/federal-contractors Api Industry Federal Contractors #
GET /api/industry/banks Api Industry Banks #
GET /api/industry/kpi-roster Api Industry Kpi Roster #
GET /api/industry/kpi-history Api Industry Kpi History #
GET /api/industry/airline-kpis Api Industry Airline Kpis #
GET /api/industry/homebuilder-kpis Api Industry Homebuilder Kpis #
GET /api/industry/telecom-kpis Api Industry Telecom Kpis #
GET /api/industry/managed-care-kpis Api Industry Managed Care Kpis #
GET /api/industry/reit-kpis Api Industry Reit Kpis #
GET /api/industry/capital-markets-kpis Api Industry Capital Markets Kpis #
GET /api/industry/apparel-kpis Api Industry Apparel Kpis #
GET /api/industry/bank-kpis Api Industry Bank Kpis #
GET /api/industry/beverage-kpis Api Industry Beverage Kpis #
GET /api/industry/discount-stores-kpis Api Industry Discount Stores Kpis #
GET /api/industry/insurance-kpis Api Industry Insurance Kpis #
GET /api/industry/casino-kpis Api Industry Casino Kpis #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/oxfordledge-com:oxford-ledge-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

oxfordledge-com-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Oxford Ledge API
  description: Oxford Ledge — REST API for equities, BDCs, fundamentals, macro, filings, and learning
    content. See the narrative [Developer Guide](/docs/guide) for authentication, rate limits, and SDK
    usage.
  version: 1.0.0
paths:
  /healthcheck:
    get:
      summary: Healthcheck Liveness
      description: Liveness probe — returns immediately, no I/O. Used by Render.
      operationId: healthcheck_liveness_healthcheck_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    head:
      summary: Healthcheck Liveness
      description: Liveness probe — returns immediately, no I/O. Used by Render.
      operationId: healthcheck_liveness_healthcheck_head
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/health/deep:
    get:
      summary: Api Health Deep Public
      description: 'Deep health probe, MONITOR-facing body: {status, checks: {name:

        ok|degraded|error}, release}. Runs the full probe (so every check and

        every escalation log line still happens) and returns only the projection.

        The per-check detail is admin-only.


        Do NOT point Render''s healthcheck at this -- it bypasses the 60s cache

        and can hammer PG (that is what /api/health is for).'
      operationId: api_health_deep_public_api_health_deep_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthDeepPublicResponse'
  /api/health:
    get:
      summary: Api Health
      description: 'Cached public health probe. ALWAYS cheap — never blocks on outbound.


        That claim is now structural rather than aspirational: a stale provider

        cache triggers a background refresh that this request does not await, so

        the response time is independent of third-party latency. Before

        2026-08-19 the refresh WAS awaited, and its ~8s worst case exceeded

        Render''s 5s health-check budget.


        Returns 503 until lifespan startup completes (CIK map loaded, billing

        initialized, seed financials ready). Render health-check uses this

        endpoint; pre-lifespan 200s caused routing to partially-initialized

        workers for 5-15s post-deploy (S49 Performance P1).'
      operationId: api_health_api_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
  /api/data-status:
    get:
      summary: Api Data Status
      description: 'Public data freshness: row counts + latest timestamps per pipeline.


        Backs the /data-status page. Cached 60s per dyno. Safe to expose — no

        PII, no secrets, only aggregate metadata.'
      operationId: api_data_status_api_data_status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataStatusResponse'
  /api/health/providers:
    get:
      summary: Api Health Providers
      description: "Public provider quota status — drives the degraded-UX banner.\n\nResponse shape (stable;\
        \ frontend reads this verbatim):\n  {\n    providers: {\n      fmp: {status, calls_today, daily_limit,\
        \ pct_used},\n      finnhub: {status, calls_today?, daily_limit?},\n    },\n    any_degraded:\
        \ bool,\n    any_exhausted: bool,\n  }\n\nStatus thresholds (per provider):\n  - exhausted: calls_today\
        \ >= daily_limit (hard 429s expected)\n  - degraded:  calls_today >= 0.85 * daily_limit (banner\
        \ trigger)\n  - ok:        below 0.85"
      operationId: api_health_providers_api_health_providers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderQuotaResponse'
  /api/health/running-job:
    get:
      summary: Api Health Running Job
      description: 'Is a declared long-running shell job alive on this instance?


        LIVENESS, added 2026-09-22. /persistent survives the container that wrote

        the declaration, so a pid alone proves nothing: after the deploy that

        killed the v49 fleet reparse, this endpoint still served `running: true`

        for pid 4115 on a pod where that pid does not exist, and the pre-push hook

        refused the RECOVERY push until an operator removed the file by hand.

        services/running_job.py compares the declaration''s recorded writer

        (release, host, pid start) against THIS instance; a provably dead writer

        reads dead=True / running=False / stale=True, so even a pre-2026-09-22

        hook that only knows `running` and `stale` degrades to its warn path.

        An UNPROVABLE liveness is never treated as dead — it falls back to the

        TTL, and says which it did in `liveness`.'
      operationId: api_health_running_job_api_health_running_job_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunningJobResponse'
  /api/data:
    get:
      tags:
      - Market Data
      summary: Consolidated ticker snapshot (price, metrics, debt, capital allocation, sparkline)
      description: Full ticker data snapshot. The main data endpoint.
      operationId: get_ticker_data_api_data_get
      parameters:
      - name: ticker
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Ticker
      - name: symbol
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Symbol
      - name: nocache
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Nocache
      - name: fields
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Fields
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TickerDataResponse'
        '400':
          description: Missing or invalid ticker parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Ticker not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Invalid ticker format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Upstream data provider error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Data temporarily unavailable; retry after Retry-After seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '504':
          description: Upstream data provider timed out; retry after Retry-After seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/tickers:
    get:
      summary: Get Tickers
      description: List all loaded tickers.
      operationId: get_tickers_api_tickers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  type: string
                type: array
                title: Response Get Tickers Api Tickers Get
  /api/data-coverage:
    get:
      summary: Data Coverage
      description: Show data source coverage for a ticker.
      operationId: data_coverage_api_data_coverage_get
      parameters:
      - name: ticker
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Ticker
      - name: symbol
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Symbol
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataCoverageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/ticker/{ticker}/coverage:
    get:
      summary: Api Ticker Coverage
      description: 'Return coverage manifest for a single ticker: price history depth,

        fundamentals freshness, and a 4-tier classification (full / partial /

        minimal / none). Cached 1-hour by the browser since coverage is a

        daily-refresh artifact, not a live metric.'
      operationId: api_ticker_coverage_api_ticker__ticker__coverage_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TickerCoverageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/cache-stats:
    get:
      summary: Cache Stats
      description: Cache statistics across all layers.
      operationId: cache_stats_api_cache_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CacheStatsResponse'
  /api/insider-summary:
    get:
      tags:
      - Analysis
      summary: Insider Summary
      description: 'Insider transaction summary — PG-first (SEC Form 4), Finnhub fallback.


        2026-05-16 P1 incident fix: this endpoint (the primary

        `#insider-activity` panel''s source via peer-view) was Finnhub-ONLY.

        When `FINNHUB_API_KEY` is unset/quota-limited/degraded it returned

        empty or name-less rows → the panel rendered blank ("unknown" to the

        user) while 384,118 rich, 100%-named, role-tagged Form 4 rows sat

        UNUSED in `form4_transactions`. The `e8ac1dc4` repoint fixed

        `/api/insiders`/SSR/digest but NOT this Finnhub path. Per

        `feedback_local_data_fallback` (PG canonical when the API is

        incomplete) we now read PG first via the (form4-backed)

        `pg_get_insider_activity` and only fall back to Finnhub when PG has

        nothing for the ticker. Emits `position` (OWNER directive — name is

        signal-irrelevant; never blank) alongside the peer-view wire shape

        (`{name,type,date,shares,value}` + `netAmount`); `type` is "Buy"/"Sell" for

        P/S only (peer-view tests `tx.type.includes(''buy'')`); every other code

        carries its Form 4 word and never moves `netAmount` (CHAOS 2026-10-11 MF-1).'
      operationId: insider_summary_api_insider_summary_get
      parameters:
      - name: ticker
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Ticker
      - name: symbol
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Symbol
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsiderSummaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/fund-search:
    get:
      summary: Fund Search
      description: "Search for institutional fund 13F filers — LOCAL-FIRST.\n\n13F CYCLE 2026-06-11 Batch-1\
        \ fix 1 (CHAOS F-1+F-3, GTM option A).\nThe original implementation phrase-quoted the input into\
        \ LIVE SEC\nEDGAR full-text search over 13F-HR filings and returned hits[0] by\nFTS relevance\
        \ — \"ARK\" (a dictionary word) resolved to a dormant\nfiler whose filings mention \"ark\", with\
        \ the CORRECT ARK Investment\nManagement (CIK 0001697748) sitting unconsulted in our own curated\n\
        universe. Fourth branded-common-word contamination incident\n(feedback_cusip_ticker_fuzzy_cross_issuer\
        \ class).\n\nResolution order:\n  1. pg_search_filers_by_name — our curated CIK-bound universe\n\
        \     (fund_holdings_snapshot ∪ featured_filers), prefix-ranked.\n  2. EDGAR FTS only on ZERO\
        \ local hits — re-ranked by file_date\n     desc with a ~2-quarter recency floor so dormant filers\
        \ never\n     rank above active ones."
      operationId: fund_search_api_fund_search_get
      parameters:
      - name: q
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Q
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundSearchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/fund-holdings:
    get:
      summary: Fund Holdings
      description: 13F holdings for a given fund CIK. `max_holdings` caps the rows returned (1-500, default
        50). Rows carry `ticker` (resolved symbol, else null) and `issuer_name`; no `cusip` is served.
      operationId: fund_holdings_api_fund_holdings_get
      parameters:
      - name: cik
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Cik
      - name: max_holdings
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
          title: Max Holdings
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundHoldingsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/cross-validate:
    get:
      summary: Cross Validate
      description: Cross-validate data across Finnhub, FMP, and cache.
      operationId: cross_validate_api_cross_validate_get
      parameters:
      - name: ticker
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Ticker
      - name: symbol
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Symbol
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrossValidateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/metrics:
    post:
      summary: Ingest Metrics
      description: 'Receive telemetry beacons from the client (web vitals, fetch metrics, nav timing).


        P3-31: CSRF protection intentionally omitted. This endpoint is called via

        navigator.sendBeacon() which does not support custom request headers (including

        X-CSRF-Token). The endpoint is telemetry-only (no state mutations, no PII writes),

        and cross-origin requests are blocked by origin allowlist check below.'
      operationId: ingest_metrics_api_metrics_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /api/v1/schema:
    get:
      summary: Api Schema
      description: Machine-readable endpoint catalog.
      operationId: api_schema_api_v1_schema_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSchemaResponse'
  /api/schema:
    get:
      summary: Api Schema
      description: Machine-readable endpoint catalog.
      operationId: api_schema_api_schema_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSchemaResponse'
  /api/:
    get:
      summary: Api Schema
      description: Machine-readable endpoint catalog.
      operationId: api_schema_api__get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSchemaResponse'
  /api:
    get:
      summary: Api Schema
      description: Machine-readable endpoint catalog.
      operationId: api_schema_api_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSchemaResponse'
  /api/auth/challenge:
    get:
      tags:
      - auth
      - billing
      summary: Auth Challenge
      description: 'Issue a proof-of-work challenge for registration.


        Returns a 32-char hex challenge valid for 5 minutes.

        Client must find a nonce such that SHA256(challenge + nonce) starts with ''000''.


        Also issues an anonymous CSRF token (stored in `ol_csrf` cookie + returned

        in body) so the subsequent /api/auth/register POST can be protected by the

        same `validate_csrf` dependency used everywhere else. Prior to this, register

        relied on PoW + rate limit only, leaving it inconsistent with the rest of

        the state-changing endpoints.'
      operationId: auth_challenge_api_auth_challenge_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthActionResponse'
  /api/auth/me:
    get:
      tags:
      - auth
      - billing
      summary: Auth Me
      description: 'Return current authenticated user info, tier, and CSRF token.


        Mirrors the existing _handle_auth_me logic exactly:

        - Checks trial status via billing module

        - Returns tier (free / plus_trial / plus / pro / etc.)

        - Extracts CSRF token from cookie for JS to use in X-CSRF-Token header


        Also issues an anon CSRF token to unauthenticated callers — SSR

        pages (e.g. /learn/<course>/<module>/) need this so the quiz-submit

        flow can satisfy `validate_csrf` before sign-in. Symmetric to

        `/api/auth/challenge`.'
      operationId: auth_me_api_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthMeResponse'
  /api/auth/accept-terms:
    post:
      tags:
      - auth
      - billing
      summary: Accept Terms
      description: 'User-initiated re-acceptance of the current TERMS_VERSION.


        ROADMAP P2 (2026-04-24). Called by the frontend

        terms_reacceptance modal after the user clicks "I accept the

        updated terms." Updates `users.terms_version` + `terms_accepted_at`

        and writes an audit-log row so legal can prove the user

        consented to a specific version.


        The CSRF dependency + require_auth dependency together ensure

        only the authenticated user can re-accept (not an XSRF or

        impersonation attack). No request body — the version is read

        server-side from `OL_TERMS_VERSION` so the client can''t lie

        about which version they''re accepting.'
      operationId: accept_terms_api_auth_accept_terms_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthActionResponse'
  /api/auth/complete-age-verification:
    post:
      tags:
      - auth
      - billing
      summary: Complete Age Verification
      description: 'COPPA age-gate completion for OAuth-created users (v34).


        OAuth signup skips the DOB collection that /api/auth/register enforces,

        so new OAuth users land with oauth_age_pending=TRUE + date_of_birth=NULL.

        This endpoint collects DOB (+ parental consent email for minors) and

        flips the flag, matching the /register path''s compliance posture.'
      operationId: complete_age_verification_api_auth_complete_age_verification_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthActionResponse'
  /api/auth/oauth-config:
    get:
      tags:
      - auth
      - billing
      summary: Oauth Config
      description: Return OAuth provider configuration (client IDs only, no secrets).
      operationId: oauth_config_api_auth_oauth_config_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthActionResponse'
  /api/auth/oauth-state:
    get:
      tags:
      - auth
      - billing
      summary: Oauth State
      description: 'Generate a CSRF state token for the OAuth flow.


        The client includes this state in the OAuth authorize URL;

        the server validates it on callback to prevent CSRF.'
      operationId: oauth_state_api_auth_oauth_state_get
      parameters:
      - name: provider
        in: query
        required: false
        schema:
          type: string
          default: github
          title: Provider
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthActionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/google/callback:
    get:
      tags:
      - auth
      - billing
      summary: Google Oauth Callback
      description: 'Google OAuth authorization code callback.


        Google redirects here after user authorizes. We exchange the code

        server-side, create/find the user, set session cookies, and redirect

        to the dashboard.'
      operationId: google_oauth_callback_auth_google_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code
      - name: state
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: State
      - name: error
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Error
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/github/callback:
    get:
      tags:
      - auth
      - billing
      summary: Github Oauth Callback
      description: GitHub OAuth authorization code callback.
      operationId: github_oauth_callback_auth_github_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code
      - name: state
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/billing/trial-status:
    get:
      tags:
      - auth
      - billing
      summary: Billing Trial Status
      description: 'Return feature trial usage from the feature_trials table.


        Returns {used, remaining, max} for the given feature.

        Unauthenticated users get full trial allowance (encouraging signup).'
      operationId: billing_trial_status_api_billing_trial_status_get
      parameters:
      - name: feature
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Feature
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingActionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/auth/refresh-tier:
    get:
      tags:
      - auth
      - billing
      summary: Auth Refresh Tier
      description: 'Re-read the user''s tier from PG and refresh the session cookie.


        CR-H5 (2026-04-30): After Stripe Checkout the webhook can take 2–5s to

        update the user''s tier. The frontend polls this endpoint (up to 10×, 1s

        apart) until `tier` changes from the pre-checkout value, then dispatches

        `ol-tier-refreshed` so TierGate re-evaluates gates without a page reload.


        This is a read-only GET — no CSRF required (idempotent, no state change

        on the server beyond reading PG). The session cookie is refreshed in-place

        when the tier changes so subsequent /api/auth/me calls reflect the new tier

        without the client needing a full logout/login cycle.


        GET is exempt from validate_csrf per the auth-route convention: read-only

        endpoints that carry no state mutation are guarded by require_auth (401)

        rather than CSRF (403). See `auth_me` + `billing_trial_status` siblings

        for prior art.'
      operationId: auth_refresh_tier_api_auth_refresh_tier_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TierRefreshResponse'
  /api/auth/register:
    post:
      tags:
      - auth
      - billing
      summary: Auth Register
      description: 'User registration with proof-of-work verification.


        Expects JSON body with: email, password, challenge, solution,

        plus optional: displayName, dateOfBirth, parentalConsentEmail,

        experience, useCase, referralSource, timezone.


        The PoW challenge must have been obtained via GET /api/auth/challenge,

        and SHA256(challenge + solution) must start with ''000''.'
      operationId: auth_register_api_auth_register_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthActionResponse'
  /api/auth/verify-email:
    get:
      tags:
      - auth
      - billing
      summary: Auth Verify Email
      description: 'The emailed verification link. A GET that CHANGES NOTHING.


        2026-11-15 (external security review HIGH, account pre-hijacking): this

        GET used to mark the address verified, clear the token and sign the

        visitor in. Mail scanners and link prefetchers fetch links on their own,

        so an address could be verified with nobody choosing to -- including an

        address someone else had registered with a password of their choosing,

        which a later OAuth sign-in by the real owner then linked onto.


        It now only checks the token (read-only: purpose prefix, lookup, the

        account/address binding) and redirects to the /verify-email confirm page,

        where the person presses a button that POSTs the token

        (routes/routes_auth_verify_fastapi.py). That POST is the only thing that

        verifies, and it signs the person in. A bad or expired token redirects to

        the same verify_error reasons as before.'
      operationId: auth_verify_email_api_auth_verify_email_get
      parameters:
      - name: token
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Token
      - name: next
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Next
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthActionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - auth
      - billing
      summary: Auth Verify Email Confirm
      description: 'Verify an address by redeeming its one-time token. JSON body

        {token, next?}. On success: the address is verified, a session is

        started (best-effort, as the old GET did -- EXT-AUDIT 4.1) and the body

        carries the `redirect` the page should follow.'
      operationId: auth_verify_email_confirm_api_auth_verify_email_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyEmailConfirmResponse'
  /verify-email:
    get:
      tags:
      - auth
      - billing
      summary: Serve Verify Email
      operationId: serve_verify_email_verify_email_get
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
  /api/auth/verify-email/preview:
    post:
      tags:
      - auth
      - billing
      summary: Auth Verify Email Preview
      description: 'The address a verify token confirms. READ-ONLY.


        OWNER ruling T2 (2026-11-16; CISO+CHAOS P2 login CSRF). Someone can mail

        a victim the verify link of an account THEY own; pressing the button

        would sign the victim in to it. The confirm page calls this first and

        shows the address, and its button stays disabled until it has. The same

    

# --- truncated at 32 KB (1099 KB total) ---
# Full source: https://artifacts.apis.io/oxfordledge-com/openapi/_original/oxfordledge-com-api-openapi.yml