Commit Graph

68 Commits

Author SHA1 Message Date
LBolte29
0f61f0b08e Log exceptions (#1393)
* log user settings, errors and exceptions
2022-02-26 10:56:10 +01:00
jmaslek
4697efcf26 Squishy the bugs (#1391)
* options screener tickers to list(set(

* Fix fred rmv bug

* Fix prt

* Fix tests + change where list is called
2022-02-19 12:31:37 +00:00
LBolte29
fd58219282 adjusted format of logs (#1292)
adjusted format of logs
2022-02-17 12:33:59 +01: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
1e26ec7d46 Crypto Base (#1278)
* Refactored load, refactored coin name

* Fixed issue

* Fixed some tests

* Removed load tests

* Fixed black

* Fixed black

Co-authored-by: Chavithra <chavithra@gmail.com>
2022-02-04 13:51:52 -05: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
Colin Delahunty
3b73898f1a Refactored Call Resources (#1217) 2022-01-19 23:04:23 +00:00
didierlopes.eth
0f2e0d60ff Add resources to main contexts (#1194)
* remove all unnecessary READMEs

* add resources to mains contexts

* add resources to main cmds

* fix bare-url

* mini fix

* test for surface
2022-01-17 01:14:26 +00:00
Colin Delahunty
9e671aeba9 Remember Contexts (#1187)
* Refacotred classes

* Handling for new instance desired

* Added feature flag

* Converted all menu calls
2022-01-16 16:57:23 -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
jose-donato
d334d5e087 Features(crypto): added new commands to defi menu (#1169)
* adding new defi features and refactoring existing ones

* added tests and docs

* added zlot to ignored words

* markdown lint

* fixed pr issues

* fix hugo main.yml

* fix hugo main.yml

* added tests

* fixed prt issue

* added iv_surface failing tests

* added mocking to llama tests

* new tests

* skipped rich test for now
2022-01-14 11:14:15 +00:00
Colin Delahunty
006b3570b7 Baseclass (#1141)
* A working decorator

* Basic intro

* Added more

* Refactor

* Refactor

* Cleaned code

* Simplified function (thanks Chavi)

* Small change

* Updating tests : fix issue with mock

* Updating tests : fix remaining mocks after merging

* Updating tests : black

* Cleaned up

* Finished base cases

* Notes

* Slight changes

* Added dynamic options handling, error persists

* Fixed pylint issues

* Fixed mock

* fix decorator with dynamic dictionary of args

* move choices from dynamic to const in crypto/ov

* Updated var names

* Check

* Moved decorators

* Fixed import issues

* Fixed tests, update payoff controller

* Fixed tests

* Fixed pylint

* Updated files

* Added base class

* Added reset

* Improved base class

* For James

* More menues converted

* Added contexts

* 24 controllers left

* 18 Controllers left

* Changes choices

* 9 controllers left

* Added all controllers

* Fixed glitch

* Replaced all improper callings of class

* Removed menu decorator

* refactored try_except

* Last commit

* Black fix

* Bug fix

* Added James' new menus

* Fixed tests

* Fixed 8 tests

* Fixing mypy issue

* Updating tests : stocks/options

* Fixed options

* Fixed tests

* Updating tests : stocks/options

* Fixed tests

* More test fixes

* Updating tests : stocks/ba

* Fixed options test

* More bug fixes

* Fixed tests

* fixed pylint

* Skipped test_call_load

* Add typings to base class

* Fix issue with appending auto completer options + bugfixes

* Add typings to base class

* Terminal throws error for bad path

* sexy solution to auto completer in runtime

* more sexy reset with reset_level stored

* no so sexy jump between indirect menus

* Removing choices argument

* refactor custom_reset

* Fixed tests

* Theo fixes

* Added back function

* Fixed tests

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2022-01-08 19:30:03 +00:00
jose-donato
efab61a281 Crypto Tool: Calculate potential returns (#1146)
* 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

* created prt controller

* creating model

* removed unused print

* restaged

* adds current market cap

* added reports to gitignore
2022-01-07 09:53:54 -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
David Khouya
abf79a5249 Handle KeyboardInterrupt on user input read (#1124)
Co-authored-by: David Khouya <david.khouya@leddartech.com>
2022-01-02 22:03:36 +00:00
Didier Rodrigues Lopes
2e4d22458d fix infinite loop (#1111) 2021-12-30 02:26:14 +00:00
Didier Rodrigues Lopes
63b2c72f6a Remove unnecessary return self.queue (#1083)
* remove unnecessary return self.queue

* fix some bugs found by running script files

* add ticker to crypto/dd reset
2021-12-22 22:39:32 +00:00
Didier Rodrigues Lopes
a85758c9ec Big UX improvement (#1041)
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* improve user experience phase 1

* add difflib replacement

* implement auto-complete on discovery menu

* auoto-complete, difflib,jump through menus with cd

* Updating tests : terminal

* improve navigation on gst

* add q command to terminal.py

* usage instructions

* Updating tests : terminal

* fix cd command

* vars updated

* show menu when user is going through menus

* allow user to forget the intiail / on scripting

* terminal to accept text file with configuration

* refactor -n to -l and clean code

* add all commands to the tests_stocks_disc

* remove fds from disc since we have search on stocks/ and stocks/sia

* hopefully fix tests

* skip test

* fix completer type and calling menu after command for stocks/disc

* show help menu when moving forward/backwards in menus

* skip test

* skip test - bug fix

* add reset, help and quit to choices

* improve stocks/disc controller

* refactor sia menu

* UX improvements for sia menu

* improve ux design

* refactor ca controller

* fix infinite loop

* improve ux on dps controller

* Add capability of going back from a menu going into a menu

* Ux economy (#1056)

* First round of UX improvements on economy menu

* Do fred menu + sample tests file

* revert to > on menu

* rename jobs file to .gst

* remove cd option

* improve return

* final refactoring of disc_controller

* fix ca,dps,sia,disc,stocks and terminal controllers

* work on ba_controller menu

* fix reset and try_except

* UX on screener controller

* fix for full reset name

* Ux etfs (#1059)

* Refactor ETF menu for new UX

* Add couple more examples to test

* r->reset

* Clean up switch

* gov menu refactored

* fix reset issue

* 80% of refactoring options and pricing/payoff menu is done

* improve payoff controller

* minor fix

* fix: refactor pred and ta stocks controller

* fix: refactor fa(and fmp) controllers

* fix: refactored dd controller (still missing .gst tests)

* fix infinite loop bug

* refactor options controller

* add tests for payoff and pricing

* fix reset for options

* UX Upgrade for Crypto controller(s) (#1049)

* refactor crypto controller

* refactor crypto/defi controller

* added simple test and fixes not returning queue in commands

* Clean up unused functions / iex load (#1047)

* Clean up unused functions and adjust iex load function to not depend on dates

* Had an incorrect tab on s_start definition

* wrong default arg

* regenerate pytest yml

* Comment out parametrization

* Tests : Stocks > Discovery (#1050)

* Updating tests : stocks/discovery/ark

* Updating tests : stocks/discovery/fidelity

* Updating tests : stocks/discovery/fidelity

* Updating tests : stocks/discovery/fidelity

* Updating tests : stocks/discovery/seeking_alpha

* Updating tests : stocks/discovery/seeking_alpha

* Updating tests : stocks/discovery/shortinterest

* Updating tests : stocks/discovery/shortinterest

* Updating tests : stocks/discovery/seeking_alpha

* Updating tests : stocks/discovery/shortinterest

* Updating tests : stocks/discovery/disc_controller

* Updating tests : stocks/dd

* Updating tests : stocks/fa

* Updating tests : stocks/discovery/financedatabase

* Updating tests : stocks/discovery/finnhub

* Updating tests : stocks/discovery/geekofwallstreet

* Updating tests : stocks/discovery/marketbeat

* Updating tests : stocks/discovery/nasdaq

* Updating tests : stocks / discovery / yahoofinance

* Updating tests : black

* Updating tests : unused import

* Updating tests : stocks/discovery/ark

* Tests : Stocks > Doc + Helpers + Government (#1051)

* Updating tests : stocks/government/controller

* Updating tests : stocks/government

* Updating tests : conftest

* Updating tests : stocks > government

* Updating tests : stocks/government

* Updating tests : docs

* Tests : Stocks > Insider (#1054)

* Updating tests : stocks > helper

* Updating tests : doc

* Updating tests : clean stocks > fa > av

* Updating tests : stocks/insider/controller

* Updating tests : stocks/insider/business insider

* Updating tests : stocks/insider/finviz

* Updating tests :  stocks/insider/openinsider

* Updating tests :  stocks/insider/controller

* Updating tests : black

* Updating tests : stocks/insider/controller

* Tests : Stocks > Backtesting + Behavioural Analysis  (#1057)

* Updating tests : add __init__ files

* Updating tests : stocsk/behavioural_analysis

* Updating tests : black

* Updating tests : stocks/backtesting

* Updating tests : stocks/backtesting

* fix: converted top to limit arguments

* fix: refactor disc controller, updated docs

* fix: refactor dd_controller and docs

* fix: refactor nft controller and docs

* fix: pass test temporarily, onchain controller refactor, docs

* fix: overview controller refactor, fix quit command

* fix: linting issues

* fix: refacot ta controller

* fix: refactor pred controller

* fix: linting

* fix: crypto controller

* fix: added tests, updated all controlers

* fix: menu print renamed from stocks to crypto controller, added tests

* fix: fix faster function execution

* Fix annoying pylint C0201 error

* fix: renamed commands to long format

* DISC Cleanup (#1058)

* Get rid/cleanup of marketbeat functions

* Get rid of last unused disc function + fix related tests

* fix test

* Dividend History Chart (#1053)

* Dividend History Chart

* changed to default number 10

* changed divs flag default to false

* updating the expected result for test_fa_controller.

* else statement

* fix: added load on dd

* fix: added autocompletion in all commands with argument choices

* fix: linting

* Workflows + Stocks > Insider (#1061)

* Updating code : stocks/insider remove unused file

* Updating workflows : tests - set mypy==0.910

* fix: linting

* Fixing Linting (#1062)

* Updating code : fixing linting

mypy message = Too many arguments for <lambda>

* Updating workflows : allow newest mypy version

* Updating code : apply black

* Updating code : black

* fix: updated predict controller help to match stocks

* Ux: portfolio (#1063)

* First step of portfolio UX

* Add all broker controllers to UX stuff

* UX Improvement for PO

Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* UX Improvement for resources (#1064)

Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* UX: stock/bt (#1065)

* UX: stocks>qa (#1068)

* fix mypy lambda

* skip tests for now

* remove unused paths.py

* rename tests/simulator to tests/e2e

* refactor options/screener menu

* UX : move `gst` files location

* fix stocks_controller

* UX upgrade of the Forex menu (#1048)

* Add basic forex menu test

* Add forex routes to terminal paths

* Remove commands from paths because they're not menus

* WIP Refactor forex controller

* refactor crypto controller

* Remove commented code

* Improve user output with printed text

* Add "help" back to the list of choices

* Enable the command queue for the forex controller

* refactor crypto/defi controller

* Fix candle chart blocking the terminal

* Black

* Return help and reset to the list of known args

* added simple test and fixes not returning queue in commands

* Add currency codes loading to the av_model

* Return the queue in edge cases (when commands don't process)

* Split select into to and from to enable autocompletion

* Style text output

* Stop printing help after the execution of every command

* Update test scenarios

* Black

* fix: converted top to limit arguments

* fix: refactor disc controller, updated docs

* Delete oanda the old view file that was moved into the oanda menu

* fix: refactor dd_controller and docs

* fix: refactor nft controller and docs

* fix: pass test temporarily, onchain controller refactor, docs

* fix: overview controller refactor, fix quit command

* fix: linting issues

* fix: refacot ta controller

* fix: refactor pred controller

* fix: linting

* fix: crypto controller

* fix: added tests, updated all controlers

* fix: menu print renamed from stocks to crypto controller, added tests

* fix: fix faster function execution

* Implement basic UX improvement of the oanda controller

* Update the forex controller

* Fix annoying pylint C0201 error

* Add latest convention changes to the forex controller

* fix: renamed commands to long format

* fix: added load on dd

* Merge the latest updates of the controller design

* fix: added autocompletion in all commands with argument choices

* fix: linting

* fix: linting

* fix: updated predict controller help to match stocks

* Update the forex menu e2e test scripts

* Add check_non_negative_float helper

* Update the controller with the latest changes to the convention

* Update the currency pair loading mechanism

* Move data models logic to the models file

* Update update oanda views to be interact with the models

* Upgrade oanda controller

* Remove raw stocks ba and eda code from the forex menu

* Update "help wanted" banner for ba and eda in forex menu

* Remove remainders of stocks ba and eda from forex context

* Improve typing, docstrings and error messages

* Remove stocks ba and eda code that was merged from other ux branches

* Add fixes that prevented incorrect argument handling

* Remove -argument from the candles call
If there is an expected agr `-g` and you put an incorrect argument
`-argument` the difflib will interpret `argument` as `g`

Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: Didier Rodrigues Lopes <dro.lopes@campus.fct.unl.pt>

* fix reset for menus that require ticker

* UX improvement on research menu

* skip insider controller test

* initial refactoring of insider_controller

* improve insider controller ux part 2

* finish refactoring ins controller ux menu

* fix bug of when commands in queue have args

* skip test

* comment test stuff

* UX: stocks>qa (#1071)

* refactor return self.queue

* fix return None

* minor fix

* minor tabulate fix

* Get rid of leading '/' in terminal and add some newlines on quits. (#1074)

* Get rid of leading '/' in terminal and add some newlines on quits.

* print crypto help on menu entry

* looks like a format issue here...

* newlines on quit

* remove unnecessary line break

* fix pylint issue

* refactor

* refactor

* allow portfolio optimization to quit context

* add exit at end of scripts

* improve dd_controller

* test ux in stocks/dd menu

* Ux upgrade for reports context (#1075)

* Refactor reports and upgrade them with the latest controller convention

* Add test scenarios for the reports context

* test ux stocks/ta

* ux branch scripts/ta

* improvement on main param

* Upgrades for the UX upgrade for the fa and fa/fmp menus (#1076)

* Change --num to --limit

* Remove inconsistent/unreliable functions from the choices list

* Improve docstring compliance with numpy doc format

* Fix hardcoded class id in dcf scrapper

* Fix annoying pylint error in discordbot that was blocking the hook

* Add test scenarios for the fa and fa/fmp menus

* Fix forgotten replacement of --num to --limit

* Fix tests

* Return some excluded commands to the choices list

* Fix dd report to reflect the updates

* Fix set function not returning the queue

* Update gst test files

* fix exit on ca from another submenu

* fix changes of options/screener

* fix dps controller

* fix fa when running out of AV calls

* Fix TVL plot locking interpreter during defi test

* Add exception handling for broken coingecko scrapper

* skip fa/av test that fails

* fix dps tests

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: jose-donato <zmcdonato@gmail.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2021-12-21 15:19:23 +03:00
Chavithra
73624dcc18 Fixing Linting (#1062)
* Updating code : fixing linting

mypy message = Too many arguments for <lambda>

* Updating workflows : allow newest mypy version

* Updating code : apply black

* Updating code : black
2021-12-16 14:03:40 +01:00
jmaslek
7ba964d61e (Finally) add prediction abilities to crypto (#1004)
* Basic integration of crypto pred

* Add loading into crypto pred

* Change all pred _views to allow for other datetime than daily

* small mypy change

* Add pred menu description and catch if no coin is loaded.

Co-authored-by: James Maslek <james@jamess-mbp.myfiosgateway.com>
2021-12-01 23:20:24 +00:00
jmaslek
0d49294f1a Add difflib to controllers (#982)
* First few

* Rest of stock controllers

* Other context controllers

Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
2021-11-25 20:47:10 +03:00
DidierRLopes
8fba9bf19f move NFT to inside crypto (#932) 2021-11-08 18:02:46 +00:00
DidierRLopes
485367956e Refactor code and terminal menus (#911)
* Improve ta README

* Refactor terminal menus
2021-11-04 13:56:58 +00:00
Artem Veremey
f608cdb88d Update bandit settings and add a wrapper for os clear (#905)
* Add bandit to dev requirements

* Adding bandit exceptions

* Wrap system clear os call

* Apply black
2021-11-03 11:05:14 -07:00
jmaslek
8122082a1f Rename finbrain command to not use source and comment out forex/ba menu (#899)
* Finbrain crypto command and commment out forex ba

* sentiment->headlines

Co-authored-by: James Maslek <james@macbook-pro.myfiosgateway.com>
Co-authored-by: James Maslek <james@Jamess-MacBook-Pro.local>
2021-11-02 22:15:05 +03:00
Colin Delahunty
a168034832 Replaced applicable try/except blocks (#870)
* First rework

* Continued rework

* Continued rework

* Continued rework

* Continued rework

* Continued rework

* Fixed black

Co-authored-by: Colin Delahunty <colindelahunty@Colins-MacBook-Air.local>
Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.indiana.edu>
2021-10-28 00:03:23 +01:00
jose-donato
a04e833e7e Open crypto insterest by exchange [Source: bybt.com] (#868)
* fix: small issues

* fix: repeated code

* feat: added new oi feature; needed to refactor a bit

* fix: test coingecko fixed

* fix: pylint issue

* fix: added entry to main.yml

* fix: added image to hugo markdown
2021-10-27 11:11:49 +01:00
jose-donato
f390e205ba Fixes in crypto and reports menu (#863)
* fix: ta menu displayed stocks label instead of crypto

* fix: coinbase loaded data in reverse, increase days to 60 for ema

* fix: added vscode integrated terminal python version to troubleshoot

* fix: print notifying jupyter notebook launch

* fix: greyed volume menus if volume is not present

* fix: greyed vwap if volume is not present
2021-10-26 17:32:19 +01:00
DidierRLopes
61ccd504af Improve customisable report generation (#854)
* A more customizable jupyter notebook report implementation

* refine dark pool and due diligence reports

* remove stocks reports

* Add crypto_market notebook report

* remove crypto reports folder

* remove crypto reports folder

* economy data report template

* remove economy reports menu

* Update test.yml

* remove notebooks folder, no longer needed

* Update README.md

* update due_diligence notebook to reflect refactoring of fa

* update gitignore based on Theo suggestion
2021-10-25 22:35:28 +01:00
jose-donato
f4dac4dc42 Active addresses command (#840)
* feat: added active command

* fix: added more examples to onchain

* fix: lint issues

* fix: linting issues

* fix: linting issues
2021-10-23 00:08:39 +01:00
DidierRLopes
874736832c Allow reset everywhere and to execute terminal in context directly (#841)
* Allow reset everywhere and to execute terminal in context directly

* minor comment fix
2021-10-22 03:25:19 +01:00
jp
44fb157ddc Decentralized finance (#773)
* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add screenshot of finbrain for PolkaDot

* Add views for llama, defipulse

* Add llama view with tvl chart

* Add defipulse view

* Add defi controller and move all defi views into defi module

* Add defi controller to main controller

* Add newsletters related to defi

* Add defi docs
2021-10-03 22:26:59 +01:00
DidierRLopes
595a94faf6 Updated Hugo Server (#752)
* Push some changes towards updated Hugo Server

* More hugo server refactoring

* Update Hugo Server website with stock context and economy context

* Small bugs fixes

* Add ETF, options and PO to Hugo Server

* More bugfixes

* Add crypto hugo server

* Improve docs

* merge bugs fixed
2021-09-16 18:43:42 +01:00
jp
0b554c6893 Coinbase pro api (#743)
* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add screenshot of finbrain for PolkaDot

* Coinbase menu added

* Add more methods for coinbase

* Add coinbase views, coinbase models. Add coinbase to load, chart, find commands. Add coinbase to controller

* Add auth client for coinbase pro endpoints that needs auth

* Add more views for coinbase to crypto menu

* Add some print tests for Coinbase view

* Add 2 more tests for coinbase view

* Update README with Coinbase API keys

* Cleaning empty lines, spaces etc.

* Use os.path.join in imports, change column names in one normalized df

* Move Coinbase to portfolio brokers. Adjust tests, and imports

* precommit config return to prev ver

* Fix coinbase accounts command, del column filter for deposits
2021-09-13 14:07:00 -04:00
jose-donato
49c6430a0c implement gwei feature (ethereum gas fees) (#736)
* implement gwei feature (ethereum gas fees)

* fix linter issues

* fixing another linting issues

* typo and linter issue

* added model and view for gwei feature

* added extra folder for reports

* added new line after gwei info

* lint

* changed tx label and table, lint

* lint fixes
2021-09-08 22:08:56 +01:00
jp
28e3970912 Refactoring crypto menu 2nd part (#724)
* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add screenshot of finbrain for PolkaDot

* Remove not used methods, remove binance_view, binance_model from discovery menu (It's not needed, as we use all_coins view for finding coins from all sources

* Refactoring Due Diligence menu. Changing views, moving argparsers to controller

* Refactor cryptomenu. Overview, Discovery, DD menu - move argparsers to controllers, add typing hints, change names of views/models, adjust tests

* Adjust tests

* Move finbrain and find/coins method to controller

* Move report argparser into controller. Adjust tests

* Adjust docstrings

* Add helper method to take care about retry/wait for coingecko scraping

* Fix failing test

* Adjust newlines, docstrings, cmd descriptions

* Add use tabulate df flag for all crypto views

* Add status code for coingecko

* Add note, that some coingecko commands can fail

Co-authored-by: Jakub Pluta <jakub.pluta@cdq.com>
2021-09-05 17:15:35 +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
jp
f5c472fbe0 Feature/refactoring crypto (#656)
* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add screenshot of finbrain for PolkaDot

* refactorization of crypto menu

* Fix test, now ta returns already df with index set to date, so shape is rows X 1 column

* On demand load crypto

* Add new view with coins for Binance

* Discovery menu README

* Add readme for crypto

* Add readme for crypto main menu

* Fix mockups for coingecko tests

* Fix readme

* Update test_coingecko_crypto.py

* Fix print in controller

* Refactor crypto. Refactor tests, move session in paprika into commands. Refactor help text

* Remove not needed COLUMNS constant variable, fix description and print statement

* Apply changes in price fmt, mplfinance chart for gecko

* Adjust TA menu data

* Fix test. Now loaded data for TA has OHLC data

* New names for columns in gecko

* Improve find method, add better names for columns in coingecko discovery

* New names in coingecko

* Fix tests for new gecko names

* Add new view for coins search

* Refactor all_coins func

* Fix failing test

* Fix missing quit in overview_controller.py

* Mock test data in load_df_for_ta
2021-08-17 10:20:18 -04:00
jmaslek
0263f41cbe Sort imports using isort (#674) 2021-08-16 07:59:52 -04:00
DidierRLopes
c2197a7375 Big Code Refactoring with contexts vs category division (#644)
* big-refactoring

* add terminal_helper

* fix tests

* remove init modules

Co-authored-by: jmaslek <jmaslek11@gmail.com>
2021-08-06 12:50:29 -04:00
jp
743620473c Coinpaprika (#544)
* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add screenshot of finbrain for PolkaDot

* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add coinpaprika module to GST

* Update README.md

* Refactoring coinpaprika views

* Update README.md

* Update coinpaprika_view.py

seems that `too-many-lines` doesn't work. Need to be specify with C0302 code

* refactor code, change dates to more human readable format

* df empty add print with no data, remove regex pattern

* add not before other_args[0][0]
2021-07-16 19:27:08 +01:00
jp
1eb7589225 Feature/cryptosentiment (#537)
* Add separate view for finbrain for crypto curreny sentiment analysis

* Move json with symbols to separate directory, little refactoring, update readme

* Add screenshot of finbrain for PolkaDot
2021-07-11 00:37:55 +01:00
DidierRLopes
b3d9ef479c Improve menu UX (#532)
* Improve bt menu

* minor typo

* improve ba menu

* improve brokers menu

* improve CA menu

* improve crypto menu

* improve disc menu

* improve dd menu

* improve econ menu

* improve etf menu

* improve EDA menu

* improve fx menu

* improve FA menu

* improve gov menu

* improve op menu

* improve mill menu

* improve pa menu

* improve pred menu

* improve res menu

* improve ra menu

* improve rc menu

* improve scr menu

* improve po menu

* improve ta menu

* improve main terminal menu
2021-07-05 09:17:24 +01:00
jp
099ca7cd1d Coingecko feature branch (#521)
* Added pycoingecko_helpers.py and pycoingecko_model.py, added some methods that scrapes the data from coingecko and some helper methods that handles mostly dataframe operations.

* More methods added for CoinGecko

* Started adding views, and adding them into controller.

* Add stablecoins, yield_farms, recently_added views

* Add more views for Coingecko, + add them to Controller

* remove retry from dependencies, and gecko model

* Add more views for coingecko, seperate coin menu from overview menu, fix imports

* Add some description for coin methods

* Add TA into seperate coin gecko controller

* fix mock path in coingecko tests

* Now if ta is sperate mode, and load doesn't return data frame, change test in the way that ta with Coin object returns data frame

* add seperate ta controller for crypto

* update readme

* small fix in REDME

* Add screenshots for coingecko menu

* fix ta menu for gecko

* Update Gecko Coin menu readme, add screenshots

* Update README with screenshots pt2

* Finish updating readme with screenshots

* remove not needed print statement from gecko view

* Typo

* fix ta crypto controller

* refactor some of views, remove url, add additional argparser params, remove columns which in most cases doesn't bring any value to end user

* Add additional parameters like sortby, descend, top, links for most of coingecko methods. Improve description of commands

* Split cmc, and binance into seperate menus

* add readme for cmc and binance

* Update REDME

* Update README pt2

* Fix news issue with sorting by rank, fix issue with period time parameter for top gainers and top losers view (changed from 1d - 24h)

* Add check for binance menu. If coin is not loaded, do not fail with candles and books commands. Remove new line in candle view. Update print help in crypto menu
2021-07-04 07:03:32 +01:00
DidierRLopes
1395dfe039 Bug fixes and code improvements (#519)
* Add README link to each menu

* Retrieve good error when #517 happens

* Fix column names with numbers in dataframes

* Update README.md

* ignore false positive
2021-06-27 10:26:11 +01:00
DidierRLopes
a6a2c070cb Refactor main terminal code (#507)
* Refactoring of terminal.py

* More refactoring

* more refactoring

* move dataframe_helper to fa folder since only used there

* move functions of reddit_helpper to helper_funcs

* update econ folder name to economy

* missed to add this file

* arghh missed this as well

* Add ascending flag to darkshort

* Update README.md

* improve shortview command plot

* Update README.md

* Add darkpos command to dd

* Update README.md

* Update README.md

* Update ROADMAP.md
2021-06-19 18:21:52 +01:00
didier
5a44fb69af add contracts to government menu 2021-05-21 01:27:19 +01:00
Jamie
b85ad15707 address comments 2021-05-20 15:54:13 -04:00