yfinance-rs 0.8.0

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
15
// Re-export types from paft explicitly
pub use paft::aggregates::Snapshot as FastInfo;
pub use paft::market::action::Action;
pub use paft::market::quote::Quote;
pub use paft::market::requests::history::{Interval, Range};
pub use paft::market::responses::history::{Candle, HistoryMeta, HistoryResponse};

// Helper functions for converting to string representations
pub(crate) const fn range_as_str(range: Range) -> &'static str {
    range.code()
}

pub(crate) const fn interval_as_str(interval: Interval) -> &'static str {
    interval.code()
}