Commit Graph

3428 Commits

Author SHA1 Message Date
montezdesousa
1cc76a22a3 Interest rates and spread matrix command - economy menu (#2799)
* add matrix command

* start heatmap

* connect to investpy

* add heatmap to command

* add title

* finetune decimals

* add maturity and change options

* 1 decimal on change matrix

* be explicit about images location

* colorize warning

* add docs to website

* prettify

* specify decimal places

* fix issue with controller

* remove frame

* remove comments

* add more groups

* wrong group name fix

* change command name to spread

* missed website

* add docstrings

* change api path to spread

* ignore flake8

* add some colors

* codespell

* func name

* rewrite expected

* website help

* add unit tests

* flake8

* fix tests

* mypy

* rewrite test

* pylint

* fix integration tests

* fix integration tests

* fix ycrv website info

* add doctring to create matrix

* openbb to default

* clean warning

* update defaults

* add spread to main yml

* forgot openbb here

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-13 15:22:09 -04:00
Michael Henrique
b14484ac81 Fixed iteritems deprecated message #2807 (#2808)
* fix: iteritems deprecated message

* style: Follow pylint rules

Co-authored-by: Michael Henrique <michael.oliveira@khomp.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-13 20:09:27 +01:00
0xDareDevil
56a587edb3 Big Fix: 2815. Updated if condition that was raising exception (#2821)
* Big Fix: 2815. Updated if condition that was raising exception

* Assign Coin to Query. This was raising an error

* Formatting change

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-10-13 19:12:05 +01:00
Colin Delahunty
0254d78741 Improves the forex menu to include the forecast command (#2818)
* Added forecast to forex menu

* Fixed tests

* fix test print

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-13 17:46:52 +01:00
Colin Delahunty
33955fa591 Fixed big, added ability to bring data to forecast menu (#2823) 2022-10-13 11:46:47 -04:00
Colin Delahunty
fcb58ca910 Fixed plotting command (#2809)
* Fixed plotting command

* Added Martin change requests

* Fixed pylint

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-13 10:50:38 -04:00
Colin Delahunty
4304a5c664 Enhances error handling in economy menu (#2819)
* Lots of bug fixes

* Fixed issue
2022-10-13 15:13:50 +01:00
James Maslek
4c09877dc8 Add --export to load functions (#2811)
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-13 08:28:24 +01:00
James Maslek
ad71fe777a Small fixes (#2810)
* Economy/futures source and econometrics load -h

* economy script

* error message

* tests

* remove `trend` from stocks/ba

* integration test scripts
2022-10-13 00:52:53 +01:00
Colin Delahunty
74a79b8572 Fixed warning message (#2805)
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-12 17:02:12 -04:00
James Simmons
da7ee5c623 installer fix by changing numpy version (#2806)
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-12 14:09:33 -04:00
martinb-bb
c24e620b83 Forecast i8n name changes (#2790)
* i8n name changes

* including regr models

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-12 13:38:18 -04:00
montezdesousa
cf9670303c Populate model functions with check_api_key decorator (#2755)
* fred decorator

* fmp decorator

* quandl decorator

* reddit decorator

* polygon decorator

* twitter decorator

* news decorator

* tradier decorator

* cmc decorator

* binance decorator

* finnhub decorator

* iex decorator

* sentiment investor

* walert decorator

* glassnode decorator

* coinglass decorator

* cryptopanic decorator

* bitquery decorator

* smartstake decorator

* messari decorator

* github decorator

* santiment decorator

* eodhd decorator

* import check_api_decorator

* fix some decorators

* fix some decorators

* remove some decorator

* decorator fixes

* black

* mypy

* mypy again

* mypy again

* pylint

* decorator

* too many line

* fix fred ycrv

* mypy

* rewrite events test

* another try

Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
2022-10-12 17:36:49 +01:00
Colin Delahunty
816e6b5021 Removed stored folder (#2801) 2022-10-12 08:07:14 -04:00
montezdesousa
88ec6a04c0 be explicit about images location (#2791)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
2022-10-12 12:22:11 +01:00
jose-donato
7143bffca8 Allow any pair in crypto orderbook/trades (#2796)
* fix(docs): added margin between sections

* fix: allow any pair in ob command and fix exchange on load

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-12 11:36:29 +01:00
Danglewood
32741fd842 Introduction Guide for the Stocks SDK (#2795)
Adds an introduction guide for the Stocks SDK.
2022-10-12 08:40:22 +01:00
Colin Delahunty
40a39d108b Added path fix (#2789)
* Added path fix

* Fixed path
2022-10-11 15:26:01 -04:00
Colin Delahunty
0c9a4fafc4 Nhits (#2779)
* Added nhits, updated docs

* Added nhits docs

* Updated docs image

* Added funot docs

* Fixed martin changes

* Added nhits tests

* Fixed hugo issues

Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-11 12:03:28 -04:00
James Maslek
8f9481f735 Mpf log (#2774)
* Add --log option to candle charts

* fix website

* aha!  fix the scaling

* test

* Incorrect import
2022-10-11 15:15:46 +01:00
James Maslek
3324bff09f Add demark indicator to stocks/ta (#2773)
* Add demark indicator to stocks/ta

* tests and pylint

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2022-10-11 15:15:08 +01:00
northern-64bit
28a0cfd2ee Improved auto completion (#2763)
* Adding improved auto complete to all menus

* Improve autocomplete

* Done

* Linting : fix unused imports

* Tests : fix help messages

* Fixing typing

* Tests : forex

* Tests: stocks

* Stocks/TA

* Linting

* Stocks/insider

* Portfolio/Broker/Degiro

* Linting

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-10-11 16:07:24 +02:00
Colin Delahunty
92a0146868 Fixes bug with plotting the date column (#2783)
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-11 09:39:23 -04:00
montezdesousa
1186939884 Fix keys menu: tokenterminal & shroom bug fix (#2781)
* fix tikenterminal and shroom

* add unittests

* add the 2 keys to api
2022-10-11 10:16:28 +01:00
martinb-bb
8615a0e1d0 single day fcast (#2756)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-11 08:33:45 +01:00
James Maslek
abf6aa6e40 boop (#2772) 2022-10-11 00:12:56 +01:00
James Maslek
b56283a51b Annualize clenow momentum (#2765) 2022-10-10 23:39:36 +01:00
Raffaele Abate
7aa33fdb7a Fix of issue #2767: list comprehension and del after that, instead of iterating over a changing dict (#2768) 2022-10-10 23:39:12 +01:00
James Maslek
119fb1e82c Change funds load from investpy to investiny to fix 403 error (#2771)
* Change investpy load lto  investiny workaround

* add investiny
2022-10-10 23:37:39 +01:00
Gerard
4f189db935 Fixed errors in trading hours + tests (#2770)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-10 17:09:21 -04:00
Wonhyeong Seo
a94699ab4e Order Documentation Navigation Sidebar Alphabetically (#2760)
* Order main.yml alphabetically

fix https://github.com/OpenBB-finance/OpenBBTerminal/issues/2685

* tosquash: add in missing entries

cryptocurrency 6
  overview 2
  due diligence 4
stocks 2 (comments)
empty-line 1

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-10-10 15:13:33 +01:00
jose-donato
4b4e86ad3b Integration with Shroom (#2367)
* adding shroom

* added more shroom functions

* temp commit

* temp commit

* updated to use helper

* added tvl

* added shroom to keys

* tests

* updated to match didier fixes

* little fix in the example

* adding tests with Mr.Donato

* fixing decorator for models

* fixed tests for model w Mr.Donato Mr.Delahunty and Mr.Sousa

* feat: added shroom to keys

* added integration test

* re run tests

* fixing pylint

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: @montezdesousa
2022-10-10 14:22:43 +01:00
DidierRLopes
7979b1fc07 Add 3 Token Terminal commands (#2447)
* add crypto/ov/fun

* add tokenterminal to dependencies

* update website content

* add to main.yml

* fix tests

* add tests

* Update _index.md

* Update _index.md

* fix tests

* fix test

* List hint added

* improve code based on Jose input

* fix tests

* requirements for token terminal

* add source and fix source bug

* some improvements

* colors bars

* fix dependencies

* update kaleido version

* update setuptools for pkg_resources

* replace pkg_resources by importlib_metadata

* Added fixes

* Fixed tests

* fix stuff for Josecas

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-10-10 00:28:42 +02:00
Theodore Aptekarev
c7ab888223 Revert "Update env requirements to enable forecasting on m1 macs"
This reverts commit 9be74cee1f.
2022-10-09 23:33:47 +02:00
Theodore Aptekarev
9be74cee1f Update env requirements to enable forecasting on m1 macs 2022-10-09 23:32:47 +02:00
Theodore Aptekarev
63cc084b98 Clean up old api files (#2752)
* Clean up old api files

* Remove unused imports

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-10 00:27:55 +03:00
Gerard
7d584fb8d5 Fix /stocks/options/hist (#2749)
* Fixed incorrect type breaking pre-commit

* Fixed hist not working

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-09 20:21:58 +02:00
Colin Delahunty
83377868b2 PO_controller refactoring and tests (#2725)
* Adding tests

* Added tests to po_controller

* Refactored po controller

* fix custom_resets

* fix load

* add disable timeout

* pylint

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: montezdesousa <montezdesousa@gmail.com>
2022-10-09 17:25:57 +02:00
Colin Delahunty
ec9b940626 Update conda-3-9-env-full.yaml (#2753) 2022-10-09 16:10:10 +02:00
minhhoang1023
ebf96273aa New OpenBB SDK documentation (#2696)
* First draft for SDK documentation

* add in styles and documentation screenshots

* add more screenshots

* more screenshots

* Polish texts

* Update portfolio screenshots

* Make changes from feedback

* Update API_README.md

* Create API_README.md

* Update README

* Create API_README.md

* Update API_README.md

* Update API_README.md

* Update API_README.md

* Update API_README.md

* fix linting

* fix lintings

* Update API_README.md

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2022-10-09 14:46:24 +02:00
Colin Delahunty
7fe22c1890 Added back dashboards (sorry Didier) (#2751) 2022-10-09 14:30:49 +02:00
Colin Delahunty
17ec68fa44 Update darts (#2750) 2022-10-09 14:07:42 +02:00
DidierRLopes
9df5bdcfb6 Make it easier for users to configure their terminal colors (#2740)
* Make it easier for users to configure their terminal colors

* smaller version of text

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-10-09 14:54:14 +03:00
John Inge
a59e041d22 reformat (#2742)
* reformat

* add sortby as command in the regex filter

Co-authored-by: john <john@erlandsen.tech>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-10-09 13:11:11 +02:00
montezdesousa
8f4a716a31 Fix test_glassnode_view.py pytest failing (#2745)
* fix btc test

* change date to iso

* another try at timestamp

* forgot to send the cassette

* why

* end_date typo

* remove pytz

* refactor some doctrings and push changes to getclose

* black

* wrong doc

* regenerate glassnode model cassettes

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-09 13:02:53 +02:00
Colin Delahunty
35b3faad6d Removed duplicate dependencies (#2744)
* Removed duplicate dependencies

* Updated dependency stuff

* Fixed pytest

Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
2022-10-09 12:22:33 +02:00
DidierRLopes
73d1472996 allow to run a routine that has just been saved (#2736)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-09 11:16:39 +02:00
montezdesousa
bc2816c609 Autogenerated screenshots and plotshots (#2558)
* add screenshot and plotshot

* handle 0 plots

* black

* change logo

* change path spec

* get window name automatically

* create screenshot frame

* merge commands

* fix parser help

* minor refactors

* rewrite parser help

* save img

* small improvs (#2562)

* prevent non windows users to use screenshot now

* minor msg change

* refine frames

* update dependencies

* black

* flake8

* flake8

* change pyautogui import

* update dependencies to avoid mouseinfo

* update poetry and requirements

* remove pygetwindow

* revert dependency files to main

* remove terminal ref

* black

* minor image change

* black

* move images to timages folder

* move images to timages folder

* remove unused var

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-09 10:52:07 +02:00
montezdesousa
cb5e610bcb Set multiple API keys at once on OpenBB SDK (#2716)
* set fred keys through api

* linting

* doc change

* expose api keys dict

* allow optional persistency of api key change

* black

* place decorators

* add keys paths

* av and fmp keys

* some fixes

* rewrite av, fmp, fred cassettes

* quandl key

* polygon key

* rewrite polygon cassette

* news and tradier

* cmc key

* change some docstring

* change some docstring

* filtered keys dict on mykeys

* simplify mykeys collection

* revert arg to persist

* finnhub

* iex key

* reddit key

* reddit docstring

* check for prefix before removing

* glassnode key

* glassnode virtual path

* bitquery keys

* twitter key

* robinhood key

* degiro keys

* oanda key

* binance keys

* si key

* coinbase key

* refactor btcrb dates and logic

* walert key

* coinglass key

* regenerate cassettes

* cpanic keys

* ethplorer keys

* replace ouput status failed msg

* smartstake keys

* gitub keys

* messari keys

* eodhd keys

* santiment keys

* remove unused imports

* typo formatting test

* remove forbidden arg

* fix btcrb test

* fix test import

* revert cassette changes

* fix more tests

* fix last failing

* black

* try to change status to int code

* change status to int

* first try at keys controller refactoring

* fix some tests accordingly

* display msg on set

* change some vars

* remove elifs

* add progress bar and remove duplicate key check

* add mykeys and refresh to menu

* remove unused import

* change mykeys output to df

* remove check keys from keys ctrl tests

* update test split to new structure

* reduce duplicate code

* upper case

* change var name

* rename mykeys df cols

* add keys integrations tests

* add mykeys test to keys controller

* fix mykeys

* fix wrong eodhd var name

* pylint

* test_set_key

* black

* patch dotenv kinda

* fix mypy

* remove refresh

* filter mykeys df

* filter mykeys df

* update integration tests

* first unit test for set api key

* add 2 more test cases to fred

* add persist test to fred unittest

* add av unittest

* add polygon unittest

* generate av cassettes

* add unittests av, fmp, quandl, polygon, fred

* change si token to key

* forgot controller func

* unittest: news, tradier, cmc, finnhub, iex, bitquery

* add si unittest

* update eodhd key name

* add unittest: walert, glassnode, coinglass, cpanic, ethplorer, github, messari, eodhd, santiment

* black

* add reddit unittest

* refactor unittests to handle multi args

* regenerate cassettes

* add more unittests

* add degiro, oanda and rh unittest

* generate oanda records

* fix rh and degiro unittest

* fix oanda unittest

* black

* flake8

* fix si controller test

* move tmp

* pylint

* fix av test

* fix fmp key check

* rewrite fmp

* rewrite oanda output

* fix quandl check

* rewrite expected

* supress logger exception

* fix iex cloud key

* remove iex warning

* fix coinglass check key

* cpanic fix

* regenerate cpanic cassettes

* flake8

* fix smartstake keys check

* regenerate expected output

* fix eodhd

* try at binance

* black

* fix controller tests

* pylint

* disable warning

* flake

* add option to show keys

* add Enum to model

* regenerate test output

* update contributing

* flake

* fix type hint

* remove status msg dict

* pylint

* regenerate and remove unecessary cassettes

* remove duplicate return

* supress traceback

* remove unused imports

* update some docstrings

* add todo

* add export option to mykeys

* minor change

* refactor color scheme

* update contributing

* update contributing

* regenerate cassettes

* add set_keys

* add api list helper

* prevent wrong api names

* add some help if wrong kwargs

* change some name

* update some doctrings

* remove api block

* remove api block

* change endpoint name

* pylint

* fix check output

* small msg change

* small details

* rewrite some tests

* Removed bad test

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-10-09 09:04:25 +02:00
DidierRLopes
0a1e2420ce minor styling updates (#2737)
* minor styling updates

* fix tests

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-08 22:12:36 +02:00