INNER CODE UNIT · Rust

get_fundamental_data

bitbytelabio/tradingview-rs · src/fundamental/mod.rs:88

pub async fn get_fundamental_data(
    registry: &FundamentalRegistry,
    fund_id: &str,
    period: Option<&crate::models::FinancialPeriod>,
    symbol: &str,
    exchange: &str,
    interval: crate::models::Interval,
    num_bars: u64,
    auth_token: Option<&str>,
    server: crate::live::models::DataServer,
) -> crate::Result<crate::study::StudyResult> {
    let entry = registry.lookup(fund_id, period).ok_or_else(|| {
        crate::Error::Internal(
            format!("fundamental study '{fund_id}' not found in registry").into(),
        )
    })?;

    let indicator = entry.fetch_indicator(None).await?;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…