Overview
Opinion OpenAPI
Welcome to the official documentation for the Opinion OpenAPI - a RESTful API for accessing OPINION Prediction Markets
π Public Data API: This API provides read-only access to market data, orderbooks, and price information. For trading operations (placing orders, managing positions), please use the Opinion CLOB SDK.
To request API access, Please kindly fill out this short application form .
API Key can be used for both of Opinion OpenAPI 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
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
/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
All API requests require an API key passed in the apikey header:
π§ Get an API Key: Please kindly fill out this short application form .
Rate Limiting
Requests per second
15
Max items per page
20
If you exceed rate limits, you'll receive a 429 Too Many Requests response.
Response Format
All responses follow a consistent JSON structure:
Error Codes
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
Quick Links
Python SDK
SDK vs OpenAPI
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