Skip to main content

Oracle Sentinel SDK

Python SDK for Oracle Sentinel API - AI-powered prediction market intelligence.

Features

  • 🔐 Token Gating: Free unlimited access for $OSAI holders (1000+ tokens)
  • 💳 x402 Payments: Automatic micropayments via Solana/USDC
  • 🤖 AI Signals: Access trading signals, analysis, and whale activity
  • ⚡ Simple API: Easy-to-use Python interface

Installation

pip install oracle-sentinel-sdk  # v2.0 with x402 support

For x402 payment support (auto-pay):

pip install oracle-sentinel-sdk  # v2.0 with x402 support[solana]

Quick Start

Option 1: Free Access ($OSAI Holders)

If you hold 1000+ $OSAI tokens, you get FREE unlimited access:

from oracle_sentinel import OracleSentinelClient

# Just provide your wallet address
client = OracleSentinelClient(wallet_address="YOUR_WALLET_ADDRESS")

# Get signals - FREE!
signals = client.get_bulk_signals()
print(f"Found {signals['count']} signals")

for signal in signals['signals']:
    print(f"  {signal['signal']}: {signal['question'][:50]}... (edge: {signal['edge']}%)")

Option 2: Pay-per-Request (x402)

No $OSAI? Pay with USDC per request:

from oracle_sentinel import OracleSentinelClient

# Provide your Solana private key for auto-payment
client = OracleSentinelClient(
    private_key="YOUR_SOLANA_PRIVATE_KEY",
    rpc_url="https://api.mainnet-beta.solana.com"  # or your preferred RPC
)

# Get signals - automatically pays $0.08 USDC
signals = client.get_bulk_signals()

# Get single signal - pays $0.01 USDC
signal = client.get_signal("bitcoin-above-100k")

# Get full analysis - pays $0.03 USDC
analysis = client.get_analysis("bitcoin-above-100k")

API Reference

Endpoints & Pricing

Method Endpoint Price Description
get_signal(slug) /api/v1/signal/{slug} $0.01 Trading signal for a market
get_analysis(slug) /api/v1/analysis/{slug} $0.03 Full AI analysis
get_whale_activity(slug) /api/v1/whale/{slug} $0.02 Whale trading activity
get_bulk_signals() /api/v1/bulk $0.08 Top 10 active signals
analyze_market(url) /api/v1/analyze $0.05 Analyze any Polymarket URL
get_info() /api/v1/info FREE API information

All endpoints are FREE for $OSAI holders (1000+ tokens)

Client Options

client = OracleSentinelClient(
    wallet_address="...",      # For token gating (free access)
    private_key="...",         # For x402 payment (auto-pay)
    rpc_url="...",             # Solana RPC URL (default: mainnet)
    base_url="...",            # API URL (default: https://oraclesentinel.xyz)
    auto_pay=True              # Enable automatic payment (default: True)
)

Utility Methods

# Check USDC balance
balance = client.get_usdc_balance()
print(f"USDC Balance: ${balance}")

# Check if you qualify for free access
status = client.check_holder_status()
print(f"Free access: {status['has_free_access']}")

Error Handling

from oracle_sentinel import (
    OracleSentinelClient,
    PaymentRequiredError,
    InsufficientBalanceError,
    OracleSentinelError
)

try:
    signals = client.get_bulk_signals()
except PaymentRequiredError as e:
    print(f"Payment required: {e.amount} USDC atomic units")
except InsufficientBalanceError as e:
    print(f"Need {e.required}, have {e.available}")
except OracleSentinelError as e:
    print(f"API error: {e}")

Token Information

  • Token: $OSAI
  • Mint: HuDBwWRsa4bu8ueaCb7PPgJrqBeZDkcyFqMW5bbXpump
  • Required: 1000+ for free access
  • Buy: Jupiter

Links

License

MIT License

Metadata

Release files for oracle-sentinel 2.1.0

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

Source distribution (sdist)

Source distribution for oracle-sentinel 2.1.0
File Size Uploaded
oracle_sentinel-2.1.0.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oracle-sentinel 2.1.0
File Interpreter ABI Platform
oracle_sentinel-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / oracle_sentinel-2.1.0.tar.gz

Download URL oracle_sentinel-2.1.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5b355e52620e51f4e3f64bd876122fa17809635ebe4b315df0f2c908ddb12b2d
BLAKE2b-256 checksum
How to use checksums
7dd941327560aa349baab0e6d33c802eb88f7508ac770bf36c7ccf264a2450cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / oracle_sentinel-2.1.0-py3-none-any.whl

Download URL oracle_sentinel-2.1.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ca408658a668437316e1e9df901e2704cd5b36ea6e57ef3d11a65efb5f1b467
BLAKE2b-256 checksum
How to use checksums
681339294a3a1147f5a7a6e0c185f96e732be56a92e477a72932a6ede741f91e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

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