Commit Graph

5125 Commits

Author SHA1 Message Date
teh_coderer
30ca6c69e0 Hotfix/options plot-smile (#4613)
* init

* Update style.css

* oops was stashed

* Update popups.js

* bump plotly.js version

* fix disappearing modebar
2023-03-29 17:51:02 +00:00
Colin Delahunty
aabf0fc80f Feature/pkginstall (#4341)
* Added basic package building stuff

* Full mock 1

* Got the thing working Part 1

* Added some signing

* Got things working

* Starting M1 CI

* Got things looking better

* Made a fix to env vars

* Switched to correct env

* Made developer installation

* Updates

* More updates

* Trying again

* GOt things fixed

* GOt things fixed

* GOt things fixed

* GOt things fixed

* GOt things fixed

* GOt things fixed

* Trying to get signing to work

* Did some cleanup

* Did some cleanup

* Added fixes

* Fixed issues

* Updated Jereon library

* Updated Jereon library

* Remove temp fix

* Remove temp fix

* Updated things

* Added fixes

* Made one fix

* Added fixes

* Trying an ACTION

* Final fix

* Final fix

* Final fix

* More fixes

* Made small changes

* Made small changes

* Lets see how far we get

* Updated output format

* Trying to get signing to work

* Trying to get signing to work

* Trying to get signing to work

* Improved the command

* Added fixes

* Pls work

* Theo is a GOAT

* THeo is the BIGGEST GOAT

* Got more ready

* Maybe intel works now

* Renamed to correct thing

* Renamed to correct thing

* Updated singing

* Updated singing

* Added fix

* Added fix

* Added fix

* Cleaned some stuff

* Cleaned some stuff

* Cleaned some stuff

* Cleaned some stuff

* Cleaned some stuff

* Cleaned some stuff

* Cleaned some stuff

* Added fix

* Added fix

* Added fix

* Added fix

* Added fix

* Added fix

* Added fix

* Addede icon generation to CI

* Addede icon generation to CI

* Addede icon generation to CI

* Fixed

* Fixed

* Fixed

* Fixed

* Fixed

* Update macos_build.yml

* Update macos_build.yml

* Fixed

* Fixed

* Fixed
2023-03-29 12:01:19 -04:00
Luqman
06e8b0347a refactor docker publish (#4606) 2023-03-29 09:46:06 +00:00
Colin Delahunty
807b4b1178 Changes the order of source for fa/overview (#4612)
* Fixed

* Adds error handling
2023-03-28 21:03:59 +00:00
James Maslek
81550b86b5 idk whats up here 2023-03-28 16:03:11 -04:00
jose-donato
df1a5e4f70 fix: trying new bg color (#4583)
* fix: trying new bg color

* changes to docs from conf page

* ref for bot

* playing with ref cards - feel free to revert

* update bot references

* Update ReferenceCard.tsx

* refactor doc generation files

* Delete generate_index.py

* feat: initial algoliacrawler

* Update generate_sdk_markdown.py

* new error page

* fix: lot of bug fixes

* deleting image

* fix: improved light mode and not found page

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-28 18:14:49 +00:00
montezdesousa
b89fdfcac5 Catch tweetnews exceptions (#4603)
* catch tweetnews exceptions

* catch all exceptions

* pylint
2023-03-28 16:07:48 +00:00
montezdesousa
73f6184800 fix show indices (#4604) 2023-03-28 14:38:37 +00:00
teh_coderer
2b6bbca775 bump pywry to 0.4.1 (#4607) 2023-03-28 14:34:05 +00:00
Rajan
55c4b54ea7 Adjust for stock splits in portfolio engine (#4195)
* Adjust for stock splits in portfolio engine

* Lint

* Lint2

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-27 22:56:35 +00:00
northern-64bit
1fb918f6f9 Adds eval, lags, corr and season commands to the econometrics menu (#4462)
* Adds eval, lags, corr and season commands

* Fix ruff

* Fix linting

* Improve linting

* Fix linting

* Fix command parser

* Fix linting + bugs

* Add integration tests

* Fixes

* Improve `season` plot title

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-27 22:29:07 +00:00
montezdesousa
1171b91ffd Update settings logger (#4597)
* update settings loggers

* change to python version

* update sdk helper

* pylint
2023-03-27 22:07:30 +00:00
teh_coderer
401a78278d Interactive Charts Improvements (#4586)
* ship it

* edits to bot docs

* Update generate_sdk_markdown.py

* splitting installation

* Update plotly.html

* no pywry print if using sdk

* Update popups.js

* Update plotly.html

* Update popups.js

* update bot index.mdx's, ramenize generate_index.py

* remove older index.md files

* added logic for light themes, refactor `generate_sdk_markdown.py` for reference cards

* reshow modebar

* Update plotly_helper.py

* fix reset reloading of env files

* refactor doc generation files

* Update plotly_helper.py

* cleanup

* Update generate_sdk_markdown.py

* Update plotly_helper.py

* updates

* fix csv_columns select overflow

* for james with love

* remove division `/ 1000`  from options_view

* Update backend.py

* Update popups.js

* csv plot candlestick logic for same Yaxis

* Update plotly_helper.py

* Update plotly.html

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-03-27 22:04:41 +00:00
Igor Radovanovic
cbe6115020 Remove Oanda from forex sources (#4596)
* Remove Oanda from sources

* Fix

* Update unit test
2023-03-27 22:01:17 +00:00
jose-donato
135dd7fcc6 Table improvements (#4578)
* fix: table pagination, darkmode, attribution

* fix: replaces generated html

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-27 18:27:23 +00:00
Tiago Ferreira
15690d39a9 refactor: reviewpad configuration (#4602)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-27 18:17:59 +00:00
montezdesousa
b6b42afd71 Hub | Add colors, sources sync (#4546)
* fix show version

* update login prompt and account

* update set preference

* fix account controller

* block login/logout if not called from account

* change conditions to start terminal

* fix required args account model

* add not to login command

* pylint

* accounte controller messages

* set default user when logout

* logout then show menu

* remove unused functions

* fix logging bug

* ruff

* fix account unittests

* fix session unittests

* refactor colors preference

* no theme, no party

* add colors sync

* dynamic theme

* add comment

* add colors to settings

* ruff

* linting

* update menu desc

* adjust keys sync flag

* write to dotenv sync flag

* english

* fix pull command

* fix edge cases

* handle some errors

* small bug

* change func name

* pylint

* no light

* colors preview

* ruff

* fix login logout preferences

* ruff

* delete folder

* pylint

* default, custom, hub

* fix clear

* docstring

* add preference exceptions

* set only rich style

* request theme only if hub

* linting

* change guest msg

* add option to update chart style on the fly

* apply style

* rollback to old terminal style

* fix console theme

* remove print

* remove hub rich style

* ruff

* mypy

* black

* Hub | Add sources sync (#4565)

* Add sources model

* adapt session model

* fetch sources dict

* rename local funcs

* set sources inside current user

* set sources inside current user

* generate sources dict from hub

* fix dict generator

* send request to hub

* fix conflict

* revert datasources to develop head

* fix docstring

* avoid invalid patch types

* add default option to sources

* fix small bug on sources

* ruff

* black

* remove (

* mypy failing only on git

* ignore mypy

* pylint

* fix settings controller

* Tests: fix keys model writing to .env

* fix keys controller test writing to .env

* ruff

* Test: fix account controller

* Test: fix account controller pull

* Tests: fix launch terminal

* Test: add sources to user object

* Tests: fix clear cmd tests

* ruff

* revert core/sdk changes

* TerminalStyle docstring

* upload config docstring

* remove comment

* remove unecessary pylint disable

* revert openbb_terminal/sdk changes

* Terminal style docstring

* docstring

* remove unecessary changes

* add TODO

* add other todo

* Tests: prevent sync from being written in .env

* change clear msg

* display sources source on menu

* update settings controller

* display keys source

* black

* sync not needed for pull

* remove sync from apply configs

* change func name for consistency

* Update test_keys_model.py

* save rich style in user folder

* search recursively inside styles

* set hub theme by default

* remove debug print

* allow any plot style

* comment plotstyle sync for now

* fix sources set terminal to hub

* ruff

* rewrite cassettes

* remove repeated settings

* rewrite expected
2023-03-27 16:59:36 +00:00
Raymond Wu
ef39ac8cc5 Fix grammatical error in CONTRIBUTING.md (#4590) 2023-03-27 16:35:29 +00:00
andrewkenreich
82d31c169e Update Dev readme (#4600) 2023-03-27 15:09:59 +00:00
montezdesousa
d8d16c4ae9 fix test keys written on .env file (#4599) 2023-03-27 14:43:06 +00:00
montezdesousa
bdbd6a12f8 fix test keys written on .env file (#4599) 2023-03-27 14:43:06 +00:00
Colin Delahunty
e1fe8935c8 Hotfix/3596 (#4548)
* Step one: error handle Option class

* Step one: error handle Option class

* Got upcoming working

* Refactored before bug deep dive

* Refactored before bug deep dive

* cleaned

* cleaned
2023-03-24 20:55:28 +00:00
Colin Delahunty
865c4c0d79 Fixes crypto ov issue (#4574)
* Added a description

* Test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-24 14:08:46 +00:00
Colin Delahunty
3a3102fb60 Added sources (#4576) 2023-03-24 13:50:41 +00:00
James Maslek
099a9db7dc Release -> develop (#4581)
* Update trailmap.py (#4300)

* Fixes Failing AutoDocs (#4304)

* Fixes Failing AutoDocs

* Update test_print_help.txt

* Release 2.5.0 (#4355)

* Rename SDK folder

* Fixing all the tests I hope

* Depreciate the sia menu

* Fix routine script

* Update SDK generation scripts

* This needed fixing anyways

* Regenerate SDK files

* Update paths in sdk helpers

* Regenerate the remains of the SDK

* Fix candle not working with symbol via the sdk

* Fix pydocstyle errors

* deps

* Add in Docstrings

* Push to website since I need to upload images

* typos

* Add in Fixed Income Guide

* Tests : fix cassette

* changes to layout and adding more content

* trailmap

* poetry

* updates to requirements files

* add `_try_to_login` to sdk generation, fix `_chart` in `about()` url

* sentiment analysis

* refactor

* changing to base model default

* rounding

* renewing poetry

* fixed poetry

* spacing

* black

* adds selectable models for realized volatility calculations

* fixes line too long

* Add intro guides to Fixed Income

* Fix some missing docstrings

* Fix website not working

* missed a few

* fix /economy/test_yfinance_view tests

* fix etf/test_stockanalysis_model.py

* fix etf/test_stockanalysis_view.py

* fix test_stocks_controller

* deprecating non used function

* update financedatabase to 2.0.4

* Delete SIA from OpenBB Docs and SDK

* Searching was not done properly for short name and index

* changes the default data source for crypto.load

* Fix tests I broke

* Little fixy fix to remove duplicates

* Fix tests

* typo

* adds check for empty dataframe

* Patch Equity Report

* Update so that image links to website

* linting v2

* silly imports

* adding tempfile

* add imap unordered

* reordering imports

* Adding databento as a source (#4293)

* First commit

* Baby steps

* Keys and sdk

* Fix import for api key

* Add SDK endpoints

* Test + api checks

* tests

* roque print of api key

* Changes

* minor

* custom timeout

* improve timeouts

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Tests

* Integration test

* frozendict remove

* update spec

* rename sdk faq to troubleshooting

* add hidden import

* add hidden imports

* imports again

* valid url check

* new lines and prompt

* split imports

* more spec

* adds cones to the crypto-ta menu

* Fix tests

* Update code to reflect new changes to FinanceDatabase

* Small bugfix for DCF if you have no ticker loaded

* remove yfinance from news

* add reverse fx choices

* black

* ruff

* Add options greeks to the SDK

* Linting

* Delete rogue file and update test and add fixedincome to en.yml

* fix for options screener

* ruff

* updates tests for options screener

* reqs

* updates more test files

* rewrite for test_github_model

* rewrite test for test_syncretism_view

* removes test_view_available_presets[]

* black

* coverage

* adds option screener preset

* Update directories.py

* len & set

* set all list

* adds unit testing for cones

* ruff

* pylint

* adds options screener endpoint to SDK

* test markers

* Testing draft PR mode

* Update package to v2.0.7

* Remove etf/screener and tests

* Updated

* Merge reqs

* Updated readme

* hook test for pyinstaller

* Little fixy fix

* Remove etf/scr from SDK

* Update tests

* Update hook-whisper.py

* oops lol

* Update sdk

* update

* Etf

* removed old trailmap csv's

* Update fixedincome text

* add greeks to trail

* rouge file

* merge killed it

* fix test

* fix build failure

* catch for error message

* fix for frozendict

* caching search and prompting on hub

* whisper model prompts

* Fix long/short issue and fix transform issue

* separates volatility models from cones function

* Introduce CPI functionality

* improves error handling for volatility models when window length is too small

* ur welcome <3

* additional sanity check for volatility_view

* updates volatility_model test

* black

* Fix linting

* Make cpi a little bit more robust

* Add in missing value

* sdk updates

* update dep files

* Update trail_map_forecasting.csv

* import ordering pylint?

* fix trailing comma

* sorted trailmaps

* remove one test artifact

* rewrite test

* Adds the missing pieces.

* adds clickable URL in keys + Databento

* adds databento images

* adds images for Databento

* update deps

* req files

* swap order in databento

* ruff

* mypy

* lint

* sdk

* makes requested changes

* ruff v2..

* replaces screenshot.

* Removed because it shouldn't have been in this PR.

* ruff v3

* Minor edit, move installation to position 2 instead of last

* util linting changes

* linting for controller

* fix test

* test

* Revert some tests

* Guess not

* see if this sticks

* fixes

* Fix linters.  Add --video if not provided

* Checkout develop tests for keys

* Release time

* Revert papermill and update gh pages action

* Fix shortname (#4356)

* uninstall brotli on conda test

* Fix issue 4316 (#4357)

* Fix issue 4316

* Updating polygon_model + options_controller

* Tests : FRED

* ruff

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>

* Release/2.5.1 (#4368)

* Fix routine script

* Update SDK generation scripts

* This needed fixing anyways

* Regenerate SDK files

* Update paths in sdk helpers

* Regenerate the remains of the SDK

* Fix candle not working with symbol via the sdk

* Fix pydocstyle errors

* deps

* Add in Docstrings

* Push to website since I need to upload images

* typos

* Add in Fixed Income Guide

* Tests : fix cassette

* changes to layout and adding more content

* trailmap

* poetry

* updates to requirements files

* add `_try_to_login` to sdk generation, fix `_chart` in `about()` url

* sentiment analysis

* refactor

* changing to base model default

* rounding

* renewing poetry

* fixed poetry

* spacing

* black

* adds selectable models for realized volatility calculations

* fixes line too long

* Add intro guides to Fixed Income

* Fix some missing docstrings

* Fix website not working

* missed a few

* fix /economy/test_yfinance_view tests

* fix etf/test_stockanalysis_model.py

* fix etf/test_stockanalysis_view.py

* fix test_stocks_controller

* deprecating non used function

* update financedatabase to 2.0.4

* Delete SIA from OpenBB Docs and SDK

* Searching was not done properly for short name and index

* changes the default data source for crypto.load

* Fix tests I broke

* Little fixy fix to remove duplicates

* Fix tests

* typo

* adds check for empty dataframe

* Patch Equity Report

* Update so that image links to website

* linting v2

* silly imports

* adding tempfile

* add imap unordered

* reordering imports

* Adding databento as a source (#4293)

* First commit

* Baby steps

* Keys and sdk

* Fix import for api key

* Add SDK endpoints

* Test + api checks

* tests

* roque print of api key

* Changes

* minor

* custom timeout

* improve timeouts

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Tests

* Integration test

* frozendict remove

* update spec

* rename sdk faq to troubleshooting

* add hidden import

* add hidden imports

* imports again

* valid url check

* new lines and prompt

* split imports

* more spec

* adds cones to the crypto-ta menu

* Fix tests

* Update code to reflect new changes to FinanceDatabase

* Small bugfix for DCF if you have no ticker loaded

* remove yfinance from news

* add reverse fx choices

* black

* ruff

* Add options greeks to the SDK

* Linting

* Delete rogue file and update test and add fixedincome to en.yml

* fix for options screener

* ruff

* updates tests for options screener

* reqs

* updates more test files

* rewrite for test_github_model

* rewrite test for test_syncretism_view

* removes test_view_available_presets[]

* black

* coverage

* adds option screener preset

* Update directories.py

* len & set

* set all list

* adds unit testing for cones

* ruff

* pylint

* adds options screener endpoint to SDK

* test markers

* Testing draft PR mode

* Update package to v2.0.7

* Remove etf/screener and tests

* Updated

* Merge reqs

* Updated readme

* hook test for pyinstaller

* Little fixy fix

* Remove etf/scr from SDK

* Update tests

* Update hook-whisper.py

* oops lol

* Update sdk

* update

* Etf

* removed old trailmap csv's

* Update fixedincome text

* add greeks to trail

* rouge file

* merge killed it

* fix test

* fix build failure

* catch for error message

* fix for frozendict

* caching search and prompting on hub

* whisper model prompts

* Fix long/short issue and fix transform issue

* separates volatility models from cones function

* Introduce CPI functionality

* improves error handling for volatility models when window length is too small

* ur welcome <3

* additional sanity check for volatility_view

* updates volatility_model test

* black

* Fix linting

* Make cpi a little bit more robust

* Add in missing value

* sdk updates

* update dep files

* Update trail_map_forecasting.csv

* import ordering pylint?

* fix trailing comma

* sorted trailmaps

* remove one test artifact

* rewrite test

* Adds the missing pieces.

* adds clickable URL in keys + Databento

* adds databento images

* adds images for Databento

* update deps

* req files

* swap order in databento

* ruff

* mypy

* lint

* sdk

* makes requested changes

* ruff v2..

* replaces screenshot.

* Removed because it shouldn't have been in this PR.

* ruff v3

* Minor edit, move installation to position 2 instead of last

* util linting changes

* linting for controller

* fix test

* test

* Revert some tests

* Guess not

* see if this sticks

* fixes

* Fix linters.  Add --video if not provided

* Checkout develop tests for keys

* merge release into develop (#4359)

* Update trailmap.py (#4300)

* Fixes Failing AutoDocs (#4304)

* Fixes Failing AutoDocs

* Update test_print_help.txt

* Release time

* Revert papermill and update gh pages action

* Fix shortname (#4356)

* uninstall brotli on conda test

* Fix issue 4316 (#4357)

* Fix issue 4316

* Updating polygon_model + options_controller

* Tests : FRED

* ruff

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>

* Add pydantic to reqs and get ffmpeg in docker image

* initialize session (#4360)

* Unpin old version of jsonschema (#4365)

* puts pip install openbb[all] inside quotes (#4366)

Co-authored-by: James Maslek <jmaslek11@gmail.com>

* Merge deps

* Hotfix/bug #3837 (#3942)

* Fix: Fixed spaces causing error in --sort flag at crypto/disc/...

* Fixed minor issues

* fixed formatting using black

* Ran tests locally

* fixed top command

* reverse flag to gainers

* reverse flag to losers

* fixed dappradar verbose exceptions

* tests

* tests

* tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>

* Update release files

---------

Co-authored-by: jeroen <jer.bouma@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: Brendan de Faria <brendan.defaria@gmail.com>

* hotfix/Fix troubleshooting and adding lines (#4379)

* Release Branch

* fix print_pretty_prediction, avoid error on DummyBackend.__version__

* Update gh-pages.yml

* fix removed start_required_configurations

* fix gh-pages yarn lockfile, integration tests libs

* ship it

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: Brendan de Faria <brendan.defaria@gmail.com>
2023-03-24 13:31:05 +00:00
Igor Radovanovic
50a20aeaf1 Fix mocking (#4577)
* fix mocking

* run tests?

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-03-24 13:20:07 +00:00
montezdesousa
e300071522 Fix pytest writing to .env (#4580)
* fix pytest writing to .env

* ruff
2023-03-24 11:49:54 +00:00
teh_coderer
7972098ce7 hotfix/PyWry Linux Wheels-Import Error Handing (#4561)
* init

* Update openbb.dockerfile

* fixing linting

* req files CLI update

* bump pywry

* new width/weight env vars for pywry specifically

* Update backend.py

* req files

* Update backend.py

* last bump pywry 0.4.0

* Update dashboards_controller.py

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-23 20:22:05 +00:00
Colin Delahunty
18070bc714 Added start_date functionality (#4564)
* Added start_date functionality

* Updated tests

* Added fixes

* Fix test

* retest

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-23 18:44:52 +00:00
Igor Radovanovic
941a4b0e12 fix windows build (#4571) 2023-03-23 18:44:48 +00:00
James Maslek
69694332e6 Documentation push (#4501)
* hi didier

* Add files

* Add the changelogs from GH

* Api keys + cleaning up spelling + found some old refs

* spelling

* Merge branch 'feature/documentation3p0' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/documentation3p0

* updates to faq sections

* spelling

* fixing FA so it runs

* adding guides - need pics

* telegram/discord docs markdown format conversion

* fix: added new reference styles

* adding examples to discord - remove play button

* updating bot docs

* image showing on docs

Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>

* feat: added imageurl for examples

* updates Stocks SDK intro

* bot pics update

* updating rest of bot docs

* adding code for generating index and bot updates

* linting

* Downgrade scikit-learn to avoid DistanceMetric32 not being found

* add some updates to guide for auto select commands

* Add pytest-recorder to requirements.txt

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>
2023-03-23 17:36:47 +00:00
jose-donato
dbd466d381 New table design (#4485)
* fix: new table design

* fix: added trillions

* fixing some raw data

* fix: trying to fix global+resize

* feat: improving design

* fix: new styling and lot of reorganizing

* title fix

* feat: new html

* fix: bottom bar

* fix: table dates

* fix: table html

* fix: new filtering

* fix: new filtering

* fix: long

* Lint

* Lint again

* fix: beautiful james suggestions

* fix: some more fixes

* fix: typo

* fix economy bug

* feat: added toast to notify user and some more cleanup

* fix: more issues

* tests

* fix: james updates

* fix: added banner to charts as well

* fixing title

* better fix

* feat: added column resizing and any number of columns

* auto column width - poc

* feat: added colors toggle, support to display source, fixed some more issues

* fix: table deploy

* fix: table issue

* fix header

* fix: some fixes

* fix: remember pagination and default pagination to 30

* mypy

* Colins tests

* Fix economy test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-03-23 16:45:46 +00:00
Igor Radovanovic
2bf1729bbd Alt & mutual fund unit test & cleanup (#4540)
* Alternative & Mutual Funds unit tests & cleanup

* ruff

* add dependency

* general linting updates

* Update reqs

* pytest-recorder updates

* pre-commit config

* checkout dependencies from develop

* dependency update

* dependency update

* pytest-recorder updates

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-03-23 12:33:36 +00:00
Henrique Joaquim
e69966b4a5 Economy menu bugs <> making the integration test work (#4563)
* fix malformed dataframe on bigmac index for several countries

* improve handling of exception for gdp

* improve handling of exception for rgdp

* improve handling of exception for fgdp

* improve handling of exception for oecd model

* fix list index out of bonds

* add arg to fred
2023-03-23 09:22:48 +00:00
Henrique Joaquim
937d033160 Adds BaseModel and SystemModel (#4491)
* adding BaseModel

* initial version of the system model

* creating setup functions and removing constants from config_terminal

* removing log_supress const

* fix test

* merge

* system handler

* fix import

* centralized configs setup

* repr to use the BaseModel

* updating i18n dict location

* ignoring warning on wrong type-var

* ruff

* Update openbb_terminal/core/models/system_model.py

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* Update openbb_terminal/core/models/system_model.py

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* import literal

* loading env files before the plot backend is called

* fix tests/openbb_terminal/test_terminal_helper.py

* tests need to have i18n initialized

* fix seeking_alpha tests

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-03-22 15:00:58 +00:00
Colin Delahunty
b481504aab Fix M1 CI (#4550)
* Step one: error handle Option class

* Step one: error handle Option class

* Got upcoming working

* Fixed

* NExt

* NExt

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-03-22 13:26:17 +00:00
Colin Delahunty
26ec83e9fa Fix build workflow on Intel macs (#4549)
* Step one: error handle Option class

* Step one: error handle Option class

* Got upcoming working

* Fixed

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-03-22 11:17:46 +00:00
teh_coderer
0e0069eb97 Feature/In-Chart Volume, Streamlit TA Indicators (#4467)
* init

* rename `add_stock_volume`  to `add_inchart_volume` in OpenBBFigure class

* ruff

* poetry lock, req txt files

* fix: ma indicator not in list, connectgaps=true for subtickers

* improved forecasting streamlit

* added past_cov_legend next to explainability plot

* Update base.py

* updates

* Remove deprecated currencies dashboard and it's dependency

* Revert import statement deletion

* Lint docstrings and delete unused assets

* Fix forecast voila dashboard

* Fix futures voila dashboard

* Remove broken crypto prices dashboard

* Remove vsurf dashboard because of over-verbose yfinance error messages

* Fix chains dashboard chart title positioning

* Remove i18n entries for deleted dashboards

* streamlit cmdline fix for macs/conda

* Update reddit_model.py

* mypy, fixed removed `load_dotenv_and_reload_configs` in `website\controller_doc_classes.py`

* readded rust install on CLI for linux in case cache gets cleared

* Update forex_helper.py

* Update test_load[60-YahooFinance].csv

* Update test_call_func[call_sec-marketwatch_view.sec_filings-other_args37-called_with37].yaml

* deps

* sdk generation tests, trailmap fixes

* Revert "sdk generation tests, trailmap fixes"

This reverts commit 2575784a33.

* Revert "Revert "sdk generation tests, trailmap fixes""

This reverts commit 5cb0ce030b.

* improve ta-multi, add title/legends to fred_view

* Update ta_controller.py

* ruff

* Update helper_funcs.py

* Update yfinance_view.py

* Update helper_funcs.py

* change executable parent paths to REPOSITORY_DIRECTORY

* fix distorted candlestick plots when freq is weekly/month, fix demark

* fix yaxis click handler

* Update popups.js

* Update popups.js

* Update popups.js

* Update volatility_plugin.py

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-03-21 21:47:29 +00:00
Colin Delahunty
5425b063ae Fixes the Upcoming Command (#4547)
* Step one: error handle Option class

* Step one: error handle Option class

* Got upcoming working

* Got upcoming working
2023-03-21 14:53:31 +00:00
Jalil F
a43e414f48 Update crypto newsletter substack to RSS. fixes #4496 (#4497)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-21 13:49:24 +00:00
montezdesousa
d6718842e0 Fix show version flag not being saved in .env (#4534)
* save pref in .env

* black

* MAke generate sdk timeout longer

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-21 13:06:53 +00:00
montezdesousa
1a1e8c0ed4 Add login command (#4509)
* fix show version

* update login prompt and account

* update set preference

* fix account controller

* block login/logout if not called from account

* change conditions to start terminal

* fix required args account model

* add not to login command

* pylint

* accounte controller messages

* set default user when logout

* logout then show menu

* remove unused functions

* fix logging bug

* ruff

* fix account unittests

* fix session unittests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-21 10:13:59 +00:00
Jeroen Bouma
6b4f0ad6da Add new functionality to measure country performance (#4514)
* Add in new country parameters

* Add in tests corresponding to the new commands

* Update SDK and some more robustness

* Update tests

* Update tests

* Revenue and spending didnt work, then saw spending has many more options

* Small bug

* Update tests and overall improvements

* Forgot to add ccpi

* Make more efficient

* Update tests

* Fix IDX issue within real gdp

* Add quarterly flag to fgdp

* Add integration tests

* Update tests

* Fix SDK and related bugs and fix CPI for SDK

* Zzzz tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-20 15:21:58 +00:00
James Maslek
cceeb3e2b6 Fixing fa/ bugs (#4524)
* Fix fraud showing nothing when NA values

* Fix sdk

* fix #4457

* sdk generation tests

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-20 14:54:07 +00:00
Chavithra
890cc87f19 Update visualize_output function (#4536) 2023-03-20 14:51:19 +00:00
Colin Delahunty
4548abb45e Hotfix/3591 (#4519)
* Step one: error handle Option class

* Step one: error handle Option class

* Handle unfindable
2023-03-17 21:11:58 +00:00
Colin Delahunty
4e7f82069c Fix Finviz Error (#4518)
* Step one: error handle Option class

* Step one: error handle Option class

* Handle unfindable
2023-03-17 21:11:39 +00:00
Colin Delahunty
1dffba8ee4 Adds Error Handling to the options class (#4516)
* Step one: error handle Option class

* Step one: error handle Option class

* Handle unfindable
2023-03-17 20:12:19 +00:00
Colin Delahunty
84a3628b2e Removed duplicate chart (#4511)
* Removed duplicate chart

* Removed duplicate chart

* improved and fixed `call_index` in economy controller

* Update preferences_model.py

* Improve handling for dot in ticker

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-17 17:14:51 +00:00
Colin Delahunty
4ea20eb50d Improve handling for dot in ticker (#4513) 2023-03-17 15:32:28 +00:00