Commit Graph

20 Commits

Author SHA1 Message Date
Colin Delahunty
8994168e45 openbb_terminal tests: coverage (61% -> 65%) (#1664)
* Attempting more tests

* Began adding tests

* Added keys controller tests

* Added tests for settings and econometrics controller

* Prevented tests from changing .env files

* Fixed issues with tests

* Added econometrics tests

* fixed pylint issues

* Added folder

* Added QA tests

* Fixed qa tests

* Fixed qa tests

* Fixed tests

* Removed skip

* Added mock to tests

* Update helper_funcs.py

Fix any windows path issues

* Update helper_funcs.py

oops forgot import lol

* Skipped display_hist

* expanded tests

* Maybe mocked matplotlib everywhere

Co-authored-by: teh_coderer <me@tehcoderer.com>
2022-04-19 20:44:15 -04:00
jmaslek
6a66f3f3ed Custom data context (#1193)
* Add first iteration of custom context

* Add sample data + improve plot

* Change `head` to `show` with sorting and limit.  Add "-x" to plot and dynamic update of completer

* generate random time series for test csv

* Make columns lower case.  Check if date is in columns and convert to timestamp.  Improve plotting for dates

* Add qa to custom

* Add pred to custom

* Hugooooo

* Testing

* dang whitespace

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-19 10:45:56 +00:00
jmaslek
966cd3c6d5 New alternative data context + first sub context (Covid) (#1142) 2022-01-06 13:12:38 -05:00
jmaslek
e437f29ae4 Mutual funds (#1106)
* Add mutual fund menu based primarily on investpy (investment.com)

* Add start/end date for loading + some bug fixes

* hugo

* poetry add investpy rich dnspython  then poetry update

* fix reset (need to load country) and dim yfinance commands when country not US

* Fix search and add better error handling

* Catch yfinance commands when country not US.  Improve loading to change country if symbol found but not in matching country.  Changed main menu printing.

* Fix poetry / reqs merge conflict

* review comments

* Once again update poetry

* Clean up poetry to match conda (numpy was culprit)

* cvxpy down

* Think i goofed on generating reqs full

* update poetry metadata

* cleanup after review 2

* move space

* another deps try

* bump pygmnets in yaml

* try something different

* rename console -> t_console (terminal_console) for mypy
2022-01-01 14:16:32 -05:00
DidierRLopes
d00904a5bf Sector and industry analysis (#995)
* initial version of sector and industry analysis

* Add company per sector/industry on country (and mktcap)

* fix hint

* improve README

* Commit export sia folder

* Export capability

* improve export generic function

* fix linting

* fix spelling correctly parameters

* add a limiting parameter

* black linting

* add tight_layout plot

* Add benchmark to barchart

* add more financials

* add ignore too many lines

* black linting

* Add tqdm for tracking loading progress

* Fix data exporting on cpi and cps when passing a dict to a df without index

* save data for next use of financials in fast mode

* Improve cpi/cps piechart plotting

* linter

* ensure country is selected for cpi/cps

* fix bug with limiting companies message in sia/financials

* add raw/max sectors/industries and min pct allowed

* allow to output raw data and improve pie chart concept

* improve coding guidelines

* fix ordering of func

* improve units and bugfixes

* capitalize helper messages

* allow from sia to jump into ca and improve code/bugs

* linter

* mypy linter

* docstring
2021-12-01 16:42:34 +00:00
jmaslek
203133b8b9 Fix export path for candle function (#964)
Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-19 21:01:33 +03:00
DidierRLopes
8fba9bf19f move NFT to inside crypto (#932) 2021-11-08 18:02:46 +00:00
DidierRLopes
432ccf386b Refactor options menu into stocks and others (#931)
* Improve candle and make interactive default

* change path of dcf file

* Remove RS lines when intraday plot

* refactor options menu

* remove candle start and end params
2021-11-08 17:22:08 +00:00
jmaslek
eafd65199b Major brokers refactor into separate menus (#754)
* Major brokers refactor into separate menus

* Add portfolio export folder

* Added some extra commands from pyally

* Update coinbase account command

* poetry update + pin openpyxl to 3.0.7

* requirement files

* Update hugo server

* Clean hugo files

* Update _index.md

Add output to _index

* Update _index.md

* Update _index.md

add output

* Update _index.md

add output

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Fix alpaca bug

* Fix hugo server + add to main menu
2021-09-23 13:50:38 -04:00
jose-donato
49c6430a0c implement gwei feature (ethereum gas fees) (#736)
* implement gwei feature (ethereum gas fees)

* fix linter issues

* fixing another linting issues

* typo and linter issue

* added model and view for gwei feature

* added extra folder for reports

* added new line after gwei info

* lint

* changed tx label and table, lint

* lint fixes
2021-09-08 22:08:56 +01:00
DidierRLopes
d8af43de9a Add folders where data can be extracted (#721) 2021-08-29 19:34:49 +01:00
jmaslek
d3c95b87ab Refactor EDA -> Qa (#686)
* Ignore nft of the day test

* Rename eda -> qa

* Refactor rolling into view/model

* Refactored commands to new convention

* updated menu layout + add load

* Add ra functions into qa menu + fix portfolio paths

* fix menu help string

* Update qa with target idea that indicates variable to do statistics on

* Review changes except todos

* Make qa indepedent of stock menu
2021-08-28 02:03:15 +01:00
DidierRLopes
1bf4b6a8c9 Insider refactoring (#687)
* Refactor lins command in insider

* fix typo insider controller

* refactor ins/act command
2021-08-22 10:32:40 +01:00
jmaslek
4b5c465c7d Refactor Common/TechnicalAnalysis (#679)
* Ignore nft of the day test

* Refactor common-ta-overlap

* Refactor trend indicators

* Refactor volatility

* Volume refactored

* Custom functions

* Final momentum refactor

* Update crypto menu with same format

* Address review, update poetry

* Fix export path
2021-08-18 18:56:43 -04:00
colin99d
b9b640898c Excel Discounted Cash Flow (#667) 2021-08-14 15:23:18 -04:00
DidierRLopes
6a641f2a09 Refactor discovery menu (#657)
* Remove disc open browser websites

* remove sentiment investor from discovery

* add popular,emerging SI cmds to ba

* fix typo

* refactor disc/finnhub commands

* refactor disc/yfinance commands

* refactor disc/ford command

* refactor disc/arkord command

* fix disc/upcoming refactoring

* fix disc/upcoming refactoring

* fix disc/latest-trending news refactoring

* refactor disc/shortinterest commands

* refactor disc/shortinterest commands

* fix tests

* Update test_coingecko_crypto.py

* improvement after review

* add todo

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2021-08-10 00:49:07 +01:00
DidierRLopes
ec07686aed Refactor Economy menu (#652)
* Allow to quit when DEFAULT_CONTEXT selected

* terminal imports inside context selection

* rework economy/events command

* Refactor fear greed CNN command

* refactor WSJ in economy

* import fred

* refactor fred commands in economy

* refactor disc commands into economy

* refactor disc commands into economy 2

* fix fred test

* fix fred test

* av pylint

* update quit from direct context

* fix av lint

* Add industry simply wallst to economy

* improve events display

* improv after review

* add mypy types

* tabulate raw series

* remove simply wallst
2021-08-08 21:36:24 +01:00
jmaslek
419c3691db Options menu updates (#560)
* Add `calculator` function to show pnl for calls and puts

* calculator improvement

* breaking up op into different submenus

* Yfinance functions/plots added

* Refactored Tradier menu into new controller

* Added tradier historical options and fix crypto candles

* Clean up files and get rid of selenium dependecne

* ReadME 1

* calculator plot

* Redefine main menu structure to get rid of sub menus.

* Merge main + update gst readme

* Add coloring to chain command and update readme images

* Add historical greeks

* added ion

* Fix up basic calculator

* Clean up error messages and yf defaults when tradier key not present.  Extend `exp` to allow date entry

* add new line
2021-07-25 11:30:38 -04:00
jmaslek
1092cefa82 Add market overview - type data form WSJ (#548)
* Add wsj scraping functions.  Add top movers from wsj to etf menu

* Add wsj functions to econ menu (seems like a rational place)

* update readme files

* etf readme

* Refactor for bossman :)

* OS path cleanup

* revert changes

* poetry lock still had charset 2.0.3
2021-07-16 14:40:39 -04:00
DidierRLopes
11358ac3fe Data export new concept (#535)
* Data export new concept

* add docs
2021-07-07 16:45:12 +01:00