Skip to content
Product

Prediction Markets API

RESTful API for Polymarket and Kalshi data. Markets, events, trades, orderbooks, and wallet analytics—all from a single endpoint at api.gliss.sh.

Built for prediction market data

Comprehensive coverage of Polymarket and Kalshi with consistent schemas, rich filtering, and pagination on every endpoint.

Multi-Venue Coverage

Query Kalshi and Polymarket from a single API. Markets, events, trades, and orderbooks across venues with consistent schemas.

Rich Market Data

Volume metrics (1h, 24h, weekly, total), open interest, trade counts, buy/sell ratios, and status tracking for every market.

Historical Order Data

Access historical order flow with prices, sizes, timestamps, and wallet addresses. Filter by market, token, time range, or user.

Wallet Analytics

Track realized PnL for any Polymarket wallet over time. Daily, weekly, monthly, or yearly granularity with full trade history.

TypeScript SDK

Fully-typed SDK with IntelliSense support. Auto-generated from OpenAPI spec. Install with npm install @gliss-sh/sdk-typescript.

OpenAPI & LLM-Ready

Full OpenAPI 3.0 spec with interactive docs at docs.gliss.sh. LLM-friendly markdown spec available at /llms.txt.

API Endpoints

All endpoints return JSON with pagination. Base URL: api.gliss.sh

Polymarket

GET
/v0/polymarket/events

List events with volume, categories, and status

GET
/v0/polymarket/markets

Query markets by slug, tags, or condition ID

GET
/v0/polymarket/orders

Historical order data with wallet filtering

GET
/v0/polymarket/orderbook-history

Point-in-time orderbook snapshots

GET
/v0/polymarket/market-price

Current and historical market prices

GET
/v0/polymarket/activity

Recent trading activity for a market

GET
/v0/polymarket/wallet/pnl/{address}

Realized PnL over time for a wallet

Kalshi

GET
/v0/kalshi/events

Events with nested markets and volume data

GET
/v0/kalshi/markets

Markets with status, rules, and strike info

GET
/v0/kalshi/trades

Trade history with price, size, and taker side

Data available per market

Volume (1h, 24h, weekly, total)
Open interest
Trade counts & buy/sell ratios
Market status & settlement
Outcome tokens & condition IDs
Rules & expiration times

TypeScript SDK

Auto-generated from our OpenAPI spec with full type safety. Every response is typed, every parameter validated.

Full IntelliSense support

Autocomplete for every parameter and response field

Zod validation built-in

Runtime validation with detailed error messages

Tree-shakeable

Import only what you need, keep bundles small

$ npm install @gliss-sh/sdk-typescript
example.ts
import { createClient } from '@gliss-sh/sdk-typescript';
const gliss = createClient();
// Query Polymarket markets
const { data } = await gliss.GET('/v0/polymarket/markets', {
params: { query: {
status: 'open',
order_by: 'volume_24_hr',
limit: 10
} }
});
// Get wallet PnL
const pnl = await gliss.GET(
'/v0/polymarket/wallet/pnl/{wallet_address}',
{ params: { path: { wallet_address }, query: { granularity: 'day' } } }
);

What you can build

From trading bots to research platforms, Gliss powers prediction market applications.

Algorithmic Trading

Build systematic strategies with historical orderbook data, real-time prices, and trade-level granularity.

Research & Backtesting

Access years of prediction market data for academic research, model training, and strategy validation.

Wallet Tracking

Monitor whale wallets, track trader performance, and analyze wallet PnL across markets.

Market Aggregation

Build dashboards and tools that aggregate data across prediction market venues in real-time.

Start building today

Get API access and explore our interactive documentation at docs.gliss.sh.