mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 19:22:23 +00:00
* Sunset some dependencies * Mypy * Last iex refs * remove ref to investpy * tests --------- Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
65 lines
1.8 KiB
Markdown
Vendored
65 lines
1.8 KiB
Markdown
Vendored
---
|
|
title: load
|
|
description: OpenBB Terminal Function
|
|
---
|
|
|
|
# load
|
|
|
|
Load stock ticker to perform analysis on. When the data source is syf', an Indian ticker can be loaded by using '.NS' at the end, e.g. 'SBIN.NS'. See available market in https://help.yahoo.com/kb/exchanges-data-providers-yahoo-finance-sln2310.html.
|
|
|
|
### Usage
|
|
|
|
```python
|
|
load -t TICKER [-s START] [-e END] [-i {1,5,15,30,60}] [-p] [-f FILEPATH] [-m] [-w] [-r {ytd,1y,2y,5y,6m}]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Default | Optional | Choices |
|
|
| ---- | ----------- | ------- | -------- | ------- |
|
|
| ticker | Stock ticker | None | False | None |
|
|
| start | The starting date (format YYYY-MM-DD) of the stock | 2019-11-21 | True | None |
|
|
| end | The ending date (format YYYY-MM-DD) of the stock | 2022-11-25 | True | None |
|
|
| interval | Intraday stock minutes | 1440 | True | 1, 5, 15, 30, 60 |
|
|
| prepost | Pre/After market hours. Only works for 'yf' source, and intraday data | False | True | None |
|
|
| filepath | Path to load custom file. | None | True | None |
|
|
| monthly | Load monthly data | False | True | None |
|
|
| weekly | Load weekly data | False | True | None |
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
```python
|
|
txt
|
|
2022 Feb 16, 08:29 (🦋) /stocks/ $ load TSLA
|
|
|
|
Loading Daily TSLA stock with starting period 2019-02-11 for analysis.
|
|
|
|
Datetime: 2022 Feb 16 08:30
|
|
Timezone: America/New_York
|
|
Currency: USD
|
|
Market: OPEN
|
|
|
|
2022 Feb 16, 08:30 (🦋) /stocks/ $ load AAPL
|
|
|
|
Loading Daily AAPL stock with starting period 2019-02-11 for analysis.
|
|
|
|
Datetime: 2022 Feb 16 08:30
|
|
Timezone: America/New_York
|
|
Currency: USD
|
|
Market: OPEN
|
|
|
|
2022 Feb 16, 08:30 (🦋) /stocks/ $ load AMZN
|
|
|
|
Loading Daily AMZN stock with starting period 2019-02-11 for analysis.
|
|
|
|
Datetime: 2022 Feb 16 08:30
|
|
Timezone: America/New_York
|
|
Currency: USD
|
|
Market: OPEN
|
|
```
|
|
---
|