Commit Graph

529 Commits

Author SHA1 Message Date
Chavithra
b93671ad0b SDK : faster and simpler architecture (#3289)
* SDK : split features

* Fix linting

* SDK : remove functions

* SDK : update openbb object building

* SDK : comments

* Typing

* Typing

* Typing

* SDK : update logs

* SDK : Breadcrumb

* SDK : Breadcrumb + Operation

* SDK : spell

* Linting

* Tests : SDK

* SDK : Operation

* SDK : Operation

* Linting

* enable wrong import position

* added logging info

* added log supression

* reverted the order

* SDK : update trail_map

* log suppresion as configuration

* changes reports to use the new sdk

* changes dashboards to use the new sdk

* changes dashboards to use the new sdk

* updated the documentation

* Tests + Linting

* Replace old sdk by new sdk

* Linting

* SDK : import + map_dict

* Linting

* Linting

* SDK : sdk + trail_map

* Linting

* SDK : forecasting

* SDK : update import path

* SDK

* SDK : md

* Linting

* removed unused functions

* trunc args to a max of 100 characters

* added logging when exceptions

* .md files

* SDK : add signature on operation + linting + remove trail on Breadcrumb

* Linting

* Move tests

* Linting

* Linting

* Linting

* Linting

* Linting

* Linting

* Linting

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-11-09 22:25:12 +01:00
James Maslek
f7d63fa499 Adding some test coverage (#3316)
* Fix the formatting test by changing futures input to symbol not ticker

* Regenerate sdk docs

* Add test for economy macro

* fred query test

* Futures

* FRED Test

* lint

* flake fix

* black fix

* futures again

* Test Index

* Add treasury tests

* pylint ignore too many lines

* FOrgot end date
2022-11-09 15:52:20 -05:00
teh_coderer
721a7d560c [Bugs] Fix 3255,3160 + Improved Terminal Version Check (#3296)
* Fixes

* Update stocks_helper.py

* update git-actions set-output to new format

* Update stocks_helper.py

* Update terminal_helper.py

* removed LineAnnotateDrawer from qa_view

* lint

* Update stocks_helper.py

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-09 11:29:48 -05:00
montezdesousa
cd420c51c7 New format for SDK documentation (#3211)
* example changes in slopes

* change lettering size and side bar capitalization

* revert back to Fira

* start automatic website generation

* this was autogen

* add examples to slopes model

* generate slopes doc

* change to _index.md

* allow italic formatting

* fix regex

* option to regenerate paths

* update alt docs

* fix generate

* update alt

* fix generate

* update common

* target italic only for types

* format alt

* format italic common

* add sig indentation

* update sig indent alt

* update common ident

* add todo

* generate docstrings for all menus

* fix maxdd

* fix returns font size

* fix keys docs

* fix more docstrings

* escape literal symbols

* escape literal symbols

* reformat keys

* format opt

* remove literal escape

* remove another literal escape

* remove another literal escape

* unindent returns

* update docs return unindent

* add comma in last arg

* fix funcs without params

* fix signature

* compact some code

* refactor some more code

* refactor some code

* some final cleanup

* write docstrings

* change main

* move futures paths

* generate futures docs

* add external axes references

* fix typo

* revert to double docstring

* fix small bug

* remove docs folder

* generate.py in website folder

* add forecast to docs

* clear some warnings

* fix underscore

* remove cite

* refresh website docs

* fix forecast docstrings

* fix po

* fix po docs and remove italic

* fix more docstrings

* remove last warning

* codespell

* flake8

* exclude website contente from flake

* noqa on optimizer

* update website

* fix mypy

* remove setup from mypy

* mypy to openbbterminal

* update precommit

* pylint

* try to remove sdk loading issue

* avoid logging on test

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-11-09 13:00:10 +00:00
montezdesousa
f9086d6f38 Portfolio menu bug fixes (#3204)
* normalized way moving average is treated and prevent huge exception prompt

* changed descriptions on docs

* change to check_positive_float

* add integration tests

* fix linting

* add more integration tests

* add more integration tests

* fix linting

* add some po integration tests

* fix flag without prompt

* change orderbook to transactions

* limit warning to portfolio

* change print help

* format portfolio var

* reformat controller

* reformat es

* remove autocompletion

* change print help

* add percentage symbol to summary

* fix holp holv

* fix scripts

* update website doc

* add tqdm progress bars

* fix table spacing

* identify mret tables

* remove positive float from rfr

* flake8

* pylint

* fix reports

* revert to old menu help

* revert to old menu help

* Update test_portfolio.openbb

* quick change on empty lines

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-09 10:46:42 +00:00
jose-donato
5b739b0b48 Attribute pyth (#3350)
* fix(docs): added margin between sections

* fix: add attribution to price pyth command

* Updated output

Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-11-09 08:13:31 +01:00
fede
a4e5e436d5 [FEAT] StatsForecast AutoCES forecasting model (#3337)
* feat: add autoces model

* feat: update autoces example

* fix: remove unused file

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-11-08 15:27:12 -05:00
fede
de0125076e [FEAT] StatsForecast SeasonalNaive forecasting model (#3340)
* feat: add seasonalnaive model

* feat: update seasonalnaive usage example

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-11-08 14:16:11 -05:00
Henrique Joaquim
46afc9eb8f Fix economy bugs (#3144)
* removed investing/investpy from sources and added #TODO

* removed Investing from events source

* fixed autocompletion for events

* added rank column based on the debt value

* removed options in treasury autocompletion

* fixed autocompletion to use comma instead of space

* fix verification for no data on economy/qa

* fix the exaple

* commented spreadso it don't show on auto completion

* preventing testst from using user default data sources and also removing unused env variables

* fixing tests

* adding empty line after uninterpreted args

* fixing tests

* improve the way fred works by not repeating the request. also, solve some issues with the plot - but not all

* Revert "improve the way fred works by not repeating the request. also, solve some issues with the plot - but not all"

This reverts commit 1094b454a5.

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-07 14:58:09 +00:00
jose-donato
15b9e0f966 Fix 3043 (#3268)
* fix(docs): added margin between sections

* fix: moved files to right context

* fix: updated path

* fix: apis

* fix: tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-07 11:38:23 +00:00
Colin Delahunty
5c975cf93d Refactored quote command (#3304)
* Refactored quote command

* gotchu colin

* Test

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-04 23:00:40 -04:00
andrewkenreich
0a4dcd54b4 fix [Bug] Screeners - Autocomplete of Stock Screener (#3308)
* fix [Bug] Screeners - Autocomplete of Stock Screener

* Add test so this doesn't happen again

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-04 23:00:19 -04:00
Colin Delahunty
86f2e5622a Fix Various portfolio/po issues (#3286)
* Allow for loading without -f flag

* Massive upgrade to params file read/write

* Better handling empty dfs and none in prompt toolkit

* Fix tr typing and handle none error

* Added options

* Fixed tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-04 15:10:50 -04:00
andrewkenreich
c14b759f97 [Bug] /forex/qa/ $ line --draw #3076 (#3297)
* [Bug] /forex/qa/ $ line --draw #3076

* removing from web

* fix pylint + test

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-04 14:54:19 -04:00
Colin Delahunty
1f4c150dc2 Refactors Econometrics and Forecast load commands and controller (#3299)
* Replaces / with _ when loading forecast

* Makes econometrics and forecast load function one common function

* Remove examples from forecast and fix econometrics load --examples bug

* Fixed some tests

* Expands error handling, fixes SDK routes

* Added error handling

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-04 11:27:16 -04:00
James Maslek
9f24c2b7f1 Bugs (#3293)
* #3239

* black linter

* Test
2022-11-04 10:21:40 -04:00
andrewkenreich
09f753da1c More Fixes to Crypto + key sort (#3244)
* fix #3095 - autocomplete and command working + key sort

* fix #3056

* fix [Bug]  bugs #3048

* fix [Bug]  bug #3017

* sort -> sortby, not ascend, tests

* fix my goof ups

Co-authored-by: james <jmaslek11@gmail.com>
2022-11-03 11:45:40 -04:00
Colin Delahunty
d916535f39 Fixes Issues with Forex (#3260)
* Fixed issues

* Moved menu

* Added back doc header

* Updated tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-03 11:30:16 -04:00
Colin Delahunty
500fcd6aa2 Refactor the QA Raw Command (#3234)
* Improved usability of raw

* Began refactoring qa raw

* Continued adding fixes

* Added more fixes

* Updated docs

* James fixes

* Added formtting changes

* In process of converting to all lower

* Added fixes

* Fixed tests
2022-11-02 13:35:55 -04:00
andrewkenreich
41a764fd5f fix a bunch of cryptooooo (#3220)
* fix crypto term API +[Bug] crypto/dd/funot #3187

* Fix #2 - combining commands error #3186

* fix [Bug] `crypto/dd/stats --vs` not avail #3181

* fix title on stats

* fix -h [Bug] #3182

* fix #3169

* remove command [Bug] #3096 - source bad

* fix [Bug] #3097

* fix #3103 convert dtypes and fix descend

* fix [Bug] sort and descend errors #3101

* [Bug] `crypto/defi/tokens --sort` #3098

* fix #3060

* removing unneeded tests

* running tests

* tests 4 u andrew

* remove dpi from sdk

* fix merge conflict

* rename vs -> to_symbol

Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-02 13:18:42 -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
ee0b267902 Added capitalization fixes for stock/search (#3225)
* Added capitalization fixes

* Cleaned up search command

* Fixed tests

* Ignore case on country and exchnage
2022-11-02 09:08:10 -04:00
Henrique Joaquim
84f56d2b22 Some fixes on crypto (#3246)
* getting into disc menu fixed

* fixed warning

* fixed verification in case list is empty

* integration tests

* fix sorting

* fix tests

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-11-02 08:24:38 +01:00
Colin Delahunty
36a5166d1b Fix dcf (#3223)
* Added suggestions for load

* Fixed a command

* Fixed panel

* Added fix for dcf

* Doing my boi a favor

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Andrew <andrew.kenreich@gmail.com>
2022-11-01 14:45:25 +00:00
DidierRLopes
cdd5bae2df When renaming funcs to remove source at start, the translating keys were missing update (#3177)
* fix the en.yml key for some funcs

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 22:46:20 +00:00
DidierRLopes
70e57bc9c2 Improve ETF menu (#3124)
* improve etf menu

* improve docs

* fix tests

* should cover more edge cases

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 15:25:49 -04:00
fede
826303eec1 [FEAT] StatsForecast AutoETS forecasting model (#2988)
* feat: add autoets model

* feat: update autoets index

* feat: add verbose option

* feat: freq preprocessing

* feat: improve test size call

* feat: add statsforecast dep to conda env full

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-31 14:58:16 -04:00
Gerard
a38fcd8c6e Fix top categories and sorting not working (#3025)
* Fix categories and sorting not working

* Allow sort in ascending order

* Documented the new flag

* Fixed tests

* Fix bad practises

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 14:49:23 -04:00
Colin Delahunty
8772ac738f Added error handling (#3070)
* Added error handling

* Added command to SDK

* Updated docs

* Fixed tests to account for new error handling
2022-10-31 13:31:33 -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
James Maslek
a2ab314da7 sia cleanup (#3134)
* sia cleanup

* Website

* Change load-> select to address #2609

* Change the list of tickers in vis

* change back to show if nothing
2022-10-29 00:22:35 +01:00
James Maslek
274d5c4078 Clean UP ETF for next version (#3110)
* Fix things for 2p0

* tests
2022-10-27 11:54:28 -04: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
41b2a006c4 Fix using forecast in SDK + crypto alignment (#3119)
* fix access to forecast SDK

* fix alignment

* fix tests

* black lint

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-27 14:51:46 +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
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
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
James Maslek
b9bbe859b0 Ta/atr function (#3022)
* Add atr command

* Tests
2022-10-25 11:21:30 +01: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
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
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 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
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
James Maslek
70d35ff598 Economic calendar (#2936)
* First push

* Second commit

* Comment out 'spread'

* list to List
2022-10-21 15:36:31 +02:00