## download_open_source.download_data_stock_prices()


Download stock data from Yahoo Finance.


Usage

``` python
download_open_source.download_data_stock_prices(
    symbols, start_date=None, end_date=None
)
```


Downloads historical stock data from Yahoo Finance for the given symbols and date range. Dates are trading days in the exchange's local time zone reported by Yahoo Finance (UTC when missing). Both start_date and end_date are inclusive.


## Parameters


`symbols: str or list of str`  
A character vector of stock symbols to download data for. At least one symbol must be provided.

`start_date: str = None`  
A character string or date in 'YYYY-MM-DD' format specifying the start date for the data. If not provided, a one-year subset of the dataset is returned.

`end_date: str = None`  
A character string or date in 'YYYY-MM-DD' format specifying the end date for the data. If not provided, a one-year subset of the dataset is returned.


## Returns


`pl.DataFrame`  
A data frame containing the downloaded stock data with columns 'symbol', 'date', 'volume', 'open', 'low', 'high', 'close', and 'adjusted_close'.


## Examples

``` python
from tidyfinance import download_data_stock_prices
download_data_stock_prices(['AAPL', 'MSFT'])
download_data_stock_prices('GOOGL', '2021-01-01', '2022-01-01')
```
