List Polymarket, Kalshi and OKX prediction markets
curl --request GET \
--url https://api.darvas.app/v1/prediction-markets \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/prediction-markets"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/prediction-markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"prediction_markets": [
{
"venue": "polymarket",
"market_id": "559651",
"ticker": "fed-rate-cut-december",
"question": "Will the Fed cut interest rates at its December meeting?",
"category": "Economics",
"yes_price": 0.64,
"no_price": 0.36,
"implied_probability": 64,
"best_bid": 0.63,
"best_ask": 0.65,
"spread": 0.02,
"volume_24h": 1250000,
"volume_total": 8400000,
"liquidity": 420000,
"open_interest": null,
"end_date": "2026-12-18T19:00:00Z",
"url": "https://polymarket.com/event/fed-rate-cut-december"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Prediction Markets
Prediction Markets API: Polymarket, Kalshi, OKX
Query live prediction market contracts, YES/NO implied probabilities, volume, liquidity and resolution dates across Polymarket, Kalshi and OKX.
List Polymarket, Kalshi and OKX prediction markets
curl --request GET \
--url https://api.darvas.app/v1/prediction-markets \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/prediction-markets"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/prediction-markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"prediction_markets": [
{
"venue": "polymarket",
"market_id": "559651",
"ticker": "fed-rate-cut-december",
"question": "Will the Fed cut interest rates at its December meeting?",
"category": "Economics",
"yes_price": 0.64,
"no_price": 0.36,
"implied_probability": 64,
"best_bid": 0.63,
"best_ask": 0.65,
"spread": 0.02,
"volume_24h": 1250000,
"volume_total": 8400000,
"liquidity": 420000,
"open_interest": null,
"end_date": "2026-12-18T19:00:00Z",
"url": "https://polymarket.com/event/fed-rate-cut-december"
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint normalizes active binary event contracts across Polymarket, Kalshi, and OKX Event Contracts onto one schema: YES and NO prices from0 to 1, implied probability from 0 to 100, top-of-book bid, ask, and spread, 24-hour and cumulative volume, liquidity, resolution date, and direct venue URL.
| Coverage | Details |
|---|---|
| Venues | venue accepts all (default), polymarket, kalshi, or okx |
| Search and filters | query (case-insensitive substring on question or ticker), category (substring such as Economics, Politics, or Crypto), and min_volume (minimum 24-hour volume, default 0) |
| Sorting | sort descending by volume_24h (default), volume_total, liquidity, or probability |
| Row limit | limit from 1 to 200 contracts (default 50) |
| Freshness | Active open contracts cached for 30 seconds (up to 200 active markets on Polymarket and Kalshi; live contracts across up to 12 OKX event series) |
| MCP tool | list_prediction_markets on the data API MCP server |
Normalization across venues
Each venue publishes different units and field shapes. Darvas normalizes every active contract before filtering and sorting.- Prices and implied probability. Kalshi cent quotes and OKX percentage quotes are scaled to match Polymarket’s
0to1dollar price scale.implied_probabilityequalsyes_price * 100rounded to two decimal places. Contracts priced at0or1(settled or degenerate markets) are excluded. - Order book, liquidity and open interest.
best_bid,best_ask, andspread(best_ask - best_bid) use the0to1scale and returnnullwhen top-of-book quotes are unavailable (including OKX Event Contracts).open_interestis populated where reported by the venue (Kalshi) andnullotherwise. On OKX,volume_totalmirrorsvolume_24handliquidityis0. - Venue availability. When
venue=all, if one venue feed fails to answer, Darvas returns live contracts from the venues that succeeded. The endpoint answers503only when every requested venue feed is unavailable. - Related endpoints. Discover OKX event series with settlement rules plus active Polymarket and Kalshi category counts at
/prediction-markets/series. Scan matched Polymarket and Kalshi contracts for cross-venue pricing spreads with/prediction-markets/arbitrage. Pair macro event odds with/macro/interest-rates,/macro/inflation, and federal agency releases at/news.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/prediction-markets",
headers=headers,
params={"venue": "all", "query": "BTC", "min_volume": 1000, "sort": "volume_24h", "limit": 10},
).json()
for m in resp["prediction_markets"]:
print(m["venue"], f'{m["implied_probability"]}%', "spread:", m["spread"], "24h vol:", m["volume_24h"], m["question"])
# Active OKX Event Contracts ranked by 24-hour volume
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/prediction-markets?venue=okx&sort=volume_24h&limit=20"
Authorizations
apiKeybearerKey