-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Feature] Add Finviz Screener Presets (V3 Compatible) #6601
Conversation
…OpenBB-finance/OpenBBTerminal into feature/finviz-screener-presets
Brilliant! works as a charm! when will be available via pip? i guess i'll have to install a new version of openbb-finviz? |
@IgorWounds I'm getting the following error when running the preset: Could you pls take a look? Thank you for this great work, btw! |
uh, thats my preset :(
i'll have a look at it tomorrow morning.... sorry about this
Kind regards
Marco
…On Thu, Aug 29, 2024 at 6:24 PM yolotrader ***@***.***> wrote:
@IgorWounds <https://github.com/IgorWounds> I'm getting the following
error when running the preset:
Screenshot.2024-08-29.at.10.19.54.AM.png (view on web)
<https://github.com/user-attachments/assets/d91ee2f5-a458-4c68-a5c7-4c46197439f1>
Could you pls take a look?
Thank you for this great work, btw!
—
Reply to this email directly, view it on GitHub
<#6601 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPNCDWH7FEN3BEYTXP5ED3ZT5KNLAVCNFSM6AAAAABLUSP3NGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJYGQZTMOJXGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@yolotrader that's just a warning, which is controlled by your preferences "preferences" : { } if you print out the result you will see data hth |
@mmistroni thanks! |
Why?:
What?:
Below is copied from the
README.md
Screener
The screener is a faithful replication of the public-facing stock screener - https://finviz.com/screener.ashx?
Some options are directly accessible through the function parameters, all others are exposed via
presets
orfilters_dict
.The filters list below are exposed in the function, with choices visible in the docstring:
exchange
index
sector
industry
mktcap
recommendation
(analyst's mean score from 1-5)signal
(same as the "Signal" on the Finviz page)When the function is run without any parameters, it will default to the "top_gainers" signal.
Metric
The
metric
parameter defines the type of data fields to return. Choices are:overview
ownership
performance
techincal
valuation
Default is, "overview".
Preset Files
Presets can be created and customized in the "OpenBBUserData" folder. Template and default presets are created on the first run of the function.
Files are loaded on run time, changes are effective without restarting the Python interpreter.
The
preset
parameter will override all others, exceptmetric
andlimit
.Run the function to create the template and default presets in your
OpenBBUserData
folder.Presets from the legacy OpenBB Terminal will continue to work, simply move your presets into the folder below.
Then find the presets here:
$HOME/OpenBBUserData/presets/finviz
Filters Dict
The
filters_dict
parameter acts as an alternative topreset
, accepting a dictionary or JSON encoded string.Or as a JSON:
When using the Fast API, this is sent in the request body.
Error Messages
All parameters are validated, incorrect keys and choices will raise an error with information to help correct. For example:
Invalid filter option 'NASDAQ'. Possible filter options: ['Any', 'S&P 500', 'NASDAQ 100', 'DJIA', 'RUSSELL 2000']
Impact:
Testing Done:
Reviewer Notes: