Skip to main content

fetch_daily

Function fetch_daily 

Source
pub fn fetch_daily(
    client: &Client,
    symbol: &str,
    range: &str,
) -> Result<Vec<DatedBar>>
Expand description

Download range (e.g. "25y" or "max") of daily bars for symbol.

OHLC are multiplied by adjclose / close for each bar, which is the standard way to back-adjust for dividends and splits. Bars with any missing field are skipped rather than forward-filled: a fabricated bar is worse than a missing one for a squeeze detector.