Commit Graph

2806 Commits

Author SHA1 Message Date
james
ca44ee7ea1 black 2022-03-28 20:26:21 -04:00
james
29bbdc8681 quick econ fix 2022-03-28 20:21:21 -04:00
Theodore Aptekarev
ab4de1dd70 Create a packaged app bundle with Pyinstaller (#1525)
* Add dashboard widget assets

* Add ipywidgets and ipyflex to project

* Add currencies dashboard notebook

* Update docs and docstrings

* Add pyinstaller to project deps

* Add pyinstaller artifacts to gitignore

* Fix linter errors in terminal.py

* Update cspell hook and action with a pyinstaller specific word

* Add pyinstaller specfile and artifacts

* Add splashscreen image

* Add app icon

* adding splash screen support to terminal.spec and terminal.py

* Restore the conda env build files

* Sync deps

* Add border to the splashscreen image

* Clean up terminal launcher

* Add support for default feature flags in packages apps

* Fix types and linting

* Add splashscreen management to app bootup

* Check prediction feature flag when entering crypto/pred

* Update pyinstaller spec file

* fix .spec file to work for splash and icon - removed the ".."

* Allows to export when using installer (#1568)

* fix export for packaged apps

* fix filename

* Git : replace commit_hash when it is set in config_terminal

* Add update of the git commit hash in gtff default during build

* Add packaged app name and feature flag to logs

* Add platform specific icon assignment

* Add macOS build assets

* Add tensorflow to hidden imports

* Move LOGGING_COMMIT_HASH to gtff

* Adding files/folders needed to .spec  and pyinstaller folder. This will make certain commands work again.

* Linting

* Workflow : ignore ./build/pyinstaller from codespell

* Workflow : exclude ./build/pyinstaller from flake8

* Poetry + Workflow : add types-six

* Pyinstaller : remove property_cached, user_agent and vaderSentiment

* Revert "Pyinstaller : remove property_cached, user_agent and vaderSentiment"

This reverts commit dbb3e2b810.

* Clean up local paths in specfile

* Validate deps have correct Jinja version (they do)

* Fix logging commit hash to be set correctly for the logger to see it

Co-authored-by: Andrew <andrew.kenreich@gmail.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-03-29 02:35:56 +03:00
minhhoang1023
8bdc35e82f Apply dynamic magnitude (KMBTP) to y-axis plots (#1565)
* Apply magnitude functions to y-axis ticker

* Fix testing failing

* Adjust datetime format for x-axis

* Handle small magnitude case

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-28 16:27:35 -04:00
minhhoang1023
94d3242a3f fixing timezone bugs (#1566)
* fixing timezone bugs

* Revert tz settings

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-28 13:42:19 -04:00
jmaslek
3cde8bdca7 Fix reversed options hist (#1569) 2022-03-28 13:05:12 -04:00
Chavithra
07537790fe Log Collection : Enabling (#1567)
* Privacy : update md

* Log Collection : markdown

* Log Collectiong : linting

* Log Collection : Enabling

* refined text

* refined text2

* Log Collection : update privacy md

* Log Collection : markdown

* refined text3

* Log Collection : disabling rolling clock

Co-authored-by: LBolte29 <lbolte@gmx.net>
2022-03-28 17:47:19 +02:00
Chavithra
b2ac3465e5 Log Collection : Change endpoint (#1564)
* Log Collection : change url

* Log Collection : settings update + retry policy

* Log Collection : change sending order on close
2022-03-28 13:35:00 +02:00
didierlopes.eth
684b644ef5 fix regression (#1563) 2022-03-28 01:25:17 +01:00
Jeroen Bouma
644095bbc6 Update README files to reflect new installation method (#1551)
* Add Installation process + new GIF

* Add in user-friendly API Keys documentation

* Grammar

* Testing Markdown hook?

* Ain't working apparently

* Add Markdown linting fix

* Change malicious software message

* Add Markdown linting fix

* Add in Installation menu into the main README.md

* Small fix

* Is this the fix?

* Work.

* Found it

Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-03-28 00:34:06 +01:00
jmaslek
bb45e4a7a6 Add qa to updated crypto menu (#1557)
* 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

* add qa to crypto

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-03-26 15:37:42 +00:00
Colin Delahunty
2444b4e53f Fix main tests (#1560)
* Fixing tests

* Fixed embarassing mistake
2022-03-26 09:35:27 -04:00
Colin Delahunty
c2b035c4da Fixing tests (#1559) 2022-03-26 08:53:42 -04:00
Chavithra
20ce4aa734 Log Collection : fixes (#1558)
* Log Collection : expired files issue

* Log Collection : add timeout at exit

* Log Collection : fix access keys issue

* Log Collection : linting
2022-03-26 10:19:50 +01:00
Colin Delahunty
dd4734bd90 Added Tests for Bots (#1523)
* Added common/helper tests

* expanded bot testing

* few changes

* import fix

* missed removing test config

* column order fix

* import fix

* removed df2img add new deps

* req

* update readme

* add dep for image export, fix

* get rid of yahoo-fin, add image export lib

* import issues in some machines fix

* images dir fix

* init fix

* fix?

* test

* test

* Fixed text handling

* missed a tbl

* Fixed tests

* Fixed poetry

* Fixed kaliedo

* Fixed codecov

* Fixed dependencies

* Added fix

* FIxed tests

* Added image cleanup

* Added tests

* Fixed tests

* Added test fix

* Added conda

* Updated bot path

* refactor

* poetry

* update dict/ fix slack image upload

* Update config_discordbot.py

* Updated

* Fixed tests

* Skipped energy

* fixes

* black

* fix

* import

* fix nan on smile

* added env settings

* add cmds_text dict, some chgs

* merge bot test fixes

* fix duplicate

Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: Colin Delahunty <colindelahunty@MacBook-Pro.local>
Co-authored-by: Chavithra <chavithra@gmail.com>
2022-03-25 18:21:41 -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
teh_coderer
8fe51328d9 Refactor/multi img (#1535)
* few changes

* import fix

* missed removing test config

* column order fix

* import fix

* removed df2img add new deps

* req

* update readme

* add dep for image export, fix

* get rid of yahoo-fin, add image export lib

* import issues in some machines fix

* images dir fix

* init fix

* fix?

* test

* test

* Fixed text handling

* missed a tbl

* refactor

* poetry

* update dict/ fix slack image upload

* Update config_discordbot.py

* fixes

* black

* fix

* import

* fix nan on smile

* added env settings

* add cmds_text dict, some chgs

* make own file for help_text

* better feargreed handling

* plt close

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: DjangoServer <colin99delahunty@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
2022-03-25 16:39:31 -04:00
Colin Delahunty
600590f1aa Fixed tables (#1554)
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-25 13:16:13 -04:00
Theodore Aptekarev
cfb1eb392f Update reports and dashboards with nicer looking examples (#1524) 2022-03-25 18:10:54 +03:00
Chavithra
9260856505 Logging : Disable Log Collection on CI (#1553)
* Logging : workflows put env in alphabetic order

* Logging : disable log_collection on workflows

* Logging : some cleaning

* Logging : catch join exception
2022-03-25 14:46:41 +01: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
LBolte29
81e81f4a2b more formatting errors (#1552)
* more formatting error
2022-03-25 13:08:41 +01:00
LBolte29
911d1452f4 forgot comma (#1550) 2022-03-25 10:38:43 +01:00
Chavithra
1ae054b2e7 Logging : Cleaning feature (#1549)
* Logging : add log cleaning feature

* Logging : typing

* Logging : refactor

* Logging : comment

* Logging : comment

* Logging : ignoring troublesome lines

* Degiro : remove PII
2022-03-25 02:52:20 +01:00
jmaslek
93c6e63533 Couple style things + close some issues (#1548) 2022-03-24 19:27:19 -04:00
Danglewood
b1b3a4c04b Discord Bot Documentation Update For Intraday T/A (#1537)
* adds new features to Bot menu: dd/borrowed & econ/repo

created entries for new bot features: dd/borrowed & econ/repo

also added a fixed broken feature that had been left off - screener/historical

* created path and file for /bots/discord/dd/borrowed/_index.md

created path and file for /bots/discord/dd/borrowed/_index.md

* created path and file for /bots/discord/econ/repo/_index.md

created path and file for /bots/discord/econ/repo/_index.md

* removed screener/historical - feature does not work

removed because this feature does not work.

* updated to include intraday option

updated to include intraday option

* updated to include intraday option

updated to include intraday option

* updated to include intraday options

updated to include intraday options

* updated to include intraday options

updated to include intraday options

* updated to include intraday options

updated to include intraday options

* updated to include intraday options

updated to include intraday options

* corrected

* corrected

* corrected

* corrected

* corrected

* updated to include intraday options

updated to include intraday options

* changed ta cg --> ta-mom cg

changed ta cg --> ta-mom cg

* changed ta donchian --> ta-vlt donchian

changed ta donchian --> ta-vlt donchian

* EMA is now under ta-ma options

EMA is now under ta-ma options

* ta sma is now under ta-ma options

ta sma is now under ta-ma options

* ta hma is now under ta-ma options

ta hma is now under ta-ma options

* ta wma is now under ta-ma options

ta wma is now under ta-ma options

* ta zlma is now under ta-ma options

ta zlma is now under ta-ma options

* consolidated moving averages into ta-ma

consolidated moving averages into ta-ma

* updated to include intraday options

updated to include intraday options

* changed ta kc --> ta-vlt kc

changed ta kc --> ta-vlt kc

* updated to include intraday options

updated to include intraday options

* updated to include intraday options

updated to include intraday options

* updated to include intraday options

updated to include intraday options

* updated to include intraday options

updated to include intraday options

* Consolidated Discord Bot Moving Averages

Consolidated Discord Bot Moving Averages

* updated to include intraday option

updated to include intraday option

* updated to include intraday options

updated to include intraday options

* created path and file for /bots/discord/options/smile/_index.md

created path and file for /bots/discord/options/smile/_index.md for /opt smile

* added /bots/discord/options/smile

added /bots/discord/options/smile

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-24 18:57:28 -04:00
LBolte29
d477809179 fix terminal path and pii protection (#1547)
* fix terminal path and pii protection

* typo

* format

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-24 18:11:30 -04:00
Jeroen Bouma
fbc4531ff3 Update vis command from sia so that it adjusts for currency (#1518)
* Update sia so that it adjusts for currency

* Update _index.md

* skip test

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-24 16:44:09 -04:00
LBolte29
95e325900d Log tweaks (#1546)
* add path to logs

* add path to logs more info

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-24 15:11:39 -04:00
Chavithra
b27b0745d7 Logging : disabling logging clock (#1545)
* Logging : disabling logging clock

* Logging : fixing verbosity issue in .env

* Logging : verbosity conversion to int
2022-03-24 11:44:16 +01:00
Chavithra
997faa0a19 Logging : fix feature flag (#1543)
* Update only_send_file_size

* Updating only_send_file_size feature

* Updating only_send_file_size feature

* Updating only_send_file_size feature

* Updating settings_controller

* Update settings_controller : help message

* Data Collection : move boto3 as discord dependencies

* Update dependencies

* Refactoring log collection

* Refactoring logging

* Logging : add rolling clock

* Logging : enable daemon for logging clock

* Logging : fix linting and type

* Logging : update linting

* Logging : add comment

* Logging : remove empty log files

* Logging : adding PII filter

* Logging removing : unlink

* Logging : terminal.py

* Logging : linting

* Logging : linting

* minor changes

* Logging : update

* Logging : linting

* added userId

* userId NA

* Logging : remove unused functions

* Logging : disable feature flag

* Logging : black

* Tests : skipping failing tests, date not mocked

* Tests : linting

Co-authored-by: LBolte29 <lbolte@gmx.net>
2022-03-24 03:27:56 +01:00
Jeroen Bouma
1f261a658e Improve labelling and some minor fixes (#1530)
* Improve labelling and some minor fixes

* Fix for different unit notation

* Update _index.md

* Some error handling

* try editing the econdb cassettes?

* mock patch visualize output?

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-23 18:40:54 -04:00
jmaslek
5f269585b6 Small economy add-ons (#1541)
* Add in returns flag to economy indices + test it

* Add in a yield curve function

* Add test

* Add test

* Fix line color
2022-03-23 21:23:34 +00:00
Chavithra
56a9d76b80 Logging : refactor log generation/collection (#1538)
* Update only_send_file_size

* Updating only_send_file_size feature

* Updating only_send_file_size feature

* Updating only_send_file_size feature

* Updating settings_controller

* Update settings_controller : help message

* Data Collection : move boto3 as discord dependencies

* Update dependencies

* Refactoring log collection

* Refactoring logging

* Logging : add rolling clock

* Logging : enable daemon for logging clock

* Logging : fix linting and type

* Logging : update linting

* Logging : add comment

* Logging : remove empty log files

* Logging : adding PII filter

* Logging removing : unlink

* Logging : terminal.py

* Logging : linting

* Logging : linting

* minor changes

* Logging : update

* Logging : linting

* added userId

* userId NA

Co-authored-by: LBolte29 <lbolte@gmx.net>
2022-03-23 20:26:29 +01:00
Colin Delahunty
86ffbefaae Delete codecov.txt (#1540)
For @Chavithra.
2022-03-23 19:22:37 +01:00
jmaslek
d5eb7ed436 Error handling for custom files when folder not present. (#1534)
* Error handling for custom files when folder not present.`

* Test the new load

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-03-23 09:26:34 -04:00
jose-donato
5d184bd1be fix collapsible (#1539) 2022-03-23 12:09:22 +01:00
Colin Delahunty
6ac1da2404 Rip codecov 2022-2022 (#1536) 2022-03-22 21:12:41 -04: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
f761db8f98 Improve graph design for Sia's metric and remove legend (#1531)
* Improve graphing (wrapping, font) and remove legend and add to company names

* Add unit to xticks

* Update _index.md
2022-03-21 20:57:33 +00:00
Colin Delahunty
f794d518fd Added coverage to actions (#1526)
* Added coverage to actions

* fixed test call

* Fixed .coveragerc

* updated coverage

* Added workflow

* Switch to seperate coverage workflow

* Refactored

* Copied example perfectly

* Fixed test call

* Added dependencies

* Updated command call

* Fixed name

* Switched to codecov

* CHanged on

* Improved codecov

* Fixed run command

* Fixed codecov code
2022-03-21 14:08:28 -04:00
LBolte29
26d8ae998e Removing first bit of filepath, emails and IP (#1490)
Removing first bit of filepath and emails - logging os and python version in settings
2022-03-21 17:42:36 +01:00
teh_coderer
a36da387e2 fixes/tbl-columns-width/refactor (#1527)
* few changes

* import fix

* missed removing test config

* column order fix

* import fix

* removed df2img add new deps

* req

* update readme

* add dep for image export, fix

* get rid of yahoo-fin, add image export lib

* import issues in some machines fix

* images dir fix

* init fix

* fix?

* test

* test

* Fixed text handling

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: DjangoServer <colin99delahunty@gmail.com>
2022-03-21 11:54:19 -04:00
minhhoang1023
6327cdd3f7 Fix multiple bugs (#1491)
* Fix bugs stocks

* Fix -h not working

* Revert notebook change

* Fix tests

* Mock visualize output

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-03-21 12:55:26 +07:00
jmaslek
2a55dfccdd Insider bug (#1520)
* finviz bug was if no insider info found

* test  insider change

* formatting
2022-03-19 20:54:10 +00:00
Colin Delahunty
f193ad4fbf Update Folders in Pylint (#1519)
* Updated pylint folders

* Began fixing pylint

* fixed black

* Fixed pylint

* More pylint fixes

* Added

* Added changes
2022-03-19 13:48:46 -04: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
didierlopes.eth
bb2e4c8a45 Several bugfixes and routines allowed multiple calls to same arg (#1513)
* several bugfixes and routines allowed multiple calls to same arg

* several bugfixes and routines allowed multiple calls to same arg

* minor fix
2022-03-18 21:57:41 -04:00
didierlopes.eth
28df1e0073 Allow to add comments to routines and re-add removed code about inputs on routines (#1506)
* allow to add comments to routines and re-add removed code

* black
2022-03-17 23:38:54 +00:00