Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here we merge all API Refactor related branches #2236

Merged
merged 104 commits into from
Aug 17, 2022
Merged

Conversation

Chavithra
Copy link
Contributor

@Chavithra Chavithra commented Aug 2, 2022

Description

Here are the menus we are merging :

  • stocks (Diogo / Henrique / Colin) - reviewed by Minh & merged & needs to check again
  • crypto (Colin) reviewed by Minh & merged
  • economy (Diogo) being reviewed by Minh
  • portfolio (James / Diogo)
  • forex (Colin) reviewed by Minh & needs to check again
  • etf (Colin) needs to review
  • econometrics (Colin) needs to review
  • funds (Colin) needs to review
  • alt (Colin)

How has this been tested?

  • Please describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • Please also list any relevant details for your test configuration.

Checklist:

Others

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • My code passes all the checks pylint, flake8, black, ... To speed up development you should run pre-commit install.
  • New and existing unit tests pass locally with my changes. You can test this locally using pytest tests/....

@Chavithra Chavithra added the feat L Large T-Shirt size Feature label Aug 2, 2022
@Chavithra Chavithra added feat XL Extra Large feature and removed feat L Large T-Shirt size Feature labels Aug 2, 2022
@colin99d
Copy link
Contributor

colin99d commented Aug 4, 2022

Big note: Do NOT do ANYTHING with pred menu stuff. This is removed by #1933 @Chavithra @minhhoang1023 @simmonsj330 @montezdesousa

@minhhoang1023
Copy link
Contributor

minhhoang1023 commented Aug 4, 2022

@colin99d You're super quick yo! 🚀

I'm testing it using all the API endpoints. Some of these functions might be in some types of helper. Comments are below:

  • We don't yet have a default value for the load function in forex. Docstring is missing on the description, and available options for resolution and intervals

image

  • api.forex.candle: here we require both the to_symbol and from_symbol just for the chart name. Is there anyway we can extract the symbol from the df? If not, perhaps has the empty string as default?

image

-api.forex.quote & api.forex.oanda.calendar it's nice to have the example documented in the docstring on the currency format, e.g. EUR, USD. Now it's not clear what format people should use

image

  • api.forex.oanda.candles: we should have in the docstring the available options for granularity param

image

@piiq piiq added do not merge Label to prevent pull request merge and removed do not merge Label to prevent pull request merge labels Aug 5, 2022
@Chavithra Chavithra marked this pull request as draft August 5, 2022 10:17
@minhhoang1023
Copy link
Contributor

minhhoang1023 commented Aug 12, 2022

To check before merging:

  • ascending -> ascend
  • descending -> descend

Also sort_by -> sortby

@simmonsj330
Copy link
Contributor

simmonsj330 commented Aug 15, 2022

@minhhoang1023 portfolio model & view will be done by today

colin99d and others added 8 commits August 15, 2022 15:13
* Refactored for etf commands

* Fixed tests

* Added load command

* Fixed menu
* Added econometrics

* Fixed tests

* Simplified API

* Added test fixes

* Added test csv

* Allowed examples to be loaded
* Fund refactor

* Changed fund_name and fund to name

* Changed ascending to ascend
* Stocks  refactoring for easier API usage

* Linting

* Refactor newly added features

* Linting

* Fixing tests

* Refactor common files used by stocks menu

* Fixing flake8

* Fix linting and tests

* Linting

* Fix flake8

* refactor insider_data

* refactor mentions

* refactor watchlist

* refactor sentiment

* refactor sentiment

* fix yahoofinance tests

* refactor load and candle

* refactor get_news and display_news

* refactor stocks.ins.act

* candle default matplotlib

* fix yahoofinance_view tests

* fix ark model tests

* fix ark view tests

* fix business insider model

* fix business insider view

* refactor csimarket model

* fix tests csi market model

* update dd controller

* fix get suppliers tests

* fix dd controller tests

* fix finhub tests

* fix finviz tests

* fix fmp tests

* fix marketwatch tests

* corrected argument keywords in test_bt_model

* corrected argument keywords in test_bt_view

* refactor fa controller

* refactor marketwatch view

* refactor gov controller

* fix tests fa av

* fix tests elect

* fix dcf tests

* fix polygon tests

* fix fmp tests

* fix quiverquant tests

* fix yahoofinance fa tests

* fix more fa tests

* fix insider tests

* fix more tests

* fix more tests

* fix options tests

* fix stock gov tests

* fix tests test_ba_controller

* fix tests for test_finviz_compare_model.py

* fixed 2 tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fix final tests

* fixed tests

* fixed tests

* Fix tests

* black

* forgot to black tests

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* flakefix

* Tests + code : Stocks / Discovery

* fix tests

* added recorder

* fixed tests

* fixed tests

* black

* black

* remove unused imports

* refactor display raw

* sia dicts fix

* pylint

* linting

* remove dangerous default

* fix tests

* fix beta model test

* black

* skip screener qa test

* change sector path to sectors

* update tests readme

* fix metric defaults

* black

* substitute lost ticker

* defaults cpic

* another round on sia

* refactor cramer

* reduce default tweets on sentiment

* refactor yf hist, corr, volume

* arkorders default

* refactor income, balance, cashflow

* refacto scorr, screener, getfinnhub

* refactor stockgrid

* ibkr refactor

* another round on stockgrid

* add dividens end point

* refactor discovery endpoints

* update docstrings with similar input

* refactor messages

* refactor ba

* refactor regioons

* refactor twitter sentiment

* refactor hist

* refactor regions

* give default to timeframe

* refactor bunch of defaults and arg names

* remove leftover imports

* refactor vwap

* let tests run

* fix tests

* fix stock tests

* fix stockanalysis tests

* flake

* MYPY

* Made important changes

* added fixes

* Fixed big issue

* Added fixes to tests

* fix qa tests

* fix tests

* fix 1 more test

* last stocks failing

* fix crypto test

Co-authored-by: Chavithra PARANA <[email protected]>
Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: hjoaquim <[email protected]>
Co-authored-by: montezdesousa <[email protected]>
Co-authored-by: colin99d <[email protected]>
@montezdesousa montezdesousa marked this pull request as ready for review August 17, 2022 10:36
@Chavithra
Copy link
Contributor Author

Todo for next PR:

  • Few : ascending => ascend
  • Few : sort_by => sortby

@minhhoang1023 minhhoang1023 merged commit 9e1a58e into main Aug 17, 2022
@Chavithra Chavithra deleted the api-refactor branch August 17, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat XL Extra Large feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants