Commit Graph

134 Commits

Author SHA1 Message Date
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
Theodore Aptekarev
8c60ae999b Bump all deps following breaking changes in multiple libraries (#1413) 2022-02-22 15:20:08 +03:00
Theodore Aptekarev
af785d236a Bump tensorflow version to mitigate vulnerabilities (#1408) 2022-02-21 23:48:43 +00:00
Chavithra
5f8fcf4e33 Updating dev-dep : pytest-cov (#1337) 2022-02-09 08:54:40 +03:00
didierlopes.eth
7dc6e66411 Add logo to about us command (#1319)
* add logo to about us command

* fix terminal helper tests

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-02-07 00:05:52 +00:00
Colin Delahunty
e45c2aaa8f Remove tabulate (#1314) 2022-02-04 13:19:09 -05:00
teh_coderer
d8279adcbf Feature/discord slash commands (#1293)
* SlashCmdsPlotlyDf2img

- discord.py
+ disnake
+ all cmds converted to / cmds
- tabulate
+ switch to df2img
+ plots to plotly

+++++

* add settings

* Update run_discordbot.py

* Update config_discordbot.py

* Fixing black

* switch to yfinance

and fix indention on min/max strike

* + logger, - testing prints

added logger's I was missing and removed old print testing code

* final tradier removal + fixes

+ added past_days arg to /cc
- removed tradier
+ noticed had accidently removed if df.empty from economy cmds. fixed

* linting + renamed cogs folder to cmds

* Update run_discordbot.py

* Update run_discordbot.py

* remove cachetools

* linting

* pylint

* Made file retrieval global

* Updated dependencies

* updates

+added /btc,eth,sol
-removed /earnings
+updated README.md
+ added SLASH_TESTING_SERVERS in cfg for instant cmds when testing

* Made slash_testing an env variable

* Improved slash_testing handling

* Fix testserver

* FIxed test_servers

* Fixed testing_servers

* updates

+ vwap on /cc
+ fixed expiry_autocomp  exceeding 25 option limit on SPY dates
+ opt-hist changed to scatter and with greeks now
+ opt-cc-hist the old way of plotting with candlesticks chart

* remove import

* update Readme

* width fix

* replacement of tradier for yf

* title fix

Co-authored-by: Colin Delahunty <colin99delahunty@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
2022-02-03 21:20:56 -05:00
Theodore Aptekarev
0ca2583a6e Upgrade jupyterlab extension deps to mitigate vulns (#1258) 2022-02-01 08:34:28 +03:00
jmaslek
a7d25dced5 portfolio: Small feature + controller tests (#1246)
* Small feature + controller tests

* update test after merge

* Website + bump down pandas

Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-01-23 17:15:08 +00:00
Artem Veremey
3b8d1bdf4e Updating docker containers and dependencies (#1245)
* Updating docker containers and dependencies

* Skipping failed tests

* More test skips

* More test skips

* More skips

* More skips for Failures and Errors
2022-01-23 10:51:53 +00:00
Colin Delahunty
97c755b8e7 Remove Colorama (#1203)
* Began removing colorama

* Removed colorama

* Made progress on tests

* Small change

* Removed colorama

* Update finbrain_view.py

* Updating tests : mocking `rich_table_from_df`

* Updated table functionality

* Fixed tests

* Fixed black issue

* Pylint fixes

* Added pylint fixes

* Fixed tests

* Updated tests

* Updated csv

* Fixed pylint error

* Add run_scripts

Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
2022-01-19 11:56:28 -05:00
Colin Delahunty
7412d2b61a Brotli.py check (#1188)
* Added brotli check

* Updated poetry and linting

* Modified to uninstall brotli

* Updated requirements

* Fixed YAML

* Added TOTO

* Added -y to pip uninstall

* Added user flag

* Using python -m

* Switched to conda

* Changed where we remove
2022-01-15 09:07:18 -05:00
Colin Delahunty
5d96f2959e Better pre-commit (#1185)
* Added jupyter black?

* Improved debug_mode

* Updated requirements.txt

* Added black[jupyter] to linting

* Reformatted jupyter notebooks

* Fixed black

* Updated requirements
2022-01-14 22:35:10 -05:00
Colin Delahunty
82747072c5 Terminal Wide Rich (#1161)
* My idea for how we handle Rich moving forward

* remove independent consoles

* FIxed pylint issues

* add a few vars

* Switched print to console

* More transitions

* Changed more prints

* Replaced all prints

* Fixing tabulate

* Finished replace tabulate

* Finished removing rich from Tabulate

* add Panel around menu

* add GST watermark under feature flag

* Fixed 46 tests

* Delete test_screener[False].yaml

* Delete test_screener[True].yaml

* Fixed the rest of the tests

* add help and source color vars and use rgb

* rich on stocks/options

* update rich on disc, dps, sia

* rich in gov, ins and scr menus

* ba and ca menus with rich

* Fixed import issue

* Fixed some tests

* removed termcolor

* Removed prettytable

* add rich to remaining stocks menus

* FIxed linting issue

* Added James' changes

* Updated dependencies

* Add rich to cryptocurrency menu

* refactor economy and forex

* refactor etf with rich

* refactor mfunds

* refactor rich rest

* not specify style so default color works well on any background

* Fixing mypy issues

* Updated tests

* More test fixes

* James' test fixes

* Updating tests : stocks/screener - fix cassettes using BR

* Updating tests : crypto

* Updating tests : disable DEBUG_MODE

* Updating tests : stocks/fa/yfinance

* minor fixes that escape

* Improve the rich table function (that replaces tabulate :D )

* Fixed bad code

* delete rogue file + dcf fix + NoConsole

* sia mypy

* fuck you linter

* fuck you linter pt 2

* skip hehe

* i hate the black linter

* ubuntu mypy attempt

* Update : rich_config + gtff

* Updating tests : conftest

* Updating tests : stocks

* Update : rich_config

* Updating : rich_config

* make panel configurable for Theodore :b

* colors update

* Merged

* Updating : rich_config + feature_flags

* Updating : rich_config

* Updating tests : stocks

* Updating : feature_flags

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: james <jmaslek11@gmail.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
2022-01-15 02:06:00 +00:00
jmaslek
14b1fe166e testing for pygments fix (#1162) 2022-01-08 13:37:48 -05:00
jose-donato
ea964109d6 Crypto menu refactor (#1119)
* enabled some crypto commands in dd to be called independent of source loaded

* support for coin_map_df in all dd functions + load ta and plot chart refactor

* updated tests and removed coingecko scrapping where possible

* removed ref of command from hugo

* updated pycoingecko version

* refactoring load

* refactored load to fetch prices; pred can run independent of source now

* load by default usd on cp/cg and usdt on cb/bin

* updated to rich for formatting and updated dependencies

* fixed changes requested

* update docs

* revert discord requirements

* removed absolute from calculate change for price

* fixing pr issues

* fix loading issue when similar coins exist, move coins to home, fill n/a

* update docs for coins

* adds load to ta and pred menu
2022-01-07 10:06:13 +00:00
Colin Delahunty
eb0dde4603 Refactored Reports (#1123)
* First working program

* added Voila support

* Attempt to fix requirements

* Revert depen

* Another dependency test

* Fixed errors

* Small changes

* Fixed help

* Added port warning

* Fixed continued terminal use

* Last change, we good fam

* Added placeholder so we can have stored

* Didier changes

* Fixed exit

* Fixed issue
2022-01-04 20:51:11 -05:00
Didier Rodrigues Lopes
d5d581b59b improve usage of timezone in terminal (#1126)
* improve usage of timezone in terminal

* lint

* update dependencies

* address James review comments

* remove seconds from time on cmd line

* skip test
2022-01-04 10:35:34 +00:00
jmaslek
e437f29ae4 Mutual funds (#1106)
* Add mutual fund menu based primarily on investpy (investment.com)

* Add start/end date for loading + some bug fixes

* hugo

* poetry add investpy rich dnspython  then poetry update

* fix reset (need to load country) and dim yfinance commands when country not US

* Fix search and add better error handling

* Catch yfinance commands when country not US.  Improve loading to change country if symbol found but not in matching country.  Changed main menu printing.

* Fix poetry / reqs merge conflict

* review comments

* Once again update poetry

* Clean up poetry to match conda (numpy was culprit)

* cvxpy down

* Think i goofed on generating reqs full

* update poetry metadata

* cleanup after review 2

* move space

* another deps try

* bump pygmnets in yaml

* try something different

* rename console -> t_console (terminal_console) for mypy
2022-01-01 14:16:32 -05:00
Colin Delahunty
caa2c88c12 Stock Dashboard (#1018)
* Added notebook

* Massive refactoring

* Significant enhancements

* Error handling, variable renaming, refacotring

* Reformatted widgets

* Made rolling adjustable

* Fixed date bug

* Began transition to plotly

* Expanding dict

* Expanded analysis, formatted with black

* Added

* Replaced matplotlib with Plotly

* Slight updates

* Enhanced ability to format dashboard

* Fixed duplicate graph errors

* Fixed duplicate graph errors

* Found out which renderers work where

* removed unused code

* Final enhancements

* Updated requirements

* Added conda dependencies

* removing unneeded changes

* removing unneeded changes

* removing unneeded changes

* Updated git ignore

* Added notes

* removed unused code, added comma warning

* Allowed multi select

* Updated dependencies

* Simplified dependencies

* Fixed dependencies again...

* Added line endings

* Improved widgets and title

* Dider improvements

* Removed DS Store (sorry Nintendo)

* Updated requirements files

* Updated yml

* Updated yml

* Updated yaml

* Fixing change

* Allow for lab or Voila

* Updated toml

* Updated requirements.txt

* Update conda-3-8-env.yaml

* Update conda-3-8-env-full.yaml

* Updated

* A tragic forgetting

* Dependency reset (not ready to merge

* removed high entropy

* Another dependency update

* Added in my dependencies
2021-12-30 12:22:21 +00:00
Theodore Aptekarev
37d87c358d Bump dependencies and resolve dependabot warnings (#1092)
* Add pre-commit to dev dependencies

* Bump requirements

* Update charset-normalizer in conda env files

* Bump poetry and numpy in conda environments

* Explicitly add scipy to solve windows test error

* Revert "Explicitly add scipy to solve windows test error"

This reverts commit bb6b4d89bfb0c9d682930199e075af02a7885296.

* Explicitly add a windows supported version of numpy

* Explicitly specify numpy version in the lock file

* Specify supported numpy version in build files
2021-12-29 11:08:38 +00:00
Didier Rodrigues Lopes
60b39ca05f Sector and Industry Analysis Improvement (#1019)
* Improve menu with 2 more commands

* prepare for code improvement

* Improve sia filtering parameters

* fix minor bug

* implement cpis command

* consider excluding/including exchanges in stats

* Add cpcs command to sia

* add cpci command to sector and industry analysis

* optimize implementation of financials on sia

* Add a lot of additional commands to sia controller

* bump financedatabase to 1.0.2

* remove yield and dividend because always null and add forward PE

* Add sector and industry defaults to avoid a 8min loading for new users

* Improve controller for better user experience

* catch exception with exchanges on financedatabase

* from sam to sama

* allow to export all without limitation of companies

* add auto complete for industry sector and country

* Make chart title not leave the screen space by adding line breaks

* improve title further

* add auto complete for metrics

* fix small bug

* Fix pylint C0201 error that was blocking the pre-commit hook

* Fix ndarray division bug

* Add logic to handle missing values

* Split looooooooong company names to 2 lines in the chart

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2021-12-06 23:27:41 +00:00
Theodore Aptekarev
2db1a40c60 Update requirements-txt files to reflect latest dependency versions (#1011)
* Update requirements-txt files to reflect latest dependency versions

* Add latest version patches

* Upgrade charset-normalizer
2021-12-04 14:10:29 +03:00
Theodore Aptekarev
a616764601 Update jupyter dependencies to mitigate the vulnerabilities (#997)
* Update jupyter dependencies to mitigate the vulnerabilities

* Upgrade JupyterLab version

* Upgrade jupyterlab dependencies

* Update the package.json with the up-to-date jupyterlab version

* Explicitly resolve the latest version of the json-schema module

* Upgrade extension lock files

* Upgrade playwright and it's dependencies
2021-12-01 22:25:55 +03:00
Artem Veremey
8234ecbe27 Add optional discord dependencies and generate requirements.txt for DiscordBot (#984)
* Add mypy types to dev requirements

* Add optional discord dependencies and generate requirements.txt for DiscordBot
2021-11-24 21:52:58 -08:00
Artem Veremey
38c124373d Add mypy types to dev requirements (#983) 2021-11-24 21:16:44 -08:00
Chavithra
e8329bba72 Updating requirements : to prepare for tests improvements (#976)
* Updating : poetry dependencies

* Updating : requirements files

* Update : poetry fix coverage version

* Updating : poetry.lock

* Updating : workflows  "pip requirements"

* Update : fix pylint false positive (conda 3.8only)
2021-11-24 22:20:24 +01:00
Artem Veremey
5c65f7306d Major dependency updates including deprecation of python 3.7 (#970)
* Major dependency updates including deprecation of python 3.7

* Disabling unsubscriptable-object

* Updating pylint settings

* Updating conda env YAML
2021-11-23 08:25:46 -08:00
jmaslek
4c96535eeb Add short data by exchange (#940)
* Add short volume by exchange

* Add hugo

* Add pymongo to reqs

* Add error catching

Co-authored-by: James Maslek <james@Jamess-MacBook-Pro.local>
Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-17 14:57:00 +00:00
Theodore Aptekarev
f260f93cba Force usage of tensorflow 2.6.1 because 2.6.2 not available on windows (#935)
* Force usage of tensorflow 2.6.1 because 2.6.2 not available on windows

* Update pip requirements files
2021-11-10 12:01:29 +03:00
Artem Veremey
068f22d53b Fix spelling and add missing thepassiveinvestor (#925)
* Fix spelling and add missing thepassiveinvestor

* Updating strike and tickers
2021-11-06 09:17:32 -07:00
Artem Veremey
2b53b30380 Jupyter updates (#907)
* Jupyter updates

* Updating cvxpy and degiro-connector
2021-11-03 23:06:33 -07:00
Artem Veremey
ff8f75f5f5 Add bandit to dev requirements (#904) 2021-11-03 09:18:48 +03:00
Artem Veremey
06c37698c6 Removing Alpaca support for now. Will add back when Alpaca updates dependencies. (#897)
* Removing Alpaca support for now. Will add back when Alpaca updates dependencies.

* Updating dependencies and locks

* Downgrading jupyter-server. No 1.11.2 on conda
2021-11-01 18:38:41 -07:00
Theodore Aptekarev
2ea3006c07 Update readthedocs creation pipeline #859 (#895)
* Add built documentation to gitignore

* Add documentation creation readme and requirements

* Change manually generated code docs to automatic

* Move myst_parser documentation requirement to pyproject.toml

* Update poetry and requirements files for the readthedocs build to work

* Add prediction extras to requirements-full
2021-11-01 21:11:29 +00:00
Artem Veremey
3bcb6d0292 Update holidays and a few other packages (#889)
* Update holidays and a few other packages

* Add dependencies label
2021-10-31 13:22:32 -07:00
Colin Delahunty
0b6c52187b Portfolio Dataframe (#838) 2021-10-30 12:52:03 -04:00
jmaslek
780001d95c fix financedatabase in poetry (#876)
* fix financedatabase in poetry

* reqs

Co-authored-by: James Maslek <james@Jamess-MacBook-Pro.local>
2021-10-28 16:13:50 +01:00
DidierRLopes
d4cf431e02 Fix financedatabase import (#871)
* Fix financedatabase import

* poetry with financedatabase

* update financedatabase in lockfile

* update poetry

* fix test
2021-10-28 01:55:18 +01:00
Colin Delahunty
97eaf65400 Enhanced ratios (#867)
* Initial function

* Added sister_data

* Added ratios for other companies

* Didier and Artem updates

* Didier and Artem updates

* Fixed lock file

Co-authored-by: Colin Delahunty <colindelahunty@Colins-MacBook-Air.local>
Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.indiana.edu>
2021-10-27 23:22:24 +01:00
Jeroen Bouma
3401f157e5 Add ETF Report functionality from The Passive Investor (#857)
* Add ETF report functionalty from The Passive Investor

* Add documentation about ETF Report

* Add thepassiveinvestor to the requirements

* Correct accidental typo

* Rename report to pir

* Change report to pir and some minor changes

* Update thepassiveinvestor to 1.0.9
2021-10-25 22:35:54 +01:00
jmaslek
bd776157be Update dependencies to fix fa bug and pmdarima bug (#809) 2021-10-13 14:18:30 -04:00
Artem Veremey
0fd1fe75b4 Updating black and related packages (#790) 2021-10-06 09:03:34 -04:00
Artem Veremey
ecbff24cd2 Updating poetry to 1.1.11 (#789)
* Update python dependencies

* Downgrade jsonschema version

* Updating poetry to 1.1.11
2021-10-05 18:13:08 -07:00
Artem Veremey
ba98078366 Update python dependencies (#786)
* Update python dependencies

* Downgrade jsonschema version
2021-10-05 09:49:09 -07:00
jmaslek
eafd65199b Major brokers refactor into separate menus (#754)
* Major brokers refactor into separate menus

* Add portfolio export folder

* Added some extra commands from pyally

* Update coinbase account command

* poetry update + pin openpyxl to 3.0.7

* requirement files

* Update hugo server

* Clean hugo files

* Update _index.md

Add output to _index

* Update _index.md

* Update _index.md

add output

* Update _index.md

add output

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Update _index.md

* Fix alpaca bug

* Fix hugo server + add to main menu
2021-09-23 13:50:38 -04:00
Artem Veremey
4dcda6f8e3 Updating dependencies to address pillow security (#740) 2021-09-10 19:20:05 -07:00
Artem Veremey
d44cd16614 Updating dependencies and cleaning up (#730)
* Updating dependencies and cleaning up

* Tensorflow 2.6.0 update
2021-09-01 14:55:17 -07:00
Artem Veremey
d7dc83ffe8 Downgrading pywin32 to version 300 because version 301 is broken (#689) 2021-08-21 16:57:18 +01:00
jmaslek
4b5c465c7d Refactor Common/TechnicalAnalysis (#679)
* Ignore nft of the day test

* Refactor common-ta-overlap

* Refactor trend indicators

* Refactor volatility

* Volume refactored

* Custom functions

* Final momentum refactor

* Update crypto menu with same format

* Address review, update poetry

* Fix export path
2021-08-18 18:56:43 -04:00