Providers

ProviderBase PathTestnet
Polymarket/v1/predictions/polymarket/No
Polymarket does not support testnet. All trading is on mainnet with real funds.

Key Concepts

ConceptDescription
EventA real-world event (e.g., election, sports game) with one or more markets
MarketA specific question about an event (e.g., “Will X win?”)
Outcome TokenA tradeable token representing one outcome (e.g., “Yes” or “No”)
Token IDUnique identifier for an outcome token — used for orderbook and trading
PriceBetween 0 and 1, representing implied probability

Endpoints

Discovery

MethodPathDescription
GET/predictions/:provider/eventsList events (filterable by status, category)
GET/predictions/:provider/events/:eventIdGet single event
GET/predictions/:provider/marketsList markets
GET/predictions/:provider/markets/:marketIdGet single market
GET/predictions/:provider/categoriesList categories

Market Data

MethodPathDescription
GET/predictions/:provider/orderbook/:tokenIdGet orderbook for token
GET/predictions/:provider/trades/:tokenIdGet recent trades
GET/predictions/:provider/prices/:tokenIdGet current price
GET/predictions/:provider/prices/history/:marketIdGet price history
GET/predictions/:provider/open-interestGet total OI

Account

MethodPathDescription
GET/predictions/:provider/positions/:addressGet positions
GET/predictions/:provider/activity/:addressGet activity history
GET/predictions/:provider/leaderboardGet top traders

Trading

MethodPathDescription
POST/predictions/:provider/ordersPlace an order
DELETE/predictions/:provider/orders/:orderIdCancel an order
DELETE/predictions/:provider/ordersCancel all orders

Authentication

Polymarket uses HMAC authentication for trading operations. You need:
  • apiKey — your Polymarket API key
  • apiSecret — your Polymarket API secret
  • passphrase — your Polymarket passphrase
These are passed in the request body for trading endpoints. See the Prediction Markets Guide for a complete walkthrough.