borsa 0.2.0

High-level, pluggable market data API for Rust with multi-provider support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::Borsa;
use crate::borsa_router_method;

impl Borsa {
    borsa_router_method! {
        /// Fetch ESG sustainability scores and involvement flags for an instrument.
        ///
        /// Notes: scoring methodologies vary by provider; values are surfaced as-is
        /// without cross-provider normalization.
        method: sustainability(inst: &borsa_core::Instrument) -> borsa_core::EsgScores,
        provider: EsgProvider,
        accessor: as_esg_provider,
        capability: "esg",
        not_found: "esg",
        call: sustainability(inst)
    }
}