mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-05 08:51:20 +00:00
* fixing a url * moving around menus * Grammar Update * many fixes to links and some added pics to install * Add improvements * fix: tabs * Move support/feedback window to FAQ * Forgot to save * MVC moved around * change installation Source -> Python * fix: tabs * guides to basics * Add new README LINKS * Change links * Change forecasting to forecast * fix: details * more fixes * Change markdown file so it is ready for pypi Co-authored-by: Chavithra <chavithra@gmail.com> Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com> Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com> Co-authored-by: Jeroen Bouma <jeroenbouma@Jeroens-MacBook-Pro.local> Co-authored-by: jose-donato <zmcdonato@gmail.com>
1.6 KiB
Vendored
1.6 KiB
Vendored
title, sidebar_position
| title | sidebar_position |
|---|---|
| Changing Sources | 2 |
Some functions have the built-in capability of requesting data from multiple sources. obb.stocks.load is one example of this type feature:
obb.stocks.load(
symbol = 'SPY',
start_date = '2022-10-01',
end_date = '2022-11-11',
interval = 15,
prepost = True,
source = 'YahooFinance',
weekly = False,
monthly = False,
)
| date | Open | High | Low | Close | Adj Close | Volume |
|---|---|---|---|---|---|---|
| 2022-11-15 15:00:00 | 398.68 | 399.4 | 398.13 | 398.47 | 398.47 | 2.46198e+06 |
| 2022-11-15 15:15:00 | 398.475 | 399.52 | 398.46 | 398.913 | 398.913 | 2.8631e+06 |
| 2022-11-15 15:30:00 | 398.93 | 399.27 | 397.82 | 399.11 | 399.11 | 3.03659e+06 |
| 2022-11-15 15:45:00 | 399.114 | 399.13 | 397.46 | 398.53 | 398.53 | 6.46879e+06 |
| 2022-11-15 16:00:00 | 398.54 | 399.06 | 395.01 | 398.175 | 398.175 | 1.99462e+06 |
The choices for source within this functionality are:
- YahooFinance (default)
- IEXCloud
- AlphaVantage
- Polygon
- EODHD
Note that for each function, the variable can have sources that are not described as above. As an example, openbb.stocks.fa.income has the following sources:
- Polygon
- YahooFinance
- AlphaVantage
- FinancialModelingPrep
- EODHD
Also note that some sources allow you to use certain variables while other do not. For example, YahooFinance doesn't provide you with quarterly data whereas AlphaVantage does. Therefore, quarterly=True can not be used in combination with source=YahooFinance.