Commit Graph

6595 Commits

Author SHA1 Message Date
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
Jeroen Bouma
6139ee20e4 Fix Passive Investor report (#1503)
* Fix Passive Investor report

* Fix test

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2022-03-17 21:44:38 +01:00
didierlopes.eth
68a18864d6 Export being allowed in first line of routines (#1499)
* allow export on routines

* make it work for exe too
2022-03-17 13:37:11 -04:00
didierlopes.eth
5f1be2df47 allow exe command to provide absolute path or absolute with HOME env var (#1504) 2022-03-17 17:10:42 +00:00
Chavithra
6af9fc778a Data Collection : Settings (#1502)
* 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
2022-03-17 12:59:46 +01:00
Chavithra
9942807843 Data Collection : Settings (#1500)
* 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
2022-03-17 11:42:18 +01:00
didierlopes.eth
25f03f70c4 allow for custom filename save (#1498) 2022-03-17 02:40:14 +00:00
didierlopes.eth
3d2147c0b2 make exe command more robust and fix #1494 (#1495)
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-03-17 00:39:38 +00:00
Chavithra
e1cd3332cd Data Collection (#1497)
* Update only_send_file_size

* Updating only_send_file_size feature

* Updating only_send_file_size feature

* Updating only_send_file_size feature

Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-03-16 22:36:46 +01:00
Colin Delahunty
93dc34b59c Code Without Documentation BANNED (Contributors Outraged) (#1487)
* Adds working checker

* Removed unused import

* Added dupont docs

* Added arg parser

* Removed Directory

* Updated commands

* Added hook to actions

* Added handling for no args

* Added proper ignores to actions

* Fixed tests

* Added Oanda documentation

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-03-16 15:21:28 -04:00
jmaslek
a5dd351433 Add functionalities to stocks/load (#1496)
* Add custom loading to stocks

* Add month and week to yf load + tests + hugo

* try fixing first test

* why did we still have tests for custom menu?

* fix ta load test

* rerun stock helper tests

* ungoof naming
2022-03-16 14:19:21 -04:00
teh_coderer
50cafd500e Discord bot massive improvement (#1481)
* allow logs feature flag

* Adding log collection md

* upload last log at startup

* additions/refractor

* refactor

* lint/black ++

* disc

* TimeRotating Logger and upload to s3

* corrected regex error

* makeup for config

* logging/disc/sia/etf/++

* append .log before uploading

* process to upload logs to s3

* candle ta/etfmcds

* fix

* ta candles

* implement presignedURL

* fixed regex

* ma's in 1 cmd, delete older files

* refactor ta candle

* updates

* black

* moon?

* Logger uploader

* rotate every hour

* only archive if successful

* chavis suggestions

* windows

* ta

* commands_dict update

* discord tacmds

* log_collection error fix

* fix

* fix

* pylint

* bb fix

* only log filesize

* fixes

* discord logs

* Delete log_collection.md

* fixes for other bots on images

* bots image upload fix

* updated helpers/load candle

* more ta cc/housekeeping/refactors/slashcmds

* update bots cmds_dict

* adjustments to font size/fixes

* test fixs/disc earnings

* missed a spot

* fixes had > revesred

* reversed the >< again oops

* remove logger branch code blocking tests

* black fix

* fix missing sources in docstr/daily candle dt tz

* load_candle refactor with docstring

* moved insiders to disc

* Lucas logging changes

* Fixing log_collection.md

* testing scenario

* more ta converted

* more ta

* Update config_terminal : remove print of verbosity

* table cfg/fix matplt/ screener +

* fix

* what's sleep? 1 more line.. or 2. scr df2img

* juan more. fix news 1m chart issue

* ticker.upper() fixes

* Update log collection

* Updating log collection - change tmp folder

Co-authored-by: LBolte29 <lbolte@gmx.net>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: LBolte29 <97528701+LBolte29@users.noreply.github.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-03-16 10:21:27 +00:00