Commit Graph

5197 Commits

Author SHA1 Message Date
Henrique Joaquim
aa08956489 changing default data source for crypto.load (#4744) 2023-04-12 14:40:43 +00:00
James Maslek
22389132b1 Change installation from pip to poetry (#4731)
* Change installation from pip to poetry

* Change env name to obb

* Change shell for mac build

* Activate the env

* Shell again

* Shell from bash to bash -l {0}

* windows poetry

* fix

* provactive fix

* fix

* venv

* removing pathex

* artifact to v2.2.4

* v3

* zip and unzip test

* fuzz fix

* numpy stupid

* asdf

* cmd line

* forgot to activate

* asdf

* asdf

* i dunno anymore

* back to old faithful

* fix spec

* fixing zip maybe

* path fix

* fix path

* code cleanup

* change artifact back

* test new nsis info

* didnt like my version

* add start program to end of install

* adding launch button to installer

* testing version file

* Copy over mac os

* poetry

* reqs

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: luqazino@gmail.com <luqazino@gmail.com>
2023-04-12 14:36:25 +00:00
Luqman
f1f6dad691 Separate Macos Build to different Jobs (#4694)
* remove concurrency

* comment int test

* Seperate Macos Build

* Int test check

* crypto

* reduce int test

* Code cleanup

* revert integration test

* Edit the building steps

* papermill

* Fix papermill on both jobs

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-12 13:44:55 +00:00
Pratyush Shukla
6fa4162eb9 Fixed Polygon API key authentication URL (#4748)
* Fixed Polygon API key check URL

* Bifurcated request URL into 2 lines

* Fixed import
2023-04-12 13:28:41 +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
Pratyush Shukla
dd41b8461d Fixed crypto, economy, forex commands inreports menu (#4717) (#4729)
* Fixed `crypto`, `economy`, `forex` commands  in`reports` menu

* Modified sdk.py to use Feedparser API to get news
* Made `basic_info` and `trading_pair_info` tables look prettier in `crypto` template
* Fixed news dataframe by modifying the columns in `economy` and `forex`

* Modified `trail_maps.csv` and generated `sdk.py`

* fixing forecast dashboard

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-04-12 09:57:05 +00:00
Henrique Joaquim
99854ef4d9 Identify documentation function based on guides (#4728)
* adding a way of cheking commands present in the documentation

* using regex

* ruff

* adding generation to the sdk

* adding mentions only from code blocks

* using the new path const

* handling export

* added argparse

* added docstrings

* line too long

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-11 21:46:27 +00:00
Luqman
9435fd7480 Workflow improvements (#4734) 2023-04-11 18:53:05 +00:00
martinb-bb
8397a990c9 URL(404) fixes for multiple locations (#4738)
* URL fixes

* docker url
2023-04-11 18:06:49 +00:00
Colin Delahunty
6452268f2c Installer Image (#4735)
* Added fixes

* Merged

* Proper image

* Added print
2023-04-11 13:05:49 +00:00
jose-donato
f00e5a6436 About cmd to match hub (#4645)
* fix: attempt to fix about and website hotfix

* fix: linitng

* fix: pylint

* fix: added account

* fix: linting

* fix: url

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-10 21:30:43 +00:00
Raghavendrapara
f30ee7e9a2 Fixes #4638 usrates export file had blank data in value column (#4680)
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-04-10 21:19:54 +00:00
Igor Radovanovic
f42930744e Fix filings analysis (#4732) 2023-04-10 21:10:51 +00:00
Pratyush Shukla
b06c0509ac Update source.md (#4723)
Fixed Windows path in cleanup_artifacts script portion.

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-04-10 13:30:50 +00:00
montezdesousa
d2212cd7c3 Warn user when there is no personal access token (#4725)
* warn user if no token found - 404

* add spaces to colors and theme application

* be more explicit about which color preference is failing

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-10 10:50:29 +00:00
Jeroen Bouma
af1f4483e6 Fix issue with holder (#4693)
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-04-10 10:25:38 +00:00
Henrique Joaquim
e55bf3d5ec hotfix/fix the lack of commit hash in pypi logs (#4719)
* adding .env file to the package

* reverting - chavi suggestion
2023-04-10 08:52:43 +00:00
Pratyush Shukla
9fd74efabe Added fix (#4709)
* Added hotfix

* Modified `eodchain` command and refactored code

* spacing

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-10 08:48:14 +00:00
Pratyush Shukla
96d21f71fd Added fix (#4710)
* Added fix

* Fixed `load`, `find`, `price` and refactored code

* Modified line 1304 in parent_classes.py

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-10 08:39:14 +00:00
Pratyush Shukla
8413d301a4 Added fix (#4718)
* Added fix

* cleaning up reports

* linting

* improve chart library

* Modified line 185 in reports/reports_model.py

* removing unncessary lines

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2023-04-10 08:23:24 +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
b4a7ed0ab4 Allow special characters in autocompletion and improve sources controller (#4698)
* allow empty spaces between sources commands

* allow special characters in autocomplete

* update parse input

* repeated character

* improve sources controller

* pylint?

* help was not working on set

* display file only if exists and has dat

* lowercase

* skip ultima test

* update default sources instead of replacing

* change var names

* revert, need to think better about this

* Update test_ultima_newsmonitor_model.py

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-08 16:48:43 +00:00
Igor Radovanovic
ec083d26a9 Add a note on GC and Kaggle (#4705)
* Add a note on GC and Kaggle

* fix broken url

* moving the note to be near the installation material

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2023-04-08 14:08:51 +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
Adi Sai
bea1086952 Hotfix ultima news improvements (#4703)
* WIP - command name refactor + eliminate need for an API key to make < 25 requests per day

* check for no Ultima API Key properly

* test_print_help fixes

* reflect changes from #4697

* re-run test_ultima_newsmonitor_view with --rewrite-expected

* re-run tests without breaking news
2023-04-08 05:28:08 +00:00
teh_coderer
3c86851140 Hotfix/ Pywry Linux Docs (#4712)
* idk

* g

* Update no_import.py

* idk

* update docs

* test

* fixed
2023-04-07 19:35:04 +00:00
teh_coderer
6abf1f5678 Hotfix/ TA multi handle no params + with params (#4706)
* fix ta multi when giving params to 1 and not others

* tests

* idk

* fix reset axes

* Update main.js

* idk2

* Update helper_funcs.py
2023-04-07 13:55:30 +00:00
Igor Radovanovic
1d65fba098 Feature/economy unit tests (#4676)
* Start

* QA controller tests

* Unit tests batch 1

* ruff

* More tests

* Economy unit tests

* Tests: economy

* 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>

* bug as default flair if no login (#4681)

* init (#4683)

* Feature: Ultima Insights NewsMonitor Integration (#4685)

* fix typing issue that prevents running

* news monitor integration for news

* UX improvements with news monitor integration

* italicize riskExtDesc

* minor cosmetic changes

* minor cosmetic changes

* minor cosmetic changes

* Update ultima_newsmonitor_view.py

* minor fixes to launch properly

* setting Ultima API key

* Ultima NewsMonitor integration into terminal done

* integration of the commands is done

* add Ultima to SDK trailmap, but SDK generation failed on M1 Mac

* add tests

* add unit tests

* Linting and sdk

* display message if not supported by Ultima News Monitor

* Update api-keys.md

* fix stock controller problem + remove source filtering from Ultima

* remove source filtering from Ultima

* add report issue message

* add some error handling in the view to ensure unsupported companies don't get fetched

* remove powered by Ultima Insights from console output

* ran black formatter to fix linting issues

* fix ruff issues

* fix pylint issues

* lint fix

* fixed linting issue and changed keys in the Feedparser model

* get all tests to pass

* proper testing with --record-mode=rewrite

* re-run tests for updated VCRs

* redid black formatting

* re-run test_print_help in stocks controller

* make breaking news output consistent and re-run tests

* remove unused import time

* reran tests with --rewrite-expected

---------

Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>

* Terminal/hub QA (#4678)

* move update flair

* sort repr

* remove packaged sys model var

* update decorator for check api key

* ruff

* change if stat

* ruff

* no need for new var

* pylint

* Refactor sources menu (#4668)

* add data sources defaults to model

* fix f string

* refactor sources controller

* write sources to file

* write to user file

* add user data sources file inside OpenBBUserData

* append to user file, don't rewrite

* fix when sources folder does not exist

* codespell

* change func name

* change path to str

* ruff

* Add method to upload entire user field

* change clear func args

* update get_ordered_list_sources function

* move flatten

* move flatten

* change extend func name

* remove comment

* clean sources utils funcs

* mypy

* Update utils.py

* spacing

* docs

---------

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

* Move tradier from hub to local (#4700)

* Move tradier from hub to local

* Flake error

* Disable error

* Update stocks_helper.py

* Update stocks_helper.py

---------

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

* Unit tests batch

* Unit tests batch

* ruff

* Unit tests batch

* Tests : Economy ; moving csv file

* Apply black

* Apply ruff

---------

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Adi Sai <adithya.sairam1@gmail.com>
Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-04-07 13:25:51 +00:00
Henrique Joaquim
18409cf1aa Hotfix/keys menu improvements (#4699)
* avoid keys to alwyas check status

* ruff

* improve text on show flag

* removing force flag

* use bool

* improve help functionality

* fix tests

* trying to fool pylit

* using exception handling

* printing the result for a single key

* Don't check status if --help

* black

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2023-04-07 09:43:41 +00:00
DidierRLopes
2754be2620 Improve overall docusaurus (#4675)
* Improve overall docusaurus

* update pypi on installation

* fix merge conflicts

* fix spelling

* change CRLF to LF

* improve docs installation for bot

* more changes

* few more

* fix

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-04-07 01:50:45 +00:00
teh_coderer
5b4ad7c7a9 hotfix/ Fixes #4690 #4688 #4687 #4686 #4696 (#4701)
* init

* Update options_sdk_helper.py

* Update stocks_helper.py

* Update ta_class.py

* Update ta_class.py

* tests

* tests LF
2023-04-06 20:53:09 +00:00
Igor Radovanovic
fe49131a32 Move tradier from hub to local (#4700)
* Move tradier from hub to local

* Flake error

* Disable error

* Update stocks_helper.py

* Update stocks_helper.py

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-04-06 16:14:00 +00:00
montezdesousa
b9ea4d5cd0 Refactor sources menu (#4668)
* add data sources defaults to model

* fix f string

* refactor sources controller

* write sources to file

* write to user file

* add user data sources file inside OpenBBUserData

* append to user file, don't rewrite

* fix when sources folder does not exist

* codespell

* change func name

* change path to str

* ruff

* Add method to upload entire user field

* change clear func args

* update get_ordered_list_sources function

* move flatten

* move flatten

* change extend func name

* remove comment

* clean sources utils funcs

* mypy

* Update utils.py

* spacing

* docs

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
2023-04-05 12:13:34 +00:00
montezdesousa
e7b209507e Terminal/hub QA (#4678)
* move update flair

* sort repr

* remove packaged sys model var

* update decorator for check api key

* ruff

* change if stat

* ruff

* no need for new var

* pylint
2023-04-05 11:54:44 +00:00
Adi Sai
4fe6cf44a3 Feature: Ultima Insights NewsMonitor Integration (#4685)
* fix typing issue that prevents running

* news monitor integration for news

* UX improvements with news monitor integration

* italicize riskExtDesc

* minor cosmetic changes

* minor cosmetic changes

* minor cosmetic changes

* Update ultima_newsmonitor_view.py

* minor fixes to launch properly

* setting Ultima API key

* Ultima NewsMonitor integration into terminal done

* integration of the commands is done

* add Ultima to SDK trailmap, but SDK generation failed on M1 Mac

* add tests

* add unit tests

* Linting and sdk

* display message if not supported by Ultima News Monitor

* Update api-keys.md

* fix stock controller problem + remove source filtering from Ultima

* remove source filtering from Ultima

* add report issue message

* add some error handling in the view to ensure unsupported companies don't get fetched

* remove powered by Ultima Insights from console output

* ran black formatter to fix linting issues

* fix ruff issues

* fix pylint issues

* lint fix

* fixed linting issue and changed keys in the Feedparser model

* get all tests to pass

* proper testing with --record-mode=rewrite

* re-run tests for updated VCRs

* redid black formatting

* re-run test_print_help in stocks controller

* make breaking news output consistent and re-run tests

* remove unused import time

* reran tests with --rewrite-expected

---------

Co-authored-by: ovidysus0 <111447781+ovidysus0@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-04-05 05:33:48 +00:00
teh_coderer
10e2b38711 init (#4683) 2023-04-04 17:34:21 +00:00
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