Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.probalytics.io/llms.txt

Use this file to discover all available pages before exploring further.

Choose your access method and get working code in 2 minutes.

REST API

Query prediction market data via HTTP with simple authentication.

Setup (1 min)

Step 1: Click “Create API Key”

Go to app.probalytics.io → API Keys section
Click Create API Key

Step 2: Enter Credential Name

Give your key a name (e.g., “trading-bot”, “research”)
Enter API Credentials Name

Step 3: Copy API Key ID and API Key Secret

Copy both the API Key ID and API Key Secret from the dashboard.
Copy API Credentials
Keep your API Key Secret secure. Never commit it to git or expose it publicly.

Make Your First Request

Concatenate API Key ID and API Key Secret with a colon in the Authorization header:
Authorization: Bearer API_KEY_ID:API_KEY_SECRET
import requests

API_KEY_ID = "api_brave_cosmic_falcon"
API_KEY_SECRET = "sk_life_AbCdEfGh..."
API_KEY = f"{API_KEY_ID}:{API_KEY_SECRET}"

headers = {"Authorization": f"Bearer {API_KEY}"}

response = requests.get(
    "https://api.probalytics.io/api/v1/markets",
    headers=headers
)

markets = response.json()
print(f"Found {len(markets)} markets")
See the REST API section in the sidebar for:
  • All endpoints (GET /markets, GET /fills, GET /orderbook-snapshots/download)
  • Query parameters & filtering
  • Complete response examples

Which Method Should I Use?

REST API
  • ✓ Simple to integrate
  • ✓ Good for production applications
  • ✗ Limited query flexibility
SQL (ClickHouse)
  • ✓ Complex queries and analytics
  • ✓ Aggregations and joins
  • ✓ Full historical data (Pro tier+)
  • ✓ Super fast analytics

Next Steps

SQL Guide

Tables, schemas, query templates

Tutorials

Real-world examples

Common Patterns

Copy-paste recipes