Commit Graph

513 Commits

Author SHA1 Message Date
andrewkenreich
09f753da1c More Fixes to Crypto + key sort (#3244)
* fix #3095 - autocomplete and command working + key sort

* fix #3056

* fix [Bug]  bugs #3048

* fix [Bug]  bug #3017

* sort -> sortby, not ascend, tests

* fix my goof ups

Co-authored-by: james <jmaslek11@gmail.com>
2022-11-03 11:45:40 -04:00
Colin Delahunty
d916535f39 Fixes Issues with Forex (#3260)
* Fixed issues

* Moved menu

* Added back doc header

* Updated tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-03 11:30:16 -04:00
Colin Delahunty
500fcd6aa2 Refactor the QA Raw Command (#3234)
* Improved usability of raw

* Began refactoring qa raw

* Continued adding fixes

* Added more fixes

* Updated docs

* James fixes

* Added formtting changes

* In process of converting to all lower

* Added fixes

* Fixed tests
2022-11-02 13:35:55 -04:00
andrewkenreich
41a764fd5f fix a bunch of cryptooooo (#3220)
* fix crypto term API +[Bug] crypto/dd/funot #3187

* Fix #2 - combining commands error #3186

* fix [Bug] `crypto/dd/stats --vs` not avail #3181

* fix title on stats

* fix -h [Bug] #3182

* fix #3169

* remove command [Bug] #3096 - source bad

* fix [Bug] #3097

* fix #3103 convert dtypes and fix descend

* fix [Bug] sort and descend errors #3101

* [Bug] `crypto/defi/tokens --sort` #3098

* fix #3060

* removing unneeded tests

* running tests

* tests 4 u andrew

* remove dpi from sdk

* fix merge conflict

* rename vs -> to_symbol

Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-11-02 13:18:42 -04:00
DidierRLopes
47549cbd9f [SDK] Allow silencing verbose output in commands that use stocks/load (#3180)
* remove verbose on load

* Revert implementation of the verbosity setting in stocks controller

* Edit docstrings to comply with pydocstyle linting rules

* Fix typos in variable names and help text

* Add verbosity setting to forex load helper as it uses the stocks helper

* Update docstrings to comply with pydocstyle linting rules

* Update tests

* Fix test relying on local sources settings

* Remove old test cassettes

* Add new test data

* WIP: Fix futures tests

* Clean up test file

* Fix futures tests having a time component

* Fix futures model tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-11-02 09:46:58 -04:00
Colin Delahunty
ee0b267902 Added capitalization fixes for stock/search (#3225)
* Added capitalization fixes

* Cleaned up search command

* Fixed tests

* Ignore case on country and exchnage
2022-11-02 09:08:10 -04:00
Henrique Joaquim
84f56d2b22 Some fixes on crypto (#3246)
* getting into disc menu fixed

* fixed warning

* fixed verification in case list is empty

* integration tests

* fix sorting

* fix tests

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-11-02 08:24:38 +01:00
Colin Delahunty
36a5166d1b Fix dcf (#3223)
* Added suggestions for load

* Fixed a command

* Fixed panel

* Added fix for dcf

* Doing my boi a favor

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Andrew <andrew.kenreich@gmail.com>
2022-11-01 14:45:25 +00:00
DidierRLopes
cdd5bae2df When renaming funcs to remove source at start, the translating keys were missing update (#3177)
* fix the en.yml key for some funcs

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 22:46:20 +00:00
DidierRLopes
70e57bc9c2 Improve ETF menu (#3124)
* improve etf menu

* improve docs

* fix tests

* should cover more edge cases

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 15:25:49 -04:00
fede
826303eec1 [FEAT] StatsForecast AutoETS forecasting model (#2988)
* feat: add autoets model

* feat: update autoets index

* feat: add verbose option

* feat: freq preprocessing

* feat: improve test size call

* feat: add statsforecast dep to conda env full

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
2022-10-31 14:58:16 -04:00
Gerard
a38fcd8c6e Fix top categories and sorting not working (#3025)
* Fix categories and sorting not working

* Allow sort in ascending order

* Documented the new flag

* Fixed tests

* Fix bad practises

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 14:49:23 -04:00
Colin Delahunty
8772ac738f Added error handling (#3070)
* Added error handling

* Added command to SDK

* Updated docs

* Fixed tests to account for new error handling
2022-10-31 13:31:33 -04:00
Colin Delahunty
04670ddb05 Added crypto/defi fixes (#3117)
* Added sinfo error handling

* Address spelling

* Removed unused descend

* improved ldapps MVC

* Added fixes

* Fixed failing tests

* Fixed failing tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-31 08:36:59 +01:00
James Maslek
a2ab314da7 sia cleanup (#3134)
* sia cleanup

* Website

* Change load-> select to address #2609

* Change the list of tickers in vis

* change back to show if nothing
2022-10-29 00:22:35 +01:00
James Maslek
274d5c4078 Clean UP ETF for next version (#3110)
* Fix things for 2p0

* tests
2022-10-27 11:54:28 -04:00
DidierRLopes
58fb4cd190 fix news sources (#3118)
* fix news sources

* lint

* ordering

* fix tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-27 14:51:59 +01:00
DidierRLopes
41b2a006c4 Fix using forecast in SDK + crypto alignment (#3119)
* fix access to forecast SDK

* fix alignment

* fix tests

* black lint

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-10-27 14:51:46 +01:00
DidierRLopes
15e6e4ad85 Improve UI/UX styling regarding to spacing (#3073)
* fix styling UI/UX

* black formatting

* fix tests

* Update CONTRIBUTING.md

* asterisk to hyphen

* Update CONTRIBUTING.md

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
2022-10-27 12:34:16 +02:00
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