Commit Graph

66 Commits

Author SHA1 Message Date
montezdesousa
e4f5039627 Portfolio bundle fix (#2665)
* fix rvol

* added .

* remove all ifs

* fix rsharpe, rsortino

* reorder rsort, rsharpe args

* change error msg

* change error msg

* added verification to check if the window len is larger than sample len

* change rbeta msg

* fix var and es

* add more integration tests

* changed boolean params to true booleans

* renamed the file to use test_

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-29 18:59:09 +01:00
James Simmons
5f5f07c295 Fix bugs for news (SSL, sources) and fred (SSL) (#2585)
* potential solution number 1

* Making sure certifi is referenced for news and fred

* Fix default sources not being applied

* Add unit and integration tests

Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-09-22 19:32:27 +03:00
Chavithra
72b0a9f1ee Next release : reports on steroids (#2349)
* fix gov tests

* refactor insider

* new virtual path extraction

* removed some symbol default params as they're considered critical

* little adjustments

* portfolio refactor

* merge API factory

* add helpers, stocks, crypto, forex

* minor forex changes

* include forex api paths

* add 2 missing forex funcs

* portfolio brokers refactor

* display help on api func call

* add econometrics virtual paths to api

* add api unit test

* fixed report for the new api

* minor portfolio refactorings

* added gdapps

* anchor_yield path

* some more crypto path fixes

* small change

* fixed wrong param

* minor fixes

* wip - inital commit for forex report

* add bw as a model, we'll get better solution afterwards

* added ema with dummy model as it adds great functionality to the report

* minor fixes

* wip - added functions to forex report

* add feedparser news path

* add new virtual paths to api

* adding commands to equity report

* revert to old paths, new ones were breaking

* Add in very basic ETF report

* Add candle chart to ETF report

* add etf load

* allow use of candle without data

* add raw to candle

* added forex report

* ongoing equity report

* equity report change

* fix some portfolio bugs and add docstrings

* include portfolio paths and coin class

* add crypto paths

* change event dates to str

* starting economy report

* window for limit

* equity report and refactor newsapi

* add helper to api

* update on economy report

* equity report

* update economy report

* refactor some docstrings

* change maturities helper

* refactor newsapi

* refactor futures command

* add some sauce to ycrv plot

* black

* update report

* refactor alphavantage

* refactor wsj

* update economy report

* ycrv tenor

* map avaiable_indices

* map economy helpers

* fix econdb docstring

* add plots on economy report

* minor fixes

* wip - crypto report

* update economy report

* added same default args as view

* added view to explicity use chart=True when suing the api

* adjustments - removed rich tables to use only df

* final version economy report

* change report name

* equity report for review

* linting

* add etf symbols endpoint

* incorporate feedback economy report

* fix reports launch by adding tag to economy report

* fix equity bug

* remove analyst name

* fix

* fix news

* make links hyperlinks for equity

* click links

* fixed arg name

* improved news

* small improves

* Fix light terminal stylesheet that would prevent using it in notebooks (#2473)

* improved report

* run reports in installer

* fix #2209

* minor ycrv refactoring

* refactor portfolio/holdv virtual path

* refactor benchmark trades

* fix events args

* adapt economy report to changes

* fix portfolio controller bug

* holdv refactor

* refactor perf command

* start portfolio report

* remove perf view

* refactor holp

* add textwrap3 to poetry (doesn't solve the error)

* fix equity after merge

* add some rolling commands

* fix equity after save button

* improved crypto report, plus minor fixes

* minor fixes on the reports

* add maxdd and distr

* refactor qa

* var command

* refactor qa expected shortfall

* add es command

* add es command

* fix qa percentile bug

* fix economy rendering

* refactor qa omega

* add om command

* add summary command

* add dret command

* add mret command

* add yret command

* add metrics

* add allocs to report

* remove bro and po commands, add later

* fixed some tests

* adjustments to crypto report

* Fix docstring for VSCode

Added a note about installing Jupyter PowerToys extension for optimal API usage in Jupyter VSCode, in the API_README.md.

* minor adjustment

* remove nft calendar model virtual paths

* Add in Portfolio report

* fix external axes portfolio view

* Update portfolio report with rolling plots

* Details for ETF and Portfolio

* fix economy report

* change analyst to openbb

* floppy

* fixed unmatched axis in reports

* Speed up tests

* fix file and load on po

* get_news output

* add some po paths

* Add integration tests for Reports menu

* refactor maxsharpe

* open maxsharpe

* open minrisk

* open maxutil

* open maxret

* Added fixes

* black

* remove useless views

* Fixed small issue

* refactor ef

* open ef api

* portfolio optimization report

* Added fixes

* unblock api loading

* add more endpoints

* update po report

* unblock api loading

* update po report

* expose herc

* expose property endpoint

* Added fixes

* More api fixes

* flake8

* Fixed some mypy

* news api model

* flake8

* mypy fix

* mypy

* black

* pylint

* fix tests

* markdown

* markdown

* Added fixes

* fix economy report

* merge

* fix economy report

* remove empty notebook

* expose nco

* remove jupyter notebook

* expose plot endpoint

* remove po report, just used for tests

* api v paths plot

* remove api_old

* change loading msg

Co-authored-by: montezdesousa <montezdesousa@gmail.com>
Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Om Gupta <guptagom@gmail.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: JerBouma <jer.bouma@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Om Gupta <85685255+soggyomelette@users.noreply.github.com>
Co-authored-by: Diogo Sousa <diogosousa@Diogos-MBP.lan>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: northern-64bit <75195383+northern-64bit@users.noreply.github.com>
Co-authored-by: colin99d <colin99delahunty@gmail.com>
Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com>
2022-09-20 15:07:58 +01:00
jose-donato
0f23910e59 removed nftcalendar.io (#2540)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-09-13 22:47:02 +01:00
Jalil F
a9a9b2b785 feat m: [Crypto/DD] Add Coinglass Liquidations (#2402)
* Add initial liquidations calls.

* Fix liquidation terminal call.

* Adding documentation.

* Update to correct docs.

* added stacked bars

* Adding new bar chart visualization to docs.

* revert helpers.

* linting

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
2022-08-23 18:30:18 +01:00
Om Gupta
3a7401dfd0 Adds relative strength percentile to stocks/ta (#2302)
* Adds relative-strength percentile to stocks/ta

* allow exporting tables

* shifted from common to stocks and added tests

* added documentation

* added in nav bar

* fix test

* remove whitespace in docstring

* fix type error

* fix test

* fix tests

* test

* added tickers to a separate table

* add image to doc

Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-08-22 14:54:08 +01:00
Alex Willis
a768e545a8 Added a Historical Beta Regression Plot (#2145)
* beta function initial commit

* Used pct returns instead of raw returns

* beta function initial commit

* Used pct returns instead of raw returns

* Moved beta from stocks/ca to stocks/qa

* Updated tests for stocks/qa/beta

* Added hugo docs page for stocks/qa/beta

* Updated beta docstrings and added graceful exit on bad ref ticker
2022-07-26 13:23:08 +01:00
jose-donato
cace78c242 Replace crypto exchange apis with CCXT (#2158)
* ccxt added

* updated text

* added docs, tests

* updated requirements

* didier requests
2022-07-26 10:04:44 +01:00
jose-donato
9d0bf694f6 Fix 2099 - add crypto funding rate (#2159)
* added funding rate feature to dd menu

* didier changes

* tests
2022-07-26 00:23:34 +01:00
northern-64bit
64fcbc6acd Integrating the fmp submenu into the fa menu + plotting + ratios (#2102)
* Moving changes from previous pr to new branch with working tests

* Fix website

* Tests : stocks/fundamental_analysis

* stocks/fundamental_analysis/fa_controller : fix bug

* Fix requested changes

* Fix linting

* Fix warnings

* Linting

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
2022-07-21 09:21:11 +02:00
James Simmons
d6291ead84 Release/1.6.0 (#2106)
* Fixing paths for build procedure

* Adding back env file

* Updating pyproject and setup.nsi files for release

* Update version on feature_flags.py

* Fix default sources path not working in installers

* Fix crypto/ov/wf

* Remove old and slow tests from openbb scripts folder

* Adding a note about to explain that prediction is not available for Mac users

* Disabling prediction menu via env file

* Fix tkinter bug on windows ci by specifying the mpl backend

* Adding prediction back in and deleting previous comments about prediction not being available

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-07-21 00:19:13 -04:00
Theodore Aptekarev
83f35e80c2 Release/1.4.0 (#1909)
* Fix stocks_bt integration test script

* Stop keeping parts of third-party libraries that are bundled

* Update pre-commit

* Disable false positive pylint in some crypto models

* Add i18n support to packaged apps

* Add more sklearn hidden imports

* Fix routines files path

* Fix stocks/pred openbb test script

* Fix website not building because of expo command removed

* Bump project version and update deps

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-06-07 16:14:36 +03:00
martinb-bb
5f8eb43620 Time-series forecasting (Exponential Smoothing) with Darts Integration (#1851)
* Working exponential with bugs

* utilizing business datatime + fillers

* working figures

* expo with more functionality

* historical forcasting feat.

* numeric values for forcasted days

* print pretty predictions

* formatting

* code cleanup

* doc strings fix

* more docs

* quick fix

* refactoring

* poetry updates

* typo

* test script update

* update requirements.txt

* refactoring and Hugo website

* Update _index.md

* reverting poetry and requirements for now.

* minor mod and removal of space

* Update readme for forecasting

* removal of old TF version

* reqs and poetry

* linting

* merge main.yml from main

* supress warnings due to lib version change

* reverting main.yml

* retrying expo on main.yml

* fixing fundamentalanalysis version

* update poetry fundamentalanalysis

* type casting arg parse

* seasonal period default update

* update en.yml

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-05-24 22:33:56 +01:00
Jeroen Bouma
7e37ed0444 Add comparisons between the portfolio and benchmark including an orderbook sheet (#1773)
* Add in Portfolio Holdings for Attribution functionality

* Update a whole bunch

* Small bugfix and linting

* Remove print statements

* Update Excel to match Yahoo Finance categorization

* Make sure portfolio and benchmark are aligned

* Add in benchmarks, robustness and bugfixing

* Improve the spreadsheet

* Add in allocation model and improve portfolio features

* Bugfixing and more equities in the template

* Bugfix

* Bugfixing

* Add tests and website stuff

* WORK

* Clean up the code

* Add back in terminal changes

* Missing an enter imo

* Documentation fix

* Small fix

* Change code because tests cant handle formatting

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2022-05-14 12:42:01 +01:00
Theodore Aptekarev
2ce3fe460b Fix bugs, remove feargeed and improve help messages (#1767)
* Fix defi lending and borrowing (test_crypto_defi.openbb)

* Update Defi test data

* Remove cnn feargreed command from economy menu

* Fix stocks/ba integration tests

* Fix whale alert redirects blocking the keys menu

* Add failed request handling to whale alert command

* Remove feargreed from hugo

* Remove feargreed from bot

* Warn that portfolio optimization can take a long time

* Remove feargreed from project deps

* Update welcome message

* Update requirements txt

* Fix welcome message test

Co-authored-by: piiq <piiq@tinag.ru>
2022-05-05 18:18:58 +03:00
jose-donato
e3cd8adf73 Add Messari crypto dd commands (#1711) 2022-05-02 22:21:19 +01:00
minhhoang1023
e59a30b188 Add crypto DD commands (#1710)
* Add github activity over time

* Create tests

* Update default days in chart command

* Add san package to poetry

* Fix tests failed

* Generate fixtures

* Fix tests failed

* Remove sanpy package and use requests instead

* Adjust index

* Add hugo server

* Fix datetime

* Update tests

* Revert "Update tests"

This reverts commit ffe03a7224.

* Fix tests

* Regenerate cassettes & filter api tokens

* Fix windows issues

* Fix PR comments

* Pass tests & fix comments
2022-04-27 19:49:30 +07:00
Theodore Aptekarev
53049003f2 Fix user path (#1737)
* Decouple export path composition into a separate function

* Fix typos, linting and text formatting

* Improve cross platform compatibility of user home path handling

* Fix export path for pir and dcf

* Remove excessive iteration from fa integration test

* Add investpy data to fix funds menu

* Clean up logs dir before build on macOS

* De-quarantine terminal package on launch on macOS

* Add docstring

* Update dcf test data

* Remove recording new data every time pycoingecko tests run

* Skip pycoingecko tests

* Update deps to fix CI tests on main

* Bump Pygments version to fix the CI

Co-authored-by: piiq <piiq@tinag.ru>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-04-26 14:48:28 +03:00
jose-donato
05c0ea0d8f Adds ross index (#1723)
* added rossidx

* added command to obb script

* horizontal + wrap

* separate charts

* updated commands

Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-04-22 10:00:10 +01:00
jmaslek
893e68efdc Fx forward rates (#1721) 2022-04-20 11:56:02 -04:00
northern-64bit
fd2839c913 Adding everything from Risk Metrics PR based on new main branch (#1666) 2022-04-15 11:38:37 +01:00
jose-donato
a12e0946da Starts crypto tools menu (#1668)
* started crypto tools menu

* allow zero float

* added obb script

Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
2022-04-14 14:24:42 +07:00
jose-donato
670402396e Replaces coingecko deprecated commands (#1650)
* removes cgproducts and cgplatforms and replaces with cr

* add ignore word

* added .openbb script

* reverted crypto change

* doc

* failing tests

* trying chart and fixed minh issues

* Create barh

* Fix ticker labels

* fix test

* loanscan mock

* defi test

* defi test

* Fix defi test

Co-authored-by: Minh Hoang <nminh.hoang1023@gmail.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-04-13 11:12:54 +07:00
jose-donato
5bf4618b39 Adds QA and Pred to forex (#1652)
* added qa and pred to forex

* updated test help

* Add forex/qa notebooks api wrapper

* Add forex/qa tests

* Add all menu commands to the integration test script

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-04-08 21:03:36 +03:00
Theodore Aptekarev
cbed180ba7 Fix divcal timeout (#1649)
* Add request timeout time for nasdaq divcal request

* Add a todo banner

* Add divcal back to the integration tests

Co-authored-by: piiq <piiq@tinag.ru>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-04-07 20:29:07 +03:00
jose-donato
01391c2564 New Open Source menu (#1603)
* adds os menu

* remove tests

* fixed tests

* fixed date in sh

* updated alt controller tests

* updated api fecthing/handling

* lint

* updated website folder name and tests

* alt tests

* tests

* tests

* keys for github

* updated tests

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-04-04 19:08:50 +03:00
Theodore Aptekarev
3c2a8cf97f Installer fixes (#1584)
* quick econ fix

* black

* keys and feature flags

* terminal name 👀

* some more replacements

* some more replacements

* edit pyproject

* gst -> openbb

* add example portfolios back to git

* Update api from gst

* sorry.  skipping some tests

* another round of names

* another round of test edits

* Missed some .gst refs and update timezone

* water mark stuff

* Fixing Names in terminal.spec and name of GTFF_DEFAULTS to OBBFF_DEFAULTS

* Add statsmodels and linearmodels datasets to bundle

* Update openbb test scripts to exit after they're done

* Fix default export path for packaged apps

* Update packaging settings after rename

* Exclude jupyter and report from packaged apps and testing

* Fix typo

* Remove divcal from test because it freezes the terminal

* Add openbb mac icon

* Add windows icon and splashscreen

* Fix markdown linting

* Fix gov & economy failed test  (#1585)

* fix more GST to OpenBB Terminal

* Fix gov & economy fail tests

* Small changes

* Patching valuation & performance command

* Change GTFF to OBBFF

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>

* Resolve no-else and inconsistent return

* Set default predict to true

* Fix multiple bugs: Add ylabels to bt menu & Fix reports bug (#1581)

* Add y labels to all bt commands

* Fix reports bug

* Update crypto market

* Update crypto market

* Remove gst folders and remaining files

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>

* Break CI

* Break CI again

* Fix small rsi bug (#1588)

* Add y labels to all bt commands

* Fix reports bug

* Update crypto market

* Update crypto market

* Remove gst folders and remaining files

* Add back crypto market

* Update report controller

* Remove bt view from gst

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>

* Clean up remainder of Gamestonk

* Fix CI back

* Force CI to install pytest

* Tests : fix test_menu

* Fix loggers linting

* Rename default OPENBB feature flags

* Rename defaults feature flag file

* Loggers : fix mypy

* OBBFF to OPENBB in terminal.spec

* Change flair to butterfly

* Force CI to create a new cache

* Force CI to create a new cache in conda tests

* Skip test

* Clear other caches

* Fix linting

Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: Andrew <andrew.kenreich@gmail.com>
Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-03-29 20:10:00 +03:00
jmaslek
b71abcfbf4 Updating some names (#1575)
* quick econ fix

* black

* keys and feature flags

* terminal name 👀

* some more replacements

* some more replacements

* edit pyproject

* gst -> openbb

* add example portfolios back to git

* Update api from gst

* sorry.  skipping some tests

* another round of names

* another round of test edits

* Missed some .gst refs and update timezone

* water mark stuff

* Fixing Names in terminal.spec and name of GTFF_DEFAULTS to OBBFF_DEFAULTS

* fix more GST to OpenBB Terminal

* Logging : merge conflicts with main

* Revert wrong files

Co-authored-by: Andrew <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-03-29 09:46:26 -04:00
minhhoang1023
9923c6974c Add YahooFinance to crypto load (#1533)
* Add yf to crypto load

* silence pylint too many branches

* Add yf chart

* Add exception handling when coins are not found

* Fix tests failing

* Address PR Comments

* Change the backwards yf crypto chart and volume label

* fix gst file

Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-03-25 17:19:27 -04:00
minhhoang1023
93aba1e2cd Add YahooFinance to forex load (#1544)
* Load yf forex

* Fix linting

* Adding forex dictionary

* Fix tests failing

* Fix tests failing

* Remove inheritance to oanda model

* Adding -s to --source

* Addressed comments

* Fix tests

* Fix oanda menu entry

* Add av api limit error handling

* Fix start date being in different formats across sources

* Silence "too much data" warning

* Add gst script to test currency sources

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-25 16:11:26 +03:00
Theodore Aptekarev
ede6ec8b1a Add TA and test coverage for the Forex context (#1532)
* Add technical analysis to forex menu

* Remove "stock" and "$" from the common ta charts

* Add tests for forex context

* Update forex custom reset functions

* Remove -t arg (ticker) insertion into other_args in forex controller

* Remove excluded command from forex ta help string

* Update test data

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-03-22 20:24:51 +03:00
Jeroen Bouma
07719b1923 Upgrade Economy Menu (#1444)
* Initial start-up of the Economy revamp

* Add Country Codes

* Initial Revamp of the Menu

* Add indices

* Integrate FRED menu into the Economy menu

* Add Treasury rates for the United States

* Significantly speed up treasuries function and misc

* Add in inflation indexed average

* Optimise treasury code + move raw and limit parameters

* Attempt to fix tests

* Fingers crossed tests pass

* Fix exports

* Add multi-plotting functionality as well as robustness of functions

* Improve documentation Plot command

* Please tests.. work.

* Update tests, fix currency exchange rate and some misc

* Does download work?

* Tests. Work. Now.

* This can't be it right?

* Renew tests

* Some formatting

* Update _index.md

* Delete website/content/terminal/economy/cpi directory

* Update _index.md

* Delete website/content/terminal/economy/currencies directory

* Delete website/content/terminal/economy/glbonds directory

* Delete website/content/terminal/economy/usbonds directory

* Delete website/content/terminal/economy/indices directory

* Update _index.md

* Delete website/content/terminal/economy/gdp directory

* Delete website/content/terminal/economy/gdpc directory

* Delete website/content/terminal/economy/grains directory

* Delete website/content/terminal/economy/inf directory

* Delete website/content/terminal/economy/meats directory

* Delete website/content/terminal/economy/metals directory

* Delete website/content/terminal/economy/softs directory

* Delete website/content/terminal/economy/unemp directory

* Delete website/content/terminal/economy/tyld directory

* Delete website/content/terminal/economy/fred directory

* Create _index.md

* Create _index.md

* Rename website/content/terminal/macro/_index.md to website/content/terminal/economy/macro/_index.md

* Create _index.md

* Create _index.md

* Delete website/content/terminal/economy/energy directory

* Create _index.md

* Improve documentation and re-do tests

* Rename to make it work

* Add Script

* fix env yaml with new cvxpy

* Make plot command make nice legends

* Forgot one

* clean up yfinance index commands for errors

* Update images since I made them prettier.

* add mocking for yf download

* redoing tests...again

* Improve plotting by placing the legend outside the graph

* Move Legend to outside the graph and improve -sp argument from macro

* Details

* Bugfix

* Update _index.md

* Update _index.md

* Update _index.md

* Even prettier

* Update _index.md

* Fix treasury legend

* Re-update tests, does this work?

* Always fill index_data and check if show_error on True does anything

* ...

* Update workflows

* Revert "Update workflows"

This reverts commit d7c0d22fe0.

* Attempt 12331212312 to Fix Tests

* Attempt 12331212312 to Fix Tests #2

* Ok, this is it?

* Almost there James.. almost there..

* Neater way of plotting -y1 goes in column 1 and -y2 in column 2

* Fred legend should be same size

* Update _index.md

* Change it so VIX == vix for Indices

* Add options command and remove it from plot

* Typo

* Renew tests, add more countries and apply wrapping to plots

* Reduce title size, doesn't have to be so large

* Quick start of prediction from economy

* Quick pred cleanup

* test

* Clean up pred `pick` and add hugo

* Add in qa to economy while I am here

* Add in qa menu

* mock visualize output and export data

Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-03-19 13:02:51 -04:00
jose-donato
107ad03ffb Adds command to get anchor protocol stats (#1517)
* added feature

* updated image and failing test

* typo

* added command to test script

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-19 12:03:55 +00:00
minhhoang1023
784ceb6316 Add Crypto Market Cap dominance from Messari (#1467)
* Add market cap dominance from Messari

* Add command to script

* Add tests and hugo server

* Update tests

* Fix tests

* Remove test view

* Fix Jose's comments

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-03-14 23:53:52 +07:00
Colin Delahunty
3d5cbcb2ae Extended Dupont (#1475)
* Added dupont, fixed fraud

* Added dupont to scripts

* Added better handling

* Added test fixes

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-12 14:28:25 -05:00
jmaslek
c6dead943c Add in Cramer recs by Ticker (#1457)
* Add cramer by ticker and move both to ba

* Fix apis and move existing tests

* Add new tests + gst

* Hugo

* Update _index.md

* Fix tests

* quick changes
2022-03-10 10:27:29 -05:00
didierlopes.eth
35cd91881f Interest from google trends correlated with stock price (#1463)
* Add interest command

* refactor code a bit further

* add docs

* add integrated tests

* Update _index.md

* fix test help
2022-03-10 13:55:21 +00:00
didierlopes.eth
0aa21d732c Add splits command (#1438)
* add splits feature

* add tests

* add splits to integrated tests

* Add splits hugo

* Update _index.md

* refactor econometrics style

* rewrite stocks/fa tests

* Implement market cap command (#1437) (#1440)

* add gst letters only

* implement market cap command

* add tests

* update hugo with mktcap cmd

* add mktcap to integrated tests

* Update _index.md

* update test fa data

* Update fa_controller.py

* fix tests fmp

* fx some of the av tests

* add export capability to AV earnings

* fix test_fa_controller

* fix source in options controller

* fix tests with Chavhi help

* fix test
2022-03-07 16:27:08 +00:00
didierlopes.eth
7090d0643a Implement market cap command (#1437)
* add gst letters only

* implement market cap command

* add tests

* update hugo with mktcap cmd

* add mktcap to integrated tests

* Update _index.md

* update test fa data
2022-03-06 15:44:01 +03:00
Jeroen Bouma
f2ca215132 Econometrics Menu (#1403)
* Add Statistics Menu

* Add Granger Causality test

* Apply Black formatting

* Add Cointegration Tests

* Adjust plotting for Cointegration test

* Add Significant parameter to Cointegration tests

* Move regression functions to seperate .py files

* Progress on Panel Data

* A lot of progress for Panel Data

* Make functions robust and improve documentation

* Re-enable Breusch-Godfrey

* Add modify functionality

* Improve modify functionality

* Add Breusch-Pagan heteroscedasticity test

* Capitalize a word

* Include documentatin for the Statistics Menu

* Update _index.md

* Update _index.md

* Update _index.md

* Fix export statements and add Example datasets

* Update example with Longley's dataset

* Update documentation with a legit source

* Compare the results from each regression models based on the wage_panel dataset

* Updated with all relevant types of regression tables

* Update with all relevant regression types for Panel data

* Update _index.md

* Add change column type, improve OLS, add time and entity effects for FE

* Update documentation and fix a small bug

* Add in Statistics menu, replacing Custom menu

* Remove custom menu

* Add in documentation

* Add in gst files

* Cointegration can be used on any amount of columns

* Add Tests

* Make tests time invariant

* Update Poetry and Requirements

* Change name of Statistics menu to Econometrics menu

* Rename scripts

* Add type in Documentation

* Change names from Statistics to Econometrics

* Add graph

* Update tests with rounding and naming

* Make minor adjustments to fix the tests

* Updating tests : allow extra args for capture

* Apply recorder formatting

* Adding some minor formatting

* Fix error with MyPy

* Attempt to fix MyPy annoyance

* super small style things

* Fix small bugs and add plot command to dwat

* Small description mistake

* Update documentation with missing argument

* Update styling

* Add error handling and add improve show functionality

* Fix merge issue

* Allow import from custom_imports

Co-authored-by: Jeroen Bouma <jeroenbouma@MacBook-Pro-van-Jeroen.local>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-03-04 21:44:59 +01:00
northern-64bit
884bb82fb5 Adding risk metrics to portfolio and qa (#1394)
* Adding es to qa and var to portfolio

* Fixing mathematics

* Adding es command to portfolio menu

* Linting

* Fixing tests

* Lint fixes

* lint fixes

* Adding hugo, tests and small fixes

* Fixes

* Fix mypy + portfolio model

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-25 13:02:01 -05:00
jose-donato
a5848af908 Crypto heatmaps (#1416)
* added hm feature

* updated requirements

* updated tests

* updated tests

* updated charts convention and removed duplicated autocompletion

* added percentage

* lint

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-02-25 12:15:50 +00:00
Jeroen Bouma
8625ad3679 Add StockAnalysis (multi-year) to the Sector & Industry Analysis menu (#1341)
* Add StockAnalysis menu with visualise and help functions

* Add StockAnalysis view and model

* Update documentation for the SIA section

* Add Nano, Micro and Mega Market Cap options

* Make the StockAnalysis modules more robust for errors

* Update Docstring

* Ensure the DataFrames aren't modified by limiting the period

* Add tests for StockAnalysis view and model

* Refresh tests

* Make the model and view more robust

* Update the script

* Details

* Move sa_keys to _model

* Clean up functions

* Rename sa_keys to sa_dict

* Improve satma function

* Fix tests

* Optimise satma functionality
2022-02-10 11:51:01 +00:00
Colin Delahunty
e22c48ac9f Refactored terminal.py (#1312)
* Seperated run_scripts function from main

* Added scripts ability

* Converted to endswith

* Count success and failure

* Fixed commands without -h

* Handled edge case

* Replaced prints with console.print

* Fixed main function issue

* Tried more things for output

* Showed reason for error

* Scripts runs successfully

* Formatting updates

* Made integrated printout look better

* Added capturing of stderr

* Fixed reset issue

* Updated flags

* off fix

* Added Didier fix

* Squashed bugs

* Added tests

* Allowed for script file to be sent to tests
2022-02-10 10:20:51 +00:00
Colin Delahunty
b189ffa45d Fix bugs (#1310)
* Added model fix

* Fixed nasdaq view issue

* Fixed fred_view bug

* Fixed screener view bug

* Improved oanda_model excption handling

* Fixed scripts

* Improved run_scripts
2022-02-04 14:15:38 +00:00
Colin Delahunty
571e5281e3 Improved crypto handling (#1279)
* Improved crypto handling

* Fixed some tests

* Fixed some tests

* Fixed flake8

* Updated to fix tests

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-02-01 11:56:51 -05:00
jose-donato
4501dfd442 Crypto features: Replace coingecko scrapping (#1156)
* replaced cgcategories with api

* added coingecko categories

* refactoring commands to use api, added coins to cryptocontroller and merged find and coins

* autocompletion for coins

* removed unused vars

* added dappradar features

* refactoring commands position

* refactoring commands position

* adding visual commands and fixed report

* skipped tests for now

* lint notebook

* correct report

* black formatter keeps crying because notebook

* removed unused imports

* Fixed black

* Keep kernel metadata 'cause it's required by papermill

* Change jupyter cleanup hook to one based on nbconvert

* Try fix the hook I just broke

* Fix trailing commas in the crypto notebook

* Change the jupyter hook to a one that's featured on pre-commit's page

* Format report notebook and test new notebook hook

* Black the notebook

* Remove deleted functions from the crypto discovery API

* Remove deleted functions from the crypto overview API

* replaced print for console print and removed print from table

* replaced print for console print and removed print from table

* auto completion + sort for all discovery commands

* replacing help messages

* fix linting

* added docs and removed unused commands

* added todos and fixed help messages

* lint

* pr issues fixed

* updated tests

* tests merge

* replaced with new rich table function

Co-authored-by: Colin Delahunty <colin99delahunty@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-01-25 14:05:00 +00:00
jose-donato
ff2ddb7a91 Adds features to check crypto-related hacks (#1230)
* added ich and ch features

* added slug required and removed list of slugs

* added slug required and removed list of slugs

* updated to only have one command

* lint

* lint

* added default parameter
2022-01-21 19:58:28 +00:00
jose-donato
c70e78da3a Adds Blockchain source and two BTC commands (#1227)
* adds blockchain source and two commands

* adds tests

* missing hugo yml

* added missing parameters
2022-01-20 21:17:00 +00:00
jmaslek
5499dad5c7 Add dividend calendar from nasdaq (#1189)
* Add dividend calendar from nasdaq

* tests + hugo

* missed controller test

* gst file

* Add timeout idea and better print message

* fix divcal

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-01-15 16:58:00 -05:00