Skip to main content

Module openfigi

Module openfigi 

Source
Expand description

Security-identifier resolution via OpenFIGI (requires openfigi feature, keyless).

Resolves a CUSIP, ISIN, SEDOL, or FIGI to the instruments carrying it — the missing step for any dataset that identifies holdings by CUSIP rather than ticker, such as 13F filings.

Lives here rather than behind the Providers API because resolution is not tied to a symbol handle and maps onto no Capability, the same reasoning that puts edgar and fred at the crate root.

No API key is required; OPENFIGI_API_KEY is optional and only raises the quota.

use finance_query::openfigi;

// One CUSIP maps to every venue listing of the security.
for listing in openfigi::resolve_cusip("037833100").await? {
    println!("{:?} on {:?}", listing.ticker, listing.exchange_code);
}

Structs§

SecurityMapping
One instrument matching a security identifier.

Enums§

SecurityIdKind
The kind of identifier being resolved.

Functions§

resolve
Resolve an identifier of any supported SecurityIdKind.
resolve_cusip
Resolve a CUSIP to every instrument carrying it.
resolve_isin
Resolve an ISIN to every instrument carrying it.
resolve_many
Resolve many identifiers of the same kind in as few requests as possible (OpenFIGI accepts 10 per request without a key).
resolve_sedol
Resolve a SEDOL to every instrument carrying it.