Skip to main content

Novig Liquidity

A Python wrapper around the Novig API with built-in filtering and validation.
This package helps you fetch sports market data and filter it based on liquidity and stat types.

Installation

pip install novig-liquidity

Requirements

Dependencies are listed in requirements.txt and are installed automatically. Core ones include:

  • aiohttp
  • redis
  • pydantic
  • requests

Usage

Create a filters.json file defining which stat types you care about. Example:

{
  "WNBA": [
    {
      "raw_name": "points_rebounds_assists",
      "display_name": "Points, Rebounds, and Assists",
      "active": true
    },
    {
      "raw_name": "points",
      "display_name": "Points",
      "active": true
    },
    {
      "raw_name": "rebounds_assists",
      "display_name": "Rebounds and Assists",
      "active": true
    },
    {
      "raw_name": "points_assists",
      "display_name": "Points and Assists",
      "active": true
    },
    {
      "raw_name": "points_rebounds",
      "display_name": "Points and Rebounds",
      "active": true
    },
    {
      "raw_name": "three_pointers_made",
      "display_name": "Three Pointers Made",
      "active": true
    },
    {
      "raw_name": "double_double",
      "display_name": "Double-Double",
      "active": true
    }
  ],
  "NFL": [
    {
      "raw_name": "rushing_yards",
      "display_name": "Rushing Yards",
      "active": true
    },
    {
      "raw_name": "rushing_attempts",
      "display_name": "Rushing Attempts",
      "active": true
    },
    {
      "raw_name": "longest_rush",
      "display_name": "Longest Rush",
      "active": true
    },
    {
      "raw_name": "passing_yards",
      "display_name": "Passing Yards",
      "active": true
    },
    {
      "raw_name": "receiving_yards",
      "display_name": "Receiving Yards",
      "active": true
    },
    {
      "raw_name": "receptions",
      "display_name": "Receptions",
      "active": true
    },
    {
      "raw_name": "longest_reception",
      "display_name": "Longest Receptions",
      "active": true
    },
    {
      "raw_name": "passing_completions",
      "display_name": "Passing Completions",
      "active": true
    }
  ]
}

Example script

import asyncio
import json
from Config import Novig

if __name__ == "__main__":
    # Load filters from file
    with open("filters.json", "r") as f:
        filters = json.load(f)

    # Choose your filter type and amounts
    total_and_difference_filter = {
        "filter_type": "liquidity_difference_and_highest_order",
        "difference_amount": 3000,
        "highest_order_amount": 1500
    }
    
    # OR
    
    total_difference_filter = {
        "filter_type": "liquidity_difference",
        "difference_amount": 3000,
    }

    # Create Novig instance
    novig = Novig(filters=filters, filter_amount_dict=total_and_difference_filter)

    # Run it
    results = asyncio.run(novig.run())
    print(results)
if __name__ == "__main__":
   raw = asyncio.run(Novig.get_raw_data(["NFL"]))
   import json
   with open("raw.json", "w") as f:
        json.dump(raw, f, indent=4)

Filter Types

Two filter types are currently supported:

  1. liquidity_difference
    Keeps markets where the liquidity difference between over/under is at least difference_amount.

  2. liquidity_difference_and_highest_order
    Keeps markets where:

    • Liquidity difference ≥ difference_amount, and
    • Either over/under side has a highest order with liquidity_left ≥ highest_order_amount.

Output

novig.run() returns a dict keyed by league name (e.g., "WNBA", "NFL"), each with a list of filtered market entries. Each entry includes:

  • key_name (market description)
  • liquidity (grouped by over/under, includes highest_order, totals, etc.)
  • additional_data (player name, stat type, line, game title, start time)

Features

  • Async API calls via aiohttp
  • Filtering on liquidity differences and totals
  • Stat-type validation via your filters.json
  • Clean models (Pydantic + dataclasses where applicable)

Metadata

Release files for novig-liquidity 1.1.15

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

Source distribution (sdist)

Source distribution for novig-liquidity 1.1.15
File Size Uploaded Provenance Actions
novig_liquidity-1.1.15.tar.gz 9.7 kB Without provenance Details for novig_liquidity-1.1.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for novig-liquidity 1.1.15
File Interpreter ABI Platform Actions
novig_liquidity-1.1.15-py3-none-any.whl Python 3 none any Details for novig_liquidity-1.1.15-py3-none-any.whl

Total release size: 18.4 kB

Release files / novig_liquidity-1.1.15.tar.gz

Download URL novig_liquidity-1.1.15.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f8caf9100bf9f5f4252e4bf195ba2f5f93d7b6e54d8f40b91cc849b17fc0a20e
BLAKE2b-256 checksum
How to use checksums
4066d730498047e76774b8aa618766a2b495af6ed5da7e459d83e96de8640460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / novig_liquidity-1.1.15-py3-none-any.whl

Download URL novig_liquidity-1.1.15-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebec5969f70dd7618b2240b383dae2886b4510f5a50b7b80fbf9319649b0aff6
BLAKE2b-256 checksum
How to use checksums
cf6bbfd9e25b6b744b641944144877d7bd5b4f1928cb8d7dd73807ef8ac1b171
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Security for novig-liquidity 1.1.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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