
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
openbb-finviz
Advanced tools
This extension integrates the Finviz data provider into the OpenBB Platform.
It will install, finvizfinance, to power the functions.
To install the extension:
pip install openbb-finviz
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
or filters_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.
res = obb.equity.screener(provider="finviz")
The metric
parameter defines the type of data fields to return. Choices are:
overview
ownership
performance
technical
valuation
Default is, "overview".
res = obb.equity.screener(provider="finviz", metric="performance")
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 runtime, changes are effective without restarting the Python interpreter.
The preset
parameter will override all others, except metric
and limit
.
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.
res = obb.equity.screener(provider="finviz", index="nasdaq")
Then find the presets here: $HOME/OpenBBUserData/presets/finviz
res = obb.equity.screener(provider="finviz", preset="short_squeeze")
The filters_dict
parameter acts as an alternative to preset
, accepting a dictionary or JSON encoded string.
res = obb.equity.screener(provider="finviz", filters_dict={"Index": "NASDAQ 100"})
Or as a JSON:
res = obb.equity.screener(provider="finviz", filters_dict='{"Index": "NASDAQ 100"}')
When using the Fast API, this is sent in the request body.
All parameters are validated, incorrect keys and choices will raise an error with information to help correct. For example:
obb.equity.screener(provider="finviz", filters_dict='{"Index": "NASDAQ"}')
Invalid filter option 'NASDAQ'. Possible filter options: ['Any', 'S&P 500', 'NASDAQ 100', 'DJIA', 'RUSSELL 2000']
Read the OpenBB Platform documentation here
FAQs
Finviz extension for OpenBB
We found that openbb-finviz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.