mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 14:02:06 +00:00
* Sunset some dependencies * Mypy * Last iex refs * remove ref to investpy * tests --------- Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
41 lines
1.5 KiB
Markdown
Vendored
41 lines
1.5 KiB
Markdown
Vendored
---
|
|
title: load
|
|
description: OpenBB SDK Function
|
|
---
|
|
|
|
# load
|
|
|
|
Load a symbol to perform analysis using the string above as a template.
|
|
|
|
Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_helper.py#L223)]
|
|
|
|
```python
|
|
openbb.etf.load(symbol: str, start_date: Union[datetime.datetime, str, NoneType] = None, interval: int = 1440, end_date: Union[datetime.datetime, str, NoneType] = None, prepost: bool = False, source: str = "YahooFinance", weekly: bool = False, monthly: bool = False, verbose: bool = True)
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Type | Description | Default | Optional |
|
|
| ---- | ---- | ----------- | ------- | -------- |
|
|
| symbol | str | Ticker to get data | None | False |
|
|
| start_date | str or datetime | Start date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True |
|
|
| interval | int | Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 | 1440 | True |
|
|
| end_date | str or datetime | End date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True |
|
|
| prepost | bool | Pre and After hours data | False | True |
|
|
| source | str | Source of data extracted | YahooFinance | True |
|
|
| weekly | bool | Flag to get weekly data | False | True |
|
|
| monthly | bool | Flag to get monthly data | False | True |
|
|
| verbose | bool | Display verbose information on what was the symbol that was loaded | True | True |
|
|
|
|
|
|
---
|
|
|
|
## Returns
|
|
|
|
| Type | Description |
|
|
| ---- | ----------- |
|
|
| pd.DataFrame | Dataframe of data |
|
|
---
|