- What does this fund actually own?
- Which funds own this ticker, and how did that change?
This is the only join between funds and the quote tape, and it is CVM’s own
published identifier — never a name match.
POST /rpc/fund_holdings
Give exactly one ofp_cnpj or p_ticker. Neither would be an unbounded
scan of every fund ever filed; both is ambiguous. Either mistake is a 22023
error naming which one you made, not a silently narrowed query.
Response
POST /rpc/fund_debentures — the corporate-credit edge
CDA block 6 publishes, per fund and month, each debenture position with the issuer’s own CPF/CNPJ — so which funds hold this issuer’s paper? is answerable with no bridge table and no name match. It is a separate function, not a thirdp_kind, on purpose. A debenture has
no CD_ATIVO: its identity is (issuer, maturity, rate structure), and two
series of one issuer maturing the same day at different coupons are different
securities holding different money. Forcing that into held_id / held_name
would collapse them into indistinguishable rows.
Give exactly one of p_cnpj or p_issuer:
An unknown ticker raises
22023; an unknown CNPJ simply has no rows — the
warehouse cannot tell an issuer it has never seen from one that has no
debentures held.