yfinance-rs 0.9.1

Ergonomic Rust client for Yahoo Finance, supporting historical prices, real-time streaming, options, fundamentals, and more.
Documentation
#![cfg_attr(not(feature = "tracing"), allow(unused_imports, unused_macros))]

#[cfg(feature = "tracing")]
macro_rules! trace_debug {
    ($($tt:tt)*) => {
        tracing::debug!($($tt)*)
    };
}

#[cfg(not(feature = "tracing"))]
macro_rules! trace_debug {
    ($($tt:tt)*) => {};
}

#[cfg(feature = "tracing")]
macro_rules! trace_info {
    ($($tt:tt)*) => {
        tracing::info!($($tt)*)
    };
}

#[cfg(not(feature = "tracing"))]
macro_rules! trace_info {
    ($($tt:tt)*) => {};
}

#[cfg(feature = "tracing")]
macro_rules! trace_warn {
    ($($tt:tt)*) => {
        tracing::warn!($($tt)*)
    };
}

#[cfg(not(feature = "tracing"))]
macro_rules! trace_warn {
    ($($tt:tt)*) => {};
}

#[cfg(feature = "tracing")]
macro_rules! trace_error {
    ($($tt:tt)*) => {
        tracing::error!($($tt)*)
    };
}

#[cfg(not(feature = "tracing"))]
macro_rules! trace_error {
    ($($tt:tt)*) => {};
}

pub(crate) use {trace_debug, trace_error, trace_info, trace_warn};