Commit Graph

3529 Commits

Author SHA1 Message Date
Danglewood
eb0167dd89 Adds Token Terminal to list of API data sources. (#3102) 2022-10-26 17:56:19 -04:00
montezdesousa
a9787dd2d1 Refactor reports menu and make it work on installer (#2878)
* start papermill rollback

* move reports to templates folder

* comment some stuff

* refactor reports controller

* change var names

* clean ctrl class vars

* small refactoring on metadata search

* relocate some func

* breaking changes

* revert some changes

* destroying changes

* change menu appearance

* change menu appeaerance again

* update choices

* change some assets locations

* remove unused vars

* change some docstrings

* rename vars

* its working

* forgot one dash

* omg its working

* clean some code and doc

* change func name

* fix a bug and add some comments

* fix economy report startup

* add custom reports

* allow custom reports

* forgot to delete this

* unused import

* make somestuff more explicit, 5 min rule

* add helper func

* supress errors--no-verify

* add some type checks

* fix check ipynb func

* check inputs in run

* rewrite some integration tests

* remove unused import

* add some docs to website

* add auto completion

* warn if no forecast

* add to do

* add arg name if 1 arg

* add papermill pointing to github main

* add notebooks

* fix terminal spec

* relocated choices files

* merge main

* relocate website docs for reports

* limit user choices

* fix portfolio auto completion

* limit choices fix

* clean som edocstrings

* limit user choices in run command

* improve run parser

* fix msg

* add reports controller tests

* relax crypto choices limit

* contain commands

* pass pre commit

* flake8

* flake8

* ignore mypy

* pylint

* website

* move docs to jupyter tab

* add installer dep

* remove etf

* remove reports

* update reports to main

* handle events erros

* rever reports to previous commits before main merge

* add papermill installer strategies

* add flags to terminal

* avoid sdk crash

* execute notebook in thread

* remove unused sys

* execute report in a child process

* fix some notebook stuff

* fix portfolio report

* fix reports controller volatility

* change api to sdk

* move images

* remove som unucessary installer imports

* remove debugger warning

* move ipykernel launcher

* supress notebook crash

* remove portfolio decorator

* fix run command

* forgot to change this

* add images

* fix portfolio report

* fix crypto report

* linting and tests

* add run integration test

* pylint

* hide reports module args

* try at supressing args

* try at supreccing warning

* solve some os issues

* handle pm errors

* fix warning unrecognized arguments

* change comment

* avoid crash when parameters not found

* fix etf commands

* minor cleanup

* update forecasting check

* fix some linting

* fix futures test

* pylint

* limit user choices to prompt

* limit user choices to prompt

* supress warnings

* revert poetry lock back to main

* papermill pointing to main

* flake8

* forgot requirements

* Update helper_funcs.py

* Update reports_model.py

* choices

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Simmons <53658028+simmonsj330@users.noreply.github.com>
2022-10-26 21:27:30 +01:00
Henrique Joaquim
b5e807b188 Fix stocks bugs (#3039)
* fix conversion error str to float by replacing commas in numeric columns

* fix conversion error str to float by replacing commas in numeric columns

* adds -d as default arg if a date is provided

* fixe order of parameters

* fixed the check on the emptiness of the trading view recommendation

* added more screeners

* changed if in order to avoid result used before assignment exception

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-26 13:36:55 +01:00
Chavithra
67a50d92c7 Docker + Pypi : update logs + builds (#3016)
* Log : move LOGGING_COMMIT_HASH

* Build : pypi

* Build : docker

* Poetry : pyproject.toml

* Docker : test cd

* Docker : test cd

* Docker : test cd

* Docker : update cd

* Docker : update workflow

* Docker : remove script

* Tests : loggers

* Docker : workflow

* Pypi : build script

* Pypi : adding MANIFEST.in

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-10-26 12:43:05 +01:00
Pragya Sapkota
6f78c479c1 Fix: replaced the prediction techniques links with foecasting menu links (#3067) 2022-10-26 10:30:53 +02:00
Danglewood
a7a7000133 Spelling (#3061)
Spelling, as per a comment in #2996

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-26 08:01:43 +02:00
martinb-bb
461d30f77b Enhance look and readability of corr heatmap (UX) (#3058)
* enhanced heatmap

* clean up
2022-10-25 21:59:02 -04:00
DidierRLopes
02e2f35a15 Fix bitcoin rainbow (#3037)
* fix bitcoin rainbow

* simplify

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-25 19:54:41 -04:00
martinb-bb
a8da01dc72 Increase number of columns to show in data set (#3046)
* working slider to limit columns to show

* hugo

* black
2022-10-25 12:43:38 -04:00
Colin Delahunty
457671250d Switches all multi input arguments to comma separation (#2902)
* Switched first narg to arg

* Finished converting first menu

* Finished converting menus

* Fixed tests

* Fixed webpages

* Error handling

* Added James fixes

* Allowing lowercase

* Temp

* Temp

* Fixed error message for multi word countries

* Fixed countries

* James fixes

* Docs fixes

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-10-25 11:35:52 -04:00
northern-64bit
38a53e5f43 Combining commands and renaming others (#3000)
* Combining commands and renaming others

Combining commands with different sources but the same functionality. I also removed indications of source from command names

* Fix tests and hugo

* Test fixes

Co-authored-by: james <jmaslek11@gmail.com>
2022-10-25 11:31:08 -04:00
Colin Delahunty
e5670aa2b7 Removed cramer (#3021)
* Removed cramer

* More fixes

* Fixed print output

* Fixed hugo server
2022-10-25 14:13:11 +02:00
Colin Delahunty
37facf744b Updated dependencies (#3036) 2022-10-25 13:00:51 +02:00
James Maslek
b9bbe859b0 Ta/atr function (#3022)
* Add atr command

* Tests
2022-10-25 11:21:30 +01:00
Danglewood
aaf6fc6396 OpenBBUserDataFolder Guide (#2831)
* OpenBBUserDataFolder Guide

* Changes as per, @JerBouma in https://github.com/OpenBB-finance/OpenBBTerminal/pull/2831

Changes as per, @JerBouma in https://github.com/OpenBB-finance/OpenBBTerminal/pull/2831

* Moves the user data folder to the getting started page. 

Moves the user data folder to the getting started page.

* H2 for more visibility

* Linting

Sorry about that, @JerBouma!

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-10-25 00:38:02 +02:00
Wonhyeong Seo
ddcd52368d Order sdk part of main.yml (#2906)
* fix: Order sdk part of main.yml

resolve https://github.com/OpenBB-finance/OpenBBTerminal/issues/2780

* New layout

* Fixed file format

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-24 17:59:00 +02:00
montezdesousa
0ea0c55816 Fix etf broken commands (#3010)
* wrong header name

* forgot this

* rewrite controller vcr

* rewrite more cassettes

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-24 15:25:20 +01:00
Colin Delahunty
5c5ab8e5c3 Fixed issues (#3012) 2022-10-24 15:31:42 +02:00
Henrique Joaquim
b2b218c6f7 Fix broken URL for SDK_README.md (#3015) 2022-10-24 14:52:46 +02:00
Henrique Joaquim
b27d737043 SDK to be logged as config parameter (#3011)
* Add a parameter to indicate we are logging from the SDK as config instead of an app name

* improve docstring to mention the source
2022-10-24 12:32:11 +01:00
Kyle Yuan Yang Lee
b27adbbb25 made key secret pairs required params (#3002)
* made key secret pairs required params

* Formatted

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-10-24 12:33:21 +02:00
Colin Delahunty
b3e1b88186 Fixes traceback issue (#3006) 2022-10-24 10:27:57 +01:00
James Simmons
675449933a Allowing integration tests to be run by menu (#2992)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-24 10:13:34 +02:00
Chavithra
d4a462cbe9 Logging : detect pypi install + PIIS filtering (#2973)
* LOG : add app_name=gst_packaged_pypi

* LOG : update piis filtering

* Linting

* Log : generation

* Tests : log generation

* Linting

* Tests : piis filtering

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-24 09:35:02 +02:00
James Maslek
90a1469c8b Bugs 2.0 (#2993) 2022-10-23 22:35:44 -04:00
0xDareDevil
723ec8b0ea Fixed bug giving exception when calling balance (#2998)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-23 12:01:02 -04:00
Kyle Yuan Yang Lee
d86f02a767 fix for #2953 (#2999) 2022-10-23 11:13:10 -04:00
James Simmons
c29d1c5c20 Changing reddit_sent command name (part 2) (#2986)
* hoping this works

* Moving files and adding test

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 23:57:15 -04:00
James Simmons
0417f5f7eb infoswe command name change (#2933)
* infoswe change

* updating ignore

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 22:57:29 -04:00
Colin Delahunty
702417df26 Adds doc fixes (#2928)
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 22:25:25 -04:00
James Maslek
c337c2fdb8 Adding more integration tests (#2946)
* Adding more integration tests

* More

* More

* ca

* more menus

* ta

* qa

* etf

* forex

* bt
2022-10-22 18:51:40 -04:00
James Maslek
3498e01b24 Starting to go through my bugs (#2991) 2022-10-22 18:39:13 -04:00
DidierRLopes
8715c3336d New futures controller (#2758)
* start futures branch development

* small improvements

* display futures historical

* small improvement

* improve raw

* add curve command

* improve autocompleter

* styling

* add option to select expiry

* Two small things

* Add check that curve not empty

* improve plot and add description futures search

* add check for empty curve earlier on

* merge main

* fix black linitng

* black linting

* add ES to futures

* minor improvements

* Add docs

* Update _index.md

* Update _index.md

* fix crude oil exchange

* fix when dataframe has a single datapoint

* black linting

* add integrated test

* add futures tests

* add futures to SDK

* add tests

* pylint

* ordering

* fix tests

* fix tests

* fixed now?

* fix tests once and for all?

* tests

* helping out didier

* fix tests

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 22:59:48 +01:00
James Simmons
9345befafe Spacc command name change (part 2) (#2987)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 16:51:10 -04:00
Henrique Joaquim
6ea53877f5 Fix integration tests (#2972)
* fixed test

* fixed pytest

Co-authored-by: James Simmons <53658028+simmonsj330@users.noreply.github.com>
2022-10-22 09:39:54 +01:00
James Simmons
5fab5a438e Emacross name change part 2 (#2978)
* Emacross name change part 2

* Tests : fixing test_bt_model

* Tests : bt

* Tests : run --rewrite-expected

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-21 16:54:52 -04:00
Gerard
d6542ffd2d Fix "Target not AdjClose" warning incorrectly appearing (#2980)
* Replace "AdjClose" with "adjclose" where needed

* Fix choices for "pick"
2022-10-21 15:45:17 -04:00
James Maslek
70d35ff598 Economic calendar (#2936)
* First push

* Second commit

* Comment out 'spread'

* list to List
2022-10-21 15:36:31 +02:00
Colin Delahunty
459e103a5a Fixes some James bugs (#2969)
* Fixed bug

* Fix vwap

* Hid future warning

* Added fix to pandas

* Quality improvement to customer and supplier

* Fixed some tests

* Test fix
2022-10-21 08:17:29 -04:00
Colin Delahunty
7f1b3db5ad Rename sdk to SDK (#2968)
* Rename sdk to SDK

* Added README

* Fixed test
2022-10-21 10:11:03 +02:00
James Simmons
8bdaa66154 alswe change (#2932) 2022-10-20 16:07:58 -04:00
James Maslek
abda9b14d2 Plot style (#2929) 2022-10-20 16:20:07 +01:00
James Maslek
bd8ac50549 Update eval help command (#2924)
* Add some more clear definition

* remove about

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-10-20 10:06:43 -04:00
Colin Delahunty
90b5e10cf8 Removed warning when importing API (#2834)
* Removed warning when importing API

* Removed warning when importing API

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-20 07:49:25 +02:00
DidierRLopes
3762693df7 Add intro command + improve plot style + internationalisation consistency (#2899)
* improve style of plots

* remove the blend which doesnt look nice in some machines

* remove translation for arguments to be coherent

* Add intro command

* add check to understand if its first time user to run intro by default

* intro doesnt require docs

* silly catch

* fix line length

* anoter lengthy line

* unused import

* unused import

* words

* allow to quit earlier

* style

* fix thing for u didi

* actual fix

* last try

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: james <jmaslek11@gmail.com>
2022-10-19 20:35:23 -04:00
Colin Delahunty
52dd7a1f66 Add stocksera source to stocks/dps/ctb (#2896)
* Got stocksera source working

* Added fixes

* Removed prints

* Updated documentation

* Fixed pytest

* Added tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-19 23:24:48 +01:00
hjoaquim
66f7d25edb fix logging (#2923)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-19 21:17:07 +01:00
James Simmons
884040a0e5 Fixing Crypto/Defi/DPI Bug (#2910)
* Fixing Crypto/Defi/DPI Bug

* additional changes

* more fixes for tvl

* 1 day % fix
2022-10-19 15:42:52 -04:00
Chavithra
eb244a1d8d Docker : building + publishing (#2904)
* fixed integrated test test_stocks_ba.openbb

* fixed integrated test test_stocks_dd.openbb

* improved and centralised the check

* fix lint

* Docker : update ci + build files

* Docker : update build and CD

* Docker : update CD

* Docker : test

* Docker : test CD

* Docker : test CD

* Docker : rename `build.sh`

* Docker : tests CD

* Docker : test CD

* Docker : update CD + build

* Docker : fix CD

* Docker : fix CD

* Docker : build

* Docker : test CD

* Docker : CD

* Docker : CD

* Docker : test

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : build + CD

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : test CD

* Docker : build

* Docker : test CD

* Docker : build + cd

* Moving `scripts`

* Checkout `helper_funcs.py` from main

* Docker : remove test file with alpine

* fixing readme errors

* fixing missed readme errors

* Docker : build

* Logging : handle docker app name

* Docker : test CD

* Docker : cd

* Doc

* Doc

* Doc : linting

* Doc

* Docker

* Doc

* Fixing `terminal_controller`

* Linting

* Doc : fixing links

* Version 1.9.1

* Docker : fix name

* Doc : add volumes in command

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Simmons <simmonsj330@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-19 18:00:59 +02:00
Colin Delahunty
6fa85372c6 Added error handling (#2922)
* Added error handling

* Added fixes
2022-10-19 17:09:44 +02:00