Commit Graph

365 Commits

Author SHA1 Message Date
montezdesousa
9951461df8 remove -p from perf (#3344)
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-09 16:37:27 -05:00
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
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
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
Danglewood
19689a44df Adds Intro Guide for the Stock Options SDK Module (#3298)
* Adds Guide for Options SDK Module

* Improves One Screenshot

* missing a space

* typo

* makes requested changes.

* Removes `s` from `Introduction`

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-11-08 17:04:13 +01:00
Danglewood
03cedad5db Adds Intro Guide to ETF SDK Module (#3315)
* Adds Intro Guide to ETF SDK Module

* Linter

* removes portfolio optimization snippet

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-11-08 13:25:48 +01:00
Danglewood
cead88555c Adds guide for QA module of the SDK (#3321)
* Adds guide for QA module of the SDK

* makes requested changes

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-11-08 12:10:21 +01:00
Danglewood
44c4a63ff7 Adds guide for Technical Analysis SDK module (#3324)
* Adds guide for Technical Analysis SDK module

* linter

* adds `to` in the title.

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-11-08 11:39:11 +01:00
martinb-bb
c6825ebf84 [UX improvement] Adding in docs URL to help commands on terminal (#3330)
* links to docs

* update docs
2022-11-07 19:28:39 +01: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
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
3e792d75de Fixes Issues with the OSS Menu (#3238)
* Added docs and added auto suggest for country

* Fixes docs

* Added chavi fixes

* Reverted argument name change

* Added case fixing to countries

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-04 10:19:37 -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
Colin Delahunty
1f9a771101 Removed the --raw option from economy/plot (#3272) 2022-11-02 16:20:25 -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
martinb-bb
2cd663c1b6 standardize and update api defaults + report (#3271)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-02 13:21:23 -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
taiyeoguns
ac90547f9d remove funds overview (#3209)
* remove funds overview

* remove fund overview from menu and choices

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-02 11:30:06 -04:00
Colin Delahunty
aa085c8e16 Fixed docs (#3267) 2022-11-02 08:56:23 -04:00
Danglewood
89b37e3331 Adds SDK Guide for Forex Menu (#3259)
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-11-02 10:29:49 +01:00
Danglewood
71c14c1c57 Formatting, first image is not given a new line. (#3263) 2022-11-02 09:31:29 +01:00
Colin Delahunty
3d0a032a76 Fix Some Econometrics Bugs (#3210)
* Added suggestions for load

* Fixed a command

* Fixed panel

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 20:45:54 -04:00
martinb-bb
58d2799ac7 Fix 3188 - UX for Feature Engineering functions (#3224)
* fix depr. warning

* console printout enhancment

* improvement to sto for UX

* average true range UX

* signal UX improv.
2022-10-31 20:45:26 -04:00
Danglewood
0b51116ec4 Adds Introduction Guide for the Economy SDK Module (#3142)
* Adds Introduction Guide for the Economy SDK Module

* Changes title

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-10-31 22:47:27 +00:00
Danglewood
a6fcb9d47e Adds guide for SDK/Keys (#3111)
* Adds guide for SDK/Keys

* Linter

* Applied requested changes, and improved the examples.

* Removed bullet point

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-10-31 22:46:41 +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
DidierRLopes
07c4c7c9b1 improve forecast menu usability (#3189)
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-31 13:40:49 -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
db9a5e350d generate new doc (#3159) 2022-10-29 17:36:47 +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
4f12938f8d Hugo (#3153) 2022-10-28 16:57:14 -04:00
Wermeille Bastien
cd57e39658 Fixes #3086 (#3145)
Small fix

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-10-28 15:18:53 +01:00
Henrique Joaquim
eaa0a96f7e Fix forex bugs (#3131)
* normalized way moving average is treated and prevent huge exception prompt

* changed descriptions on docs

* change to check_positive_float

* fix linting

* fix linting
2022-10-28 11:32:02 +01:00
Danglewood
440ed10e63 Adds Introduction to Futures Menu (#3030)
* Adds Introduction to Futures Menu

* Requested Changes

* ## How to Use

ooops. :)

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-28 09:53:30 +01:00
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
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
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
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
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