Skip to main content

Who this is for

This documentation is for teams integrating with PredictStreet:

Market makers

Provide liquidity across binary and categorical markets using the EIP-712 signed-order flow. Hot path is HTTP + WebSocket; settlement is on-chain with a dual-signature vault custody model.

Trading partners

Route customer flow into PredictStreet markets via a key-authenticated REST API (API keys), real-time market data feeds, and a predictable fee schedule derived from the on-chain quadratic taker-fee curve.

Liquidity aggregators

Consume market, orderbook, and trade streams to integrate PredictStreet pricing into your own distribution surfaces. Read-only access is available without posting collateral.

Research / analytics

Access historical trades, fee ledger, and on-chain settlement records for modelling, benchmarking, and market-microstructure research.

What PredictStreet is

A regulated prediction-market platform running on a dedicated L2 with the following architectural split:
  • Off-chain hot path — order intake, signature validation, balance locking, matching, and trade recording happen off-chain for sub-second latency.
  • On-chain custody — every user’s collateral and outcome-token balances live in their own EIP-1167 vault clone, not in an exchange- owned pooled contract. Nothing moves without the user’s EIP-712 signature.
  • On-chain settlement — fills are batched to the CTFExchange contract; withdrawals, split/merge, and neg-risk conversions require dual signatures (user + backend co-signer) with no unilateral backend authority.
  • Automated oracle — three independent sports data feeds (Stats Perform primary + API-Football + SportMonks) feed a consensus resolver. Every outcome posted on-chain has a 2-hour challenge window backed by a bond mechanism.

How the docs are organised

1

Getting Started

Start with the Quickstart for a 5-minute hello-world, or the Platform overview for a conceptual picture before writing code.
2

Concepts

Each major surface (trading, markets, portfolio, withdrawals, WebSocket, settlement, contracts) has a dedicated concept section that explains the model and then links to the exact endpoints involved.
3

API Reference

The API Reference tab catalogues every HTTP endpoint, its request / response schemas, and example payloads, with a try-it-out panel for supported environments.

API surface at a glance

SurfaceTransportAuthIntended use
GET /api/markets/*, /api/events/*, /api/matches/*, /api/tags, /api/platform/*, /api/compliance/geoHTTP / JSONpublicPublic market data and platform status
POST /api/orders/place, /api/orders/cancel, /api/orders/cancel-allHTTP / JSONAPI key (orders:write) + EIP-712Place / cancel signed orders
GET /api/orders/*HTTP / JSONAPI key (orders:read)List / read own orders
GET /api/me/vault, /me/balances, /me/positions, /me/trades, /me/fees, /me/fee-tier, /me/portfolio, /me/vault/emergencyHTTP / JSONAPI key (portfolio:read)Portfolio, balances, trades, fees
POST /api/vault/split-signature, /api/vault/merge-signatureHTTP / JSONAPI key (vault:write) + EIP-712Backend co-signed ERC-1155 split / merge
See Authentication overview and API keys for the partner authentication flow. Retail user logins (SIWE) live on app.predictstreet.io and are out of scope for this documentation.

Environments

All examples in this documentation use the testnet environment by default. Production endpoints require a separate partner onboarding step — contact partners@predictstreet.com.
EnvironmentBase URLChainPurpose
Testnethttps://core.api.dev.predictstreet.sde.adifoundation.aiADI testnet (chainId 99999)Integration, smoke tests, partner development
StagingAvailable on requestADI testnetPre-production dry-run
MainnetOn partner onboardingTBDLive trading

Next steps

Quickstart

Place your first order in 5 minutes.

Platform overview

Understand the off-chain / on-chain split before writing code.

Authentication

API keys — issuance, format, scopes, rotation.

API Reference

Jump straight into the endpoint catalogue.