Files
OpenBB/website/content/terminal/guides/advanced/changing-sources.md
andrewkenreich 6381b2ae7d Doc updates and fixes (#3609)
* 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>
2022-11-28 12:13:47 -05:00

3.4 KiB
Vendored

sidebar_position, title
sidebar_position title
2 Changing Sources

Many commands have multiple datasources attached to it. A great example is /stocka/fa/income that allows you to select YahooFinance, Polygon, AlphaVantage, FinancialModelingPrep or EODHD. Many have a default source, for example for income this is Yahoo Finance but you can change the default sources of each command via the sources menu.

2022 Nov 23, 06:09 (🦋) / $ sources

╭─────────────────────────────────────────────────────────────────────────────────────────────────── Data Sources ───────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                    │
│ Get and set default data sources:                                                                                                                                                                                  │
│     get                get available data sources associated with command                                                                                                                                          │
│     set                set default data source for a command                                                                                                                                                       │
│                                                                                                                                                                                                                    │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── OpenBB Terminal v2.0.0rc1 (https://openbb.co) ─╯

For example, if you would like to change the default data provider from the income command from the stocks/fa menu you can first run the command get following by stocks_load. This returns the following:

2022 Nov 23, 06:12 (🦋) /sources/ $ get stocks_fa_income


Default   : YahooFinance
Available : YahooFinance, Polygon, AlphaVantage, FinancialModelingPrep, EODHD

Then, with set you can change the default data provider. For example, we can change the data provider to Polygon with the following:

2022 Nov 23, 06:12 (🦋) /sources/ $ set stocks_fa_income Polygon

The data source was specified successfully.


2022 Nov 23, 06:12 (🦋) /sources/ $ get stocks_fa_income


Default   : Polygon
Available : Polygon, YahooFinance, AlphaVantage, FinancialModelingPrep, EODHD