Commit Graph

3 Commits

Author SHA1 Message Date
Danglewood
e1af0a7dc1 [Feature] Add Relative Rotation To openbb-technical and openbb-charting (#6277)
* add relative rotation

* router examples

* docstring

* test params

* black

* name of test functions

* router example description

* fix NoneType is not iterable

* clear print

* linting

* black

* revert that one place, it can stay None

* forgot that file in the commit

* some cleanup

* improving the get_type_name funciton a bit

* query_params types

* pylint

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2024-04-19 16:23:14 +00:00
Danglewood
951749156d [Enhancement] Improve Charting Extension Plots and Indicators (#6243)
* improve historical prices charts

* ruff

* correction in docstring.

* forgot crypto in the router

* pylint

* that one shouldn't have changed.

* pylint again

* and black

* add flag for heikin_ashi

* better kwarg

* ruff

* tests

* update warnings catch

* ruff

* pylint

* don't cast warning when parameter is 'chart_params'

* chart params

* start backend only when the chart is about the be created

* get_params

* add generic line chart method for unsupported endpoints and external data

* return None when render

* query params

* don't add volume to candle legend

* better moving averages

* commit some updates

* add the __init__ file..

* exception handling

* generic charts style

* forgot to remove that print statement

* codespell

* generic bar charts

* group bar charts

* don't raise params warning when 'chart_params' in extra_params

* price performance chart

* black

* ruff

* typing things

* etf price performance chart

* don't warn when 'chart_params' exists

* black

* pylint

* pylint

* pylint

* mypy

* black

* etf holdings chart

* mypy

* bar charts for fred

* pylint

* some review things

* codespell

* pylint

* apply metadata update

* unused import

* typing things

* ruff

* weird title thing

* docstring

* backend syntax

* black

* pylint

* duplicated imports outside of top level

* start backend in constructor

* more linters

* now black

* more linter

* update warning ignore line

* Charting class doctstring

* indicator edge case

* pylint

* that was annoying

* forgot macd indicators query params

* kc default setting

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <henriquecjoaquim@gmail.com>
2024-04-10 12:36:10 +00:00
Henrique Joaquim
2f01e954d1 Feature/charting obbject (#5938)
* fix circular import issues on the obbject extension framework

* settings available on the obbject

* extension init

* charting assets and code

* introduce to_chart functionality

* removes the to_chart method from obbject in detriment of the one from the obbject extension

* Update openbb_platform/obbject_extensions/charting/charting/__init__.py

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

* fix on the show method

* adding the example to the to_chart docstring

* copying the exsting README from charting extension - needs to be revamped

* moving to openbb_charting instead

* update the pyproject.toml file

* pydocstyle

* versions

* better docstrings

* making accessors public

* removing unnecessary credentials variable cc @montezdesousa

* removing access to extra/metadata and use designated private attrs instead

* Fixes linting for the logging service (#5992)

* lints

* typing.Type instead

* deprecating ChartingService to use the new extension instead - adding function discovery capabilities using it

* tests for the obbject charting extension

* removing charting service from command runner

* filter functions not implemented in the module

* remove charting service tests

* removing charting service on the tests for int tests

* charting integration tests

* removing charting service file

* removing old charting extension code

* revamp builder

* fix obbject tests

* fix command_runner tests

* removing openbb_figure_table

* better website docs

* reviewed readme

* unsetting api key for posthog (pywry) windows

* added debug_mode to the system settings

* removing api key

* update nightly script

* fix tests

* black

* black

* Revert "black"

This reverts commit 21d76ad689.

* Revert "black"

This reverts commit 0904653fd7.

* black for henrique

* returning a list instead

* better docstrings

* removing unnecessary indicators docstring

* typo

* black

* intentional access to protected member

* changes to publish script

* filtering deleted files

* black

* adding render argument

* fixing the df_to_basemodel function: it should include the index in the columns either if flagged or if the index is named

* adding the hability to add you own data to to_chart method

* tests

* black

* disable protected access

* accept kwargs to eg. save image

* adjustment cc Igor

* add if statement for protection

* remove unused return typing

* fix technical charting views

* better error message cc @IgorWounds

* better structure and fix test

* Revert "better structure and fix test"

This reverts commit 612ea6117c.

* Revert "better error message cc @IgorWounds"

This reverts commit 3d7ee53878.

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2024-02-14 15:19:27 +00:00