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/v1

Authentication

// API Key Authentication
const headers = {
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
};

Rate Limits

Endpoint Type
Limit
Window

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:

Parameter
Type
Description

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:

Parameter
Type
Required
Description

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:

Parameter
Type
Description

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:

Parameter
Type
Description

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:

Parameter
Type
Description

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

Code
Description

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