API Reference
Complete API documentation for IllumindGame platform. Learn how to integrate our prediction platform into your applications.
๐ Getting Started
Base URL
Production: https://api.illumindgame.io/v1
Testnet: https://api-testnet.illumindgame.io/v1Authentication
// API Key Authentication
const headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
};Rate Limits
Public
100 requests
1 minute
Authenticated
1000 requests
1 minute
WebSocket
10 connections
Per IP
๐ Rounds API
Get Current Round
Get information about the active prediction round.
Response:
Get Round History
Retrieve historical round data with pagination.
Parameters:
page
integer
Page number (default: 1)
limit
integer
Results per page (max: 100)
status
string
Filter by status: active, resolved, all
Response:
Get Round Details
Get detailed information about a specific round.
Response:
๐ฏ Predictions API
Make a Prediction
Submit a prediction for the current round.
Request Body:
Parameters:
roundId
integer
Yes
Current round ID
direction
string
Yes
UP or DOWN
amount
string
Yes
Amount in wei (18 decimals)
signature
string
Yes
Wallet signature
userAddress
string
Yes
User's wallet address
Response:
Get User Predictions
Retrieve all predictions for a specific user.
Parameters:
page
integer
Page number
limit
integer
Results per page (max: 100)
status
string
active, won, lost, claimed, all
Response:
Claim Rewards
Claim rewards for won predictions.
Request Body:
Response:
๐ค AI Analysis API
Get AI Market Analysis
Get current AI analysis for market conditions.
Response:
Get AI Prediction History
Retrieve historical AI predictions and their accuracy.
Response:
๐ Market Data API
Get Current Price
Get real-time ETH/USDT price.
Response:
Get Price History
Get historical price data with different intervals.
Parameters:
interval
string
1m, 5m, 15m, 1h, 4h, 1d
limit
integer
Number of candles (max: 1000)
Response:
๐ Leaderboard API
Get Top Predictors
Get leaderboard of most accurate predictors.
Parameters:
period
string
24h, 7d, 30d, all
limit
integer
Number of users (max: 100)
Response:
Get Volume Leaders
Get users with highest prediction volumes.
Response:
๐ Statistics API
Get Platform Statistics
Get overall platform metrics.
Response:
Get User Statistics
Get detailed statistics for a specific user.
Response:
Real-time Events
Round Updates
Price Updates
AI Analysis Updates
๐ Authentication & Security
API Key Management
Request Body:
Webhook Signatures
Verify webhook authenticity using HMAC-SHA256:
๐ Error Handling
Error Response Format
Common Error Codes
INVALID_API_KEY
API key is invalid or expired
RATE_LIMIT_EXCEEDED
Too many requests
INVALID_ROUND
Round ID does not exist
ROUND_EXPIRED
Round has already ended
INSUFFICIENT_BALANCE
Not enough tokens
INVALID_SIGNATURE
Wallet signature verification failed
PREDICTION_EXISTS
User already predicted for this round
๐ SDK Examples
JavaScript/Node.js
Python
Curl Examples
๐ Integration Examples
Trading Bot Integration
Portfolio Tracker
Ready to start building? Check out our Integration Guide for detailed examples!
Last updated

