Commit Graph

494 Commits

Author SHA1 Message Date
montezdesousa
a9787dd2d1 Refactor reports menu and make it work on installer (#2878)
* start papermill rollback

* move reports to templates folder

* comment some stuff

* refactor reports controller

* change var names

* clean ctrl class vars

* small refactoring on metadata search

* relocate some func

* breaking changes

* revert some changes

* destroying changes

* change menu appearance

* change menu appeaerance again

* update choices

* change some assets locations

* remove unused vars

* change some docstrings

* rename vars

* its working

* forgot one dash

* omg its working

* clean some code and doc

* change func name

* fix a bug and add some comments

* fix economy report startup

* add custom reports

* allow custom reports

* forgot to delete this

* unused import

* make somestuff more explicit, 5 min rule

* add helper func

* supress errors--no-verify

* add some type checks

* fix check ipynb func

* check inputs in run

* rewrite some integration tests

* remove unused import

* add some docs to website

* add auto completion

* warn if no forecast

* add to do

* add arg name if 1 arg

* add papermill pointing to github main

* add notebooks

* fix terminal spec

* relocated choices files

* merge main

* relocate website docs for reports

* limit user choices

* fix portfolio auto completion

* limit choices fix

* clean som edocstrings

* limit user choices in run command

* improve run parser

* fix msg

* add reports controller tests

* relax crypto choices limit

* contain commands

* pass pre commit

* flake8

* flake8

* ignore mypy

* pylint

* website

* move docs to jupyter tab

* add installer dep

* remove etf

* remove reports

* update reports to main

* handle events erros

* rever reports to previous commits before main merge

* add papermill installer strategies

* add flags to terminal

* avoid sdk crash

* execute notebook in thread

* remove unused sys

* execute report in a child process

* fix some notebook stuff

* fix portfolio report

* fix reports controller volatility

* change api to sdk

* move images

* remove som unucessary installer imports

* remove debugger warning

* move ipykernel launcher

* supress notebook crash

* remove portfolio decorator

* fix run command

* forgot to change this

* add images

* fix portfolio report

* fix crypto report

* linting and tests

* add run integration test

* pylint

* hide reports module args

* try at supressing args

* try at supreccing warning

* solve some os issues

* handle pm errors

* fix warning unrecognized arguments

* change comment

* avoid crash when parameters not found

* fix etf commands

* minor cleanup

* update forecasting check

* fix some linting

* fix futures test

* pylint

* limit user choices to prompt

* limit user choices to prompt

* supress warnings

* revert poetry lock back to main

* papermill pointing to main

* flake8

* forgot requirements

* Update helper_funcs.py

* Update reports_model.py

* choices

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Simmons <53658028+simmonsj330@users.noreply.github.com>
2022-10-26 21:27:30 +01:00
Chavithra
67a50d92c7 Docker + Pypi : update logs + builds (#3016)
* Log : move LOGGING_COMMIT_HASH

* Build : pypi

* Build : docker

* Poetry : pyproject.toml

* Docker : test cd

* Docker : test cd

* Docker : test cd

* Docker : update cd

* Docker : update workflow

* Docker : remove script

* Tests : loggers

* Docker : workflow

* Pypi : build script

* Pypi : adding MANIFEST.in

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-10-26 12:43:05 +01:00
Colin Delahunty
457671250d Switches all multi input arguments to comma separation (#2902)
* Switched first narg to arg

* Finished converting first menu

* Finished converting menus

* Fixed tests

* Fixed webpages

* Error handling

* Added James fixes

* Allowing lowercase

* Temp

* Temp

* Fixed error message for multi word countries

* Fixed countries

* James fixes

* Docs fixes

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-10-25 11:35:52 -04:00
northern-64bit
38a53e5f43 Combining commands and renaming others (#3000)
* Combining commands and renaming others

Combining commands with different sources but the same functionality. I also removed indications of source from command names

* Fix tests and hugo

* Test fixes

Co-authored-by: james <jmaslek11@gmail.com>
2022-10-25 11:31:08 -04:00
Colin Delahunty
e5670aa2b7 Removed cramer (#3021)
* Removed cramer

* More fixes

* Fixed print output

* Fixed hugo server
2022-10-25 14:13:11 +02:00
James Maslek
b9bbe859b0 Ta/atr function (#3022)
* Add atr command

* Tests
2022-10-25 11:21:30 +01:00
montezdesousa
0ea0c55816 Fix etf broken commands (#3010)
* wrong header name

* forgot this

* rewrite controller vcr

* rewrite more cassettes

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-24 15:25:20 +01:00
Chavithra
d4a462cbe9 Logging : detect pypi install + PIIS filtering (#2973)
* LOG : add app_name=gst_packaged_pypi

* LOG : update piis filtering

* Linting

* Log : generation

* Tests : log generation

* Linting

* Tests : piis filtering

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-24 09:35:02 +02:00
James Maslek
90a1469c8b Bugs 2.0 (#2993) 2022-10-23 22:35:44 -04:00
James Simmons
c29d1c5c20 Changing reddit_sent command name (part 2) (#2986)
* hoping this works

* Moving files and adding test

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 23:57:15 -04:00
James Maslek
3498e01b24 Starting to go through my bugs (#2991) 2022-10-22 18:39:13 -04:00
DidierRLopes
8715c3336d New futures controller (#2758)
* start futures branch development

* small improvements

* display futures historical

* small improvement

* improve raw

* add curve command

* improve autocompleter

* styling

* add option to select expiry

* Two small things

* Add check that curve not empty

* improve plot and add description futures search

* add check for empty curve earlier on

* merge main

* fix black linitng

* black linting

* add ES to futures

* minor improvements

* Add docs

* Update _index.md

* Update _index.md

* fix crude oil exchange

* fix when dataframe has a single datapoint

* black linting

* add integrated test

* add futures tests

* add futures to SDK

* add tests

* pylint

* ordering

* fix tests

* fix tests

* fixed now?

* fix tests once and for all?

* tests

* helping out didier

* fix tests

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 22:59:48 +01:00
James Simmons
9345befafe Spacc command name change (part 2) (#2987)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-22 16:51:10 -04:00
James Simmons
5fab5a438e Emacross name change part 2 (#2978)
* Emacross name change part 2

* Tests : fixing test_bt_model

* Tests : bt

* Tests : run --rewrite-expected

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-21 16:54:52 -04:00
James Maslek
70d35ff598 Economic calendar (#2936)
* First push

* Second commit

* Comment out 'spread'

* list to List
2022-10-21 15:36:31 +02:00
Colin Delahunty
459e103a5a Fixes some James bugs (#2969)
* Fixed bug

* Fix vwap

* Hid future warning

* Added fix to pandas

* Quality improvement to customer and supplier

* Fixed some tests

* Test fix
2022-10-21 08:17:29 -04:00
Colin Delahunty
7f1b3db5ad Rename sdk to SDK (#2968)
* Rename sdk to SDK

* Added README

* Fixed test
2022-10-21 10:11:03 +02:00
Colin Delahunty
52dd7a1f66 Add stocksera source to stocks/dps/ctb (#2896)
* Got stocksera source working

* Added fixes

* Removed prints

* Updated documentation

* Fixed pytest

* Added tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-19 23:24:48 +01:00
James Simmons
884040a0e5 Fixing Crypto/Defi/DPI Bug (#2910)
* Fixing Crypto/Defi/DPI Bug

* additional changes

* more fixes for tvl

* 1 day % fix
2022-10-19 15:42:52 -04:00
Colin Delahunty
2c41a7b642 Make tests work with the pip package (#2916)
* Fixed bad darts import

* Fixed spelling

* Added fixes
2022-10-19 14:28:20 +02:00
hjoaquim
7136806103 Renaming api to sdk (#2897)
* renamed api to sdk

* changing docstrings and comments

* changing documentation

* changing .md files

* sdk to SDK

* fix imports on dashboards

* fixed the website docs generator

* re-generate website docs

Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-18 12:02:40 -04:00
James Maslek
d8a6509afc Enhance economy menu with custom math functions (#2559)
* Initial test commit

* Trying to improve

* Handle a duplicate column

* Temp solution for mismatched timeframe indices

* Cleanup + website

* tests

* Fixed black

* Update error handling + fix concat bug

* spelling error

* pred was still haning around

* unit tests

* blackformat

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
2022-10-17 16:18:20 -04:00
Chavithra
081ccd2fbd Moving custom_imports into openbbterminal folder. (#2858)
* Move custom_imports

* Tests : updating paths

* Removed custom imports

* Fixed the futures dashboard

* Removed old tests

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-17 15:35:19 +02:00
James Maslek
0b76e5b4c3 Add cboe top of book (#2830)
* Add cboe top of book

* test + merge 1 print table

* unit test + add stocks int test
2022-10-14 13:16:06 -04:00
Chavithra
aebdddc286 Moving terminal.py file (#2837)
* Move terminal file

* Update terminal_controller + paths

* Add new terminal.py

* Change constant : USER_CUSTOM_IMPORTS_DIRECTORY

* Changing constant : USER_PORTFOLIO_DATA_DIRECTORY

* Changing constant : ROUTINES_DIRECTORY

* Changing constant : DATA_SOURCES_DEFAULT_FILE

* Changing constant : PRESETS_DIRECTORY

* Update paths

* Update `terminal_controller` module

* Apply black

* Update worfklow + precommit hook

* Update workflow

* Tests : terminal_controller

* Tests : terminal_controller
2022-10-14 15:12:22 +02:00
hjoaquim
37c39c3191 Degiro fix (#2747)
* little refactor for degiro company news

* fixed message always showing even on login fail

* added if there is a session before trying to retrieve holds

* minor fix to reset the session id

* added a creds reset on logout

* added credentials verification

* adds a test for degiro key

* added 2fa to the test

* added verification for topnews

* fixing pylint

* fixing tests

* fixing import order

* fixing keys tests
2022-10-14 12:13:35 +02:00
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
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
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
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
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
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
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
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
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
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
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
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
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
Theodore Aptekarev
9a246dd76b Refactor alphavantage commands in economy menu (#2739)
* Refactor economy alphavantage commands

* update tests and test data
2022-10-08 20:39:29 +02:00
martinb-bb
7fd72d9ee1 Forecasting Menu [Work in Progress] (#1933)
* Gave forecasting memory

* Fixed scripts, refactored

* FIxed poetry lock

* edge case check for forecast target

* Improved combine and load functionality

* Cleaned up translations

* Fixed issue with covariates

* Fixed issue checking covariates

* Another covariates check fix

* Ignored regr and linregr warnings

* Fixed covariate issues

* switched from forecasting to forecast

* Finished transition to forecast

* Can add entire dataset with one command

* Improved combine description

* Removed naming covariates

* Created new installation

* typo

* Make plot show dates if available

* Added better handling or users without the menu

* Removed unused file

* Fix

* Better handling for nontraditional datasets

* Fixed black and pylint

* Fixed tests

* Added darts install to main tests

* Working on darts with CI

* Added back test file

* Made large tables print better

* naive baseline

* typo

* Finished naive

* no dollar on prediction

* fixed positive MAPE bug

* quick refactoring

* Fixed two different args for same thing

* added extra patience

* linreg mape fix

* info fix

* Refactored API, bumped to Darts 0.21.0

* Added fixes

* Increased verbosity for wrong column

* Updated dependencies

* Hid warnings

* Fixed importing

* Fixed tests

* Fixed ugly seasonal plotting

* Fixed forecast line color

* Switched chart output to blue

* Simplified lambda_price_prediction_color

* fixed residuals

* Chnage

* Removed darts from CI per Chavi

* Added fixes to tests

* Added knnfix

* Fixed issue where n!= o

* Added changes

* Added changes

* Imrpoved forecast dash

* Added Theo notebook

* Added enhancements to dash

* Added notebook

* Added fix for jupyter lab

* Added debug stuff

* Change

* Updated docs

* Fixed formatting

* Fixed formatting

* Removed prints

* Filtered some info

* Added button to run model

* Improved api

* Added secret feautr (no peeking Martin)

* Cleaned code

* Fixed tests

* Added test fixes

* Added fixes

* Fixes

* FIxes for pres

* Remove bad tests

* Removed knn

* Fixed issues with removing mc

* doc for conda

* Added forecast improvements

* Added streamlit support

* Fixed issues

* fix expo with streamlit due to quantile()

* fixed performance issues with streamlit for now..

* clean up historical forecast with new trainer

* quick fix for regression trainer params

* Added fixes

* quick fix for other fix for regression trainer params

* table formatting for timestamp

* potential fix for inf in feature engineered datasets

* Basic working in new format

* dw

* Trying

* Fixed issues

* Improved graphing

* fixing trainer for LR and formatting

* doge and linting

* page break

* automatic cleaning of datasets

* automatic cleaning of datasets- fix

* Fixed forecast dates

* Made dashboard prettier

* Added fixes

* Added fixes

* Added options

* Fixed error

* remove caching

* adding in spinner

* Added vairable n_predict in streamlit

* Added mypy fix

* renaming and range change

* new index for n predict

* check positive float for window size

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* renaming

* reorg files

* Update _index.md

* hidden which command for versions

* Update _index.md

* Update _index.md

* which: ns parser

* hugo for: which

* hugo for: forecasting fix

* formatting black

* update stock controller test

* Lay groundwork for better residual plotting

* improved delete to allow for periods in title

* improved automatic cleaning of inf

* Added new API

* Added new API

* Added new API

* formatting for black

* Updated our testing CI

* Reverted changes

* Added forecast docs

* Fixed mypy issues

* Fixes tests

* Did some refactoring, added a report

* new api in streamlit

* Added integrated tests

* Update _index.md

* improved loading in custom dataset

* menu spacing

* installer fixes

* Added docs fixes

* Adding comments to test if commit working

* Fixed report

* naming conventions

* formatting

* removing unused var

* Made last report imporvements

* Update README.md

* Added fix

* Switched to warning

* Added fixes

* Added fixes

* Added fixes

* Added fixes

* Update economy av view test

* Remove forgotten print statement

* Update depencencies

* Added verbosity to pytest

* Added fixes

* Fixed pylint

* Fixed actions checkout

* Added fixes

Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: James Simmons <simmonsj330@gmail.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-10-08 14:54:43 +02:00
montezdesousa
732a614937 Allow users to change api keys through OpenBB SDK (#2642)
* 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

* fix check output

* small msg change

* small details

* rewrite some tests

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-08 12:30:23 +02:00
Catalin Toma
002bcb9e47 #2684 [CT] Improve stocks/sia error handling, abstract duplicate code (#2723)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-10-07 14:30:52 +02:00
DidierRLopes
20b621211e replace ln and ld by search (#2710)
* replace ln and ld by search

* try to fix tests

* Fixing tests

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-10-05 10:24:24 +01:00
Colin Delahunty
e3051bb176 Improved error handling for crypto commands (#2704)
* Improved error handling

* Updated tests
2022-10-04 16:07:45 +02:00