Skip to main content

CapInvest Finviz Data Provider Extension

This extension integrates the Finviz data provider into the CapInvest Platform.

It will install, finvizfinance, to power the functions.

Installation

To install the extension:

pip install capinvest-finviz

Endpoints

  • obb.equity.compare.groups
  • obb.equity.estimates.price_target
  • obb.equity.fundamental.metrics
  • obb.equity.profile
  • obb.equity.price.performance
  • obb.equity.screener

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 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")

Metric

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")

Preset Files

Presets can be created and customized in the "CapInvestUserData" 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 CapInvestUserData folder.

Presets from the legacy CapInvest 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/CapInvestUserData/presets/finviz

res = obb.equity.screener(provider="finviz", preset="short_squeeze")

Filters Dict

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.

Error Messages

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 CapInvest Platform documentation here

Metadata

Release files for capinvest-finviz 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capinvest-finviz 1.0.5
File Size Uploaded
capinvest_finviz-1.0.5.tar.gz 31.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for capinvest-finviz 1.0.5
File Interpreter ABI Platform
capinvest_finviz-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 79.5 kB

Release files / capinvest_finviz-1.0.5.tar.gz

Download URL capinvest_finviz-1.0.5.tar.gz
Size 31.8 kB
Tags Source
SHA-256 checksum
How to use checksums
90e85b6db6dc6466716aef0d3779399e99af5eb4b73fc76847fdbef047351ffa
BLAKE2b-256 checksum
How to use checksums
51ec3366b6e87272418d39d1cde84def47d72a77f4bc5a60f838d3086b5f78cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.4 Windows/10

Release files / capinvest_finviz-1.0.5-py3-none-any.whl

Download URL capinvest_finviz-1.0.5-py3-none-any.whl
Size 47.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c802cab077a32f4f17c6797055ff8cd4e75536d62aadad4ff1779f0fb5bf847a
BLAKE2b-256 checksum
How to use checksums
a21b1cb8b5ee9610b1fb5c1904ee58852b4f39c9f629a4cd0bfac86ef72bebf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.4 Windows/10

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page