Commit Graph

5160 Commits

Author SHA1 Message Date
montezdesousa
f02fe35848 bug as default flair if no login (#4681) 2023-04-04 16:01:38 +00:00
jose-donato
52cf2f4d5f table fixes (#4666)
* fix: table fixes

* fix: tablaroni

* fix: pagination protection

* fix: dm much more

* fix: colors

* fix: colors

* fix: colors

* fix Timestamp on stocks `get_quote`

* fix `call_tob`  having `quote` as prog/docstring

---------

Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-04-04 13:29:33 +00:00
andrewkenreich
c87226e9b6 hotfix/fixing some links (#4628)
* fixing some links

* adding pypi to installation

* fixing order
2023-04-04 06:11:16 +00:00
DidierRLopes
245a74086a Use OpenAI API to improve bot-discord docs (#4657)
* Use OpenAI API to improve bot-discord docs

* almost done.....

* last edits

* final fixes with updated index

* spacing

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
2023-04-04 06:10:40 +00:00
teh_coderer
0447b96501 hotfix/ stocks/options/chains - Single Window/to_display columns (#4670)
* init

* Update options_controller.py

* Update options_controller.py
2023-04-04 01:07:58 +00:00
Tiago Ferreira
7f9a31278d chore: add workflow to verify EOF (#4661)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-04 01:01:09 +00:00
Colin Delahunty
5a8d6e823f Removes exchange option from stocks/load (#4673)
* Added fixes

* Added fixes
2023-04-04 00:05:15 +00:00
Igor Radovanovic
07aa45a0b6 Hotfix/etf ca (#4672)
* Add holdings to ca

* Fix major holdings load
2023-04-03 21:38:55 +00:00
Henrique Joaquim
f3b74da11a Change returning dict to Dict (from typing) (#4667)
* change returning dict to Dict

* ruff
2023-04-03 17:00:54 +00:00
Igor Radovanovic
65e3c8573c Fixed income unit tests (#4568)
* fixed income unit tests

* api key fix

* fix mock api key

* Update poetry.lock

* Poetry

* Pytest : fix name collisions

* dependency update

* Re-record unit test

* Update unit tests

---------

Co-authored-by: Luqman <luqazino@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2023-04-03 16:42:23 +00:00
teh_coderer
43dbc12e17 Feature/Interactive Plot CSV Bar (#4664)
* init

* cleanup

* Update popups.js

* Update popups.js

* Update plotly.html

* add hoverlabel to `ba/redditsent` #4618
2023-04-03 16:25:08 +00:00
Henrique Joaquim
13a91af400 Remove references to environment variables (#4633)
* removing references to test_mode as env variable

* removing references to os.getenv

* adding functions to change system properties

* removing references to env

* introducing set_system_variable and removing change_logging_suppress function

* removing change_test_mode and change_debug_mode

* removing change_log_collect

* adjusting config_terminal and generate_sdk

* generating the sdk

* removing unused imoports

* introducing DISABLE_STREAMLIT_WARNING

* removing load_env_vars

* test_print_help test

* sync tests

* rewrite tests

* setting the auth to True as default

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-04-03 16:22:41 +00:00
montezdesousa
405c7d6be0 enable auth by default (#4665) 2023-04-03 14:32:18 +00:00
teh_coderer
f4b55148ba hotfix/ Avoid starting plots_backend twice on boot (#4658)
* avoid starting plots_backend twice on boot, declutter `call_intro`

* Update config_terminal.py

* pylint

* @hjoaquim suggestions

* Update sdk.py

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-03 13:51:30 +00:00
montezdesousa
f5230b26c0 Hub | sync, pull, sources and other updates (#4640)
* remove sync and pull

* ruff

* remove runtime fetch configs

* add comment

* reset when logged

* update translation yml file

* sdk regen

* print bold red messages if logout process fails

* fix sources not being applied

* handle bad json

* update hub links

* save terminal crash when sources file is broken

* add user defaults to gitignore

* actually no needed, will just be more specific about richstyle coming from hub

* black

* rewrite stdout

* fix session_model tests

* fix sdk session tests

* move paths

* remove duplicate line

* fix user being reset in test_logout_user test

* remove unecessary recording

* change colors msg

* remove repeated code
2023-04-03 13:49:53 +00:00
Colin Delahunty
f4c48dc8d4 Improves economy/fred command (#4634)
* Fixed

* Started the switch

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-03 12:07:36 +00:00
Henrique Joaquim
af8cfac18f filter system credentials from logs (#4663) 2023-04-03 11:14:27 +00:00
jose-donato
165abe2480 Adds foundation for dark mode from user (#4623)
* fix: adds foundation for dark mode from user

* start theme sync with hub

* send chart_tables to backend

* last fix

* fix: pushed table html

* fix: footer size wasnt correct

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-04-03 10:58:40 +00:00
James Maslek
f9e6b20b60 Add --sheet-name to load on econometrics and forecast (#4525)
* Add sheet-name to econometrics load

* Also do forecasting load

* Handle error when sheet not found
2023-04-03 10:38:02 +00:00
montezdesousa
291344b9c0 Autogenerate credentials model from json (#4624)
* autogenerate credentials model

* revert to to_dict

* black

* mypy

* ruff

* ignore mypy

* degiro secret to replace me

* add safeguard for people not flashing keys

* ruff

* split local and hub keys

* warn if writing to .env

* warn if sending to hub

* update user on what's going on...

* update fixture

* rewrite expected

* rewrite cassettes

* rewrite controller cassettes

* too much changes, let's revert here

* rever env handler

* rewrite std output

* patch usermodel and rewrite cassettes

* delete unecessary cassettes and std out records

* remove controller cassettes

* ruff

* add exception for inconclusive api tests opening controller

* fix twitter key and env handler prints

* fix twitter test

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-03 09:12:01 +00:00
Elyanah Aco
e78ec270ba Filter icebofa file by title (#4609)
* Add icebofa csv filtering by title

* Fix description display, rewrite code to avoid raising index error

* Reformat with black

* Replace if-else with ternary operator

* Fix issue when multiple indices are selected

---------

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-02 23:42:33 +00:00
montezdesousa
12a41ca63a Fix stocks/news command (#4653)
* fix news dataframe

* fix feedparser

* rewrite expected
2023-04-02 23:26:46 +00:00
Colin Delahunty
271fd495f1 Started the switch (#4652) 2023-04-02 23:16:00 +00:00
Igor Radovanovic
9a8bc77633 Re-record unit tests (#4656) 2023-04-01 18:19:30 +00:00
Igor Radovanovic
a0c0a999a2 Hotfix/disc upcoming (#4643)
* Fix start_date

* Fix start_date

* Fix linting

* Fix limit parameter, view and tests

* Remove page_num, adjust view
2023-04-01 17:01:02 +00:00
Henrique Joaquim
f87154beb8 Handling log supression (#4625)
* simplifying the way we deal with the SystemModel by removing the need for system.json file

* removing the responsability of supression from the controllers

* supressing logs on reports

* fix etf report

* supressing logs on dashboards

* black

* typo

* ruff

* pylint

* refacotr def extract_parameters

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-31 08:40:14 +00:00
Igor Radovanovic
08f72e7e10 Re-record unit test (#4642) 2023-03-30 20:23:38 +00:00
Igor Radovanovic
2b4cb0b02e Fix Stocks Load (#4579)
* fix load

* Standardise yfinance, fix EODHD

* ruff

* YF automatic date adjustments

* Add TODO comment

* Fix date message

* Fix AV date message

* merge conflicts

* Update stocks_helper.py

* tests recorder

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
2023-03-30 19:26:34 +00:00
Luqman
1f6ecc34be Fix nightly build (#4632)
* Fix nightly build

* Code cleanup
2023-03-30 18:27:18 +00:00
teh_coderer
4861b4f261 init (#4636) 2023-03-30 14:51:08 +00:00
Luqman
7e8fcb1ea5 Feature/upgrade poetry (#4637)
* poetry bump

* testing

* fix int test
2023-03-30 14:32:41 +00:00
teh_coderer
7ce8a9e20c Hotfix/ta srlines (#4630)
* init

* Update style.css

* oops was stashed

* Update popups.js

* bump plotly.js version

* fix disappearing modebar

* updates

* Update plotly.html

* bump pywry

* Update ta_class.py

* Update main.js

* bump, pdf support

* Update plotly_helper.py

* tests
2023-03-30 12:58:00 +00:00
montezdesousa
e57747cb95 Add mutual funds to sdk (#4610)
* add mutual funds to sdk

* add docstring returns

* mypy

* remove avanza

* add historical chart

* split funcs

* revert po controller

* revert forecast sdk controller

* revert forecsat

* revert changes to forecast

* redo po

* remove .md files

* pylint

* why these md gone?

* pagesize to limit

* missed this one

* country default US

* default on load not on search

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-29 19:28:09 +00:00
Colin Delahunty
226f57a622 Removed the [red] and [green] from the chart (#4627)
* Fixed

* Also fix wiki printing [blue]

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-03-29 17:56:21 +00:00
Theodore Aptekarev
417769c4cc Improve installation experience and documentation (#4508)
* hi didier

* Add files

* Include build deps and third-party binaries in conda env 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

* Add gcc and maturin to build dependencies

* telegram/discord docs markdown format conversion

* Remove gcc from conda env files

* Update install from source guide for terminal

* fix: added new reference styles

* adding examples to discord - remove play button

* updating bot docs

* Update SDK installation docs

* Bump datetime package in lock file because current version was yanked

* Update requirements txts

* Remove rust tools from main conda env

* Pin poetry to 1.4.0 because of a regression in 1.4.1

* Bump version of lightgbm to 3.3.5

* Address formatting and minor content comments

* Advise all users to clean up conda artifacts with scripts

* Add placeholder for pywry related docs

* Update requirements.txt

* Downgrade statsforecast to prevent pulling jupyter-dash

* Add catboost to conda dependencies for windows install to work

* Add charset-normalizer to conda deps because of a buggy windows build

* Add xgboost to conda deps because of a buggy windows build

* working!!

* 3.8 and 3.9 xgboost

* spelling

* Point sdk install from source to terminal source install

* 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

* Bump python version on macOS CI builds

* updating rest of bot docs

* Move charset-normalizer to the pip section of environment yamls

* Update mac CI workflows to use the correct cache

* Move poetry to pip section of the conda yamls

* Fix typo in file path

* Fix direct_url.json files not being deleted on the CI

* Fool reviewpad

* Actually fool reviewpad

* adding code for generating index and bot updates

* linting

* add commands for GTK on linux

* Update deps after conflicts and CRLF line endings made it into develop

* test bump down for matplotlib

* codesign more dylibs

* intel workflow

* Add signing stuff that failed to intel

* M1 file now

* Remove duplicate lines from codesigning section of build instructions

* Downgrade matplotlib to 3.7.0 to mitigate windows error

* Downgrade python to 3.9 in attempt to fix scipy not packaging correctly

* Downgrade python 3.9 to resolve conflicts found by conda

* Remove duplicate xgboost references

* Downgrade scikit-learn to avoid DistanceMetric32 not being found

* Remove site-packages from bundle following python 3.10 -> 3.9

* Downgrade scikit-learn to avoid DistanceMetric32 not being found

* Fix english in source installation

* Revert advised python to 3.9

* Update SDK installation docs

* Fix typo

* Update lock file hash

* Consolidate all installation instructions in the terminal section

* Add --no-cache-dir to pip calls

* Fool reviewpad

* Remove reference of the conda cleanup from the pypi install

* Fetch the environment yaml directly from the repo without downloading it

* Add rosetta, cpp build tools and libomp as top level requirements

* Update installation links in repo readme

* adds brew install libomp to FAQ section

* fix typo from my updatet

* Capitalization of Section Headers

* puts PyPi toolkit install in quotes, necessary for a non-bash shell.

* grammar fixes

* update docker windows instructions

---------

Co-authored-by: James Maslek <jmaslek11@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-29 17:53:35 +00:00
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