SOV.AI
  • Data & Screens
  • GET STARTED
    • Blog (Screener)
    • 🚀Quick Start
    • ⭐Tutorials
    • 💻Installation
    • ⚒️Release Notes
    • 🔘About
  • REALTIME DATASETS
    • Equity Datasets
      • Accounting Data
      • Bankruptcy Predictions
      • Employee Visa
      • Earnings Surprise
      • Congressional Data
      • Factor Signals
      • Financial Ratios
      • Government Contracts
      • Institutional Trading
      • Insider Flow Prediction
      • Liquidity Data
      • Lobbying Data
      • News Sentiment
      • Price Breakout
      • Risk Indicators
      • SEC Edgar Search
      • SEC 10K Filings
      • Short Selling
      • Wikipedia Views
      • Patents Data
    • Economic Datasets
      • Asset Rotation
      • Core Economic Data
      • ETF Flows
      • Government Traffic
      • 🏳️Turing Risk Index
    • Sectorial Datasets
      • Airbnb Data
      • Box Office Stats
      • CFPB Complaints
      • Phrama Clinical Trials
      • Request Datasets
  • Asset Managment
    • Signal Evaluation
    • Weight Optimization
    • Screens and Filters
  • Pattern Recognition
    • Pairwise Distance
    • Anomaly Detection
    • Clustering Panels
  • Feature Processing
    • Extract Features
    • Neutralize Features
    • Select Features
    • Dimensionality Reduction
    • Feature Importance
  • Time Series
    • Nowcasting Series
    • TS Decomposition
    • Time Segmentation
  • Dashboard Examples
    • 🔰Bankruptcy Prediction
    • 🛰️Turing Risk Index
  • IMPORTANT LINKS
    • ⚙️Main Website
    • 👮Forum and Issues
    • 🙋Web Application
    • 📤LinkedIn
    • 🟢Buy Subscription
Powered by GitBook
On this page
  • Screens and Filters Module
  • Overview
  • Key Features
  • Usage
  • Available Methods and Functionality
  • Example Use Case
  • Conclusion

Was this helpful?

  1. Asset Managment

Screens and Filters

This module allows users to apply various filters and screens to a comprehensive dataset of financial and market factors.

PreviousWeight OptimizationNextPairwise Distance

Last updated 8 months ago

Was this helpful?

Tutorials are the best documentation —

Screens and Filters Module

Overview

The Screens and Filters module is a versatile component of the sovai software suite, designed to help investors and analysts identify novel investment opportunities using a wide range of features as filtering and selection criteria.

Key Features

  • Access to hundreds of financial and market factors

  • Ability to filter based on latest data points

  • Stock selection by market capitalization categories

  • Flexible querying capabilities

  • Chaining of multiple filters and selections

Usage

To use the Screens and Filters module, you first need to authenticate and then you can start applying various filters and screens to the data. Here's an example of how to use this module:

import sovai as sov

# Authenticate
sov.token_auth(token="your_authentication_token")

# Load comprehensive factor data
df_comprehensive = sov.data("factors/comprehensive")

Available Methods and Functionality

1. Get Latest Data

df_risk = df_comprehensive.get_latest("business_risk")[["business_risk"]]

This method allows you to extract the most recent data point for a specific factor.

2. Select Stocks by Market Cap

df_mega = df_risk.select_stocks("mega")

This method filters stocks based on market capitalization category. In this example, it selects only mega-cap stocks.

3. Apply Custom Queries

df_ten = df_mega.query("business_risk <= 10")

This method allows you to apply custom filtering conditions using familiar Python query syntax.

4. Chaining Operations

You can chain multiple operations together for more complex screening:

df_ten = (sov.data("factors/comprehensive")
          .get_latest("business_risk")[["business_risk"]]
          .select_stocks("mega")
          .query("business_risk <= 10"))

This chain of operations:

  1. Loads the comprehensive factor data

  2. Selects the latest "business_risk" factor

  3. Filters for mega-cap stocks

  4. Applies a custom query to select stocks with business risk <= 10

Example Use Case

Let's walk through an example of using the Screens and Filters module to identify large-cap companies with low business risk sensitivity:

import sovai as sov

# Authenticate
sov.token_auth(token="your_authentication_token")

# Load data, filter for mega-caps with business risk <= 10
df_filtered = (sov.data("factors/comprehensive")
               .get_latest("business_risk")[["business_risk"]]
               .select_stocks("mega")
               .query("business_risk <= 10"))

print(df_filtered)

This script will return a DataFrame containing mega-cap stocks with a business risk sensitivity of 10% or less, based on the most recent data point.

Conclusion

The Screens and Filters module provides a powerful and flexible way to identify investment opportunities based on a wide range of factors. By combining different filtering methods and leveraging the extensive factor database, users can create sophisticated screening strategies to suit their investment criteria.

Screens and Filters Tutorial