Commit Graph

926 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
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
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
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
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
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
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
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
Igor Radovanovic
30372676bf crypto/disc DappRadar update (#4918)
* Add API Key, test function

* Fix API key

* Add free NFT endpoints

* Add free Dapp Endpoints

* Add free DeFi Endpoint

* Add free Token  Endpoint

* Menu cleanup

* Update unit tests

* Update integration test

* ruff

* Description

* Update SDK model

* Trail map

* Fix map

* Fix map

* Update SDK cache

* Linting

* fix

---------

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2023-05-03 11:56:07 +00:00
Igor Radovanovic
fd9d6fd030 Remove commas from i18n (#4952)
* Remove commas

* Update unit tests
2023-05-02 19:25:14 +00:00
Igor Radovanovic
d78a3648ce Fix Index not showing for FMP (#4948)
* Fix index

* Update unit tests

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-05-02 16:35:38 +00:00
Danglewood
3c41eb6830 Enhances stocks/quote to allow for multiple tickers (#4928)
* enhances stocks/quote to allow for multiple tickers

* fix for MyPy type error

* fix pylint

* formats index string as title

* adds test for multi-ticker quote and for bad tickers

* adds integration test for multi-ticker quote

* updates docstrings and adds 'openbb.stocks.quote_chart' to SDK

* updates syntax in equity report for quote_data

* ruff

* gets rid of empty lines that got created.

* adds logic to handle input as string when not a list

* re-records tests

* decorators
2023-05-02 15:28:21 +00:00
Pratyush Shukla
3d7b934d16 Fixed incorrect data display using stocks/fa/est command (#4940)
* Removed empty row in OpenBB SDK table under Installation

* Revamped `get_estimates` function

* Linting

* Fixed bugs, tests and modified args

* Fixed test
2023-05-01 20:23:59 +00:00
jose-donato
c603a360ec Adds shroom command and removes old ones (#4246)
* fix: remove old commands

* fix: ruff

* fix: ruff

* fix: james suggestions

* fix: added to csv

* fix: generate sdk cmds

* 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

* make -h actually work

* black ./

---------

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>
2023-04-28 12:44:59 +00:00
Sameer Khan
b951e4406f Futures Curve: minor cosmetic improvements (#4901)
* futures curve: prettifies contract names in raw table and in excel export. change column header to Last Price. set x axis of curve chart to correspond to contract months

* fixed linting and updated tests

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-27 19:02:07 +00:00
Theodore Aptekarev
18204202ac Remove stocks/disc/cnews command (#4920)
* Remove stocks/disc/cnews command from terminal and sdk

* Remove disc/cnews tests and test data

* Remove cnews from default sources, translations and intros

* Remove old test data files that are not used anymore

* Add pydocstyle ignore statement to pyproject toml

* Fix print help in stocks/disc controller test
2023-04-27 16:24:13 +00:00
teh_coderer
df9a15497d post main merge 2023-04-26 10:41:58 -04:00
Henrique Joaquim
3cf8aea940 Suppressing login related prints on the SDK initialization (#4893)
* suppressing the prints on the sdk init

* removing exceptions from tests
2023-04-25 13:15:36 +00:00
James Maslek
8ce8380ef3 Last minutes enhancements (#4885)
* Remove tab, fix overwrite, transpose exports

* missed some

* eodhd transpose
2023-04-24 23:04:21 +00:00
James Maslek
f589a037dc Convert timestamp to string for jose (#4881)
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-04-24 20:42:56 +00:00
James Maslek
cc876cd256 openbb.dev -> openbb.co (#4854)
* openbb.dev -> openbb.co

* Get rid of warning on login
2023-04-21 20:42:16 +00:00
teh_coderer
98ec2959f0 Hotfix/ table fixes (#4848)
* Update helper_funcs.py

* init

* Update test_display_cashflow_comparison.txt

* Update test_display_cashflow_comparison.txt

* fix copy paste fail

* Update helper_funcs.py

* Update backend.py
2023-04-21 18:10:53 +00:00
montezdesousa
3d243b361a Sync with hub on reset + routines fixes (#4842)
* keep session alive on reset

* remove print

* silence routines

* ruff

* skip login if is papermill

* ruff

* move is_papermill to avoid prompt_toolkit warning fd is not a terminal

* move is_papermill back and check for atty instead

* only download routines and update sources if terminal

* only starts prompt toolkit if isatty

* black

* avoid duplicate files after reset/login

* remove hub  routines on reset

* comment

* fix unittest

* forgot this debugging prints
2023-04-21 16:12:09 +00:00
Pratyush Shukla
df5d5a0047 Added exchange filter in stocks\search (#4801)
* Added `exchange` filter in `stocks\search`

* Fixed arguments

* test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-19 15:02:04 +00:00
montezdesousa
e27a40ab09 Update fundamental analysis sdk endpoints (#4727)
* update overview

* update overview

* fix docstrings

* update docstrings andremove fillings chart

* Update sdk_helpers.py

* run generate_sdk.py

* replace marketwatch by nasdaq

* generate sdk

* leftover pandas globals

* lint

* fix unittests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-19 13:35:39 +00:00
Pratyush Shukla
586ea002a4 Fixed file names typo in tests\openbb_terminal\mutual_funds (#4816)
* Fixed filenames

* Rename the rest of the files

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-19 13:28:18 +00:00
Pratyush Shukla
4c1d23b431 Fixed default routines message and evident display (#4798)
* Fixed default routines message and evident display

* Added message for personal routines

* Fixed linting

* Added `--type` argument

* Fixed linting

* Removed `console.print`

* rewrite test output

* reorder ifs and check if no defaults just for safety

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2023-04-19 10:16:54 +00:00
James Maslek
07d9ed2c9e Feature/featflags destroy (#4822)
* Remove ION from prefs

* Remove featflag rich

* remove cmdloc and watermark

* remove color featflag
2023-04-18 20:20:58 +00:00
James Maslek
dceaabcf53 Get rid of twitter news bar (#4820) 2023-04-18 15:47:22 +00:00
James Maslek
da7fb3a831 Improve options menu slightly + close some bugs (#4793)
* platform to logs

* dte not /365 and delete code i never got to

* 4 decimals on chains

* Change options default load to the defaut source

* mypy

* Less polluting of logs

* #4420

* #4811

* Fix test

* Remove unnecessary log decs

* Save us money

* whoops
2023-04-18 12:54:44 +00:00
montezdesousa
889ff94f12 Extend "Remember me?" login prompt option (#4802)
* add remember attribute to user

* don't save hist if not remember

* remove routines on exit if not remember

* fix unittests

* remove hub routines on exit

* check if user is local first

* remove hist file on exit if not remember

* comma

* Fix `exe --file` choices on login (#4799)

* download and save routines in sync, to have choices immediatly available

* fix: docs min

---------

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

---------

Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-17 17:53:09 +00:00
teh_coderer
70f74854d9 hotfix / no window if raw/export (#4809)
* no window if raw/export

* Update databento_view.py

* tests
2023-04-17 16:50:35 +00:00
James Maslek
a1d49e7845 Revert deleted files (#4775)
* Revert deleted files

* move docuemnatation folder

* lint

* mypy lint

* Added manual trigger for GH pages

* Dont divide data by 100 in fred because it can't be overlayed on charts smh

* Switch Price -> Option Premium

* Switch Price -> Option Premium missed commit

* Undo workflow dispatch

---------

Co-authored-by: Luqman <luqazino@gmail.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-04-14 21:13:35 +00:00
teh_coderer
fea595c8a0 Hotfix/ Economy oecd_view docstrings Remove finviz image cmds (#4783)
* idk

* g

* Update oecd_view.py

* Update oecd_view.py

* Update oecd_view.py

* Update oecd_view.py

* remove spectrum,view finviz functions

* Update plotly.html

* Update plotly.html

* adjustments
2023-04-14 18:06:41 +00:00
Igor Radovanovic
08a077c133 Crypto overview unit tests (#4782)
* crypto overview unit tests

* Mock cpanic view
2023-04-14 16:07:52 +00:00
montezdesousa
7d3172a5f5 Make default routines available & download personal routines on login (#4737)
* make default routines available

* remove unecessary change

* user to personal

* rename some funcs

* add last update to tables

* add routines download on login

* move some routines funcs to controller

* fix tests

* add space

* wrap some funcs inside try, except

* fix account test

* suppress outputs

* rewrite docstring

* remove circular import

* reverse order

* update docstring

* allow exe with spaces in file name

* fix exe with input

* Update terminal_controller.py

* fix regex for file extensions

* pylint

* put default routines url inside constants

---------

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-13 12:44:31 +00:00
montezdesousa
f0b5cc0aaa Hub | Fallback to .env + don't upload keys + update support link (#4756)
* fallback to .env

* dont send keys to hub

* remove keys from upload_config

* display keys hierarchy

* pylint

* fix unittest

* Update session_model.py

* point terminal support to .dev

* rewrite tests
2023-04-13 12:40:02 +00:00
teh_coderer
0e9abc3a84 Feature/ Voila to Streamlit Dashboards (#4755)
* idk

* g

* idk

* init

* revert old push

* pylint

* ruff

* update

* mypy

* tests

* LF

* tests

* Update Futures.py

* tests?

* fix intraday candle breaks

* tests????

* remove matplotlib from settings controller, autocomplete for flair cmd

* Update test_settings_controller.py

* remove streamlit activate warnings as it's not needed anymore

* bump pywry

* fix daily date gaps

* Update pytrends

* Update terminal.spec

* Update terminal.spec

* Update terminal.spec

* Update macos-build.yml

* Update macos-build.yml

* Update windows10_build.yml

* Update terminal.spec

* streamlit

* streamlit configs

* test

* lint

* cmd source in charts

* Update dashboards_controller.py

* Update dashboards_controller.py

* Update backend.py

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-12 20:38:56 +00:00
James Maslek
5258a3d613 Feature/help didier (#4758)
* ensure consistency across terminal and improve intro

* Rewrite tests

* Adding a gitignore for .sh files in root

* Fix tests

---------

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2023-04-12 20:06:54 +00:00
Igor Radovanovic
ed584cfa20 stocks/fa unit tests (#4754)
* Unit tests batch 1

* Unit tests batch 2

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Unit tests batch

* Debloat

* Debloat

* Fix linting
2023-04-12 19:42:09 +00:00
Henrique Joaquim
495beee887 Feature/contributing guidelines (#4726)
* updating readme

* updating unit tests readme

* integration tests readme

* minor to ref it on the comment

* chaging the example and removing unused files

* updating path

* changing the controller example to follow view and model

* obeying conventions

* mathcing the right controller

* matching examples

* include details on creating a new branch

* removing old references to stocks/dd

* adding sheet name to the export_data example

* circle back autocompletion to queue-and-pipeline

* fixing the list numeration

* Doc

* fixing the tests (were failing bc of changed function name)

* Remove tests/FIXTURES.md

* reverting

* small edit

* lint

* mardown linting

* fixing forecast dashboard

* fixing forecast dashboard

---------

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-12 15:11:32 +00:00
Colin Delahunty
080d37e405 Removed source from exp (#4749)
* Removed source from exp

* Removed source from other commands not using it

* Added error handling
2023-04-12 15:01:15 +00:00
Colin Delahunty
2e79308ade Hotfix/4526 (#4682)
* Added fixes

* Merged

* Merged

* Added some handling of errors

* Adds some read dbs

* Removed useless commands

* Added fixes

* Added fixes

* Added fix

* Added fix

* Added fix

* Added fix

* Added fix

* Added fix

* Fixed tests

* Handle lowercase

* Added fxes

* small ticker thing

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-12 11:39:42 +00:00
montezdesousa
2b52337da9 Keep hub sources updated and allow only available sources in the terminal (#4711)
* loop and update sources

* clean update sources dict

* use only allowed sources and update hub sources on login

* silently update hub

* ruff

* update only allowed sources now

* clean up some funcs

* fix dict on tests

* mypy

* remove unused method

* change class arg name sources_dict

* change attribute name in sources model

* remove allowed from SourcesModel

* change from user_choices to choices

* change default msg
2023-04-09 22:10:37 +00:00
Danglewood
8b30f1a117 Hotfix/stock screener - Stock Screener Fixes (#4674)
* stock screener fixes

* improves error message, this is a FinViz preset

* removes non-screener functions from screener menu

* ruff

* removes tests for removed non-screener functions

* updates tests

* black

* ruff

* adds s&p 500 sector presets

* updates Terminal intro guide for stock screener

* Update screener.md

Updates guide with screenshots.

* Update screener.md

spelling

* updates SDK Intro Guide for Stock Screener

* pylint disable=too-many-lines --> disable=C0302

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-08 20:19:04 +00:00
montezdesousa
42b8a33c04 Remove routines after logout (#4702)
* save routines inside hub sub folder

* fstrings instead

* remove unecessary guest argument from logout func

* remove routines on logout and clean remove functions

* update session and local tests

* ruff

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-08 12:03:39 +00:00