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

feat(module): add screener #688

Merged
merged 9 commits into from Sep 28, 2023
Merged

feat(module): add screener #688

merged 9 commits into from Sep 28, 2023

Conversation

z3nful
Copy link
Contributor

@z3nful z3nful commented Sep 27, 2023

Changes

  • Adds screener module (supercedes dailyGainers as dailyGainers is a form of this)

Type

  • New Module
  • Other New Feature
  • Validation Fix
  • Other Bugfix
  • Docs
  • Chore/other

Comments/notes

import yahooFinance from 'yahoo-finance2';
const queryOptions = { scrIds: 'aggressive_small_caps', count: 5, region: 'US', lang: 'en-US' };
const result = await yahooFinance.screener(queryOptions);

Accepts the following predefined screener names:

  • aggressive_small_caps
  • conservative_foreign_funds
  • day_gainers
  • day_losers
  • growth_technology_stocks
  • high_yield_bond
  • most_actives
  • most_shorted_stocks
  • portfolio_anchors
  • small_cap_gainers
  • solid_large_growth_funds
  • solid_midcap_growth_funds
  • top_mutual_funds
  • undervalued_growth_stocks
  • undervalued_large_caps

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (fe6de09) 93.05% compared to head (2a7011e) 93.12%.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #688      +/-   ##
==========================================
+ Coverage   93.05%   93.12%   +0.07%     
==========================================
  Files          25       26       +1     
  Lines         662      669       +7     
  Branches      225      226       +1     
==========================================
+ Hits          616      623       +7     
  Misses         46       46              
Files Coverage Δ
src/modules/screener.ts 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gadicc gadicc merged commit 8fb3e3d into gadicc:devel Sep 28, 2023
3 checks passed
@gadicc
Copy link
Owner

gadicc commented Sep 28, 2023

Ooh, amazing! Thanks, @z3nful, for another 💯 PR; code style, docs, tests, all perfect!

So greatly appreciate all these amazing contributions.

gadicc pushed a commit that referenced this pull request Sep 28, 2023
# [2.8.0](v2.7.1...v2.8.0) (2023-09-28)

### Features

* **module:** add screener ([#688](#688)) ([8fb3e3d](8fb3e3d))
@gadicc
Copy link
Owner

gadicc commented Sep 28, 2023

🎉 This PR is included in version 2.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@z3nful
Copy link
Contributor Author

z3nful commented Sep 28, 2023

Ty, happy to contribute 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants