Commit Graph

5486 Commits

Author SHA1 Message Date
Saharat Phomthong
a0ea69744b Wrong type ticker (#5138)
* fixed the type error in issue #5120

* fixed type error in issue #5120

* apply black formatter

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-14 13:12:50 +00:00
Igor Radovanovic
08433a76c8 Fix income and cash flow statements (#5137) 2023-06-14 12:57:43 +00:00
Danglewood
0f308fa4f9 rename bad column header (#5136) 2023-06-13 22:02:27 +00:00
James Maslek
37d44da598 Add index names so import works (#5134)
Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-06-13 16:07:33 +00:00
jose-donato
c5d5b511ac Adds crypto fees revenue command (#4067)
* fix: initial commit

* fix: extra stuff

* fix: lint

* fix: ruff

* fix: linting

* fix: ruff

* fix: pylint

* fix: maybe fixed tests maybe not

* fix: pr issues

* fix: tests

* fix: updated test locally

* fix: generate sdk cmds

* fix: added source

* fix: tests maybe

* fix: lint

* fix: tests

* test

* test

* test

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2023-06-13 13:50:17 +00:00
Igor Radovanovic
6ed43197db Fix wrapping (#5133)
* Fix wrapping

* Re-record unit tests
2023-06-13 12:37:39 +00:00
Igor Radovanovic
880ddfd06a Fix help and question (#5132)
* Fix help and question

* Delete comment
2023-06-13 12:36:36 +00:00
Igor Radovanovic
16f1af4574 Fix blank chart (#5128) 2023-06-13 05:57:19 +00:00
Saharat Phomthong
47e6912040 small typo fix in contributing guidlines (#5125) 2023-06-12 15:36:21 +00:00
teh_coderer
73e59804fc hotfix/ Include plotly.js in reports html + Improve Charts in Reports (#5126)
* include plotly.js in reports html, implement new plotly multi-legends feature

* use `ensure_backend` to `check_backend`, improve charts in reports

* requirements files

* fix files with `CRLF` line endings

* Update widget_helpers.py

* Update widget_helpers.py

* handle unsupported plotly multiple legends version error
2023-06-12 14:10:13 +00:00
teh_coderer
a9da2a8216 hotfix/ tables pd.to_numeric (#5124)
* fix tables `pd.to_numeric`

* Update helper_funcs.py
2023-06-10 14:22:56 +00:00
Sai-132
6784a9af84 Feature/news sentiment (#4339)
* News sentiment feature added

* News sentiment feature added

* Integration test script file added

* Updated code as per PR Instructions

* API key setting and testing code updated

* Unused imports and line-too-long code updated

* Resolved conflicts in config_terminal file

* removed empty line in terminal_controller file

* Resolved conflicts and updated code for Setting API keys

* Suggested changes have been updated

* Changes updated

* conflicts resolved with data_sources_default.json file

* Code Updated For without API key

* Code Updated

* New changes Updated

* Resolved conflicts and code updated

* Small edits

* missed a spelling error

* fix test

* Lint

* pylint rewrite

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-09 16:26:35 +00:00
minhhoang1023
c34d703786 Large Language Model - Text to command (#4695)
* POC for text-to-command

* POC

* gimme -> askobb (#4740)

* Add file to generate index data

* Add generate index file

* Remove data file

* Modified data generator

* Update .gitignore

* linting

* run all cmds with root access. new!

* output msg

* modify model name

* weird logging issue

* refactor for new llama index version

* black

* in case model doesnt know

* black linting

* linting

* more ruff

* imports

* nicer messages

* removing function from economy

* poetry

* prompt refinement

* Update spec to bring in new files

* fix llama import

* help command

* missed trailing ]

* -q parameter

* remove experimental

* switching gpt model functionality

* update prompt

* tik tok on the clock

* fixed print statements

* user run commands

* add return

* fix

* fix

* removing a few depr functions

* Add filter for slashes in askobb query

* force -q command

* removing returns

* Add edge case for custom filter

* add back -q if its not in other args

* minor checks

* new prompt - a little better

* more cases for not finding answer

* return clause

* new txt with summaries

* update index ver

* new index

* Add a log_askobb

* revision on prompt

* black

* poetry lock

* req files

* Codespell

* ruff

* Linting some stuff.  Change OpenAI from local to HUB

* Update api-keys.md

* openai key

* remove this. bye bye mypy

* mypy

* mypy...

* mypy2

* fix test

---------

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: martinb-bb <martin.bufi@openbb.finance>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-09 16:00:47 +00:00
Danglewood
9ded286652 adds VIX9D and VIX3M to index list (#5119)
* adds VIX9D and VIX3M to index list

* update test
2023-06-09 14:03:24 +00:00
Jinto Jose
19d1a9a067 Vscode/Github Codespaces dev container (#4975)
* vscode/Github Codespaces dev container

* move badge to new line

* actually move badge to new line

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-09 13:44:58 +00:00
teh_coderer
2558bfec83 closes #5104 (#5122) 2023-06-09 00:00:46 +00:00
James Maslek
316e83dc00 Remove all key logger.info (#5112)
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-06-07 08:36:39 +00:00
teh_coderer
f42b9e87ba feature/ Set profile on identify (#5102)
* set user profile on identify

* Update loggers.py
2023-06-06 19:11:45 +00:00
Danglewood
a311ce4686 hotfix/deprecate-options-screener: Sunsets deprecated Options screener (#5111)
* Sunsets deprecated Options screener

* mypy

* docstring fix

* one more docstrings fix

* missed i18n.yaml artifacts

* pylint

* fix test
2023-06-06 18:40:52 +00:00
teh_coderer
e040e9e6c4 fix wrong default for yaxisFixedRange (#5106) 2023-06-05 17:03:08 +00:00
Danglewood
b81aa22385 hotfix/fa-yfinance-plot - makes stocks/fa/income --plot output match everything else. (#5101)
* makes fa/plot output match everything else

* fix y-axis to be billions

* fix denominations

* black

* ruff
2023-06-05 14:37:18 +00:00
teh_coderer
f4a5064f32 Hotfix/ Tables + Charts Issues (#5100)
* fix: year to string

* don't slice data if line chart, display message if sliced

* Update plotly.html

* improve autoscaling when data sliced

* fixes #5078
2023-06-05 13:20:34 +00:00
Theodore Aptekarev
5f8657bbfa Avoid pandas' SettingWithCopyWarning (#5105) 2023-06-05 13:17:42 +00:00
Danglewood
f0e0217083 hotfix/fix-balance-headers: Fixes #5094 (#5099)
* fixes bad headers for ca/financial statements

* remove unnecessary lines
2023-06-02 13:06:28 +00:00
Sameer Khan
d662b69c6f Feature/futures curve history (#5086)
* add past contract prices to curve table

* adds secondary curve to viz

* includes error message when no data for selected date

* linting

* adds back linespace

* changed as-of parameter to d and date

* fixes ruff

* more linting and tests

* fixes for pylint test

* edit the xaxis formatting

* fix the tests

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-01 20:41:17 +00:00
Danglewood
eac108e74a fixes stocks/fa integration test file (#5092)
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-06-01 20:13:46 +00:00
Danglewood
bda1530150 fixes 5095 (#5097) 2023-06-01 19:34:35 +00:00
teh_coderer
67e04610d8 Update plotly_helper.py (#5098) 2023-06-01 19:30:57 +00:00
montezdesousa
1539793862 No guest if installer (#5076)
* no guest if installer

* prevent guest if logout from account

* this not true

* rename reloop var

* ask for email again if no email

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-01 16:07:11 +00:00
Danglewood
6381abb575 fixes for integration tests stocks/test_insider and test_screener (#5084) 2023-05-31 17:48:56 +00:00
teh_coderer
646819c2f1 hotfix/ Dashboards random issue with theme not loading (#5082)
* fix: random issue with theme not loading

* set dark
2023-05-31 16:15:51 +00:00
andrewkenreich
d1f734243e fixing rating command (#5081) 2023-05-31 13:05:58 +00:00
montezdesousa
76fcaf77da Upload routine to hub on stop (#5077)
* upload routine to hub on stop

* write cassette

* write cassette

* remove .openb from name

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-31 10:42:56 +00:00
Danglewood
1b5c05460b adds reference to the YAML files for Python 3.8 and 3.10 (#5073) 2023-05-30 18:36:20 +00:00
DidierRLopes
72a46fbfbf OpenBB Script Routines major improvement (#5005)
* Allow to set variables and do loops

* Fix mypy errors

* improve code

* mypy

* pylint

* accepts Openbb date keywords like 1MONTHAGO,LASTFRIDAY,3YEARSFROMNOW,NEXTTUESDAY

* warn fix

* add documentation for script foreach and vars creation

* refactor controller as per James request

* black linting

* add another warning

* Editing some routine enhancements (#5063)

* move routine to new file

* Move to relativedelta and add some tests

* Fix mocking

* Get match_and_return_openbb_keyword_date to 100% cov

* start testing parse script

* remove rogue prints

---------

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>

* big improvement in routines tests

* mypy lint

* ruff lint

* lint

* typo

* test relative time

* cover edge case of home at end of script

* fix edge case for going to home at start

* explain better slicing

* foreach tests added

* lint

* allow foreach loops to have different var names that is iterating

* foreach more powerful

* warning when var in foreach is not used

* fail script when varname that iterates foreach loop is never defined

* black

* lint again

* ruff

* improve another edge case

* fix test and fix a description

* fix nft test and routine test

* why mutual fund test failing

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-30 17:33:59 +00:00
James Maslek
3fcfc08db9 Add more futures to curve (and probably some more bugs) (#5049)
* Add a while condition for futures curve

* Fixes #5047

* Fixes #5014

* point root commands to /usage to avoid 404

* Black wont run in the nightly vs code build lol

* #5071

* mypy

* pylint

* tests

* Fix wrong queue to fa
2023-05-29 18:06:56 +00:00
James Maslek
fb1bf21af1 Update download link on update version text (#5075)
* Update download link on message

* tests
2023-05-29 17:08:25 +00:00
Danglewood
7c193656a1 Creates examples folder for SDK Notebook examples (#5057)
* Creates examples folder for SDK Notebook examples 

This commit creates a folder and readme file for SDK examples as Jupyter Notebooks.

* Four notebook files added.

This commit adds four notebook examples.

* historical prices draft 2

* removes spaces from file name.

* fix one mistake

* rename file

* renames file

* updates realized vol notebook

* Renaming file.

* Delete old file name.

* updates usdLiquidtyIndex

* update copperToGoldRatio

* updates README.md

* spelling

* updates copperToGold load data cell

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-27 20:06:09 +00:00
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
Danglewood
e202aeb557 Hotfix/docs-sdk-basics: Updates SDK basics page. (#5024)
* updates SDK basics guide - images to follow

* adds images

* spelling

* add sentence for token regeneration

* consolidates changing sources page with the basics page

* consolidate chart-stylying guide with basics

* api-keys pages

* adds Stocks Insiders intro to SDK docs

* typo

* add cloud installation

* syntax error

* no cloud installation instructions

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-05-23 20:20:29 +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