Commit Graph

1781 Commits

Author SHA1 Message Date
Adi Sai
fcb78d71f2 Feature/ultima top headlines (#5061)
* initial integration of top headlines

* top headlines formatting

* re-ran tests

* fixing typing issues

* passed test

* fix ruff

* guard top headlines call + pass tests

* Minor cosmetic changes

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-26 16:18:08 +00:00
LOne2three
58391c1edf Hotfix/reddit spacc (#5067)
* Change logic in print_rich_table and display_spacc_community

* changed comment

* Changed logic in print_rich_table

* Got rid of whitespace

* changed comments

* changed formatting

* changed formatting

* changed formatting

* Fixed linting

* sort imports

* added TypeError to exception block and moved print_reddit_post to after the ticker iteration loop so that tables and tickers would be loaded at the same time

* Changed logic in  display_space_community to print all reddit posts to a single table

* Quick fix wsb command

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-26 14:42:26 +00:00
Colin Delahunty
d0b815b8f7 Cleaned up CP (#5070)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-05-26 12:56:38 +00:00
northern-64bit
8e21b340e0 Adds test for collinearity to the econometrics menu (#5018)
* Add `vif` command to the ecomometrics menu

Adds `vif` command, which tests collinearity by calculating the variance inflation factor.

* Fix spelling

* Fix ruff

* Fix ruff

* Fix mypy + add sdk example

* Fix mypy

* Fix pylint

* Fix input + error handling

* Remove rouge print + error handling for one column

* fix linting
2023-05-25 14:54:11 +00:00
Colin Delahunty
e30da799aa Fixes Description on Fixedincome (#5065)
* FIxed some stuff

* FIxed some stuff

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-25 14:48:38 +00:00
montezdesousa
8609b7b1e7 always reevaluate keys menu (#5055) 2023-05-25 14:47:10 +00:00
teh_coderer
e07a5a3826 hotfix/ Options Historical + Crypto candles (#5064)
* fix options/crypto candles

* fix streamlit indicators

* Update Indicators.py
2023-05-24 20:46:40 +00:00
Danglewood
77b2da0cd3 fix integration test for fixedincome controller (#5060) 2023-05-23 22:38:16 +00:00
Igor Radovanovic
d748766573 Preserve stock ticker suffix (#5056)
* Preserve suffix

* Fix suffix doubling
2023-05-22 18:58:37 +00:00
Danglewood
5b4b8f9ee3 expands integration test coverage (#5051)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-05-20 18:01:12 +00:00
Danglewood
b3d4909bf2 100% coverage for fixed income integration tests (#5048) 2023-05-19 18:30:15 +00:00
Henrique Joaquim
8924f880d1 adds primaryUsage to Posthog logs (#5037) 2023-05-19 18:27:40 +00:00
Igor Radovanovic
9e610d4495 Hotfix/edebt (#5046)
* Remove \n

* Fix column names
2023-05-19 18:27:09 +00:00
Igor Radovanovic
80c7e02707 Remove \n (#5045) 2023-05-19 18:26:57 +00:00
teh_coderer
a6a2268ddc Hotfix/ Candle --log (#5039)
* init... might break stuff

* fix

* clean up

* check if array for color keys
2023-05-18 16:24:29 +00:00
teh_coderer
b54c47e2e9 hotfix/ Charts Theme change not persisting (#5036)
* revert and fix bug introduced in #4546

* improve theme change in chart, add `theme.apply_style()` to settings_controller/hub config change
2023-05-17 14:38:13 +00:00
Igor Radovanovic
9beba4cf74 Fix file edge case (#5033)
* Fix file edge case

* edge case

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-05-16 21:39:58 +00:00
teh_coderer
0f3497a3c1 remove plotly charts legacy web modules (#5034) 2023-05-16 21:05:48 +00:00
teh_coderer
fd0ad21873 fix modebar hide/show on hotkeys (#5026)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-16 17:25:04 +00:00
andrewkenreich
549613c821 fixing min-mix stikes on options (#5028)
* fixing min-mix stikes on options
Fixing the min-max values on views for options

# Description

- [ ] Summary of the change / bug fix.
- [ ] Link # issue, if applicable.
- [ ] Screenshot of the feature or the bug before/after fix, if applicable.
- [ ] Relevant motivation and context.
- [ ] List any dependencies that are required for this change.

# How has this been tested?

* Please describe the tests that you ran to verify your changes.
* Provide instructions so we can reproduce.
* Please also list any relevant details for your test configuration.
- [ ] Make sure affected commands still run in terminal
- [ ] Ensure the SDK still works
- [ ] Check any related reports

# Checklist:

- [ ] I have adhered to the GitFlow naming convention and my branch name is in the format of `feature/feature-name` or `hotfix/hotfix-name`.
- [ ] Update [our documentation](https://openbb-finance.github.io/OpenBBTerminal/) following [these guidelines](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/website).  Update any user guides that are affected by the changes.
- [ ] Update our tests following [these guidelines](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/tests).
- [ ] Make sure you are following our [CONTRIBUTING guidelines](https://github.com/OpenBB-finance/OpenBBTerminal/blob/main/CONTRIBUTING.md).
- [ ] If a feature was added make sure to add it to the corresponding [integration test script](https://github.com/OpenBB-finance/OpenBBTerminal/tree/develop/openbb_terminal/miscellaneous/integration_tests_scripts).

# Others
- [ ] I have performed a self-review of my own code.
- [ ] I have commented my code, particularly in hard-to-understand areas.

* remove a print

* fix test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-16 17:16:34 +00:00
James Maslek
95e97c6e35 Merge branch 'develop' into release/3.0.1 2023-05-15 19:39:18 -04:00
teh_coderer
7fa23c3707 hotfix/ Installer Backend (#5022)
* Update backend.py

* bump pywry

* bump again :/
2023-05-15 23:30:51 +00:00
James Maslek
1cf8ef246d Release 3.0.0 2023-05-15 16:03:12 -04:00
Theodore Aptekarev
bbfdf67b5a Retire old doc pages (#5012)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-15 16:55:42 +00:00
teh_coderer
3e0309816c Hotfix/ Candle Lines, Tables/Charts Save (MacOS) (#5019)
* init

* fix tables save

* Update .gitignore

* Update utils.ts

* add volume to csv, fix `-` filename

* fixes #5020

* tests

* License year

* tests v1

* tests?

* Revert "tests?"

This reverts commit f837a6e0df.

* fix posthog

* Update test_get_debt.yaml

* tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-15 15:57:20 +00:00
teh_coderer
c642dc108d Update system_model.py (#5017) 2023-05-13 21:23:35 +00:00
Henrique Joaquim
addd4f7727 Feature/improve posthog logs (#4951)
* improving handling of logging handlers

* removing alias

* lint

* removing debug print

* adding alias back

* adding the commithash to the system so it gets logged

* doing posthog on hub_user login

* ruff

* tacking this on - docs update

* identify and alias together

* fixing conditions

* the juan way

* ruff

* don't send logs to S3 if posthog is an active handler

* branch name on the posthog logs

* removing duplicate import

* fixing tests

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-12 09:02:14 +00:00
teh_coderer
979930b9e8 feature / Refactor Interactive Charts to React (#4941)
* init

* fix tables

* add shortcuts

* handle svgs

* test

* test2

* test3

* Update loggers.py

* Update sdk_helpers.py

* Update loggers.py

* Update loggers.py

* updates

* updates

* update

* handle add text high/low for candlestick traces when updating

* adding save overlay to tables

* maybe fix

* prints

* asdf

* working

* working

* removing prints

* update

* fix no figure title text

* add trace labels space

* download finished popup for MacOS

* bump pywry

* update

* update table

* Update plotly_helper.py

* only format numbers over 10_000 on tables

* Delete generate_index.py

* turn off logs in generations

* update tables

* bump pywry, fix tables, added ichimoku ta indicator

* Update backend.py

* mypy

* update tables

* updates

* juan more

* tables

* test

* bump pywry

* bump pywry

* Update loggers.py

* test

* fixing some formatting

* add update button to indicators dashboard

* fix oecd dates to be full dates

* prepare charts/tables for pywry update

* Update poetry.lock

* Update finviz_view.py

* tests

* tests

* tests

* tests

* testss?

* tests

* Create test_call_func[call_sec-nasdaq_view.sec_filings-other_args37-called_with37].yaml

* testtss please

* Update loggers.py

* testss

* `with open(newline="\n")`

* tests

* tests -__-

* why

* Revert "`with open(newline="\n")`"

This reverts commit 554e0f53f4.

* Revert "why"

This reverts commit 89f1d9b823.

* Revert "tests -__-"

This reverts commit a9c694ae96.

* Revert "tests"

This reverts commit 5463249498.

* whelp

* .

* rename `streamlit.py` -> `streamlit_run.py`,  bump pywry/finviz/streamlit

* Update backend.py

* update

* Revert "update file"

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-11 17:38:12 +00:00
James Maslek
6b9b840740 fix biztoc print on launch (#5004)
* fix biztoc print on launch

* missed something
2023-05-11 15:41:30 +00:00
Danglewood
0e0de86b49 feature/heikin-ashi-candles: Adds a flag for Heikin Ashi Candles on stocks/candle (#4979)
* Adds a flag for Heikin Ashi Candles on stocks/candle

* ruff

* pylint

* doc strings

* fix typo

* update integration test file

* updates the docs accordingly.

* remove second if statement

* requested change

* adds check for the expected columns

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-11 00:31:41 +00:00
Thomas Marban
29a297c2dc First introduction of news_biztoc — A new partnership with BizToc.com (#4864)
* First introduction of news_biztoc — A new partnership with BizToc.com

* bump pywry

* fix rm command (#4890)

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

* Fix `crypto/defi/anchor` (#4892)

* handle defi anchor exceptions

* reason

* mypy

---------

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

* fix windows pyinstaller subprocess fail if space in path

* remove API_IEX_TOKEN

* remove API_SENTIMENTINVESTOR_TOKEN

* Add autocompletion and merge into one news function + add to sources dictionary

* Autocomplete for the tag

* fix test

* Make a new sdk help[er for openbb.news

* pylint

* lint

* lint2

* Regenerate sdk

* remove cmd from list

* api-keys

* Update api-keys.md

Add images

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
2023-05-10 18:12:55 +00:00
Disorder AA
d197abd16c feat(tables): AA-729 clear filters (#4996)
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
2023-05-10 17:53:55 +00:00
northern-64bit
bde21f033e Adding GARCH (#4815)
* Add GARCH

* Linting

* Rearrange the econometrics menu

* Add integration test

* Add ret command + fixes

* Fix linting

* Fix linting

* Fix pylint

* Add logger to functions

* bump pywry

* fix rm command (#4890)

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

* Fix `crypto/defi/anchor` (#4892)

* handle defi anchor exceptions

* reason

* mypy

---------

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

* fix windows pyinstaller subprocess fail if space in path

* remove API_IEX_TOKEN

* remove API_SENTIMENTINVESTOR_TOKEN

* Convert to latex + requested changes

* Fix linting

* Remove unnecessary logger

* Add example

* SDK updated

* fix syntax on elite level math that I def know

* Fix docstring

* Fix example

* Fix

* Linting

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-05-10 14:30:36 +00:00
Igor Radovanovic
705a3318e0 Integration test coverage (#4969)
* Integration test coverage POC

* Update

* Integration test cleanup

* Fix

* update tests > index 36

* rename stocks tests

* Update Integration Tests

* Update Integration Test Coverage

* Update integration tests

* Linting

* Calculate parameter coverage

* Improvements

* Integration test update

* Improvements

* Improvements

* Improvements

* Improvements

* Add to controller

* Update README

* Add integration test summary

* Update integration tests

* Update integration tests

* Update algorithm

* avoid uncaught exception

* change summary

* change workflow

* another summawry change

* fix small bug when module not found

* summary table

* Refactor

* Workflow

* Breaking get_coverage_all_controllers

* Submenu coverage refactor

* Remove comments

* fix build workflow

* forgot intel

* update integration tests wf

* update windows wd (need to test)

* same

* fix integration test

* Windows patch

* Update integration-test.yml

* fix windows path

* fix windows build wf

* Update windows10_build.yml

* Linting

* fix paths

* Finishing path touches

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-05-10 09:44:12 +00:00
James Maslek
425b740eda Hotfix/databento + bugs (#4973)
* bump pywry

* fix rm command (#4890)

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

* Fix `crypto/defi/anchor` (#4892)

* handle defi anchor exceptions

* reason

* mypy

---------

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

* fix windows pyinstaller subprocess fail if space in path

* remove API_IEX_TOKEN

* remove API_SENTIMENTINVESTOR_TOKEN

* Fix data bento calls

* Fix options eod chain bug

* Fix finviz get

* Fix yf balance bug

* removing breakline

* Add error message

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-05-09 08:16:32 +00:00
Danglewood
eaf27ab522 restores parameters template file (#4976) 2023-05-09 05:21:26 +00:00
Pratyush Shukla
84125c88ad Fixed equity report (#4991) 2023-05-09 05:08:49 +00:00
Danglewood
ad6a9c5e07 removes global pandas display settings from fmp_view (#4983) 2023-05-09 05:03:17 +00:00
Pratyush Shukla
d86e5cc9c4 Updated pytrends dependency in config files and remove temp workaround (#4989)
* Updated dependency `pytrends>=4.9.2`

* Updated `requirements` & `requirements-full` files

* Removed temp workaround

* `ruff`
2023-05-09 05:00:43 +00:00
Pratyush Shukla
1a150b0dbc Fixed date format for crypto.dd.twitter and crypto.dd.events in SDK (#4990)
* Fixed `date` column

* `black`

* Fixed `date` column

* `black`

* tests
2023-05-09 04:40:27 +00:00
Igor Radovanovic
1c869afd2f Hotfix/ stocks/fa/dcf (#4992)
* Remove flags

* Update DCF params and file naming
2023-05-08 20:18:37 +00:00
Danglewood
1f3f6bf2c7 fixes forecast export (#4994) 2023-05-08 18:52:35 +00:00
Danglewood
4743e571b8 patches economy/edebt and updates tests (#4981) 2023-05-08 08:10:02 +00:00
LOne2three
1f0c3ff4de Hotfix/routine default file overwrite (#4927)
* bump pywry

* fix windows pyinstaller subprocess fail if space in path

* remove API_IEX_TOKEN

* remove API_SENTIMENTINVESTOR_TOKEN

* added logic to download_routines and save_routine to put default and personal routines in difference folders and changed logic in call_dowload in account controller to account for the change in logic for save_routine

* Changed logic in read_routine function to account for the new directory structure and also changed the corresponding unit tests. Slightly amended test_save_routine to account for the new routine param

* Changed the routine parameter of mock_save_routine.assert_called_once_with to account for the change in the input parameter of the save_routine function

* changed routine string in test_routines_handler

* Made unit tests for download_routines in routines_handler.

* added comments

* Added new logic to call_exe so that a user could execute the file with --file default/filename.openbb, --file personal/filename.openbb or --file Users/Username/openBBUserData/Routines/hub/default/filename.openbb

* linting: black

* linting: ruff

* ruff broke black

* removed regex in call_exe and changed logic in call_download to give personal routines priority

* Changed formatting

* Changed formatting and removed regex from call_exe

* Created class variables and moved dictionaries out of constructor to solve linting issue.
Changed routine args type annotation
Changed data list

* Added type annotations for the dictionary class variables

* Changed data annotation type for routine dictionaries

* Moved dictionaries back into constructor

* removed import pathlib

* ruff

* mypy

* pylint

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-05-05 13:12:45 +00:00
Pratyush Shukla
5ed7830af7 Fixed search command issues (#4845)
* Added `exchange` filter in `stocks\search`

* Fixed arguments

* Fixed issues with `stocks\search` command

* Fixed linting

* Fixed args and updated test

* get rid of second dash

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-05 12:49:43 +00:00
andrewkenreich
b9a4faa0d7 fixing equity report issue (#4922)
* fixing equity report issue

* some fixes

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-05-04 17:26:38 +00:00
Pratyush Shukla
5a3b006b76 Fixed column names for economy\performance and economy\valuation (#4968)
* Fixed column names

* Fixed column names for `valuation`
2023-05-04 16:27:28 +00:00
Danglewood
6964947904 hotfix/stock-screener-remove-delimiter: Gets rid of commas in Company column. (#4954)
* gets rid of comma in company name column

* re-records tests
2023-05-03 19:18:54 +00:00
Pratyush Shukla
cfb0f77f77 Fixed --help arg not working (#4956) 2023-05-03 12:41:08 +00:00
Henrique Joaquim
7c10fac330 removing wrong transposition (#4959) 2023-05-03 12:40:32 +00:00