Midpoint price
curl --request GET \
--url https://api.polynode.dev/v1/midpoint/{token_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v1/midpoint/{token_id}"
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.polynode.dev/v1/midpoint/{token_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.polynode.dev/v1/midpoint/{token_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.polynode.dev/v1/midpoint/{token_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.polynode.dev/v1/midpoint/{token_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v1/midpoint/{token_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"mid": "0.465",
"token_id": "114694726451307654528948558967898493662917070661203465131156925998487819889437",
"question": "Netanyahu out by end of 2026?",
"slug": "netanyahu-out-before-2027-684-719-226"
}{
"error": "<string>"
}{
"error": "No orderbook exists for the requested token id"
}{
"error": "<string>"
}Orderbook
Midpoint Price
Returns the midpoint price for a token, calculated as the average of the best bid and best ask.
If the book is one-sided (only bids or only asks), the missing side is treated as 0. Response is enriched with PolyNode market metadata.
GET
/
v1
/
midpoint
/
{token_id}
Midpoint price
curl --request GET \
--url https://api.polynode.dev/v1/midpoint/{token_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v1/midpoint/{token_id}"
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.polynode.dev/v1/midpoint/{token_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.polynode.dev/v1/midpoint/{token_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.polynode.dev/v1/midpoint/{token_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.polynode.dev/v1/midpoint/{token_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v1/midpoint/{token_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"mid": "0.465",
"token_id": "114694726451307654528948558967898493662917070661203465131156925998487819889437",
"question": "Netanyahu out by end of 2026?",
"slug": "netanyahu-out-before-2027-684-719-226"
}{
"error": "<string>"
}{
"error": "No orderbook exists for the requested token id"
}{
"error": "<string>"
}Returns the midpoint price for a token or market, calculated as the average of the best bid and best ask.
If the book is one-sided (only bids or only asks), the missing side is treated as 0. This matches Polymarket’s behavior.
Identifier types
The{token_id} parameter accepts three types:
| Identifier | Format | Returns |
|---|---|---|
| Token ID | All digits, 70+ chars | Single midpoint (Polymarket-compatible) |
| Condition ID | Starts with 0x | Midpoints for both outcomes |
| Slug | Human-readable string | Midpoints for all outcomes in the event |
By token ID
curl "https://api.polynode.dev/v1/midpoint/114694726451307654528948558967898493662917070661203465131156925998487819889437" \
-H "x-api-key: YOUR_KEY"
{
"mid": "0.465",
"token_id": "114694726451307654528948558967898493662917070661203465131156925998487819889437",
"question": "Netanyahu out by end of 2026?",
"slug": "netanyahu-out-before-2027-684-719-226"
}
By condition ID
curl "https://api.polynode.dev/v1/midpoint/0xd1796c09d0d6f876f8580086ae9808ec991784e3a74b25a1830a25de71a78c96" \
-H "x-api-key: YOUR_KEY"
{
"condition_id": "0xd1796c09d0d6f876f8580086ae9808ec991784e3a74b25a1830a25de71a78c96",
"question": "Netanyahu out by end of 2026?",
"event_title": "Netanyahu out by...?",
"outcomes": [
{"outcome": "Yes", "token_id": "11469472645...", "mid": "0.465"},
{"outcome": "No", "token_id": "66255671088...", "mid": "0.535"}
]
}
Calculation
midpoint = (best_bid + best_ask) / 2
Notes
- The
midvalue is a decimal string (e.g."0.465"). - Returns a 404 if no book exists for the identifier.
Authorizations
Path Parameters
Token ID (all digits), condition ID (starts with 0x), or event slug. Token ID returns a single book; condition ID and slug return all outcomes.
Response
Midpoint price
Midpoint price. The mid field matches Polymarket's CLOB /midpoint response. Additional fields are PolyNode enrichment.

