Commit Graph

1291 Commits

Author SHA1 Message Date
hjoaquim
75099f18bf deprecating non used function 2023-02-24 10:04:34 +00:00
hjoaquim
3c52a522e8 fix test_stocks_controller 2023-02-24 09:57:45 +00:00
hjoaquim
fa6f66f36b typos 2023-02-23 16:49:46 +00:00
jeroen
640df80f33 This needed fixing anyways 2023-02-23 16:37:24 +01:00
jeroen
b704ca0cdf Fix routine script 2023-02-23 16:09:34 +01:00
jeroen
f4daa9104b Depreciate the sia menu 2023-02-23 16:09:34 +01:00
jeroen
9e480cf811 Fixing all the tests I hope 2023-02-23 16:09:34 +01:00
Jeroen Bouma
2c3a7f186b Merge branch 'develop' into feature/finance-database-update 2023-02-23 15:45:51 +01:00
jeroen
9cf078611c Updates 2023-02-23 14:12:36 +01:00
DidierRLopes
f1a824a179 Add tweet news in terminal toolbar (#3757)
* Add tweet news in terminal toolbar

* allow to store tweet news settings

* update dependencies

* Add tweet news in terminal toolbar

* lint

* dependencies

* 5s timeout for twitter api

* poetry update for resolve

* reqs

* set news to false by default

* update tweepy

* update reqs

* update reqs again?

* update setuptools

* small improv

* Add tweet news in terminal toolbar

* update packages

* black linting

* black formatting

* ruff fixes

* fix settings controller

* Reqs

* fix tz issue

* add keywords selection

* linting

* helper funcs mypy

* pylint fixes

* Checkout poetry.lock + pyproject.toml

* Update dependencies

* Remove integration test file

* News Toolbar : Fix bugs

* Tests : News Toolbar

* Update dependencies

* Tests : change variable name

* Remove unused keys

* Remove unecessary global variable

* Fix linting

* Lighter API call

* Ruff

* Linting + Remove keys

* Linting

* Dotenv loading issue.

* Ruff

* Revert "Dotenv loading issue."

This reverts commit 4493f1a3e7.

* Tests : fix

* Tests : fix test_settings_controller.py

* Twitter Toolbar : avoid checking API when not enabled

* Tests : news toolbar

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2023-02-23 13:22:22 +01:00
jeroen
3b8d6a4e89 Add FinanceDatabase v2 2023-02-23 01:36:45 +01:00
Henrique Joaquim
58d2ea1637 Auto login on the SDK if local session is found (#4297)
* token generation on the terminal

* revoke and show commands

* auto login on the sdk if local session is found

* fix tests

---------

Co-authored-by: Luqman <luqazino@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-22 14:40:01 +00:00
Henrique Joaquim
a054e5d005 User UUID to use the designated column instead (#4299)
* token generation on the terminal

* revoke and show commands

* uuid on the right column

* adding logs to the account commands

* login info at this point does not make sense anymore

* get_user_uuid function

* log formatter to use get_user_uuid function

* ruff + black

* fix tests

* fix tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-22 14:22:05 +00:00
Elyanah Aco
2079649e44 Set query arg in economy/eval as required (#4317)
* Set query arg as required

* Edit economy/eval documentation

---------

Co-authored-by: elyanah <elyanah.aco02@gmail.com>
2023-02-22 08:30:50 -05:00
James Maslek
2c9cddbd75 Change sources path (#4312) 2023-02-21 17:29:48 +00:00
Colin Delahunty
cebf454cdf Added flake8-simplify (#4227)
* Added flake8-simplify

* Update linting.yml

* update.  left 1 for you colin

* Fix that one

* Missed

* Fix

* mypy

---------

Co-authored-by: james <jmaslek11@gmail.com>
2023-02-20 19:27:34 -05:00
northern-64bit
1c84da9f16 Handle end_date with CCXT source when loading crypto (#4296)
* Handle `end_date` with `CCXT` source when loading crypto

* Fix linting

* Fix linting

* Improve code readability

* Final linting

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-20 18:41:59 -05:00
northern-64bit
33e79a2aaa Fixes #3873 and adds generic naming to financial statements (#4142)
* Fix plotting error

I choose to fix it by removing the denomination transform, since it doesn't affect the result (even when fixed).

* Add generic naming to financial statements, except for EODHD source

* Fix linting

* Fix linting

* Fix bugs

* Fix linting

* Handle invalid plot options for sources

* Fix linting

* Fix linting

* Some tests

* more tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-20 18:29:27 -05:00
northern-64bit
6e5b3998c5 Display correct risk free rate in the portfolio menu help message (#4217)
* Fix printing of help message

* Fix risk free rate usage

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-20 17:54:00 -05:00
James Maslek
9af4dc00e5 Hotfix for SIA menu (#4294)
* Make sia function

* Wording

* Fix attrib

* Linting

* port test

---------

Co-authored-by: jeroen <jer.bouma@gmail.com>
2023-02-20 12:20:06 -05:00
teh_coderer
02b7f4403a Update trailmap.py (#4301) 2023-02-20 10:54:18 -05:00
xinbaDev
6e3a683beb fix variable name (#4289)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-19 20:11:51 -05:00
James Maslek
758abb5d09 Merge branch 'develop' into hotfix/bug-#4290 2023-02-19 19:58:09 -05:00
northern-64bit
ca67168a47 Fix linting 2023-02-19 22:39:01 +01:00
northern-64bit
659ea2c306 Fix help message for stocks menu 2023-02-19 22:25:19 +01:00
northern-64bit
8b15faa90d Fix spelling mistake in portfolio menu help message 2023-02-19 22:01:34 +01:00
James Maslek
8f35afc7d7 Merge branch 'develop' into release/2.4.1 2023-02-17 12:14:14 -05:00
Henrique Joaquim
7998ae7887 Adds Personal Access Token Commands (#4266)
* token generation on the terminal

* revoke and show commands

* save to keys

* test for hub_model

* black

* controller tests

* fix wrong merge

---------
2023-02-17 17:13:51 +00:00
James Maslek
10024138d3 Merge branch 'develop' into release/2.4.1 2023-02-17 11:29:27 -05:00
teh_coderer
96af407585 SDK Added about() for methods and class, fixed pypi.md (#4273)
* added log_if_login and about() for methods and class, fix pypi.md

* Update sdk_helpers.py

* mypy
2023-02-17 11:29:07 -05:00
james
f0bcdecd2a Release branch 2023-02-17 10:18:39 -05:00
Luqman
bbeaef4732 Code Coverage (#4236)
* Code Coverage

* minor fix

* Remove coverage limit check

* Check code cov

* removed env

* Tests : fixing tests + autocompletion bug

* Tests : skip a test

* Linting

* Tests : skip slow coins test on crypto

* Added check for coverage

* Remove failure test

* Minor tweak

* Added code coverage to base test

---------

Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-17 15:59:14 +01:00
teh_coderer
b5b8afa281 Hotfix/SDK Version Dunder (#4269)
* add version dunder

* Update test_sdk.py

* Update trailmap.py
2023-02-16 21:26:11 -06:00
james
48f59b92a0 Bad ruff 2023-02-16 09:33:07 -05:00
james
a0f3ad125b Other mypy fixes 2023-02-16 09:06:31 -05:00
james
15141122a2 Merge 2023-02-16 08:57:34 -05:00
teh_coderer
3747424950 Update SDK Docs Generation (#4262)
* update generate_sdk_markdown.py to use sdk trailmap class

* Update trailmap.py

* Update trailmap.py
2023-02-15 17:49:07 -05:00
teh_coderer
69b4d117fa SDK Auto-Generation/Refactor (#3358)
* 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

* few changes

* updates

* sdk auto gen modules done

* Update stocks_helper.py

* updates to changed imports, and remove first sdk_modules

* Update generate_sdk.py

* Update generate_sdk.py

* pylint

* revert stocks_helper

* Update generate_sdk.py

* Update sdk.py

* Update generate_sdk.py

* full auto generation, added sdk.py/controllers creation

* missed enable forecasting

* added running black in subprocess after sdk files generation completes

* removed deleted sdk_arg_logger

* comment out tests

* property doc fix

* clean up

* Update generate_sdk.py

* make trailmap classes useable for doc generation

* Update generate_sdk.py

* added lineon to trailmap class for linking to func in markdown

* changed lineon to dict

* added full_path to trailmap for linking in docs

* updated portfolio

* added func_def to trailmap attributes for markdown in docs, added missing type hints to covid functions

* Update generate_sdk.py

* Update generate_sdk.py

* Update generate_sdk.py

* Update generate_sdk.py

* merge

* update sdk

* updates

* Update generate_sdk.py

* Update generate_sdk.py

* dead imports

* bump

* updates

* updates

* updated missing

* added alt realestate functions to trailmap, logic to clear folders before building

* Update __init__.py

* Update generate_sdk.py

* clean __init__.py files before build

* sync website content folder

* Update generate_sdk.py

* updates + logging

* drop pandas inplace.  add docstrings

* Update trail_map.py

* Update generate_sdk.py

* Update trail_map.py

* stocks/fa PR added

* synced trailmap with develop branch

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update sdk_init.py

* fix removed keys functions

* updates

* reqs txt files

* forgot to save

* up to date with main

* made sure help(openbb.trailmap) is preserved

* ruff

* Update requirements-full.txt

---------

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2023-02-15 14:37:44 -05:00
montezdesousa
e57de3b453 Account menu improvements (#4252)
* ask for confirmation on delete, replace

* fix logout

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-15 14:59:15 +00:00
Henrique Joaquim
46b230f146 Minor fixes on login (#4234)
* block logout

* fix default behaviour to no ask for creds

* enables to use --login on
Welcome to OpenBB Terminal v2.3.1
╭─────────────────────────────────── Home ───────────────────────────────────╮
│                                                                            │
│ Information, guides and support for the OpenBB Terminal:                   │
│     intro              introduction on the OpenBB Terminal                 │
│     about              discover the capabilities of the OpenBB Terminal (h │
│     support            pre-populate a support ticket for our team to evalu │
│     survey             fill in our 2-minute survey so we better understand │
│     update             attempt to update the terminal automatically (GitHu │
│     wiki               search for an expression in Wikipedia (https://www. │
│     news               display news articles based on term and data source │
│                                                                            │
│ Configure your own terminal:                                               │
│ >   keys               set API keys and check their validity               │
│ >   featflags          enable and disable feature flags                    │
│ >   sources            select your preferred data sources                  │
│ >   settings           tune settings (export folder, timezone, language, p │
│                                                                            │
│ Record and execute your own .openbb routine scripts:                       │
│     record             start recording current session                     │
│     stop               stop session recording and convert to .openbb routi │
│     exe                execute .openbb routine scripts (use exe --example  │
│                                                                            │
│ Main menu:                                                                 │
│ >   stocks             access historical pricing data, options, sector and │
│ >   crypto             dive into onchain data, tokenomics, circulation sup │
│ >   etf                exchange traded funds. Historical pricing, compare  │
│ >   economy            global macroeconomic data, e.g. futures, yield, tre │
│ >   forex              foreign exchanges, quotes, forward rates for curren │
│ >   futures            commodities, bonds, index, bitcoin and forex        │
│ >   alternative        alternative datasets, such as COVID and open source │
│ >   funds              mutual funds search, overview, holdings and sector  │
│                                                                            │
│ OpenBB Toolkits:                                                           │
│ >   econometrics       statistical and quantitative methods for relationsh │
│ >   forecast           timeseries forecasting with machine learning        │
│ >   portfolio          perform portfolio optimization and look at portfoli │
│ >   dashboards         interactive dashboards using voila and jupyter note │
│ >   reports            customizable research reports through jupyter noteb │
│                                                                            │
╰─────────────────────────────── OpenBB Terminal v2.3.1 (https://openbb.co) ─╯
You are using the latest stable version

2023 Feb 14, 06:39 (🦋) / $

[h] help menu    [q] return to previous menu    [e] exit terminal    [cmd -h] s
                                                                               e
                            2023 Feb 14, 06:39 (🦋) / $
The OpenBB Terminal is the result of a strong community building an investment research platform for everyone, anywhere.

We are always eager to welcome new contributors and you can find our open jobs here:
https://www.openbb.co/company/careers#open-roles

Join us           : https://openbb.co/discord
Follow us         : https://twitter.com/openbb_finance
Ask support       : https://openbb.co/support
Request a feature : https://openbb.co/request-a-feature

Fill in our 2-minute survey so we better understand how we can improve the OpenBB Terminal at https://openbb.co/survey

In the meantime access investment research from your chatting platform using the OpenBB Bot
Try it today, for FREE: https://openbb.co/products/bot

* reverting the condition to the original state

* openbb to match python terminal.py

* adding unauthorized

* reverting changes

* getting the value of the status

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-15 14:55:22 +00:00
james
482f6f8419 Fix trailmap again 2023-02-14 15:22:39 -05:00
james
4c591bff6b trail map 2023-02-14 14:55:15 -05:00
james
04e9a7c06d Catch the eof error 2023-02-14 13:01:08 -05:00
james
437a08fbd4 Revert 2023-02-14 12:59:39 -05:00
james
41d242a1be Change the if statement for the initial user 2023-02-14 12:54:32 -05:00
james
33404e2e6e Release 2.4.0 2023-02-14 10:34:05 -05:00
Tan Yong Sheng
5705675218 Report rendering can't handle save path for users that have a period (.) in username (#4235)
* fix reports not recognize dot path

* Formattiing

---------

Co-authored-by: Yong Sheng Tan <yongsheng.tan@shareinvestor.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-14 10:17:14 -05:00
Danglewood
d6ab0007e3 Fixes bad yFinance candles with auto_adjust=True (#4231)
* Fixes bad yFinance candles with auto_adjust

* black

* fixes from tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-02-14 09:49:02 -05:00
teh_coderer
cd5cb61344 Hotfix/Splashscreen Staying up on Windows installer (#4232)
* fixes splashscreen not disappearing in windows installer

* replace it all together

* Update settings_logger.py
2023-02-14 09:19:34 -05:00
montezdesousa
fca7ec36ac block logout (#4233) 2023-02-14 10:27:44 +00:00