yfinance-rs 0.9.1

Ergonomic Rust client for Yahoo Finance, supporting historical prices, real-time streaming, options, fundamentals, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::core::{CallOptions, YfClient, YfError, quotesummary};

pub(super) async fn fetch_modules_body(
    client: &YfClient,
    symbol: &str,
    modules: &str,
    options: &CallOptions,
) -> Result<String, YfError> {
    quotesummary::fetch_body(client, symbol, modules, "analysis", options).await
}

pub(super) fn parse_modules(body: &str) -> Result<super::wire::V10Result<'_>, YfError> {
    quotesummary::parse_module_result(body)
}