Skip to main content
GET
/
v1
/
polymarket
/
market-price
/
{token_id}
# Current price
curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.predexon.com/v1/polymarket/market-price/21742633143463906290569050155826241533067272736897614950488156847949938836455"

# Historical price
curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.predexon.com/v1/polymarket/market-price/21742633143463906290569050155826241533067272736897614950488156847949938836455?at_time=1704067200"
{
  "price": 0.6234,
  "at_time": 1704153600
}

Overview

Fetch the current or historical market price for a specific token. The price is calculated using a weighted average of recent trades when prices are stable, or the last trade price when volatile.
token_id
string
required
The token ID to get the price for
at_time
integer
Unix timestamp (seconds) for historical price lookup. Defaults to current time.
price
number
The market price (0-1 range)
at_time
integer
Unix timestamp when this price was recorded

Price Calculation

The API uses a smart pricing algorithm:
  1. Fetches the last 5 trades across both YES and NO tokens
  2. Normalizes NO prices as (1 - price) for consistency
  3. If all prices are within $0.10 of each other:
    • Returns a USD-weighted average
  4. Otherwise:
    • Returns the most recent trade price
This approach provides stability during normal trading while still reflecting rapid price movements.
# Current price
curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.predexon.com/v1/polymarket/market-price/21742633143463906290569050155826241533067272736897614950488156847949938836455"

# Historical price
curl -H "x-api-key: YOUR_API_KEY" \
  "https://api.predexon.com/v1/polymarket/market-price/21742633143463906290569050155826241533067272736897614950488156847949938836455?at_time=1704067200"
{
  "price": 0.6234,
  "at_time": 1704153600
}

Use Cases

Portfolio Valuation

Calculate current value of positions by multiplying shares by price

Historical Analysis

Track price at specific points in time for backtesting

Authorizations

x-api-key
string
header
required

API key for authentication. Get your free key at dashboard.predexon.com

Path Parameters

token_id
string
required

Token ID for the market

Query Parameters

at_time
integer | null

Unix timestamp (seconds) for historical price

Response

Successful Response

Market price endpoint response.

price
number
required
at_time
integer
required

Unix timestamp in seconds