mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-08 02:11:44 +00:00
* Small typo * Updated SEO for OpenBB Bot Docs * Updated SEO for all SDK docs pages * Updated all SEO for OpenBB Terminal Docs pages. Plus grammar edits * Updated spelling edits for SDK and Terminal * fix: headtitle component * Updated Page titles for SDK and Terminal FAQ pages * Updated page titles for all SDK docs pages * Updated page titles for all Terminal Docs Pages (not reference pages) * Updated page titles for Bot (not reference pages) * Add | OpenBB Docs title for SDK and Terminal (#4883) * add Terminal | OpenBB Docs * SDK | OpenBB Docs added --------- Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com> Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt> Co-authored-by: jose-donato <zmcdonato@gmail.com>
2.0 KiB
Vendored
2.0 KiB
Vendored
title, sidebar_position, description, keywords
| title | sidebar_position | description | keywords | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Changing Sources | 3 | How to change which data sources are the default source for commands run in the OpenBB SDK |
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
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)
- 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.