Skip to main content

Base URL

http://gateway.graylayer.tech
API endpoints follow the pattern:
/api/v1/{platform}/{resource}
SegmentValues
platformpolymarket, polymarket-clob, kalshi, gemini, coinbase, forecastex
resourcePlatform-specific path forwarded to the upstream API

Getting a key

Join the Graylayer Discord

Request an API key in #api-key-request under the Community tab.

Authentication

All endpoints except /health require:
X-API-Key: your_key

Health check

curl http://gateway.graylayer.tech/health
{ "status": "ok" }
No authentication required.

Error responses

StatusMeaning
401Missing or invalid X-API-Key
429Rate limit exceeded
502Upstream API error or unreachable
503Upstream returned an error
Proxy errors return JSON:
{ "error": "unauthorized", "message": "Invalid API key" }
Upstream errors are passed through with the upstream status code and body.

Endpoint reference

Browse the sidebar for detailed documentation of each platform’s endpoints, or use the pages below for a quick reference.

Polymarket Gamma

Markets, events, tags, series, search

Polymarket CLOB

Order book, prices, spreads, profiles

Kalshi

Markets, events, order books, portfolio

Gemini

Prediction markets, market data

Forecastex

IBKR event contracts

Coinbase

Products, tickers, order books, candles