Commit Graph

22 Commits

Author SHA1 Message Date
Colin Delahunty
9f7635faee New Integration Tests (#3377) 2022-11-25 22:18:52 -05:00
Theodore Aptekarev
15d1870194 Reorganize project extras for a pip installable package (#3432)
* Re-solve the dependencies for optimization extras

* Remove unused reportlab helpers

* Update install from source and troubleshooting docs

* Fix typos found by cspell

* Prevent po menu from launching when optimization toolkit not installed

* Add optimization dependencies to default requirements.txt for the CI

* Add optimization toolkit installation to the CI

* Fix markdown linting

* Update CI test dependency installation for matrix tests

* Fix markdown linting

* Update source installation docs

* Clean up ToC in the main readme

* Update the SDK documentation

* Fix markdown linting after making readme sections linkable

* Fix more markdown linting

* Fix more markdown linting

* Update secrets detection with exclusion rules

* Bump detect-secrets configuration

* Tune secret detector

* Fix more markdown linting

* Add optimization toolkit install to installer GH actions

* Add optimization toolkit install to docker build

* Fix typos

* Add "all" extras setting to install torch and riskfolio

* Move forecasting dependencies to pyproject.toml

* Update CI build configs

* Update documentation to feature the "all" extra

* Lint markdown

* Update docs to specify requirement of having a C compiler

* Added log Id to codesigning steps in inteel Macos workflow

* Changed disk for the m1 macos build

* Changed disk for the m1 macos build

* Changed disk for the intel macos build

* taking out sigtool removal line

* Remove dev version number from pyproject.toml

* removing sigtool from all build steps

* changes to m1 build and commenting test_report_economy

* more m1 build changes

* testing exit on conda setup

* some more

* changing shell to bash to setup conda

* bash on lines

* bash on all lines

* small bash removals

* intel fix and test_crypto int test

* upgrading setupminiconda version

* adding back in intel conda init and reset

* intel removal of init

* taking bash back out from m1

* removing old codesign lines

* adding codesign specific binaries

* ssl fix for all terminal

* removing if installer

* various ssl fixes across commands

* fixing ssl mistake

* integration test changes

* Linting + remove comment

* Update poetry.lock

* Update requirements

* Update the docs to mention that PO is not working on arm arch

* Update deps to pin setuptools

* Disable reports on pyinstaller packaged version

* Update reports

* small grammar change for forecast report message

* Pin grpcio following introduced regression in 1.51.0

* Update docs to reflect changes in how optimization is installed

Co-authored-by: Luqman Bello <lb@Luqmans-MacBook-Pro.local>
Co-authored-by: James Simmons <simmonsj330@gmail.com>
Co-authored-by: James Simmons <53658028+simmonsj330@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2022-11-22 12:33:59 -05:00
Chavithra
2273a705fd Choices Generation : Forex (#3475)
* Choices : add support for StocksBaseController and CryptoBaseController

* Choices : Forex

* Choices : disable by default

* Choices : update parent_classes

* Choices : forex/qa

* Linting

* Choices  : choices -> choices_default

* Choices : fix

* Choices : fix issue with int and float list

* Tests : forex/qa and forex/ta

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-11-18 12:59:39 +01:00
montezdesousa
02901f1473 Trim command output spaces (#3424)
* first round of removing spaces

* remove more print statemnts

* remove more spaces

* bullbear color

* spacc color

* improve stalker readability

* delete more spaces

* reddit colors

* rever hood

* flake8

* forgot this one

* fix econometrics tests

* fix econometrics tests

* fix more tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-16 11:47:24 +00:00
Colin Delahunty
9a7329a13e Integrated tests generate a csv file (#3352)
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2022-11-09 08:10:03 -05:00
Colin Delahunty
19660ff3ee Updated check for new user (#3302)
* Updated check for new user

* Update docstring

* Fixed import error

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-04 10:18:23 -04:00
James Maslek
a0cc590e28 Get rid of funds menu....for now (#3292)
* Get rid of funds menu....for now

* Website + sdk

* GEt rid of website/sdk files

* GEt rid of website/termina/funds files

* rerun generate py twice. committing all

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-11-04 10:29:52 +01:00
DidierRLopes
0ae672b821 Improve UX when wrong command is selected (#3179)
* improve error when wrong command is input

* lint

* fix pylint

* lint

* Tests : fixing ArgumentParser issue on MacOS CI

* Typing

Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-11-03 11:05:01 -04:00
DidierRLopes
47549cbd9f [SDK] Allow silencing verbose output in commands that use stocks/load (#3180)
* remove verbose on load

* Revert implementation of the verbosity setting in stocks controller

* Edit docstrings to comply with pydocstyle linting rules

* Fix typos in variable names and help text

* Add verbosity setting to forex load helper as it uses the stocks helper

* Update docstrings to comply with pydocstyle linting rules

* Update tests

* Fix test relying on local sources settings

* Remove old test cassettes

* Add new test data

* WIP: Fix futures tests

* Clean up test file

* Fix futures tests having a time component

* Fix futures model tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-11-02 09:46:58 -04:00
Colin Delahunty
04670ddb05 Added crypto/defi fixes (#3117)
* Added sinfo error handling

* Address spelling

* Removed unused descend

* improved ldapps MVC

* Added fixes

* Fixed failing tests

* Fixed failing tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 08:36:59 +01:00
DidierRLopes
58fb4cd190 fix news sources (#3118)
* fix news sources

* lint

* ordering

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-27 14:51:59 +01:00
DidierRLopes
15e6e4ad85 Improve UI/UX styling regarding to spacing (#3073)
* fix styling UI/UX

* black formatting

* fix tests

* Update CONTRIBUTING.md

* asterisk to hyphen

* Update CONTRIBUTING.md

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-10-27 12:34:16 +02: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
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
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
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
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
hjoaquim
2e0012e4a7 SDK logs (#2695)
* added console prints

* little refactor for degiro company news

* fixed message always showing even on login fail

* initial test with the api logs

* changes log_settings location in order to use it on the sdk; also, modified the actual settings logging to a json.dumps - in order to get a well formed json str

* added logger to the api

* adding decorator to the function as it's copied

* added arguments to the logging

* remove the double log_start_end decorator

* added func_name_override

* Revert "added console prints"

This reverts commit 61d8224e97.

* Revert "little refactor for degiro company news"

This reverts commit ca5239fa9e.

* Revert "fixed message always showing even on login fail"

This reverts commit 05793bff8b.

* added typing ignore

* fixed litting

* added logging of theme and keys

* added virtual path to the logging

* fix flake8

* fixing mypy

* removed predict from the settings

* changed the way we get the keys - after the keys controller pr was merged

* dict escaped to json str

* moved the settings logging for a different file

* added different logging for keys, configs and feature flags

* fixing typo

* removed locals - using directly the args and kwargs gives us the same

* fixed black

* solving conflicts

* fix linting

* removing unused import

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-18 10:09:31 +02:00
James Maslek
d273dd5510 Eliminate update for packaged app (#2889) 2022-10-17 17:09:17 -04:00
Chavithra
77106c2f83 Moving scripts and routines into openbb_terminal folder. (#2854) 2022-10-17 10:40:12 -04:00
John Inge
7c3572daed Bug/2804 e comman wont exit term (#2816)
* add branch

* fix e not working

* fix e not working again

* Delete microsoft.gpg

Co-authored-by: john <john@debian-BULLSEYE-live-builder-AMD64>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: erlandsen-tech <john@erlandsen.tech>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-10-17 10:24:42 +02:00
Chavithra
aebdddc286 Moving terminal.py file (#2837)
* Move terminal file

* Update terminal_controller + paths

* Add new terminal.py

* Change constant : USER_CUSTOM_IMPORTS_DIRECTORY

* Changing constant : USER_PORTFOLIO_DATA_DIRECTORY

* Changing constant : ROUTINES_DIRECTORY

* Changing constant : DATA_SOURCES_DEFAULT_FILE

* Changing constant : PRESETS_DIRECTORY

* Update paths

* Update `terminal_controller` module

* Apply black

* Update worfklow + precommit hook

* Update workflow

* Tests : terminal_controller

* Tests : terminal_controller
2022-10-14 15:12:22 +02:00