For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overview

Opinion OpenAPI

Welcome to the official documentation for the Opinion OpenAPI - a RESTful API for accessing OPINION Prediction Markets

📊 Public Data API: Public data endpoints do not require an API key. Authenticated endpoints require an API key. For trading operations (placing orders, managing positions), please use the Opinion CLOB SDK.

To get authenticated access, create your own API key instantly with a wallet signature — see Authentication. Builders can also request keys via this short application form.

API Key can be used for Opinion OpenAPI, Opinion Websocket, and Opinion CLOB SDK

What is Opinion OpenAPI?

The Opinion OpenAPI provides a simple HTTP interface for accessing prediction market data from Opinion Labs' infrastructure. It enables developers to:

  • Query market data - Access real-time market information, metadata, and trading volumes

  • Monitor prices - Get latest trade prices and historical price data

  • Analyze orderbooks - Retrieve order book depth for any market token

  • Discover quote tokens - List available trading currencies and their configurations

Key Features

Simple Integration

  • RESTful - Standard HTTP/JSON API

  • OpenAPI 3.0 - Full specification with Swagger/Redoc support

  • Language Agnostic - Use with any programming language

  • No Dependencies - Just HTTP requests

Performance Optimized

  • Low Latency - Optimized for real-time data access

  • Rate Limited - 15 requests/second per API key

  • Paginated - Efficient handling of large datasets

Secure Access

  • API Key Authentication - Simple header-based auth

  • HTTPS Only - All traffic encrypted

  • Production Ready - Battle-tested infrastructure

Blockchain Support

Chain
Chain ID
Status

BNB Chain Mainnet

56

✅ Live

Use Cases

Market Analytics Dashboard

Aggregate and display market data for research or monitoring applications.

Price Monitoring Bot

Track real-time prices for specific outcome tokens.

Orderbook Analysis

Analyze market depth for trading insights.

Historical Price Charts

Build price charts with historical data.

API Endpoints Overview

Endpoint
Method
Description

/market

GET

List all markets with filters

/market/{marketId}

GET

Get market details by ID

/token/latest-price

GET

Get latest trade price

/token/orderbook

GET

Get order book depth

/token/price-history

GET

Get historical prices

/quoteToken

GET

List quote tokens (currencies)

Authentication

Public data endpoints listed on this page do not require an API key. All other OpenAPI endpoints require an apikey header. An invalid apikey returns 401 Unauthorized and does not fall back to anonymous access.

📧 Get an API Key: Please kindly fill out this short application form .

Rate Limiting

Limit
Value

Public requests

5 requests/second per IP

Authenticated requests

15 requests/second per API consumer

If you exceed rate limits, you'll receive a 429 Too Many Requests response. Respect the Retry-After response header when present.

Response Format

All responses follow a consistent JSON structure:

Error Codes

Code
Description

0

Success

400

Bad Request - Invalid parameters

401

Unauthorized - Invalid or missing API key

404

Not Found - Resource doesn't exist

429

Too Many Requests - Rate limit exceeded

500

Internal Server Error

Resource
Link

Python SDK

SDK vs OpenAPI

Feature
OpenAPI (This API)
CLOB SDK

Market Data

✅

✅

Orderbook

✅

✅

Price History

✅

✅

Place Orders

❌

✅

Cancel Orders

❌

✅

Manage Positions

❌

✅

On-chain Operations

❌

✅

Language

Any (HTTP)

Python

Recommendation:

  • Use OPINION OpenAPI for read-only data access, dashboards, and analytics

  • Use OPINION CLOB SDK for trading, order management, and blockchain interactions


Ready to get started? Check the OpenAPI Specification for detailed endpoint documentation.

Last updated