Skip to main content
Kuest Prediction Market provides multiple integration options for developers, traders, and third-party applications.

Integration options

REST APIs

HTTP endpoints for market data, trading, and user information

Trading bots

Python and Rust SDKs for automated trading strategies

Web3 wallets

Connect wallets via Reown AppKit for on-chain trading

Smart contracts

Direct integration with Polygon smart contracts

Quick start guide

1

Choose your integration method

Decide how you want to interact with the platform:
  • Web UI: Use the hosted interface for manual trading
  • REST API: Build custom applications using HTTP endpoints
  • Bot SDKs: Automate trading strategies with Python or Rust
  • Smart contracts: Interact directly with on-chain contracts
2

Set up authentication

Configure your credentials:
  • API access: Generate CLOB API keys at auth.kuest.com
  • Wallet: Connect an EVM wallet (MetaMask, WalletConnect, etc.)
  • Admin access: Add your wallet to ADMIN_WALLETS for management features
3

Connect to Polygon

Ensure you’re connected to the correct network:
  • Mainnet: Polygon (Chain ID: 137)
  • Testnet: Polygon Amoy (Chain ID: 80002)
  • USDC: Native USDC on Polygon for trading
4

Start trading

Begin interacting with markets:
  • Fetch available markets via API
  • Place orders using limit or market orders
  • Monitor positions and track PnL
  • Redeem winning shares after settlement

Use cases

Automated trading

Build trading bots using Python or Rust SDKs to:
  • Execute arbitrage strategies
  • Market make on prediction markets
  • Automate position management
  • Monitor price movements

Custom frontends

Create custom interfaces using the REST API:
  • White-label prediction market platforms
  • Mobile applications
  • Trading dashboards
  • Analytics tools

DeFi integrations

Integrate with other protocols:
  • Liquidity aggregation
  • Cross-chain bridging
  • Yield farming strategies
  • Portfolio management

Data analytics

Build market intelligence tools:
  • Real-time price tracking
  • Historical data analysis
  • Market sentiment indicators
  • Trading volume metrics

Authentication methods

import { createHmac } from 'crypto'

function signRequest(method: string, path: string, body: string = '') {
  const timestamp = Math.floor(Date.now() / 1000)
  const message = `${timestamp}${method}${path}${body}`
  const signature = createHmac('sha256', apiSecret)
    .update(message)
    .digest('base64')
  
  return {
    headers: {
      'KUEST-API-KEY': apiKey,
      'KUEST-SIGNATURE': signature,
      'KUEST-TIMESTAMP': timestamp.toString(),
      'KUEST-PASSPHRASE': passphrase,
    }
  }
}

Network configuration

Kuest operates on Polygon for low fees and fast settlement. All trades are settled in USDC.
NetworkChain IDUSDC AddressExplorer
Polygon Mainnet1370x3c499c542cEF5E3811e1192ce70d8cC03d5c3359polygonscan.com
Polygon Amoy (Testnet)800020x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582amoy.polygonscan.com

Rate limits

API requests are rate-limited to prevent abuse. Implement exponential backoff for retries.
  • Public endpoints: 100 requests per minute
  • Authenticated endpoints: 300 requests per minute
  • Trading endpoints: 60 orders per minute

Next steps

API reference

Explore all available API endpoints

Bot SDKs

Get started with Python or Rust SDKs

Wallet connection

Learn how to connect Web3 wallets

Smart contracts

View contract addresses and ABIs

Build docs developers (and LLMs) love