Skip to main content

Python wrapper for the Sirius Prediction Market API — real-time prediction markets, trading signals, sentiment, sports odds, and more.

Project description

Sirius Prediction Market API

Python wrapper for the Sirius Prediction Market API on RapidAPI.

Access real-time prediction markets, AI-generated trading signals, market sentiment, sports odds, weather data, and cross-platform odds comparison — all from a single, zero-dependency package.

PyPI version Python 3.8+ License: MIT

Installation

pip install sirius-prediction-api

Quick Start

from sirius_prediction_api import SiriusAPI

api = SiriusAPI("your-rapidapi-key")

# Check API status
print(api.health())

# Get active prediction markets
markets = api.markets()
for market in markets:
    print(market["question"], market["odds"])

Get Your API Key

  1. Go to RapidAPI - Sirius Prediction Market API
  2. Subscribe to a plan (free tier available)
  3. Copy your X-RapidAPI-Key from the dashboard

Endpoints

Free Tier

api = SiriusAPI("your-key")

# Active prediction markets with odds
markets = api.markets()

# Trading signals with optional filters
signals = api.signals(limit=10, layer="L1", min_gap=0.10)

# Historical signals with outcomes
history = api.signals_history()

# Market sentiment — Fear & Greed + long/short ratios
sentiment = api.sentiment()

# Sports odds (ESPN + Kalshi)
sports = api.sports()

# Weather-related prediction data
weather = api.weather()

# Cross-platform odds comparison
odds = api.odds()

Basic Tier

# Bot performance — win rate, PnL, track record
performance = api.performance()

# Full trade history with entry/exit details
trades = api.trades()

Pro Tier

# AI brain — optimization decisions and reasoning
brain = api.brain()

Signal Layers

The API provides signals from multiple detection layers:

Layer Source Description
L1 Price lag Cross-platform price discrepancies
L2 News News-driven market moves
L3 Weather Weather-based predictions
L4 Kalshi Kalshi platform arbitrage
L5 Sports ESPN + Kalshi sports signals

Filter by layer:

# Only price-lag signals with at least 10% gap
signals = api.signals(layer="L1", min_gap=0.10)

Error Handling

The library raises specific exceptions for different error types:

from sirius_prediction_api import (
    SiriusAPI,
    SiriusAuthError,
    SiriusForbiddenError,
    SiriusRateLimitError,
    SiriusAPIError,
)

api = SiriusAPI("your-key")

try:
    brain = api.brain()
except SiriusAuthError:
    print("Invalid API key")
except SiriusForbiddenError:
    print("Upgrade your plan for this endpoint")
except SiriusRateLimitError:
    print("Rate limited — slow down or upgrade")
except SiriusAPIError as e:
    print(f"API error [{e.status_code}]: {e.message}")
Exception HTTP Code Meaning
SiriusAuthError 401 Invalid or missing API key
SiriusForbiddenError 403 Endpoint not in your tier
SiriusNotFoundError 404 Resource not found
SiriusRateLimitError 429 Rate limit exceeded
SiriusServerError 5xx Server-side error
SiriusAPIError any Base class for all errors

Configuration

api = SiriusAPI(
    api_key="your-key",
    timeout=60,       # request timeout in seconds (default: 30)
)

Requirements

  • Python 3.8+
  • Zero dependencies — uses only urllib.request from the standard library

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sirius_prediction_api-1.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sirius_prediction_api-1.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file sirius_prediction_api-1.1.0.tar.gz.

File metadata

  • Download URL: sirius_prediction_api-1.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sirius_prediction_api-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5a6de503f80bb89cfdb1990c1f1e07421de3e68dbf5c74d69c537f3306d0904e
MD5 a544a5cfd2c3395061afc05de662189c
BLAKE2b-256 b8ad12d510dece30bff64e572d9fdd91274ff1ca21ab56b93119a2bfb034aa42

See more details on using hashes here.

File details

Details for the file sirius_prediction_api-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sirius_prediction_api-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0edcf8b5c7b9f2ed43634f944ffd1cc8cfa0c6e5cca5809b3d3b5520b07d6a6
MD5 8c1d52b75441f88ea8ecf6704bb5c4a5
BLAKE2b-256 5007cabb42f600c023e633157cbd083ffeb94447979bd034ec7d54b1f29fd169

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page