Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:AI4Finance Foundation FinRobot compute ownership governance

From Leeroopedia
Knowledge Sources
Domains Finance, Governance, Deterministic_Compute
Last Updated 2026-10-18 00:00 GMT

Overview

Concrete tool for aggregating insider transactions, institutional holdings, proxy compensation, Schedule 13 alerts, and SOX-302 CEO certification into a typed OwnershipGovernanceAnalysis, provided by the FinRobot compute layer.

Description

The compute_ownership_governance function is the ownership/governance compute operator. It takes SEC provider payloads (insider, institutional, proxy, schedule13, cert) and builds a typed OwnershipGovernanceAnalysis with:

  • insider_transactions: From Form-4 data
  • institutional_holdings: From 13F data
  • proxy_compensation: From DEF 14A data
  • schedule13_alerts: From 13D/G data
  • CEO identity resolution: Three-tier authority hierarchy — SOX-302 cert (highest) > Form-4 officer title > proxy prose scraper. Applied last-wins so the highest-authority source prevails.
  • degraded_sections: Sections with no data are listed so the UI renders placeholders.

Usage

  • Equity_Research workflow (Step 5): Called after SEC data is fetched via _fetch_optional_sec for INSIDER_TRADES, INSTITUTIONAL_HOLDINGS, PROXY_STATEMENT, SCHEDULE_13, CEO_CERTIFICATION.
  • Import this when you need to aggregate SEC ownership/governance payloads into a structured analysis.

Code Reference

Source Location

  • Repository: FinRobot
  • File: finrobot_desktop/finrobot/engine/compute/operators/ownership.py

Signature

def compute_ownership_governance(
    *,
    insider_data: dict[str, Any] | None,
    institutional_data: dict[str, Any] | None,
    proxy_data: dict[str, Any] | None,
    schedule13_data: dict[str, Any] | None = None,
    cert_data: dict[str, Any] | None = None,
) -> OwnershipGovernanceAnalysis:
    """Aggregate SEC ownership/governance payloads into a typed analysis.

    CEO identity is resolved through a three-tier authority hierarchy:
    SOX-302 cert > Form-4 officer title > proxy prose scraper.

    Sections with no data are marked as degraded.
    """

Import

from finrobot.engine.compute.operators.ownership import compute_ownership_governance

I/O Contract

Inputs

Name Type Required Description
insider_data dict Yes (nullable) Form-4 insider transactions payload
institutional_data dict Yes (nullable) 13F institutional holdings payload
proxy_data dict Yes (nullable) DEF 14A proxy compensation payload
schedule13_data dict No 13D/G ownership change payload
cert_data dict No SOX-302 CEO certification payload

Outputs

Name Type Description
OwnershipGovernanceAnalysis OwnershipGovernanceAnalysis insider_transactions, institutional_holdings, proxy_compensation, schedule13_alerts, degraded_sections, degraded_reasons

Usage Examples

Aggregate Ownership & Governance

from finrobot.engine.compute.operators.ownership import compute_ownership_governance

analysis = compute_ownership_governance(
    insider_data=insider_payload,
    institutional_data=institutional_payload,
    proxy_data=proxy_payload,
    schedule13_data=schedule13_payload,
    cert_data=cert_payload,
)
print(f"Insider transactions: {len(analysis.insider_transactions)}")
print(f"CEO: {analysis.proxy_compensation.ceo_name}")
print(f"Degraded: {analysis.degraded_sections}")

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment