Commit Graph

14 Commits

Author SHA1 Message Date
DidierRLopes
8edf079041 Big refactor to be explicit about data sources (#2490)
* refactor stocks datasources

* add rest of data sources

* add_cmd without source

* forgot one tiny thing

* fix crypto tests

* fix forex tests

* fix etf tests

* fix economy tests

* fix oss tests

* fix remaining tests

* fix tests

* Rewrote vcr files

* Take 2

* fix test

* fix tests for FA

Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-04 18:04:56 +01:00
James Maslek
bd59270297 Add yf for fa/earnings (#2488)
* Add yf for fa/earnings

* Fix test

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-04 11:42:17 -04:00
Paul Symonds
2b0a9e27d6 Add new premium source End of Day Historical Data (#2019)
* Add new premium source https://eodhistoricaldata.com/r/?ref=869U7F4J

* Added eod dependency to requirements.txt

* Added eod dependency to requirements.txt via poetry and fixed typo

* fixed some display bugs for stock info

* Implemented stock/load for eodhd,  use keys / eodhd demo for key.

* Commit before Pull -Implemented stock/load for eodhd,  use keys / eodhd demo for key.

* Committing files so I can merge

* Committing files so I can merge

* Committing files so I can merge

* Committing files so I can merge

* Committing files so I can merge

* Committing files so I can merge

* Committing files so I can merge

* Merge

* Fixed dependencies

* Committing files so I can merge

* Committing Stock_Helper with pylint: disable=R091

* Downgraded charset normalizer

* Fixed issues with keys

* Committing fixes to eodhd

* Committing fixes to eodhd remove eod library

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-08-31 11:17:29 -04:00
DidierRLopes
065cd78814 forex quote to use yahoo finance instead (#2436)
* forex quote to use yahoo finance instead

* update docs

* add av as secondary source for quote
2022-08-29 01:29:21 +01:00
James Maslek
1d73e7c192 Fix economy/fred start date (#2421)
* limit was cropping data

* pylint

* boop

* fix limit
2022-08-26 11:30:42 +01:00
James Maslek
cf9b5ad832 Add nasdaq as an options source (#2397)
* Get all nasdaq chains

* Get all expirations

* Add chain by expiry and clean up columns

* add nasdaq to load and exp

* Add OI plot for nasdaq

* add volume plot

* Update vol + oi to have nasdaq + raw flag

* Add VOI functionality with nasdaq

* Add nasdaq chains function

* Run isort

* doesnt

* Change menu for sources and edit yfinance to expiration instead of expiry

* lint

* oops

* unused imports

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-08-23 09:35:18 +01:00
Colin Delahunty
317bca69ba Added yfinance as a source and converted to pandas read_html (#2286)
* Added yfinance as a source and converted to pandas read_html

* Fixed tests

* Forgot to add my helpers
2022-08-10 16:32:03 -04:00
DidierRLopes
8eed33b62f News from feedparser + Binance API key check fix (#2192)
* fix binance controller API key

* add news to main menu

* feedparser

* trying to help

* requirements for didier

* one test

* fix suggestion by @rpydaneogrendim on Twitter

* fix tests

* trying to help again?

* test

Co-authored-by: james <jmaslek11@gmail.com>
2022-07-29 22:13:45 +01:00
James Maslek
66f05b83c0 Add chains via yahoo finance (#2176)
* Add chains via yahoo finance

* Fix existing tradier  test

* Update chains hugo

* test options controller

* business_insider_view tests

* test yfinance view
2022-07-25 22:47:46 +01:00
northern-64bit
64fcbc6acd Integrating the fmp submenu into the fa menu + plotting + ratios (#2102)
* Moving changes from previous pr to new branch with working tests

* Fix website

* Tests : stocks/fundamental_analysis

* stocks/fundamental_analysis/fa_controller : fix bug

* Fix requested changes

* Fix linting

* Fix warnings

* Linting

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-07-21 09:21:11 +02:00
DidierRLopes
9e220e8f3c Creates a controller to specify sources (#2069)
* Add all data sources to data_sources_default.json so we can have a list in one place

* create menu to get and set data sources

* improve settings controller

* james request

* improve helper message

* minor improvement

* fix tests
2022-07-12 18:56:52 +01:00
montezdesousa
4c0b1135a9 Economic calendar command (#2043)
* add ecocal command to menu

* add menu legend

* run black and pylint

* fix date input

* add command to main.yml

* sort and remove duplicates

* run black on model

* fetch user timezone automatically

* remove tz option and None displays

* adds choices to controller

* fix dates corner case

* create test for get_economic_calendar

* write tests for investingcom_view

* fix ycrv model

* remove unused imports

* rewrite expected for economy print help

* rewrite expected for portfolio model

* fix linting

* fix linting

* try to pass pylint again

* create _index.md

* complete docstrings

* rewrite expected  on portfolio model

* Update _index.md

* Update _index.md

* change -i default to all

* rewrite portfolio model and mark vcr

* run black on test changes

* revert changes on tests

* add limit to nr of events

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-07-12 16:22:48 +01:00
James Maslek
d1e97c7ac4 Update data sources json to allow submenu loading (#2057)
* update data sources json

* missed one

* fix test
2022-07-07 19:05:57 +01:00
Sam Kerr
497324d75f Preferred data source for a given command and help docs for any command (#1928)
* Add a feature flag loaded from . env for preferred data source

* Update the load command to use the preferred source

* Add a test

* Black syntax checker updates

* Update test syntax

* Update load command documentation

* Add a variable to read a sources file from

* Add a default sources.json file

* Add a helper function to read the source file and get the most relevant value

* Add some comments

* Remove older preferred data source file setting

* Add a default source file for data and use it if no user preference specifies a specific file

* Remove duplicate source file and old settings values

* Update the test file

* Update documentation string

* Update tests/openbb_terminal/test_settings_controller.py

* Black syntax formatting issues

* Fix a test case

* Fix a typo

* Fix Flake8 errors

* Fix Flake8 errors

* Pyupgrade syntax fixes

* Additional linter corrections

* More pylint issues

* Improve predefined default sources

* refactor parse_known_args_and_warn for documentation

* Update openbb_terminal/helper_funcs.py

* Add a feature flag loaded from . env for preferred data source

* Update the load command to use the preferred source

* Add a test

* Black syntax checker updates

* Update test syntax

* Update load command documentation

* Add a variable to read a sources file from

* Add a default sources.json file

* Add a helper function to read the source file and get the most relevant value

* Add some comments

* Remove older preferred data source file setting

* Add a default source file for data and use it if no user preference specifies a specific file

* Remove duplicate source file and old settings values

* Update the test file

* Update documentation string

* Update tests/openbb_terminal/test_settings_controller.py

* Black syntax formatting issues

* Fix a test case

* Fix a typo

* Fix Flake8 errors

* Fix Flake8 errors

* Pyupgrade syntax fixes

* Additional linter corrections

* More pylint issues

* Improve predefined default sources

* refactor parse_known_args_and_warn for documentation

* Update openbb_terminal/helper_funcs.py

* Forex controller

* Tests : Fixing `parse_known_args_and_warn` issue

* Comparison Analysis controller

* Tests : Comparison Analysis

* Tests : Stocks/DarkPoolShorts + Stocks/Options

* Tests : fix call_load tests

* Linting : fixing line size

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-06-14 20:23:55 +02:00