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.0.0.tar.gz (9.4 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.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sirius_prediction_api-1.0.0.tar.gz
  • Upload date:
  • Size: 9.4 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.0.0.tar.gz
Algorithm Hash digest
SHA256 9b03240f7994596a2e49ad56c038b15bc7fa28f19ba7acfd33ff169ccc40f724
MD5 8916725b11436438858187aba0bad457
BLAKE2b-256 1841a8c5fcabb58c7ec3e4f359d591fb87adc984941a45771121a9b209145ab4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sirius_prediction_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1e963e70b231bdf49c15e87cea68e6befacc4a8b0ef5f61bed49564e47e36eb
MD5 b8d8394a646d72cea83c2942f861c7df
BLAKE2b-256 74e6e6fec7d909d8e77c84b554a2e386db639edb7c110ae544a3bf62e95bce20

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